From a2a404f46d86afce82547794b5a36c901a397d9b Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 22 Jun 2022 20:44:12 +0000 Subject: [PATCH] feat: add model_monitoring_config to BatchPredictionJob in aiplatform v1beta1 batch_prediction_job.proto (#892) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 456339444 Source-Link: https://github.com/googleapis/googleapis/commit/3b9c451c749a1c6fa127ff64aa8be7a0d67bb40d Source-Link: https://github.com/googleapis/googleapis-gen/commit/95a293beab5db62d3c734b083550e0ab446a9ad3 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTVhMjkzYmVhYjVkYjYyZDNjNzM0YjA4MzU1MGUwYWI0NDZhOWFkMyJ9 feat: add model_version_id to UploadModelResponse in aiplatform v1 model_service.proto PiperOrigin-RevId: 455486702 Source-Link: https://github.com/googleapis/googleapis/commit/f2e55382d437b3f7463176c95cedc1293c5971fb Source-Link: https://github.com/googleapis/googleapis-gen/commit/15200223b157cb9e76c7923bc387dd6e9c0a83bd Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTUyMDAyMjNiMTU3Y2I5ZTc2Yzc5MjNiYzM4N2RkNmU5YzBhODNiZCJ9 feat: add default_skew_threshold to TrainingPredictionSkewDetectionConfig in aiplatform v1beta1, v1 model_monitoring.proto feat: add default_drift_threshold to PredictionDriftDetectionConfig in aiplatform v1beta1, v1 model_monitoring.proto PiperOrigin-RevId: 455164942 Source-Link: https://github.com/googleapis/googleapis/commit/db1cd5e9cdf82b62839f20d85526c853830c7585 Source-Link: https://github.com/googleapis/googleapis-gen/commit/47772101d683e45375539ffcdee797f78fe608cb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDc3NzIxMDFkNjgzZTQ1Mzc1NTM5ZmZjZGVlNzk3Zjc4ZmU2MDhjYiJ9 chore: Integrate new gapic-generator-java and rules_gapic PiperOrigin-RevId: 454027580 Source-Link: https://github.com/googleapis/googleapis/commit/1b222777baa702e7135610355706570ed2b56318 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e04cea20d0d12eb5c3bdb360a9e72b654edcb638 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTA0Y2VhMjBkMGQxMmViNWMzYmRiMzYwYTllNzJiNjU0ZWRjYjYzOCJ9 feat: add successful_forecast_point_count to CompletionStats in aiplatform v1 completion_stats.proto feat: add neighbors to Explanation in aiplatform v1 explanation.proto feat: add examples_override to ExplanationSpecOverride in aiplatform v1 explanation.proto feat: add version_id, version_aliases, version_create_time, version_update_time, and version_description to aiplatform v1 model.proto feat: add ModelVersion CRUD methods in aiplatform v1 model_service.proto feat: add model_id and parent_model to TrainingPipeline in aiplatform v1 training_pipeline.proto PiperOrigin-RevId: 453734478 Source-Link: https://github.com/googleapis/googleapis/commit/84720fbcde807fb3446faeb8e036a5bf7da92462 Source-Link: https://github.com/googleapis/googleapis-gen/commit/93ace7716e168e3c2cba123bce51a5362a39429c Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTNhY2U3NzE2ZTE2OGUzYzJjYmExMjNiY2U1MWE1MzYyYTM5NDI5YyJ9 feat: add env to ContainerSpec in aiplatform v1beta1 custom_job.proto PiperOrigin-RevId: 453732998 Source-Link: https://github.com/googleapis/googleapis/commit/a95a55f584fabb4e29c60f9eb2ad59b9c3d832a8 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e2ea25266cc6608d2180843dde9051b4ba37cd9b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTJlYTI1MjY2Y2M2NjA4ZDIxODA4NDNkZGU5MDUxYjRiYTM3Y2Q5YiJ9 feat: add monitor_window to ModelDeploymentMonitoringScheduleConfig proto in aiplatform v1/v1beta1 model_deployment_monitoring_job.proto PiperOrigin-RevId: 453226330 Source-Link: https://github.com/googleapis/googleapis/commit/239db5e2752aed128eb1d3a5ac74e42f17ae3ddf Source-Link: https://github.com/googleapis/googleapis-gen/commit/4cf0c542505025be51be9e67120f0413415e7d67 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGNmMGM1NDI1MDUwMjViZTUxYmU5ZTY3MTIwZjA0MTM0MTVlN2Q2NyJ9 feat: add IAM policy to aiplatform_v1beta1.yaml feat: add preset configuration for example-based explanations in aiplatform v1beta1 explanation.proto feat: add latent_space_source to ExplanationMetadata in aiplatform v1beta1 explanation_metadata.proto feat: add successful_forecast_point_count to CompletionStats in completion_stats.proto PiperOrigin-RevId: 450727462 Source-Link: https://github.com/googleapis/googleapis/commit/665682daa0a04d210407434974c81cce09f93ece Source-Link: https://github.com/googleapis/googleapis-gen/commit/34cddbef39c17c58f96f5ffebf6065136b6d5719 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzRjZGRiZWYzOWMxN2M1OGY5NmY1ZmZlYmY2MDY1MTM2YjZkNTcxOSJ9 feat: add failure_policy to PipelineJob in aiplatform v1 & v1beta1 pipeline_job.proto PiperOrigin-RevId: 450704795 Source-Link: https://github.com/googleapis/googleapis/commit/c875f2b202e338381158637e787e2fdc57a0c4fa Source-Link: https://github.com/googleapis/googleapis-gen/commit/e606d62ab32b85434697678b3004f2206d5c02ae Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTYwNmQ2MmFiMzJiODU0MzQ2OTc2NzhiMzAwNGYyMjA2ZDVjMDJhZSJ9 feat: add latent_space_source to ExplanationMetadata in aiplatform v1 explanation_metadata.proto feat: add scaling to OnlineServingConfig in aiplatform v1 featurestore.proto feat: add template_metadata to PipelineJob in aiplatform v1 pipeline_job.proto PiperOrigin-RevId: 450687287 Source-Link: https://github.com/googleapis/googleapis/commit/058bff383bb3810ecbf30a6dfb85566313d5d63a Source-Link: https://github.com/googleapis/googleapis-gen/commit/f072bfe7704d996c41d74ac3aa1d8514f464c4ff Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjA3MmJmZTc3MDRkOTk2YzQxZDc0YWMzYWExZDg1MTRmNDY0YzRmZiJ9 chore(deps): upgrade gapic-generator-java to 2.8.0 and update gax-java to 2.18.1 PiperOrigin-RevId: 450543911 Source-Link: https://github.com/googleapis/googleapis/commit/55283447ab72f10b6c2571d770af0498b593e84f Source-Link: https://github.com/googleapis/googleapis-gen/commit/9f6775cab1958982b88967a43e5e806af0f135db Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOWY2Nzc1Y2FiMTk1ODk4MmI4ODk2N2E0M2U1ZTgwNmFmMGYxMzVkYiJ9 feat: add Examples to Explanation related messages in aiplatform v1beta1 explanation.proto PiperOrigin-RevId: 449620845 Source-Link: https://github.com/googleapis/googleapis/commit/117f86bec8295f237956e15ebfe4ed9bef43d9a7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/1d670dbb1a9ff155cf686e9544feffb75021a2f5 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMWQ2NzBkYmIxYTlmZjE1NWNmNjg2ZTk1NDRmZWZmYjc1MDIxYTJmNSJ9 Synchronize new proto/yaml changes. PiperOrigin-RevId: 449052112 Source-Link: https://github.com/googleapis/googleapis/commit/3150afaab93bb09fc6331ea2665708b5cb30a4ec Source-Link: https://github.com/googleapis/googleapis-gen/commit/9945a366e4a5efb00fc40985f03c107bdee89df2 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTk0NWEzNjZlNGE1ZWZiMDBmYzQwOTg1ZjAzYzEwN2JkZWU4OWRmMiJ9 feat: add display_name and metadata to ModelEvaluation in aiplatform model_evaluation.proto PiperOrigin-RevId: 448160148 Source-Link: https://github.com/googleapis/googleapis/commit/936ab3594a2ae46e799fc4146580045f2c710c46 Source-Link: https://github.com/googleapis/googleapis-gen/commit/f841b8e23d816e998f9e8e6c0e04ba92b7f6b835 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjg0MWI4ZTIzZDgxNmU5OThmOWU4ZTZjMGUwNGJhOTJiN2Y2YjgzNSJ9 fix!: added packaging options for C#, Ruby, and PHP PiperOrigin-RevId: 448116670 Source-Link: https://github.com/googleapis/googleapis/commit/914bc5263eee741910e6fe2a8c564fcbed9f0141 Source-Link: https://github.com/googleapis/googleapis-gen/commit/db499206c1ede59f599ca2b05699e86bd4ee152e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZGI0OTkyMDZjMWVkZTU5ZjU5OWNhMmIwNTY5OWU4NmJkNGVlMTUyZSJ9 feat: add template_metadata to PipelineJob in aiplatform v1beta1 pipeline_job.proto PiperOrigin-RevId: 447082691 Source-Link: https://github.com/googleapis/googleapis/commit/02b3022b93e5c3d2fb13f4a296634b5d7e992c69 Source-Link: https://github.com/googleapis/googleapis-gen/commit/753e1acf0deda59bc451482e6278c7dab4908b9c Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzUzZTFhY2YwZGVkYTU5YmM0NTE0ODJlNjI3OGM3ZGFiNDkwOGI5YyJ9 chore(deps): upgrade gapic-generator-java to 2.7.0 and update gax-java to 2.16.0 PiperOrigin-RevId: 446250659 Source-Link: https://github.com/googleapis/googleapis/commit/dc4ef314fecf1b00833e78288cf2eb4d2b165ad1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/5fdda4ddfbab87998e77e4a453e0ff87986d2db8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWZkZGE0ZGRmYmFiODc5OThlNzdlNGE0NTNlMGZmODc5ODZkMmRiOCJ9 --- java-aiplatform/.github/CODEOWNERS | 5 +- java-aiplatform/.repo-metadata.json | 3 +- java-aiplatform/README.md | 4 +- .../google-cloud-aiplatform/pom.xml | 12 + .../aiplatform/v1/DatasetServiceClient.java | 520 +++++- .../aiplatform/v1/DatasetServiceSettings.java | 69 +- .../aiplatform/v1/EndpointServiceClient.java | 493 ++++- .../v1/EndpointServiceSettings.java | 69 +- ...eaturestoreOnlineServingServiceClient.java | 457 ++++- ...turestoreOnlineServingServiceSettings.java | 75 +- .../v1/FeaturestoreServiceClient.java | 645 ++++++- .../v1/FeaturestoreServiceSettings.java | 69 +- .../v1/IndexEndpointServiceClient.java | 513 ++++- .../v1/IndexEndpointServiceSettings.java | 69 +- .../aiplatform/v1/IndexServiceClient.java | 470 ++++- .../aiplatform/v1/IndexServiceSettings.java | 69 +- .../cloud/aiplatform/v1/JobServiceClient.java | 681 ++++++- .../aiplatform/v1/JobServiceSettings.java | 69 +- .../aiplatform/v1/MetadataServiceClient.java | 701 ++++++- .../v1/MetadataServiceSettings.java | 69 +- .../aiplatform/v1/MigrationServiceClient.java | 452 ++++- .../v1/MigrationServiceSettings.java | 75 +- .../aiplatform/v1/ModelServiceClient.java | 1644 ++++++++++++++--- .../aiplatform/v1/ModelServiceSettings.java | 118 +- .../aiplatform/v1/PipelineServiceClient.java | 515 +++++- .../v1/PipelineServiceSettings.java | 69 +- .../v1/PredictionServiceClient.java | 473 ++++- .../v1/PredictionServiceSettings.java | 71 +- .../v1/SpecialistPoolServiceClient.java | 485 ++++- .../v1/SpecialistPoolServiceSettings.java | 69 +- .../v1/TensorboardServiceClient.java | 668 ++++++- .../v1/TensorboardServiceSettings.java | 69 +- .../aiplatform/v1/VizierServiceClient.java | 534 +++++- .../aiplatform/v1/VizierServiceSettings.java | 69 +- .../cloud/aiplatform/v1/gapic_metadata.json | 234 +++ .../cloud/aiplatform/v1/package-info.java | 45 +- .../v1/stub/DatasetServiceStub.java | 38 +- .../v1/stub/DatasetServiceStubSettings.java | 193 +- .../v1/stub/EndpointServiceStub.java | 38 +- .../v1/stub/EndpointServiceStubSettings.java | 193 +- .../FeaturestoreOnlineServingServiceStub.java | 39 +- ...storeOnlineServingServiceStubSettings.java | 203 +- .../v1/stub/FeaturestoreServiceStub.java | 38 +- .../stub/FeaturestoreServiceStubSettings.java | 193 +- .../GrpcDatasetServiceCallableFactory.java | 2 +- .../v1/stub/GrpcDatasetServiceStub.java | 169 +- .../GrpcEndpointServiceCallableFactory.java | 2 +- .../v1/stub/GrpcEndpointServiceStub.java | 169 +- ...reOnlineServingServiceCallableFactory.java | 2 +- ...cFeaturestoreOnlineServingServiceStub.java | 170 +- ...rpcFeaturestoreServiceCallableFactory.java | 2 +- .../v1/stub/GrpcFeaturestoreServiceStub.java | 169 +- ...pcIndexEndpointServiceCallableFactory.java | 2 +- .../v1/stub/GrpcIndexEndpointServiceStub.java | 169 +- .../stub/GrpcIndexServiceCallableFactory.java | 2 +- .../v1/stub/GrpcIndexServiceStub.java | 169 +- .../stub/GrpcJobServiceCallableFactory.java | 2 +- .../v1/stub/GrpcJobServiceStub.java | 169 +- .../GrpcMetadataServiceCallableFactory.java | 2 +- .../v1/stub/GrpcMetadataServiceStub.java | 169 +- .../GrpcMigrationServiceCallableFactory.java | 2 +- .../v1/stub/GrpcMigrationServiceStub.java | 169 +- .../stub/GrpcModelServiceCallableFactory.java | 2 +- .../v1/stub/GrpcModelServiceStub.java | 298 ++- .../GrpcPipelineServiceCallableFactory.java | 2 +- .../v1/stub/GrpcPipelineServiceStub.java | 169 +- .../GrpcPredictionServiceCallableFactory.java | 2 +- .../v1/stub/GrpcPredictionServiceStub.java | 170 +- ...cSpecialistPoolServiceCallableFactory.java | 2 +- .../stub/GrpcSpecialistPoolServiceStub.java | 169 +- ...GrpcTensorboardServiceCallableFactory.java | 2 +- .../v1/stub/GrpcTensorboardServiceStub.java | 169 +- .../GrpcVizierServiceCallableFactory.java | 2 +- .../v1/stub/GrpcVizierServiceStub.java | 169 +- .../v1/stub/IndexEndpointServiceStub.java | 38 +- .../IndexEndpointServiceStubSettings.java | 193 +- .../aiplatform/v1/stub/IndexServiceStub.java | 38 +- .../v1/stub/IndexServiceStubSettings.java | 193 +- .../aiplatform/v1/stub/JobServiceStub.java | 38 +- .../v1/stub/JobServiceStubSettings.java | 193 +- .../v1/stub/MetadataServiceStub.java | 38 +- .../v1/stub/MetadataServiceStubSettings.java | 193 +- .../v1/stub/MigrationServiceStub.java | 38 +- .../v1/stub/MigrationServiceStubSettings.java | 201 +- .../aiplatform/v1/stub/ModelServiceStub.java | 67 +- .../v1/stub/ModelServiceStubSettings.java | 382 +++- .../v1/stub/PipelineServiceStub.java | 38 +- .../v1/stub/PipelineServiceStubSettings.java | 193 +- .../v1/stub/PredictionServiceStub.java | 39 +- .../stub/PredictionServiceStubSettings.java | 205 +- .../v1/stub/SpecialistPoolServiceStub.java | 38 +- .../SpecialistPoolServiceStubSettings.java | 193 +- .../v1/stub/TensorboardServiceStub.java | 38 +- .../stub/TensorboardServiceStubSettings.java | 193 +- .../aiplatform/v1/stub/VizierServiceStub.java | 38 +- .../v1/stub/VizierServiceStubSettings.java | 193 +- .../v1beta1/DatasetServiceClient.java | 519 +++++- .../v1beta1/DatasetServiceSettings.java | 69 +- .../v1beta1/EndpointServiceClient.java | 492 ++++- .../v1beta1/EndpointServiceSettings.java | 69 +- ...eaturestoreOnlineServingServiceClient.java | 456 ++++- ...turestoreOnlineServingServiceSettings.java | 75 +- .../v1beta1/FeaturestoreServiceClient.java | 644 ++++++- .../v1beta1/FeaturestoreServiceSettings.java | 69 +- .../v1beta1/IndexEndpointServiceClient.java | 512 ++++- .../v1beta1/IndexEndpointServiceSettings.java | 69 +- .../v1beta1/IndexServiceClient.java | 469 ++++- .../v1beta1/IndexServiceSettings.java | 69 +- .../aiplatform/v1beta1/JobServiceClient.java | 680 ++++++- .../v1beta1/JobServiceSettings.java | 69 +- .../v1beta1/MetadataServiceClient.java | 700 ++++++- .../v1beta1/MetadataServiceSettings.java | 69 +- .../v1beta1/MigrationServiceClient.java | 451 ++++- .../v1beta1/MigrationServiceSettings.java | 75 +- .../v1beta1/ModelServiceClient.java | 722 +++++++- .../v1beta1/ModelServiceSettings.java | 100 +- .../v1beta1/PipelineServiceClient.java | 514 +++++- .../v1beta1/PipelineServiceSettings.java | 69 +- .../v1beta1/PredictionServiceClient.java | 472 ++++- .../v1beta1/PredictionServiceSettings.java | 71 +- .../v1beta1/SpecialistPoolServiceClient.java | 484 ++++- .../SpecialistPoolServiceSettings.java | 69 +- .../v1beta1/TensorboardServiceClient.java | 667 ++++++- .../v1beta1/TensorboardServiceSettings.java | 69 +- .../v1beta1/VizierServiceClient.java | 533 +++++- .../v1beta1/VizierServiceSettings.java | 69 +- .../aiplatform/v1beta1/gapic_metadata.json | 228 +++ .../aiplatform/v1beta1/package-info.java | 45 +- .../v1beta1/stub/DatasetServiceStub.java | 38 +- .../stub/DatasetServiceStubSettings.java | 196 +- .../v1beta1/stub/EndpointServiceStub.java | 38 +- .../stub/EndpointServiceStubSettings.java | 196 +- .../FeaturestoreOnlineServingServiceStub.java | 39 +- ...storeOnlineServingServiceStubSettings.java | 206 ++- .../v1beta1/stub/FeaturestoreServiceStub.java | 38 +- .../stub/FeaturestoreServiceStubSettings.java | 193 +- .../GrpcDatasetServiceCallableFactory.java | 2 +- .../v1beta1/stub/GrpcDatasetServiceStub.java | 169 +- .../GrpcEndpointServiceCallableFactory.java | 2 +- .../v1beta1/stub/GrpcEndpointServiceStub.java | 169 +- ...reOnlineServingServiceCallableFactory.java | 2 +- ...cFeaturestoreOnlineServingServiceStub.java | 170 +- ...rpcFeaturestoreServiceCallableFactory.java | 2 +- .../stub/GrpcFeaturestoreServiceStub.java | 169 +- ...pcIndexEndpointServiceCallableFactory.java | 2 +- .../stub/GrpcIndexEndpointServiceStub.java | 169 +- .../stub/GrpcIndexServiceCallableFactory.java | 2 +- .../v1beta1/stub/GrpcIndexServiceStub.java | 169 +- .../stub/GrpcJobServiceCallableFactory.java | 2 +- .../v1beta1/stub/GrpcJobServiceStub.java | 169 +- .../GrpcMetadataServiceCallableFactory.java | 2 +- .../v1beta1/stub/GrpcMetadataServiceStub.java | 169 +- .../GrpcMigrationServiceCallableFactory.java | 2 +- .../stub/GrpcMigrationServiceStub.java | 169 +- .../stub/GrpcModelServiceCallableFactory.java | 2 +- .../v1beta1/stub/GrpcModelServiceStub.java | 227 ++- .../GrpcPipelineServiceCallableFactory.java | 2 +- .../v1beta1/stub/GrpcPipelineServiceStub.java | 169 +- .../GrpcPredictionServiceCallableFactory.java | 2 +- .../stub/GrpcPredictionServiceStub.java | 170 +- ...cSpecialistPoolServiceCallableFactory.java | 2 +- .../stub/GrpcSpecialistPoolServiceStub.java | 169 +- ...GrpcTensorboardServiceCallableFactory.java | 2 +- .../stub/GrpcTensorboardServiceStub.java | 169 +- .../GrpcVizierServiceCallableFactory.java | 2 +- .../v1beta1/stub/GrpcVizierServiceStub.java | 169 +- .../stub/IndexEndpointServiceStub.java | 38 +- .../IndexEndpointServiceStubSettings.java | 193 +- .../v1beta1/stub/IndexServiceStub.java | 38 +- .../stub/IndexServiceStubSettings.java | 196 +- .../v1beta1/stub/JobServiceStub.java | 38 +- .../v1beta1/stub/JobServiceStubSettings.java | 196 +- .../v1beta1/stub/MetadataServiceStub.java | 38 +- .../stub/MetadataServiceStubSettings.java | 193 +- .../v1beta1/stub/MigrationServiceStub.java | 38 +- .../stub/MigrationServiceStubSettings.java | 201 +- .../v1beta1/stub/ModelServiceStub.java | 55 +- .../stub/ModelServiceStubSettings.java | 283 ++- .../v1beta1/stub/PipelineServiceStub.java | 38 +- .../stub/PipelineServiceStubSettings.java | 193 +- .../v1beta1/stub/PredictionServiceStub.java | 39 +- .../stub/PredictionServiceStubSettings.java | 205 +- .../stub/SpecialistPoolServiceStub.java | 38 +- .../SpecialistPoolServiceStubSettings.java | 196 +- .../v1beta1/stub/TensorboardServiceStub.java | 38 +- .../stub/TensorboardServiceStubSettings.java | 193 +- .../v1beta1/stub/VizierServiceStub.java | 38 +- .../stub/VizierServiceStubSettings.java | 196 +- .../v1/DatasetServiceClientTest.java | 294 ++- .../v1/EndpointServiceClientTest.java | 284 ++- ...restoreOnlineServingServiceClientTest.java | 289 ++- .../v1/FeaturestoreServiceClientTest.java | 284 ++- .../v1/IndexEndpointServiceClientTest.java | 284 ++- .../aiplatform/v1/IndexServiceClientTest.java | 294 ++- .../aiplatform/v1/JobServiceClientTest.java | 310 +++- .../v1/MetadataServiceClientTest.java | 284 ++- .../v1/MigrationServiceClientTest.java | 286 ++- .../aiplatform/v1/MockDatasetService.java | 2 +- .../aiplatform/v1/MockDatasetServiceImpl.java | 2 +- .../aiplatform/v1/MockEndpointService.java | 2 +- .../v1/MockEndpointServiceImpl.java | 2 +- .../MockFeaturestoreOnlineServingService.java | 2 +- ...kFeaturestoreOnlineServingServiceImpl.java | 2 +- .../v1/MockFeaturestoreService.java | 2 +- .../v1/MockFeaturestoreServiceImpl.java | 2 +- .../cloud/aiplatform/v1/MockIAMPolicy.java | 59 + .../aiplatform/v1/MockIAMPolicyImpl.java | 127 ++ .../v1/MockIndexEndpointService.java | 2 +- .../v1/MockIndexEndpointServiceImpl.java | 2 +- .../cloud/aiplatform/v1/MockIndexService.java | 2 +- .../aiplatform/v1/MockIndexServiceImpl.java | 2 +- .../cloud/aiplatform/v1/MockJobService.java | 2 +- .../aiplatform/v1/MockJobServiceImpl.java | 2 +- .../cloud/aiplatform/v1/MockLocations.java | 59 + .../aiplatform/v1/MockLocationsImpl.java | 105 ++ .../aiplatform/v1/MockMetadataService.java | 2 +- .../v1/MockMetadataServiceImpl.java | 2 +- .../aiplatform/v1/MockMigrationService.java | 2 +- .../v1/MockMigrationServiceImpl.java | 2 +- .../cloud/aiplatform/v1/MockModelService.java | 2 +- .../aiplatform/v1/MockModelServiceImpl.java | 66 +- .../aiplatform/v1/MockPipelineService.java | 2 +- .../v1/MockPipelineServiceImpl.java | 2 +- .../aiplatform/v1/MockPredictionService.java | 2 +- .../v1/MockPredictionServiceImpl.java | 2 +- .../v1/MockSpecialistPoolService.java | 2 +- .../v1/MockSpecialistPoolServiceImpl.java | 2 +- .../aiplatform/v1/MockTensorboardService.java | 2 +- .../v1/MockTensorboardServiceImpl.java | 2 +- .../aiplatform/v1/MockVizierService.java | 2 +- .../aiplatform/v1/MockVizierServiceImpl.java | 2 +- .../aiplatform/v1/ModelServiceClientTest.java | 634 ++++++- .../v1/PipelineServiceClientTest.java | 318 +++- .../v1/PredictionServiceClientTest.java | 303 ++- .../v1/SpecialistPoolServiceClientTest.java | 285 ++- .../v1/TensorboardServiceClientTest.java | 283 ++- .../v1/VizierServiceClientTest.java | 285 ++- .../v1beta1/DatasetServiceClientTest.java | 296 ++- .../v1beta1/EndpointServiceClientTest.java | 286 ++- ...restoreOnlineServingServiceClientTest.java | 291 ++- .../FeaturestoreServiceClientTest.java | 286 ++- .../IndexEndpointServiceClientTest.java | 286 ++- .../v1beta1/IndexServiceClientTest.java | 296 ++- .../v1beta1/JobServiceClientTest.java | 316 +++- .../v1beta1/MetadataServiceClientTest.java | 286 ++- .../v1beta1/MigrationServiceClientTest.java | 288 ++- .../v1beta1/MockDatasetService.java | 2 +- .../v1beta1/MockDatasetServiceImpl.java | 2 +- .../v1beta1/MockEndpointService.java | 2 +- .../v1beta1/MockEndpointServiceImpl.java | 2 +- .../MockFeaturestoreOnlineServingService.java | 2 +- ...kFeaturestoreOnlineServingServiceImpl.java | 2 +- .../v1beta1/MockFeaturestoreService.java | 2 +- .../v1beta1/MockFeaturestoreServiceImpl.java | 2 +- .../v1beta1/MockIndexEndpointService.java | 2 +- .../v1beta1/MockIndexEndpointServiceImpl.java | 2 +- .../aiplatform/v1beta1/MockIndexService.java | 2 +- .../v1beta1/MockIndexServiceImpl.java | 2 +- .../aiplatform/v1beta1/MockJobService.java | 2 +- .../v1beta1/MockJobServiceImpl.java | 2 +- .../v1beta1/MockMetadataService.java | 2 +- .../v1beta1/MockMetadataServiceImpl.java | 2 +- .../v1beta1/MockMigrationService.java | 2 +- .../v1beta1/MockMigrationServiceImpl.java | 2 +- .../aiplatform/v1beta1/MockModelService.java | 2 +- .../v1beta1/MockModelServiceImpl.java | 23 +- .../v1beta1/MockPipelineService.java | 2 +- .../v1beta1/MockPipelineServiceImpl.java | 2 +- .../v1beta1/MockPredictionService.java | 2 +- .../v1beta1/MockPredictionServiceImpl.java | 2 +- .../v1beta1/MockSpecialistPoolService.java | 2 +- .../MockSpecialistPoolServiceImpl.java | 2 +- .../v1beta1/MockTensorboardService.java | 2 +- .../v1beta1/MockTensorboardServiceImpl.java | 2 +- .../aiplatform/v1beta1/MockVizierService.java | 2 +- .../v1beta1/MockVizierServiceImpl.java | 2 +- .../v1beta1/ModelServiceClientTest.java | 408 +++- .../v1beta1/PipelineServiceClientTest.java | 312 +++- .../v1beta1/PredictionServiceClientTest.java | 305 ++- .../SpecialistPoolServiceClientTest.java | 287 ++- .../v1beta1/TensorboardServiceClientTest.java | 285 ++- .../v1beta1/VizierServiceClientTest.java | 287 ++- .../google/cloud/location/MockLocations.java | 59 + .../cloud/location/MockLocationsImpl.java | 101 + .../java/com/google/iam/v1/MockIAMPolicy.java | 59 + .../com/google/iam/v1/MockIAMPolicyImpl.java | 122 ++ .../cloud/aiplatform/v1/ModelServiceGrpc.java | 382 +++- .../aiplatform/v1beta1/ModelServiceGrpc.java | 137 +- java-aiplatform/owlbot.py | 1 + .../aiplatform/v1/AnnotationSpecName.java | 2 +- .../cloud/aiplatform/v1/ArtifactName.java | 2 +- .../aiplatform/v1/BatchPredictionJob.java | 14 + .../aiplatform/v1/BatchPredictionJobName.java | 2 +- .../v1/BatchPredictionJobOrBuilder.java | 4 + .../cloud/aiplatform/v1/CompletionStats.java | 99 + .../v1/CompletionStatsOrBuilder.java | 15 + .../aiplatform/v1/CompletionStatsProto.java | 23 +- .../cloud/aiplatform/v1/ContextName.java | 2 +- .../cloud/aiplatform/v1/CustomJobName.java | 2 +- .../cloud/aiplatform/v1/DataItemName.java | 2 +- .../aiplatform/v1/DataLabelingJobName.java | 2 +- .../cloud/aiplatform/v1/DatasetName.java | 2 +- .../v1/DeleteModelVersionRequest.java | 667 +++++++ .../DeleteModelVersionRequestOrBuilder.java | 58 + .../cloud/aiplatform/v1/DeployedModel.java | 42 +- .../aiplatform/v1/DeployedModelOrBuilder.java | 12 +- .../cloud/aiplatform/v1/EndpointName.java | 2 +- .../cloud/aiplatform/v1/EntityTypeName.java | 2 +- .../cloud/aiplatform/v1/ExamplesOverride.java | 1583 ++++++++++++++++ .../v1/ExamplesOverrideOrBuilder.java | 148 ++ .../v1/ExamplesRestrictionsNamespace.java | 1198 ++++++++++++ ...xamplesRestrictionsNamespaceOrBuilder.java | 152 ++ .../cloud/aiplatform/v1/ExecutionName.java | 2 +- .../cloud/aiplatform/v1/Explanation.java | 579 ++++++ .../aiplatform/v1/ExplanationMetadata.java | 179 ++ .../v1/ExplanationMetadataOrBuilder.java | 25 + .../v1/ExplanationMetadataProto.java | 125 +- .../aiplatform/v1/ExplanationOrBuilder.java | 72 + .../cloud/aiplatform/v1/ExplanationProto.java | 206 ++- .../v1/ExplanationSpecOverride.java | 278 +++ .../v1/ExplanationSpecOverrideOrBuilder.java | 35 + .../aiplatform/v1/ExportModelRequest.java | 14 + .../v1/ExportModelRequestOrBuilder.java | 4 + .../cloud/aiplatform/v1/FeatureName.java | 2 +- .../cloud/aiplatform/v1/FeatureValue.java | 2 - .../cloud/aiplatform/v1/Featurestore.java | 1069 +++++++++++ .../cloud/aiplatform/v1/FeaturestoreName.java | 2 +- .../aiplatform/v1/FeaturestoreProto.java | 48 +- .../cloud/aiplatform/v1/GetModelRequest.java | 63 + .../v1/GetModelRequestOrBuilder.java | 18 + .../v1/HyperparameterTuningJobName.java | 2 +- .../aiplatform/v1/IndexEndpointName.java | 2 +- .../google/cloud/aiplatform/v1/IndexName.java | 2 +- .../v1/ListModelVersionsRequest.java | 1439 +++++++++++++++ .../v1/ListModelVersionsRequestOrBuilder.java | 172 ++ .../v1/ListModelVersionsResponse.java | 1183 ++++++++++++ .../ListModelVersionsResponseOrBuilder.java | 113 ++ .../v1/ListPipelineJobsRequest.java | 14 +- .../v1/ListPipelineJobsRequestOrBuilder.java | 4 +- .../cloud/aiplatform/v1/LocationName.java | 2 +- .../v1/ManualBatchTuningParameters.java | 8 +- .../ManualBatchTuningParametersOrBuilder.java | 2 +- .../v1/MergeVersionAliasesRequest.java | 1077 +++++++++++ .../MergeVersionAliasesRequestOrBuilder.java | 149 ++ .../aiplatform/v1/MetadataSchemaName.java | 2 +- .../aiplatform/v1/MetadataStoreName.java | 2 +- .../com/google/cloud/aiplatform/v1/Model.java | 1603 ++++++++++++++-- .../v1/ModelDeploymentMonitoringJobName.java | 2 +- .../v1/ModelDeploymentMonitoringJobProto.java | 60 +- ...delDeploymentMonitoringScheduleConfig.java | 360 ++++ ...mentMonitoringScheduleConfigOrBuilder.java | 56 + .../cloud/aiplatform/v1/ModelEvaluation.java | 482 +++++ .../aiplatform/v1/ModelEvaluationName.java | 2 +- .../v1/ModelEvaluationOrBuilder.java | 69 + .../aiplatform/v1/ModelEvaluationProto.java | 51 +- .../v1/ModelEvaluationSliceName.java | 2 +- .../v1/ModelMonitoringObjectiveConfig.java | 715 +++++++ .../aiplatform/v1/ModelMonitoringProto.java | 110 +- .../google/cloud/aiplatform/v1/ModelName.java | 2 +- .../cloud/aiplatform/v1/ModelOrBuilder.java | 225 +++ .../cloud/aiplatform/v1/ModelProto.java | 122 +- .../aiplatform/v1/ModelServiceProto.java | 361 ++-- .../google/cloud/aiplatform/v1/Neighbor.java | 729 ++++++++ .../aiplatform/v1/NeighborOrBuilder.java | 63 + .../google/cloud/aiplatform/v1/Pipeline.java | 235 +-- .../aiplatform/v1/PipelineFailurePolicy.java | 190 ++ .../v1/PipelineFailurePolicyProto.java | 57 + .../cloud/aiplatform/v1/PipelineJob.java | 736 ++++++++ .../cloud/aiplatform/v1/PipelineJobName.java | 2 +- .../aiplatform/v1/PipelineJobOrBuilder.java | 71 + .../v1/PipelineTaskExecutorDetail.java | 8 +- .../PipelineTaskExecutorDetailOrBuilder.java | 4 +- .../v1/PipelineTemplateMetadata.java | 664 +++++++ .../v1/PipelineTemplateMetadataOrBuilder.java | 56 + .../aiplatform/v1/SpecialistPoolName.java | 2 +- .../google/cloud/aiplatform/v1/StudyName.java | 2 +- .../v1/TensorboardExperimentName.java | 2 +- .../cloud/aiplatform/v1/TensorboardName.java | 2 +- .../aiplatform/v1/TensorboardRunName.java | 2 +- .../v1/TensorboardTimeSeriesName.java | 2 +- .../cloud/aiplatform/v1/TrainingPipeline.java | 386 ++++ .../aiplatform/v1/TrainingPipelineName.java | 2 +- .../v1/TrainingPipelineOrBuilder.java | 58 + .../aiplatform/v1/TrainingPipelineProto.java | 105 +- .../google/cloud/aiplatform/v1/TrialName.java | 2 +- .../v1/UpdateFeaturestoreRequest.java | 12 + .../UpdateFeaturestoreRequestOrBuilder.java | 3 + .../aiplatform/v1/UploadModelRequest.java | 386 ++++ .../v1/UploadModelRequestOrBuilder.java | 58 + .../aiplatform/v1/UploadModelResponse.java | 179 ++ .../v1/UploadModelResponseOrBuilder.java | 25 + .../aiplatform/v1/batch_prediction_job.proto | 3 + .../aiplatform/v1/completion_stats.proto | 4 + .../google/cloud/aiplatform/v1/endpoint.proto | 7 +- .../cloud/aiplatform/v1/explanation.proto | 60 + .../aiplatform/v1/explanation_metadata.proto | 3 + .../cloud/aiplatform/v1/featurestore.proto | 18 + .../v1/featurestore_online_service.proto | 1 - .../aiplatform/v1/featurestore_service.proto | 1 + .../v1/manual_batch_tuning_parameters.proto | 2 +- .../google/cloud/aiplatform/v1/model.proto | 29 + .../v1/model_deployment_monitoring_job.proto | 10 + .../aiplatform/v1/model_evaluation.proto | 9 + .../aiplatform/v1/model_monitoring.proto | 12 + .../cloud/aiplatform/v1/model_service.proto | 148 ++ .../v1/pipeline_failure_policy.proto | 44 + .../cloud/aiplatform/v1/pipeline_job.proto | 30 + .../aiplatform/v1/pipeline_service.proto | 2 +- .../aiplatform/v1/training_pipeline.proto | 11 + .../v1beta1/AnnotationSpecName.java | 2 +- .../aiplatform/v1beta1/ArtifactName.java | 2 +- .../v1beta1/BatchPredictionJob.java | 336 ++++ .../v1beta1/BatchPredictionJobName.java | 2 +- .../v1beta1/BatchPredictionJobOrBuilder.java | 49 + .../v1beta1/BatchPredictionJobProto.java | 146 +- .../aiplatform/v1beta1/CompletionStats.java | 99 + .../v1beta1/CompletionStatsOrBuilder.java | 15 + .../v1beta1/CompletionStatsProto.java | 23 +- .../aiplatform/v1beta1/ContainerSpec.java | 512 ++++- .../v1beta1/ContainerSpecOrBuilder.java | 57 + .../cloud/aiplatform/v1beta1/ContextName.java | 2 +- .../aiplatform/v1beta1/CustomJobName.java | 2 +- .../aiplatform/v1beta1/CustomJobProto.java | 140 +- .../aiplatform/v1beta1/DataItemName.java | 2 +- .../v1beta1/DataLabelingJobName.java | 2 +- .../cloud/aiplatform/v1beta1/DatasetName.java | 2 +- .../aiplatform/v1beta1/DeployedModel.java | 42 +- .../v1beta1/DeployedModelOrBuilder.java | 12 +- .../aiplatform/v1beta1/EndpointName.java | 2 +- .../aiplatform/v1beta1/EntityTypeName.java | 2 +- .../cloud/aiplatform/v1beta1/Examples.java | 885 ++++++--- .../aiplatform/v1beta1/ExamplesOrBuilder.java | 90 +- .../aiplatform/v1beta1/ExamplesOverride.java | 1610 ++++++++++++++++ .../v1beta1/ExamplesOverrideOrBuilder.java | 149 ++ .../ExamplesRestrictionsNamespace.java | 1204 ++++++++++++ ...xamplesRestrictionsNamespaceOrBuilder.java | 152 ++ .../aiplatform/v1beta1/ExecutionName.java | 2 +- .../cloud/aiplatform/v1beta1/Explanation.java | 582 ++++++ .../v1beta1/ExplanationMetadata.java | 179 ++ .../v1beta1/ExplanationMetadataOrBuilder.java | 25 + .../v1beta1/ExplanationMetadataProto.java | 129 +- .../v1beta1/ExplanationOrBuilder.java | 72 + .../aiplatform/v1beta1/ExplanationProto.java | 246 ++- .../v1beta1/ExplanationSpecOverride.java | 283 +++ .../ExplanationSpecOverrideOrBuilder.java | 35 + .../v1beta1/ExportModelRequest.java | 14 + .../v1beta1/ExportModelRequestOrBuilder.java | 4 + .../cloud/aiplatform/v1beta1/FeatureName.java | 2 +- .../aiplatform/v1beta1/FeatureValue.java | 2 - .../aiplatform/v1beta1/FeaturestoreName.java | 2 +- .../aiplatform/v1beta1/GetModelRequest.java | 63 + .../v1beta1/GetModelRequestOrBuilder.java | 18 + .../v1beta1/HyperparameterTuningJobName.java | 2 +- .../aiplatform/v1beta1/IndexEndpointName.java | 2 +- .../cloud/aiplatform/v1beta1/IndexName.java | 2 +- .../v1beta1/ListPipelineJobsRequest.java | 14 +- .../ListPipelineJobsRequestOrBuilder.java | 4 +- .../aiplatform/v1beta1/LocationName.java | 2 +- .../v1beta1/ManualBatchTuningParameters.java | 8 +- .../ManualBatchTuningParametersOrBuilder.java | 2 +- .../v1beta1/MetadataSchemaName.java | 2 +- .../aiplatform/v1beta1/MetadataStoreName.java | 2 +- .../ModelDeploymentMonitoringJobName.java | 2 +- .../ModelDeploymentMonitoringJobProto.java | 64 +- ...delDeploymentMonitoringScheduleConfig.java | 360 ++++ ...mentMonitoringScheduleConfigOrBuilder.java | 56 + .../aiplatform/v1beta1/ModelEvaluation.java | 482 +++++ .../v1beta1/ModelEvaluationName.java | 2 +- .../v1beta1/ModelEvaluationOrBuilder.java | 69 + .../v1beta1/ModelEvaluationProto.java | 50 +- .../v1beta1/ModelEvaluationSliceName.java | 2 +- .../v1beta1/ModelMonitoringConfig.java | 1537 +++++++++++++++ .../ModelMonitoringConfigOrBuilder.java | 160 ++ .../ModelMonitoringObjectiveConfig.java | 721 ++++++++ .../v1beta1/ModelMonitoringProto.java | 204 +- .../cloud/aiplatform/v1beta1/ModelName.java | 2 +- .../aiplatform/v1beta1/ModelServiceProto.java | 431 +++-- .../cloud/aiplatform/v1beta1/Neighbor.java | 730 ++++++++ .../aiplatform/v1beta1/NeighborOrBuilder.java | 63 + .../cloud/aiplatform/v1beta1/Pipeline.java | 240 +-- .../v1beta1/PipelineFailurePolicy.java | 190 ++ .../v1beta1/PipelineFailurePolicyProto.java | 58 + .../cloud/aiplatform/v1beta1/PipelineJob.java | 739 ++++++++ .../aiplatform/v1beta1/PipelineJobName.java | 2 +- .../v1beta1/PipelineJobOrBuilder.java | 72 + .../v1beta1/PipelineTaskExecutorDetail.java | 8 +- .../PipelineTaskExecutorDetailOrBuilder.java | 4 +- .../v1beta1/PipelineTemplateMetadata.java | 667 +++++++ .../PipelineTemplateMetadataOrBuilder.java | 56 + .../cloud/aiplatform/v1beta1/Presets.java | 1126 +++++++++++ .../aiplatform/v1beta1/PresetsOrBuilder.java | 87 + .../aiplatform/v1beta1/PythonPackageSpec.java | 512 ++++- .../v1beta1/PythonPackageSpecOrBuilder.java | 57 + .../v1beta1/SpecialistPoolName.java | 2 +- .../cloud/aiplatform/v1beta1/StudyName.java | 2 +- .../v1beta1/TensorboardExperimentName.java | 2 +- .../aiplatform/v1beta1/TensorboardName.java | 2 +- .../v1beta1/TensorboardRunName.java | 2 +- .../v1beta1/TensorboardTimeSeriesName.java | 2 +- .../v1beta1/TrainingPipelineName.java | 2 +- .../cloud/aiplatform/v1beta1/TrialName.java | 2 +- ...teExplanationDatasetOperationMetadata.java | 775 ++++++++ ...tionDatasetOperationMetadataOrBuilder.java | 61 + .../UpdateExplanationDatasetRequest.java | 952 ++++++++++ ...ateExplanationDatasetRequestOrBuilder.java | 91 + .../UpdateExplanationDatasetResponse.java | 471 +++++ ...teExplanationDatasetResponseOrBuilder.java | 24 + .../v1beta1/UpdateFeaturestoreRequest.java | 12 + .../UpdateFeaturestoreRequestOrBuilder.java | 3 + ...ClassificationPredictionInstanceProto.java | 9 +- ...bjectDetectionPredictionInstanceProto.java | 9 +- ...geSegmentationPredictionInstanceProto.java | 8 +- ...ClassificationPredictionInstanceProto.java | 8 +- ...TextExtractionPredictionInstanceProto.java | 9 +- .../TextSentimentPredictionInstanceProto.java | 10 +- ...ionRecognitionPredictionInstanceProto.java | 8 +- ...ClassificationPredictionInstanceProto.java | 9 +- ...ObjectTrackingPredictionInstanceProto.java | 9 +- ...geClassificationPredictionParamsProto.java | 9 +- ...eObjectDetectionPredictionParamsProto.java | 9 +- ...mageSegmentationPredictionParamsProto.java | 9 +- ...ctionRecognitionPredictionParamsProto.java | 9 +- ...eoClassificationPredictionParamsProto.java | 8 +- ...eoObjectTrackingPredictionParamsProto.java | 8 +- .../ClassificationPredictionResultProto.java | 9 +- ...eObjectDetectionPredictionResultProto.java | 8 +- ...mageSegmentationPredictionResultProto.java | 9 +- ...arClassificationPredictionResultProto.java | 9 +- ...abularRegressionPredictionResultProto.java | 10 +- .../TextExtractionPredictionResultProto.java | 9 +- .../TextSentimentPredictionResultProto.java | 9 +- ...eriesForecastingPredictionResultProto.java | 9 +- ...ctionRecognitionPredictionResultProto.java | 9 +- ...eoClassificationPredictionResultProto.java | 9 +- ...eoObjectTrackingPredictionResultProto.java | 10 +- .../definition/AutoMLForecastingProto.java | 9 +- .../AutoMLImageClassificationProto.java | 10 +- .../AutoMLImageObjectDetectionProto.java | 9 +- .../AutoMLImageSegmentationProto.java | 9 +- .../definition/AutoMLTablesProto.java | 9 +- .../AutoMLTextClassificationProto.java | 9 +- .../definition/AutoMLTextExtractionProto.java | 9 +- .../definition/AutoMLTextSentimentProto.java | 9 +- .../AutoMLVideoActionRecognitionProto.java | 9 +- .../AutoMLVideoClassificationProto.java | 9 +- .../AutoMLVideoObjectTrackingProto.java | 9 +- .../ExportEvaluatedDataItemsConfigProto.java | 9 +- .../v1beta1/batch_prediction_job.proto | 9 + .../aiplatform/v1beta1/completion_stats.proto | 4 + .../cloud/aiplatform/v1beta1/custom_job.proto | 9 + .../cloud/aiplatform/v1beta1/endpoint.proto | 7 +- .../aiplatform/v1beta1/explanation.proto | 108 +- .../v1beta1/explanation_metadata.proto | 3 + .../v1beta1/featurestore_online_service.proto | 1 - .../v1beta1/featurestore_service.proto | 1 + .../manual_batch_tuning_parameters.proto | 2 +- .../model_deployment_monitoring_job.proto | 10 + .../aiplatform/v1beta1/model_evaluation.proto | 9 + .../aiplatform/v1beta1/model_monitoring.proto | 30 + .../aiplatform/v1beta1/model_service.proto | 54 + .../v1beta1/pipeline_failure_policy.proto | 44 + .../aiplatform/v1beta1/pipeline_job.proto | 30 + .../aiplatform/v1beta1/pipeline_service.proto | 2 +- .../v1beta1/schema/annotation_payload.proto | 3 + .../schema/annotation_spec_color.proto | 3 + .../v1beta1/schema/data_item_payload.proto | 3 + .../v1beta1/schema/dataset_metadata.proto | 3 + .../aiplatform/v1beta1/schema/geometry.proto | 3 + .../instance/image_classification.proto | 3 + .../instance/image_object_detection.proto | 3 + .../predict/instance/image_segmentation.proto | 3 + .../instance/text_classification.proto | 3 + .../predict/instance/text_extraction.proto | 3 + .../predict/instance/text_sentiment.proto | 3 + .../instance/video_action_recognition.proto | 3 + .../instance/video_classification.proto | 3 + .../instance/video_object_tracking.proto | 3 + .../predict/params/image_classification.proto | 3 + .../params/image_object_detection.proto | 3 + .../predict/params/image_segmentation.proto | 3 + .../params/video_action_recognition.proto | 3 + .../predict/params/video_classification.proto | 3 + .../params/video_object_tracking.proto | 3 + .../predict/prediction/classification.proto | 3 + .../prediction/image_object_detection.proto | 3 + .../prediction/image_segmentation.proto | 3 + .../prediction/tabular_classification.proto | 3 + .../prediction/tabular_regression.proto | 3 + .../predict/prediction/text_extraction.proto | 3 + .../predict/prediction/text_sentiment.proto | 3 + .../prediction/time_series_forecasting.proto | 3 + .../prediction/video_action_recognition.proto | 3 + .../prediction/video_classification.proto | 3 + .../prediction/video_object_tracking.proto | 3 + .../automl_image_classification.proto | 3 + .../automl_image_object_detection.proto | 3 + .../automl_image_segmentation.proto | 3 + .../definition/automl_tables.proto | 3 + .../automl_text_classification.proto | 3 + .../definition/automl_text_extraction.proto | 3 + .../definition/automl_text_sentiment.proto | 3 + .../automl_time_series_forecasting.proto | 3 + .../automl_video_action_recognition.proto | 3 + .../automl_video_classification.proto | 3 + .../automl_video_object_tracking.proto | 3 + .../export_evaluated_data_items_config.proto | 3 + 606 files changed, 79390 insertions(+), 3018 deletions(-) create mode 100644 java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockIAMPolicy.java create mode 100644 java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockIAMPolicyImpl.java create mode 100644 java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockLocations.java create mode 100644 java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockLocationsImpl.java create mode 100644 java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/location/MockLocations.java create mode 100644 java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/location/MockLocationsImpl.java create mode 100644 java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/iam/v1/MockIAMPolicy.java create mode 100644 java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/iam/v1/MockIAMPolicyImpl.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteModelVersionRequest.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteModelVersionRequestOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExamplesOverride.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExamplesOverrideOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExamplesRestrictionsNamespace.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExamplesRestrictionsNamespaceOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionsRequest.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionsRequestOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionsResponse.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionsResponseOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MergeVersionAliasesRequest.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MergeVersionAliasesRequestOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Neighbor.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NeighborOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineFailurePolicy.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineFailurePolicyProto.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTemplateMetadata.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTemplateMetadataOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_failure_policy.proto create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExamplesOverride.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExamplesOverrideOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExamplesRestrictionsNamespace.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExamplesRestrictionsNamespaceOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringConfig.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringConfigOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Neighbor.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NeighborOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineFailurePolicy.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineFailurePolicyProto.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTemplateMetadata.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTemplateMetadataOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Presets.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PresetsOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetOperationMetadata.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetOperationMetadataOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetRequest.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetRequestOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetResponse.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetResponseOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto diff --git a/java-aiplatform/.github/CODEOWNERS b/java-aiplatform/.github/CODEOWNERS index a634d2398d15..4331d1476e50 100644 --- a/java-aiplatform/.github/CODEOWNERS +++ b/java-aiplatform/.github/CODEOWNERS @@ -5,8 +5,7 @@ # https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax # The @googleapis/ml-apis is the default owner for changes in this repo -* @googleapis/yoshi-java @googleapis/ml-apis -**/*.java @googleapis/ml-apis +* @googleapis/yoshi-java # The java-samples-reviewers team is the default owner for samples changes -samples/**/*.java @googleapis/java-samples-reviewers +samples/**/*.java @googleapis/java-samples-reviewers @googleapis/cdpe-cloudai diff --git a/java-aiplatform/.repo-metadata.json b/java-aiplatform/.repo-metadata.json index edbdefd164b6..46cfc457b5f2 100644 --- a/java-aiplatform/.repo-metadata.json +++ b/java-aiplatform/.repo-metadata.json @@ -12,6 +12,5 @@ "distribution_name": "com.google.cloud:google-cloud-aiplatform", "api_id": "aiplatform.googleapis.com", "requires_billing": true, - "library_type": "GAPIC_AUTO", - "codeowner_team": "@googleapis/ml-apis" + "library_type": "GAPIC_AUTO" } \ No newline at end of file diff --git a/java-aiplatform/README.md b/java-aiplatform/README.md index 385742a6ef6d..a3059d27e713 100644 --- a/java-aiplatform/README.md +++ b/java-aiplatform/README.md @@ -45,13 +45,13 @@ implementation 'com.google.cloud:google-cloud-aiplatform' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-aiplatform:2.9.7' +implementation 'com.google.cloud:google-cloud-aiplatform:2.9.8' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "2.9.7" +libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "2.9.8" ``` ## Authentication diff --git a/java-aiplatform/google-cloud-aiplatform/pom.xml b/java-aiplatform/google-cloud-aiplatform/pom.xml index bbcc8559a2b4..5472631ae160 100644 --- a/java-aiplatform/google-cloud-aiplatform/pom.xml +++ b/java-aiplatform/google-cloud-aiplatform/pom.xml @@ -41,6 +41,10 @@ com.google.api.grpc proto-google-common-protos + + com.google.api.grpc + grpc-google-common-protos + com.google.api.grpc @@ -66,6 +70,14 @@ org.threeten threetenbp + + com.google.api.grpc + proto-google-iam-v1 + + + com.google.api.grpc + grpc-google-iam-v1 + diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java index ad2184a2a9a5..a8f2c8e726b4 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,7 +18,6 @@ import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; -import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; @@ -29,7 +28,16 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1.stub.DatasetServiceStub; import com.google.cloud.aiplatform.v1.stub.DatasetServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.common.util.concurrent.MoreExecutors; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; @@ -48,6 +56,8 @@ * calls that map to API methods. Sample code to get started: * *
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
  *   DatasetName name = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]");
  *   Dataset response = datasetServiceClient.getDataset(name);
@@ -83,6 +93,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * DatasetServiceSettings datasetServiceSettings =
  *     DatasetServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -93,6 +105,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * DatasetServiceSettings datasetServiceSettings =
  *     DatasetServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * DatasetServiceClient datasetServiceClient = DatasetServiceClient.create(datasetServiceSettings);
@@ -124,7 +138,6 @@ public static final DatasetServiceClient create(DatasetServiceSettings settings)
    * Constructs an instance of DatasetServiceClient, using the given stub for making calls. This is
    * for advanced usage - prefer using create(DatasetServiceSettings).
    */
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public static final DatasetServiceClient create(DatasetServiceStub stub) {
     return new DatasetServiceClient(stub);
   }
@@ -140,7 +153,6 @@ protected DatasetServiceClient(DatasetServiceSettings settings) throws IOExcepti
     this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected DatasetServiceClient(DatasetServiceStub stub) {
     this.settings = null;
     this.stub = stub;
@@ -151,7 +163,6 @@ public final DatasetServiceSettings getSettings() {
     return settings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public DatasetServiceStub getStub() {
     return stub;
   }
@@ -171,6 +182,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Dataset dataset = Dataset.newBuilder().build();
@@ -200,6 +213,8 @@ public final OperationFuture createData
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Dataset dataset = Dataset.newBuilder().build();
@@ -226,6 +241,8 @@ public final OperationFuture createData
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   CreateDatasetRequest request =
    *       CreateDatasetRequest.newBuilder()
@@ -251,6 +268,8 @@ public final OperationFuture createData
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   CreateDatasetRequest request =
    *       CreateDatasetRequest.newBuilder()
@@ -276,6 +295,8 @@ public final OperationFuture createData
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   CreateDatasetRequest request =
    *       CreateDatasetRequest.newBuilder()
@@ -300,6 +321,8 @@ public final UnaryCallable createDatasetCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   DatasetName name = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]");
    *   Dataset response = datasetServiceClient.getDataset(name);
@@ -322,6 +345,8 @@ public final Dataset getDataset(DatasetName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   String name = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString();
    *   Dataset response = datasetServiceClient.getDataset(name);
@@ -343,6 +368,8 @@ public final Dataset getDataset(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   GetDatasetRequest request =
    *       GetDatasetRequest.newBuilder()
@@ -367,6 +394,8 @@ public final Dataset getDataset(GetDatasetRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   GetDatasetRequest request =
    *       GetDatasetRequest.newBuilder()
@@ -390,6 +419,8 @@ public final UnaryCallable getDatasetCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   Dataset dataset = Dataset.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -416,6 +447,8 @@ public final Dataset updateDataset(Dataset dataset, FieldMask updateMask) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   UpdateDatasetRequest request =
    *       UpdateDatasetRequest.newBuilder()
@@ -440,6 +473,8 @@ public final Dataset updateDataset(UpdateDatasetRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   UpdateDatasetRequest request =
    *       UpdateDatasetRequest.newBuilder()
@@ -463,6 +498,8 @@ public final UnaryCallable updateDatasetCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Dataset element : datasetServiceClient.listDatasets(parent).iterateAll()) {
@@ -490,6 +527,8 @@ public final ListDatasetsPagedResponse listDatasets(LocationName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Dataset element : datasetServiceClient.listDatasets(parent).iterateAll()) {
@@ -514,6 +553,8 @@ public final ListDatasetsPagedResponse listDatasets(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   ListDatasetsRequest request =
    *       ListDatasetsRequest.newBuilder()
@@ -544,6 +585,8 @@ public final ListDatasetsPagedResponse listDatasets(ListDatasetsRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   ListDatasetsRequest request =
    *       ListDatasetsRequest.newBuilder()
@@ -575,6 +618,8 @@ public final ListDatasetsPagedResponse listDatasets(ListDatasetsRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   ListDatasetsRequest request =
    *       ListDatasetsRequest.newBuilder()
@@ -587,7 +632,7 @@ public final ListDatasetsPagedResponse listDatasets(ListDatasetsRequest request)
    *           .build();
    *   while (true) {
    *     ListDatasetsResponse response = datasetServiceClient.listDatasetsCallable().call(request);
-   *     for (Dataset element : response.getResponsesList()) {
+   *     for (Dataset element : response.getDatasetsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -611,6 +656,8 @@ public final UnaryCallable listDatase
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   DatasetName name = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]");
    *   datasetServiceClient.deleteDatasetAsync(name).get();
@@ -635,6 +682,8 @@ public final OperationFuture deleteDatasetAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   String name = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString();
    *   datasetServiceClient.deleteDatasetAsync(name).get();
@@ -657,6 +706,8 @@ public final OperationFuture deleteDatasetAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   DeleteDatasetRequest request =
    *       DeleteDatasetRequest.newBuilder()
@@ -681,6 +732,8 @@ public final OperationFuture deleteDatasetAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   DeleteDatasetRequest request =
    *       DeleteDatasetRequest.newBuilder()
@@ -705,6 +758,8 @@ public final OperationFuture deleteDatasetAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   DeleteDatasetRequest request =
    *       DeleteDatasetRequest.newBuilder()
@@ -728,6 +783,8 @@ public final UnaryCallable deleteDatasetCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   DatasetName name = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]");
    *   List importConfigs = new ArrayList<>();
@@ -758,6 +815,8 @@ public final OperationFuture im
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   String name = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString();
    *   List importConfigs = new ArrayList<>();
@@ -785,6 +844,8 @@ public final OperationFuture im
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   ImportDataRequest request =
    *       ImportDataRequest.newBuilder()
@@ -810,6 +871,8 @@ public final OperationFuture im
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   ImportDataRequest request =
    *       ImportDataRequest.newBuilder()
@@ -835,6 +898,8 @@ public final OperationFuture im
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   ImportDataRequest request =
    *       ImportDataRequest.newBuilder()
@@ -858,6 +923,8 @@ public final UnaryCallable importDataCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   DatasetName name = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]");
    *   ExportDataConfig exportConfig = ExportDataConfig.newBuilder().build();
@@ -887,6 +954,8 @@ public final OperationFuture ex
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   String name = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString();
    *   ExportDataConfig exportConfig = ExportDataConfig.newBuilder().build();
@@ -913,6 +982,8 @@ public final OperationFuture ex
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   ExportDataRequest request =
    *       ExportDataRequest.newBuilder()
@@ -938,6 +1009,8 @@ public final OperationFuture ex
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   ExportDataRequest request =
    *       ExportDataRequest.newBuilder()
@@ -963,6 +1036,8 @@ public final OperationFuture ex
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   ExportDataRequest request =
    *       ExportDataRequest.newBuilder()
@@ -986,6 +1061,8 @@ public final UnaryCallable exportDataCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   DatasetName parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]");
    *   for (DataItem element : datasetServiceClient.listDataItems(parent).iterateAll()) {
@@ -1013,6 +1090,8 @@ public final ListDataItemsPagedResponse listDataItems(DatasetName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   String parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString();
    *   for (DataItem element : datasetServiceClient.listDataItems(parent).iterateAll()) {
@@ -1037,6 +1116,8 @@ public final ListDataItemsPagedResponse listDataItems(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   ListDataItemsRequest request =
    *       ListDataItemsRequest.newBuilder()
@@ -1067,6 +1148,8 @@ public final ListDataItemsPagedResponse listDataItems(ListDataItemsRequest reque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   ListDataItemsRequest request =
    *       ListDataItemsRequest.newBuilder()
@@ -1098,6 +1181,8 @@ public final ListDataItemsPagedResponse listDataItems(ListDataItemsRequest reque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   ListDataItemsRequest request =
    *       ListDataItemsRequest.newBuilder()
@@ -1110,7 +1195,7 @@ public final ListDataItemsPagedResponse listDataItems(ListDataItemsRequest reque
    *           .build();
    *   while (true) {
    *     ListDataItemsResponse response = datasetServiceClient.listDataItemsCallable().call(request);
-   *     for (DataItem element : response.getResponsesList()) {
+   *     for (DataItem element : response.getDataItemsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -1134,6 +1219,8 @@ public final UnaryCallable listData
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   AnnotationSpecName name =
    *       AnnotationSpecName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[ANNOTATION_SPEC]");
@@ -1160,6 +1247,8 @@ public final AnnotationSpec getAnnotationSpec(AnnotationSpecName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   String name =
    *       AnnotationSpecName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[ANNOTATION_SPEC]")
@@ -1184,6 +1273,8 @@ public final AnnotationSpec getAnnotationSpec(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   GetAnnotationSpecRequest request =
    *       GetAnnotationSpecRequest.newBuilder()
@@ -1210,6 +1301,8 @@ public final AnnotationSpec getAnnotationSpec(GetAnnotationSpecRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   GetAnnotationSpecRequest request =
    *       GetAnnotationSpecRequest.newBuilder()
@@ -1236,6 +1329,8 @@ public final UnaryCallable getAnnotati
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   DataItemName parent = DataItemName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATA_ITEM]");
    *   for (Annotation element : datasetServiceClient.listAnnotations(parent).iterateAll()) {
@@ -1263,6 +1358,8 @@ public final ListAnnotationsPagedResponse listAnnotations(DataItemName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   String parent =
    *       DataItemName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATA_ITEM]").toString();
@@ -1288,6 +1385,8 @@ public final ListAnnotationsPagedResponse listAnnotations(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   ListAnnotationsRequest request =
    *       ListAnnotationsRequest.newBuilder()
@@ -1319,6 +1418,8 @@ public final ListAnnotationsPagedResponse listAnnotations(ListAnnotationsRequest
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   ListAnnotationsRequest request =
    *       ListAnnotationsRequest.newBuilder()
@@ -1351,6 +1452,8 @@ public final ListAnnotationsPagedResponse listAnnotations(ListAnnotationsRequest
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   ListAnnotationsRequest request =
    *       ListAnnotationsRequest.newBuilder()
@@ -1365,7 +1468,7 @@ public final ListAnnotationsPagedResponse listAnnotations(ListAnnotationsRequest
    *   while (true) {
    *     ListAnnotationsResponse response =
    *         datasetServiceClient.listAnnotationsCallable().call(request);
-   *     for (Annotation element : response.getResponsesList()) {
+   *     for (Annotation element : response.getAnnotationsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -1383,6 +1486,331 @@ public final ListAnnotationsPagedResponse listAnnotations(ListAnnotationsRequest
     return stub.listAnnotationsCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Lists information about the supported locations for this service.
+   *
+   * 

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : datasetServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       datasetServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response = datasetServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = datasetServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = datasetServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = datasetServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = datasetServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = datasetServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = datasetServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = datasetServiceClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       datasetServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + @Override public final void close() { stub.close(); @@ -1640,4 +2068,80 @@ protected ListAnnotationsFixedSizeCollection createCollection( return new ListAnnotationsFixedSizeCollection(pages, collectionSize); } } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceSettings.java index 3956f654bebe..6c5eb24b837c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,6 +19,7 @@ import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListAnnotationsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDataItemsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDatasetsPagedResponse; +import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListLocationsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -33,6 +34,15 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.aiplatform.v1.stub.DatasetServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -57,6 +67,8 @@ *

For example, to set the total timeout of getDataset to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * DatasetServiceSettings.Builder datasetServiceSettingsBuilder =
  *     DatasetServiceSettings.newBuilder();
  * datasetServiceSettingsBuilder
@@ -152,6 +164,33 @@ public UnaryCallSettings getAnnotation
     return ((DatasetServiceStubSettings) getStubSettings()).listAnnotationsSettings();
   }
 
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return ((DatasetServiceStubSettings) getStubSettings()).listLocationsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return ((DatasetServiceStubSettings) getStubSettings()).getLocationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return ((DatasetServiceStubSettings) getStubSettings()).setIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return ((DatasetServiceStubSettings) getStubSettings()).getIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return ((DatasetServiceStubSettings) getStubSettings()).testIamPermissionsSettings();
+  }
+
   public static final DatasetServiceSettings create(DatasetServiceStubSettings stub)
       throws IOException {
     return new DatasetServiceSettings.Builder(stub.toBuilder()).build();
@@ -333,6 +372,34 @@ public UnaryCallSettings.Builder exportDataSetting
       return getStubSettingsBuilder().listAnnotationsSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return getStubSettingsBuilder().listLocationsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getStubSettingsBuilder().getLocationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return getStubSettingsBuilder().setIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getStubSettingsBuilder().getIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return getStubSettingsBuilder().testIamPermissionsSettings();
+    }
+
     @Override
     public DatasetServiceSettings build() throws IOException {
       return new DatasetServiceSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceClient.java
index e04b99c99a27..28ba86eed584 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -18,7 +18,6 @@
 
 import com.google.api.core.ApiFuture;
 import com.google.api.core.ApiFutures;
-import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
@@ -29,7 +28,16 @@
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1.stub.EndpointServiceStub;
 import com.google.cloud.aiplatform.v1.stub.EndpointServiceStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.OperationsClient;
 import com.google.protobuf.Empty;
@@ -48,6 +56,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
  *   EndpointName name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
  *   Endpoint response = endpointServiceClient.getEndpoint(name);
@@ -84,6 +94,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * EndpointServiceSettings endpointServiceSettings =
  *     EndpointServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -95,6 +107,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * EndpointServiceSettings endpointServiceSettings =
  *     EndpointServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * EndpointServiceClient endpointServiceClient =
@@ -127,7 +141,6 @@ public static final EndpointServiceClient create(EndpointServiceSettings setting
    * Constructs an instance of EndpointServiceClient, using the given stub for making calls. This is
    * for advanced usage - prefer using create(EndpointServiceSettings).
    */
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public static final EndpointServiceClient create(EndpointServiceStub stub) {
     return new EndpointServiceClient(stub);
   }
@@ -143,7 +156,6 @@ protected EndpointServiceClient(EndpointServiceSettings settings) throws IOExcep
     this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected EndpointServiceClient(EndpointServiceStub stub) {
     this.settings = null;
     this.stub = stub;
@@ -154,7 +166,6 @@ public final EndpointServiceSettings getSettings() {
     return settings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public EndpointServiceStub getStub() {
     return stub;
   }
@@ -174,6 +185,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Endpoint endpoint = Endpoint.newBuilder().build();
@@ -203,6 +216,8 @@ public final OperationFuture createEn
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Endpoint endpoint = Endpoint.newBuilder().build();
@@ -229,6 +244,8 @@ public final OperationFuture createEn
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Endpoint endpoint = Endpoint.newBuilder().build();
@@ -268,6 +285,8 @@ public final OperationFuture createEn
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Endpoint endpoint = Endpoint.newBuilder().build();
@@ -307,6 +326,8 @@ public final OperationFuture createEn
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   CreateEndpointRequest request =
    *       CreateEndpointRequest.newBuilder()
@@ -333,6 +354,8 @@ public final OperationFuture createEn
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   CreateEndpointRequest request =
    *       CreateEndpointRequest.newBuilder()
@@ -359,6 +382,8 @@ public final OperationFuture createEn
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   CreateEndpointRequest request =
    *       CreateEndpointRequest.newBuilder()
@@ -384,6 +409,8 @@ public final UnaryCallable createEndpointCalla
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   EndpointName name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
    *   Endpoint response = endpointServiceClient.getEndpoint(name);
@@ -407,6 +434,8 @@ public final Endpoint getEndpoint(EndpointName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   String name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString();
    *   Endpoint response = endpointServiceClient.getEndpoint(name);
@@ -429,6 +458,8 @@ public final Endpoint getEndpoint(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   GetEndpointRequest request =
    *       GetEndpointRequest.newBuilder()
@@ -452,6 +483,8 @@ public final Endpoint getEndpoint(GetEndpointRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   GetEndpointRequest request =
    *       GetEndpointRequest.newBuilder()
@@ -474,6 +507,8 @@ public final UnaryCallable getEndpointCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Endpoint element : endpointServiceClient.listEndpoints(parent).iterateAll()) {
@@ -501,6 +536,8 @@ public final ListEndpointsPagedResponse listEndpoints(LocationName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Endpoint element : endpointServiceClient.listEndpoints(parent).iterateAll()) {
@@ -525,6 +562,8 @@ public final ListEndpointsPagedResponse listEndpoints(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   ListEndpointsRequest request =
    *       ListEndpointsRequest.newBuilder()
@@ -555,6 +594,8 @@ public final ListEndpointsPagedResponse listEndpoints(ListEndpointsRequest reque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   ListEndpointsRequest request =
    *       ListEndpointsRequest.newBuilder()
@@ -586,6 +627,8 @@ public final ListEndpointsPagedResponse listEndpoints(ListEndpointsRequest reque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   ListEndpointsRequest request =
    *       ListEndpointsRequest.newBuilder()
@@ -599,7 +642,7 @@ public final ListEndpointsPagedResponse listEndpoints(ListEndpointsRequest reque
    *   while (true) {
    *     ListEndpointsResponse response =
    *         endpointServiceClient.listEndpointsCallable().call(request);
-   *     for (Endpoint element : response.getResponsesList()) {
+   *     for (Endpoint element : response.getEndpointsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -623,6 +666,8 @@ public final UnaryCallable listEndp
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   Endpoint endpoint = Endpoint.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -648,6 +693,8 @@ public final Endpoint updateEndpoint(Endpoint endpoint, FieldMask updateMask) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   UpdateEndpointRequest request =
    *       UpdateEndpointRequest.newBuilder()
@@ -672,6 +719,8 @@ public final Endpoint updateEndpoint(UpdateEndpointRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   UpdateEndpointRequest request =
    *       UpdateEndpointRequest.newBuilder()
@@ -696,6 +745,8 @@ public final UnaryCallable updateEndpointCallab
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   EndpointName name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
    *   endpointServiceClient.deleteEndpointAsync(name).get();
@@ -720,6 +771,8 @@ public final OperationFuture deleteEndpointAsync
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   String name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString();
    *   endpointServiceClient.deleteEndpointAsync(name).get();
@@ -742,6 +795,8 @@ public final OperationFuture deleteEndpointAsync
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   DeleteEndpointRequest request =
    *       DeleteEndpointRequest.newBuilder()
@@ -766,6 +821,8 @@ public final OperationFuture deleteEndpointAsync
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   DeleteEndpointRequest request =
    *       DeleteEndpointRequest.newBuilder()
@@ -790,6 +847,8 @@ public final OperationFuture deleteEndpointAsync
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   DeleteEndpointRequest request =
    *       DeleteEndpointRequest.newBuilder()
@@ -813,6 +872,8 @@ public final UnaryCallable deleteEndpointCalla
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   EndpointName endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
    *   DeployedModel deployedModel = DeployedModel.newBuilder().build();
@@ -857,6 +918,8 @@ public final OperationFuture
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   String endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString();
    *   DeployedModel deployedModel = DeployedModel.newBuilder().build();
@@ -901,6 +964,8 @@ public final OperationFuture
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   DeployModelRequest request =
    *       DeployModelRequest.newBuilder()
@@ -927,6 +992,8 @@ public final OperationFuture
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   DeployModelRequest request =
    *       DeployModelRequest.newBuilder()
@@ -954,6 +1021,8 @@ public final OperationFuture
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   DeployModelRequest request =
    *       DeployModelRequest.newBuilder()
@@ -979,6 +1048,8 @@ public final UnaryCallable deployModelCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   EndpointName endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
    *   String deployedModelId = "deployedModelId-1817547906";
@@ -1020,6 +1091,8 @@ public final UnaryCallable deployModelCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   String endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString();
    *   String deployedModelId = "deployedModelId-1817547906";
@@ -1061,6 +1134,8 @@ public final UnaryCallable deployModelCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   UndeployModelRequest request =
    *       UndeployModelRequest.newBuilder()
@@ -1088,6 +1163,8 @@ public final UnaryCallable deployModelCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   UndeployModelRequest request =
    *       UndeployModelRequest.newBuilder()
@@ -1116,6 +1193,8 @@ public final UnaryCallable deployModelCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   UndeployModelRequest request =
    *       UndeployModelRequest.newBuilder()
@@ -1134,6 +1213,332 @@ public final UnaryCallable undeployModelCallabl
     return stub.undeployModelCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Lists information about the supported locations for this service.
+   *
+   * 

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : endpointServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       endpointServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         endpointServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = endpointServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = endpointServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = endpointServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = endpointServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = endpointServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = endpointServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = endpointServiceClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       endpointServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + @Override public final void close() { stub.close(); @@ -1239,4 +1644,80 @@ protected ListEndpointsFixedSizeCollection createCollection( return new ListEndpointsFixedSizeCollection(pages, collectionSize); } } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceSettings.java index eca80dba7d5d..3862dc143a55 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ package com.google.cloud.aiplatform.v1; import static com.google.cloud.aiplatform.v1.EndpointServiceClient.ListEndpointsPagedResponse; +import static com.google.cloud.aiplatform.v1.EndpointServiceClient.ListLocationsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -31,6 +32,15 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.aiplatform.v1.stub.EndpointServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -55,6 +65,8 @@ *

For example, to set the total timeout of getEndpoint to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * EndpointServiceSettings.Builder endpointServiceSettingsBuilder =
  *     EndpointServiceSettings.newBuilder();
  * endpointServiceSettingsBuilder
@@ -134,6 +146,33 @@ public UnaryCallSettings undeployModelSettings(
     return ((EndpointServiceStubSettings) getStubSettings()).undeployModelOperationSettings();
   }
 
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return ((EndpointServiceStubSettings) getStubSettings()).listLocationsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return ((EndpointServiceStubSettings) getStubSettings()).getLocationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return ((EndpointServiceStubSettings) getStubSettings()).setIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return ((EndpointServiceStubSettings) getStubSettings()).getIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return ((EndpointServiceStubSettings) getStubSettings()).testIamPermissionsSettings();
+  }
+
   public static final EndpointServiceSettings create(EndpointServiceStubSettings stub)
       throws IOException {
     return new EndpointServiceSettings.Builder(stub.toBuilder()).build();
@@ -295,6 +334,34 @@ public UnaryCallSettings.Builder undeployModelS
       return getStubSettingsBuilder().undeployModelOperationSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return getStubSettingsBuilder().listLocationsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getStubSettingsBuilder().getLocationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return getStubSettingsBuilder().setIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getStubSettingsBuilder().getIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return getStubSettingsBuilder().testIamPermissionsSettings();
+    }
+
     @Override
     public EndpointServiceSettings build() throws IOException {
       return new EndpointServiceSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceClient.java
index 010101145fa7..2084dcd03530 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,13 +16,29 @@
 
 package com.google.cloud.aiplatform.v1;
 
-import com.google.api.core.BetaApi;
+import com.google.api.core.ApiFuture;
+import com.google.api.core.ApiFutures;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.paging.AbstractFixedSizeCollection;
+import com.google.api.gax.paging.AbstractPage;
+import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.ServerStreamingCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1.stub.FeaturestoreOnlineServingServiceStub;
 import com.google.cloud.aiplatform.v1.stub.FeaturestoreOnlineServingServiceStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import java.io.IOException;
+import java.util.List;
 import java.util.concurrent.TimeUnit;
 import javax.annotation.Generated;
 
@@ -34,6 +50,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
  *     FeaturestoreOnlineServingServiceClient.create()) {
  *   EntityTypeName entityType =
@@ -73,6 +91,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * FeaturestoreOnlineServingServiceSettings featurestoreOnlineServingServiceSettings =
  *     FeaturestoreOnlineServingServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -84,6 +104,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * FeaturestoreOnlineServingServiceSettings featurestoreOnlineServingServiceSettings =
  *     FeaturestoreOnlineServingServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
@@ -117,7 +139,6 @@ public static final FeaturestoreOnlineServingServiceClient create(
    * making calls. This is for advanced usage - prefer using
    * create(FeaturestoreOnlineServingServiceSettings).
    */
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public static final FeaturestoreOnlineServingServiceClient create(
       FeaturestoreOnlineServingServiceStub stub) {
     return new FeaturestoreOnlineServingServiceClient(stub);
@@ -135,7 +156,6 @@ protected FeaturestoreOnlineServingServiceClient(
         ((FeaturestoreOnlineServingServiceStubSettings) settings.getStubSettings()).createStub();
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected FeaturestoreOnlineServingServiceClient(FeaturestoreOnlineServingServiceStub stub) {
     this.settings = null;
     this.stub = stub;
@@ -145,7 +165,6 @@ public final FeaturestoreOnlineServingServiceSettings getSettings() {
     return settings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public FeaturestoreOnlineServingServiceStub getStub() {
     return stub;
   }
@@ -158,6 +177,8 @@ public FeaturestoreOnlineServingServiceStub getStub() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
    *     FeaturestoreOnlineServingServiceClient.create()) {
    *   EntityTypeName entityType =
@@ -190,6 +211,8 @@ public final ReadFeatureValuesResponse readFeatureValues(EntityTypeName entityTy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
    *     FeaturestoreOnlineServingServiceClient.create()) {
    *   String entityType =
@@ -221,6 +244,8 @@ public final ReadFeatureValuesResponse readFeatureValues(String entityType) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
    *     FeaturestoreOnlineServingServiceClient.create()) {
    *   ReadFeatureValuesRequest request =
@@ -251,6 +276,8 @@ public final ReadFeatureValuesResponse readFeatureValues(ReadFeatureValuesReques
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
    *     FeaturestoreOnlineServingServiceClient.create()) {
    *   ReadFeatureValuesRequest request =
@@ -281,6 +308,8 @@ public final ReadFeatureValuesResponse readFeatureValues(ReadFeatureValuesReques
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
    *     FeaturestoreOnlineServingServiceClient.create()) {
    *   StreamingReadFeatureValuesRequest request =
@@ -304,6 +333,348 @@ public final ReadFeatureValuesResponse readFeatureValues(ReadFeatureValuesReques
     return stub.streamingReadFeatureValuesCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Lists information about the supported locations for this service.
+   *
+   * 

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+   *     FeaturestoreOnlineServingServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element :
+   *       featurestoreOnlineServingServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+   *     FeaturestoreOnlineServingServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreOnlineServingServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+   *     FeaturestoreOnlineServingServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         featurestoreOnlineServingServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+   *     FeaturestoreOnlineServingServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = featurestoreOnlineServingServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+   *     FeaturestoreOnlineServingServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       featurestoreOnlineServingServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+   *     FeaturestoreOnlineServingServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = featurestoreOnlineServingServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+   *     FeaturestoreOnlineServingServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreOnlineServingServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+   *     FeaturestoreOnlineServingServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = featurestoreOnlineServingServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+   *     FeaturestoreOnlineServingServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreOnlineServingServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+   *     FeaturestoreOnlineServingServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response =
+   *       featurestoreOnlineServingServiceClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+   *     FeaturestoreOnlineServingServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreOnlineServingServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + @Override public final void close() { stub.close(); @@ -333,4 +704,80 @@ public void shutdownNow() { public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { return stub.awaitTermination(duration, unit); } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceSettings.java index ea99fa5656ef..5b481fb4d53c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,8 @@ package com.google.cloud.aiplatform.v1; +import static com.google.cloud.aiplatform.v1.FeaturestoreOnlineServingServiceClient.ListLocationsPagedResponse; + import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; @@ -24,10 +26,20 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.ServerStreamingCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.aiplatform.v1.stub.FeaturestoreOnlineServingServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import java.io.IOException; import java.util.List; import javax.annotation.Generated; @@ -50,6 +62,8 @@ *

For example, to set the total timeout of readFeatureValues to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * FeaturestoreOnlineServingServiceSettings.Builder
  *     featurestoreOnlineServingServiceSettingsBuilder =
  *         FeaturestoreOnlineServingServiceSettings.newBuilder();
@@ -84,6 +98,37 @@ public class FeaturestoreOnlineServingServiceSettings
         .streamingReadFeatureValuesSettings();
   }
 
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return ((FeaturestoreOnlineServingServiceStubSettings) getStubSettings())
+        .listLocationsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return ((FeaturestoreOnlineServingServiceStubSettings) getStubSettings()).getLocationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return ((FeaturestoreOnlineServingServiceStubSettings) getStubSettings())
+        .setIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return ((FeaturestoreOnlineServingServiceStubSettings) getStubSettings())
+        .getIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return ((FeaturestoreOnlineServingServiceStubSettings) getStubSettings())
+        .testIamPermissionsSettings();
+  }
+
   public static final FeaturestoreOnlineServingServiceSettings create(
       FeaturestoreOnlineServingServiceStubSettings stub) throws IOException {
     return new FeaturestoreOnlineServingServiceSettings.Builder(stub.toBuilder()).build();
@@ -195,6 +240,34 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().streamingReadFeatureValuesSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return getStubSettingsBuilder().listLocationsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getStubSettingsBuilder().getLocationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return getStubSettingsBuilder().setIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getStubSettingsBuilder().getIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return getStubSettingsBuilder().testIamPermissionsSettings();
+    }
+
     @Override
     public FeaturestoreOnlineServingServiceSettings build() throws IOException {
       return new FeaturestoreOnlineServingServiceSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceClient.java
index dbbc953dbb04..d542ddc6ce97 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -18,7 +18,6 @@
 
 import com.google.api.core.ApiFuture;
 import com.google.api.core.ApiFutures;
-import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
@@ -29,7 +28,16 @@
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1.stub.FeaturestoreServiceStub;
 import com.google.cloud.aiplatform.v1.stub.FeaturestoreServiceStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.OperationsClient;
 import com.google.protobuf.Empty;
@@ -47,6 +55,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
  *   FeaturestoreName name = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
  *   Featurestore response = featurestoreServiceClient.getFeaturestore(name);
@@ -83,6 +93,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * FeaturestoreServiceSettings featurestoreServiceSettings =
  *     FeaturestoreServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -94,6 +106,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * FeaturestoreServiceSettings featurestoreServiceSettings =
  *     FeaturestoreServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * FeaturestoreServiceClient featurestoreServiceClient =
@@ -126,7 +140,6 @@ public static final FeaturestoreServiceClient create(FeaturestoreServiceSettings
    * Constructs an instance of FeaturestoreServiceClient, using the given stub for making calls.
    * This is for advanced usage - prefer using create(FeaturestoreServiceSettings).
    */
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public static final FeaturestoreServiceClient create(FeaturestoreServiceStub stub) {
     return new FeaturestoreServiceClient(stub);
   }
@@ -142,7 +155,6 @@ protected FeaturestoreServiceClient(FeaturestoreServiceSettings settings) throws
     this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected FeaturestoreServiceClient(FeaturestoreServiceStub stub) {
     this.settings = null;
     this.stub = stub;
@@ -153,7 +165,6 @@ public final FeaturestoreServiceSettings getSettings() {
     return settings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public FeaturestoreServiceStub getStub() {
     return stub;
   }
@@ -173,6 +184,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Featurestore featurestore = Featurestore.newBuilder().build();
@@ -203,6 +216,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Featurestore featurestore = Featurestore.newBuilder().build();
@@ -233,6 +248,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Featurestore featurestore = Featurestore.newBuilder().build();
@@ -273,6 +290,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Featurestore featurestore = Featurestore.newBuilder().build();
@@ -312,6 +331,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   CreateFeaturestoreRequest request =
    *       CreateFeaturestoreRequest.newBuilder()
@@ -338,6 +359,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   CreateFeaturestoreRequest request =
    *       CreateFeaturestoreRequest.newBuilder()
@@ -365,6 +388,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   CreateFeaturestoreRequest request =
    *       CreateFeaturestoreRequest.newBuilder()
@@ -390,6 +415,8 @@ public final UnaryCallable createFeaturest
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   FeaturestoreName name = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
    *   Featurestore response = featurestoreServiceClient.getFeaturestore(name);
@@ -412,6 +439,8 @@ public final Featurestore getFeaturestore(FeaturestoreName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String name = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
    *   Featurestore response = featurestoreServiceClient.getFeaturestore(name);
@@ -433,6 +462,8 @@ public final Featurestore getFeaturestore(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   GetFeaturestoreRequest request =
    *       GetFeaturestoreRequest.newBuilder()
@@ -456,6 +487,8 @@ public final Featurestore getFeaturestore(GetFeaturestoreRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   GetFeaturestoreRequest request =
    *       GetFeaturestoreRequest.newBuilder()
@@ -479,6 +512,8 @@ public final UnaryCallable getFeaturestore
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Featurestore element :
@@ -507,6 +542,8 @@ public final ListFeaturestoresPagedResponse listFeaturestores(LocationName paren
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Featurestore element :
@@ -533,6 +570,8 @@ public final ListFeaturestoresPagedResponse listFeaturestores(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   ListFeaturestoresRequest request =
    *       ListFeaturestoresRequest.newBuilder()
@@ -564,6 +603,8 @@ public final ListFeaturestoresPagedResponse listFeaturestores(ListFeaturestoresR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   ListFeaturestoresRequest request =
    *       ListFeaturestoresRequest.newBuilder()
@@ -595,6 +636,8 @@ public final ListFeaturestoresPagedResponse listFeaturestores(ListFeaturestoresR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   ListFeaturestoresRequest request =
    *       ListFeaturestoresRequest.newBuilder()
@@ -608,7 +651,7 @@ public final ListFeaturestoresPagedResponse listFeaturestores(ListFeaturestoresR
    *   while (true) {
    *     ListFeaturestoresResponse response =
    *         featurestoreServiceClient.listFeaturestoresCallable().call(request);
-   *     for (Featurestore element : response.getResponsesList()) {
+   *     for (Featurestore element : response.getFeaturestoresList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -633,6 +676,8 @@ public final ListFeaturestoresPagedResponse listFeaturestores(ListFeaturestoresR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   Featurestore featurestore = Featurestore.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -650,7 +695,8 @@ public final ListFeaturestoresPagedResponse listFeaturestores(ListFeaturestoresR
    *     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` * `online_serving_config.fixed_node_count` + *

* `labels` * `online_serving_config.fixed_node_count` * + * `online_serving_config.scaling` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture @@ -670,6 +716,8 @@ public final ListFeaturestoresPagedResponse listFeaturestores(ListFeaturestoresR *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   UpdateFeaturestoreRequest request =
    *       UpdateFeaturestoreRequest.newBuilder()
@@ -695,6 +743,8 @@ public final ListFeaturestoresPagedResponse listFeaturestores(ListFeaturestoresR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   UpdateFeaturestoreRequest request =
    *       UpdateFeaturestoreRequest.newBuilder()
@@ -721,6 +771,8 @@ public final ListFeaturestoresPagedResponse listFeaturestores(ListFeaturestoresR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   UpdateFeaturestoreRequest request =
    *       UpdateFeaturestoreRequest.newBuilder()
@@ -746,6 +798,8 @@ public final UnaryCallable updateFeaturest
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   FeaturestoreName name = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
    *   featurestoreServiceClient.deleteFeaturestoreAsync(name).get();
@@ -773,6 +827,8 @@ public final OperationFuture deleteFeaturestoreA
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String name = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
    *   featurestoreServiceClient.deleteFeaturestoreAsync(name).get();
@@ -798,6 +854,8 @@ public final OperationFuture deleteFeaturestoreA
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   FeaturestoreName name = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
    *   boolean force = true;
@@ -829,6 +887,8 @@ public final OperationFuture deleteFeaturestoreA
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String name = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
    *   boolean force = true;
@@ -857,6 +917,8 @@ public final OperationFuture deleteFeaturestoreA
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   DeleteFeaturestoreRequest request =
    *       DeleteFeaturestoreRequest.newBuilder()
@@ -883,6 +945,8 @@ public final OperationFuture deleteFeaturestoreA
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   DeleteFeaturestoreRequest request =
    *       DeleteFeaturestoreRequest.newBuilder()
@@ -909,6 +973,8 @@ public final OperationFuture deleteFeaturestoreA
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   DeleteFeaturestoreRequest request =
    *       DeleteFeaturestoreRequest.newBuilder()
@@ -933,6 +999,8 @@ public final UnaryCallable deleteFeaturest
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   FeaturestoreName parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
    *   EntityType entityType = EntityType.newBuilder().build();
@@ -963,6 +1031,8 @@ public final OperationFuture crea
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
    *   EntityType entityType = EntityType.newBuilder().build();
@@ -990,6 +1060,8 @@ public final OperationFuture crea
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   FeaturestoreName parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
    *   EntityType entityType = EntityType.newBuilder().build();
@@ -1027,6 +1099,8 @@ public final OperationFuture crea
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
    *   EntityType entityType = EntityType.newBuilder().build();
@@ -1064,6 +1138,8 @@ public final OperationFuture crea
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   CreateEntityTypeRequest request =
    *       CreateEntityTypeRequest.newBuilder()
@@ -1091,6 +1167,8 @@ public final OperationFuture crea
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   CreateEntityTypeRequest request =
    *       CreateEntityTypeRequest.newBuilder()
@@ -1119,6 +1197,8 @@ public final OperationFuture crea
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   CreateEntityTypeRequest request =
    *       CreateEntityTypeRequest.newBuilder()
@@ -1145,6 +1225,8 @@ public final UnaryCallable createEntityTypeC
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   EntityTypeName name =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
@@ -1169,6 +1251,8 @@ public final EntityType getEntityType(EntityTypeName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String name =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
@@ -1193,6 +1277,8 @@ public final EntityType getEntityType(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   GetEntityTypeRequest request =
    *       GetEntityTypeRequest.newBuilder()
@@ -1218,6 +1304,8 @@ public final EntityType getEntityType(GetEntityTypeRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   GetEntityTypeRequest request =
    *       GetEntityTypeRequest.newBuilder()
@@ -1243,6 +1331,8 @@ public final UnaryCallable getEntityTypeCallab
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   FeaturestoreName parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
    *   for (EntityType element : featurestoreServiceClient.listEntityTypes(parent).iterateAll()) {
@@ -1270,6 +1360,8 @@ public final ListEntityTypesPagedResponse listEntityTypes(FeaturestoreName paren
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
    *   for (EntityType element : featurestoreServiceClient.listEntityTypes(parent).iterateAll()) {
@@ -1294,6 +1386,8 @@ public final ListEntityTypesPagedResponse listEntityTypes(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   ListEntityTypesRequest request =
    *       ListEntityTypesRequest.newBuilder()
@@ -1325,6 +1419,8 @@ public final ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   ListEntityTypesRequest request =
    *       ListEntityTypesRequest.newBuilder()
@@ -1357,6 +1453,8 @@ public final ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   ListEntityTypesRequest request =
    *       ListEntityTypesRequest.newBuilder()
@@ -1371,7 +1469,7 @@ public final ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest
    *   while (true) {
    *     ListEntityTypesResponse response =
    *         featurestoreServiceClient.listEntityTypesCallable().call(request);
-   *     for (EntityType element : response.getResponsesList()) {
+   *     for (EntityType element : response.getEntityTypesList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -1396,6 +1494,8 @@ public final ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   EntityType entityType = EntityType.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1437,6 +1537,8 @@ public final EntityType updateEntityType(EntityType entityType, FieldMask update
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   UpdateEntityTypeRequest request =
    *       UpdateEntityTypeRequest.newBuilder()
@@ -1461,6 +1563,8 @@ public final EntityType updateEntityType(UpdateEntityTypeRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   UpdateEntityTypeRequest request =
    *       UpdateEntityTypeRequest.newBuilder()
@@ -1486,6 +1590,8 @@ public final UnaryCallable updateEntityType
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   EntityTypeName name =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
@@ -1512,6 +1618,8 @@ public final OperationFuture deleteEntityTypeAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String name =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
@@ -1537,6 +1645,8 @@ public final OperationFuture deleteEntityTypeAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   EntityTypeName name =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
@@ -1569,6 +1679,8 @@ public final OperationFuture deleteEntityTypeAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String name =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
@@ -1599,6 +1711,8 @@ public final OperationFuture deleteEntityTypeAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   DeleteEntityTypeRequest request =
    *       DeleteEntityTypeRequest.newBuilder()
@@ -1627,6 +1741,8 @@ public final OperationFuture deleteEntityTypeAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   DeleteEntityTypeRequest request =
    *       DeleteEntityTypeRequest.newBuilder()
@@ -1655,6 +1771,8 @@ public final OperationFuture deleteEntityTypeAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   DeleteEntityTypeRequest request =
    *       DeleteEntityTypeRequest.newBuilder()
@@ -1681,6 +1799,8 @@ public final UnaryCallable deleteEntityTypeC
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   EntityTypeName parent =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
@@ -1711,6 +1831,8 @@ public final OperationFuture createFeat
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String parent =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
@@ -1739,6 +1861,8 @@ public final OperationFuture createFeat
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   EntityTypeName parent =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
@@ -1777,6 +1901,8 @@ public final OperationFuture createFeat
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String parent =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
@@ -1816,6 +1942,8 @@ public final OperationFuture createFeat
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   CreateFeatureRequest request =
    *       CreateFeatureRequest.newBuilder()
@@ -1844,6 +1972,8 @@ public final OperationFuture createFeat
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   CreateFeatureRequest request =
    *       CreateFeatureRequest.newBuilder()
@@ -1872,6 +2002,8 @@ public final OperationFuture createFeat
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   CreateFeatureRequest request =
    *       CreateFeatureRequest.newBuilder()
@@ -1899,6 +2031,8 @@ public final UnaryCallable createFeatureCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   EntityTypeName parent =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
@@ -1934,6 +2068,8 @@ public final UnaryCallable createFeatureCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String parent =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
@@ -1967,6 +2103,8 @@ public final UnaryCallable createFeatureCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   BatchCreateFeaturesRequest request =
    *       BatchCreateFeaturesRequest.newBuilder()
@@ -1995,6 +2133,8 @@ public final UnaryCallable createFeatureCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   BatchCreateFeaturesRequest request =
    *       BatchCreateFeaturesRequest.newBuilder()
@@ -2025,6 +2165,8 @@ public final UnaryCallable createFeatureCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   BatchCreateFeaturesRequest request =
    *       BatchCreateFeaturesRequest.newBuilder()
@@ -2051,6 +2193,8 @@ public final UnaryCallable batchCreateFea
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   FeatureName name =
    *       FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]");
@@ -2075,6 +2219,8 @@ public final Feature getFeature(FeatureName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String name =
    *       FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
@@ -2099,6 +2245,8 @@ public final Feature getFeature(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   GetFeatureRequest request =
    *       GetFeatureRequest.newBuilder()
@@ -2125,6 +2273,8 @@ public final Feature getFeature(GetFeatureRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   GetFeatureRequest request =
    *       GetFeatureRequest.newBuilder()
@@ -2151,6 +2301,8 @@ public final UnaryCallable getFeatureCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   EntityTypeName parent =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
@@ -2179,6 +2331,8 @@ public final ListFeaturesPagedResponse listFeatures(EntityTypeName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String parent =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
@@ -2205,6 +2359,8 @@ public final ListFeaturesPagedResponse listFeatures(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   ListFeaturesRequest request =
    *       ListFeaturesRequest.newBuilder()
@@ -2238,6 +2394,8 @@ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   ListFeaturesRequest request =
    *       ListFeaturesRequest.newBuilder()
@@ -2272,6 +2430,8 @@ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   ListFeaturesRequest request =
    *       ListFeaturesRequest.newBuilder()
@@ -2288,7 +2448,7 @@ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest request)
    *   while (true) {
    *     ListFeaturesResponse response =
    *         featurestoreServiceClient.listFeaturesCallable().call(request);
-   *     for (Feature element : response.getResponsesList()) {
+   *     for (Feature element : response.getFeaturesList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -2312,6 +2472,8 @@ public final UnaryCallable listFeatur
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   Feature feature = Feature.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -2344,6 +2506,8 @@ public final Feature updateFeature(Feature feature, FieldMask updateMask) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   UpdateFeatureRequest request =
    *       UpdateFeatureRequest.newBuilder()
@@ -2368,6 +2532,8 @@ public final Feature updateFeature(UpdateFeatureRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   UpdateFeatureRequest request =
    *       UpdateFeatureRequest.newBuilder()
@@ -2392,6 +2558,8 @@ public final UnaryCallable updateFeatureCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   FeatureName name =
    *       FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]");
@@ -2417,6 +2585,8 @@ public final OperationFuture deleteFeatureAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String name =
    *       FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
@@ -2441,6 +2611,8 @@ public final OperationFuture deleteFeatureAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   DeleteFeatureRequest request =
    *       DeleteFeatureRequest.newBuilder()
@@ -2468,6 +2640,8 @@ public final OperationFuture deleteFeatureAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   DeleteFeatureRequest request =
    *       DeleteFeatureRequest.newBuilder()
@@ -2495,6 +2669,8 @@ public final OperationFuture deleteFeatureAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   DeleteFeatureRequest request =
    *       DeleteFeatureRequest.newBuilder()
@@ -2537,6 +2713,8 @@ public final UnaryCallable deleteFeatureCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   EntityTypeName entityType =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
@@ -2582,6 +2760,8 @@ public final UnaryCallable deleteFeatureCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String entityType =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
@@ -2626,6 +2806,8 @@ public final UnaryCallable deleteFeatureCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   ImportFeatureValuesRequest request =
    *       ImportFeatureValuesRequest.newBuilder()
@@ -2674,6 +2856,8 @@ public final UnaryCallable deleteFeatureCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   ImportFeatureValuesRequest request =
    *       ImportFeatureValuesRequest.newBuilder()
@@ -2724,6 +2908,8 @@ public final UnaryCallable deleteFeatureCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   ImportFeatureValuesRequest request =
    *       ImportFeatureValuesRequest.newBuilder()
@@ -2758,6 +2944,8 @@ public final UnaryCallable importFeatureV
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   FeaturestoreName featurestore =
    *       FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
@@ -2791,6 +2979,8 @@ public final UnaryCallable importFeatureV
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String featurestore =
    *       FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
@@ -2822,6 +3012,8 @@ public final UnaryCallable importFeatureV
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   BatchReadFeatureValuesRequest request =
    *       BatchReadFeatureValuesRequest.newBuilder()
@@ -2857,6 +3049,8 @@ public final UnaryCallable importFeatureV
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   BatchReadFeatureValuesRequest request =
    *       BatchReadFeatureValuesRequest.newBuilder()
@@ -2896,6 +3090,8 @@ public final UnaryCallable importFeatureV
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   BatchReadFeatureValuesRequest request =
    *       BatchReadFeatureValuesRequest.newBuilder()
@@ -2925,6 +3121,8 @@ public final UnaryCallable importFeatureV
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   EntityTypeName entityType =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
@@ -2954,6 +3152,8 @@ public final UnaryCallable importFeatureV
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String entityType =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
@@ -2982,6 +3182,8 @@ public final UnaryCallable importFeatureV
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   ExportFeatureValuesRequest request =
    *       ExportFeatureValuesRequest.newBuilder()
@@ -3012,6 +3214,8 @@ public final UnaryCallable importFeatureV
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   ExportFeatureValuesRequest request =
    *       ExportFeatureValuesRequest.newBuilder()
@@ -3044,6 +3248,8 @@ public final UnaryCallable importFeatureV
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   ExportFeatureValuesRequest request =
    *       ExportFeatureValuesRequest.newBuilder()
@@ -3072,6 +3278,8 @@ public final UnaryCallable exportFeatureV
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   LocationName location = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Feature element : featurestoreServiceClient.searchFeatures(location).iterateAll()) {
@@ -3099,6 +3307,8 @@ public final SearchFeaturesPagedResponse searchFeatures(LocationName location) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String location = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Feature element : featurestoreServiceClient.searchFeatures(location).iterateAll()) {
@@ -3124,6 +3334,8 @@ public final SearchFeaturesPagedResponse searchFeatures(String location) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   LocationName location = LocationName.of("[PROJECT]", "[LOCATION]");
    *   String query = "query107944136";
@@ -3205,6 +3417,8 @@ public final SearchFeaturesPagedResponse searchFeatures(LocationName location, S
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String location = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   String query = "query107944136";
@@ -3283,6 +3497,8 @@ public final SearchFeaturesPagedResponse searchFeatures(String location, String
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   SearchFeaturesRequest request =
    *       SearchFeaturesRequest.newBuilder()
@@ -3311,6 +3527,8 @@ public final SearchFeaturesPagedResponse searchFeatures(SearchFeaturesRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   SearchFeaturesRequest request =
    *       SearchFeaturesRequest.newBuilder()
@@ -3340,6 +3558,8 @@ public final SearchFeaturesPagedResponse searchFeatures(SearchFeaturesRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   SearchFeaturesRequest request =
    *       SearchFeaturesRequest.newBuilder()
@@ -3351,7 +3571,7 @@ public final SearchFeaturesPagedResponse searchFeatures(SearchFeaturesRequest re
    *   while (true) {
    *     SearchFeaturesResponse response =
    *         featurestoreServiceClient.searchFeaturesCallable().call(request);
-   *     for (Feature element : response.getResponsesList()) {
+   *     for (Feature element : response.getFeaturesList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -3369,6 +3589,335 @@ public final SearchFeaturesPagedResponse searchFeatures(SearchFeaturesRequest re
     return stub.searchFeaturesCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Lists information about the supported locations for this service.
+   *
+   * 

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : featurestoreServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         featurestoreServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = featurestoreServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       featurestoreServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = featurestoreServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = featurestoreServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = featurestoreServiceClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + @Override public final void close() { stub.close(); @@ -3706,4 +4255,80 @@ protected SearchFeaturesFixedSizeCollection createCollection( return new SearchFeaturesFixedSizeCollection(pages, collectionSize); } } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceSettings.java index 887db1b174c7..6074195199c2 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,6 +19,7 @@ import static com.google.cloud.aiplatform.v1.FeaturestoreServiceClient.ListEntityTypesPagedResponse; import static com.google.cloud.aiplatform.v1.FeaturestoreServiceClient.ListFeaturesPagedResponse; import static com.google.cloud.aiplatform.v1.FeaturestoreServiceClient.ListFeaturestoresPagedResponse; +import static com.google.cloud.aiplatform.v1.FeaturestoreServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1.FeaturestoreServiceClient.SearchFeaturesPagedResponse; import com.google.api.core.ApiFunction; @@ -34,6 +35,15 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.aiplatform.v1.stub.FeaturestoreServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -58,6 +68,8 @@ *

For example, to set the total timeout of getFeaturestore to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * FeaturestoreServiceSettings.Builder featurestoreServiceSettingsBuilder =
  *     FeaturestoreServiceSettings.newBuilder();
  * featurestoreServiceSettingsBuilder
@@ -274,6 +286,33 @@ public UnaryCallSettings exportFeatureVal
     return ((FeaturestoreServiceStubSettings) getStubSettings()).searchFeaturesSettings();
   }
 
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return ((FeaturestoreServiceStubSettings) getStubSettings()).listLocationsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return ((FeaturestoreServiceStubSettings) getStubSettings()).getLocationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return ((FeaturestoreServiceStubSettings) getStubSettings()).setIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return ((FeaturestoreServiceStubSettings) getStubSettings()).getIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return ((FeaturestoreServiceStubSettings) getStubSettings()).testIamPermissionsSettings();
+  }
+
   public static final FeaturestoreServiceSettings create(FeaturestoreServiceStubSettings stub)
       throws IOException {
     return new FeaturestoreServiceSettings.Builder(stub.toBuilder()).build();
@@ -572,6 +611,34 @@ public UnaryCallSettings.Builder deleteFeatureS
       return getStubSettingsBuilder().searchFeaturesSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return getStubSettingsBuilder().listLocationsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getStubSettingsBuilder().getLocationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return getStubSettingsBuilder().setIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getStubSettingsBuilder().getIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return getStubSettingsBuilder().testIamPermissionsSettings();
+    }
+
     @Override
     public FeaturestoreServiceSettings build() throws IOException {
       return new FeaturestoreServiceSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointServiceClient.java
index 1e7a6775b706..50990a966cd9 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointServiceClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -18,7 +18,6 @@
 
 import com.google.api.core.ApiFuture;
 import com.google.api.core.ApiFutures;
-import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
@@ -29,7 +28,16 @@
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1.stub.IndexEndpointServiceStub;
 import com.google.cloud.aiplatform.v1.stub.IndexEndpointServiceStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.OperationsClient;
 import com.google.protobuf.Empty;
@@ -47,6 +55,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (IndexEndpointServiceClient indexEndpointServiceClient =
  *     IndexEndpointServiceClient.create()) {
  *   IndexEndpointName name = IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]");
@@ -84,6 +94,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IndexEndpointServiceSettings indexEndpointServiceSettings =
  *     IndexEndpointServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -95,6 +107,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IndexEndpointServiceSettings indexEndpointServiceSettings =
  *     IndexEndpointServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * IndexEndpointServiceClient indexEndpointServiceClient =
@@ -127,7 +141,6 @@ public static final IndexEndpointServiceClient create(IndexEndpointServiceSettin
    * Constructs an instance of IndexEndpointServiceClient, using the given stub for making calls.
    * This is for advanced usage - prefer using create(IndexEndpointServiceSettings).
    */
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public static final IndexEndpointServiceClient create(IndexEndpointServiceStub stub) {
     return new IndexEndpointServiceClient(stub);
   }
@@ -143,7 +156,6 @@ protected IndexEndpointServiceClient(IndexEndpointServiceSettings settings) thro
     this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected IndexEndpointServiceClient(IndexEndpointServiceStub stub) {
     this.settings = null;
     this.stub = stub;
@@ -154,7 +166,6 @@ public final IndexEndpointServiceSettings getSettings() {
     return settings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public IndexEndpointServiceStub getStub() {
     return stub;
   }
@@ -174,6 +185,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -205,6 +218,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
@@ -236,6 +251,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   CreateIndexEndpointRequest request =
@@ -262,6 +279,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   CreateIndexEndpointRequest request =
@@ -289,6 +308,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   CreateIndexEndpointRequest request =
@@ -314,6 +335,8 @@ public final UnaryCallable createIndexEnd
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   IndexEndpointName name = IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]");
@@ -338,6 +361,8 @@ public final IndexEndpoint getIndexEndpoint(IndexEndpointName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   String name = IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString();
@@ -361,6 +386,8 @@ public final IndexEndpoint getIndexEndpoint(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   GetIndexEndpointRequest request =
@@ -386,6 +413,8 @@ public final IndexEndpoint getIndexEndpoint(GetIndexEndpointRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   GetIndexEndpointRequest request =
@@ -411,6 +440,8 @@ public final UnaryCallable getIndexEndpo
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -440,6 +471,8 @@ public final ListIndexEndpointsPagedResponse listIndexEndpoints(LocationName par
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
@@ -467,6 +500,8 @@ public final ListIndexEndpointsPagedResponse listIndexEndpoints(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   ListIndexEndpointsRequest request =
@@ -499,6 +534,8 @@ public final ListIndexEndpointsPagedResponse listIndexEndpoints(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   ListIndexEndpointsRequest request =
@@ -530,6 +567,8 @@ public final ListIndexEndpointsPagedResponse listIndexEndpoints(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   ListIndexEndpointsRequest request =
@@ -543,7 +582,7 @@ public final ListIndexEndpointsPagedResponse listIndexEndpoints(
    *   while (true) {
    *     ListIndexEndpointsResponse response =
    *         indexEndpointServiceClient.listIndexEndpointsCallable().call(request);
-   *     for (IndexEndpoint element : response.getResponsesList()) {
+   *     for (IndexEndpoint element : response.getIndexEndpointsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -568,6 +607,8 @@ public final ListIndexEndpointsPagedResponse listIndexEndpoints(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   IndexEndpoint indexEndpoint = IndexEndpoint.newBuilder().build();
@@ -599,6 +640,8 @@ public final IndexEndpoint updateIndexEndpoint(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   UpdateIndexEndpointRequest request =
@@ -624,6 +667,8 @@ public final IndexEndpoint updateIndexEndpoint(UpdateIndexEndpointRequest reques
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   UpdateIndexEndpointRequest request =
@@ -650,6 +695,8 @@ public final IndexEndpoint updateIndexEndpoint(UpdateIndexEndpointRequest reques
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   IndexEndpointName name = IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]");
@@ -677,6 +724,8 @@ public final OperationFuture deleteIndexEndpoint
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   String name = IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString();
@@ -702,6 +751,8 @@ public final OperationFuture deleteIndexEndpoint
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   DeleteIndexEndpointRequest request =
@@ -728,6 +779,8 @@ public final OperationFuture deleteIndexEndpoint
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   DeleteIndexEndpointRequest request =
@@ -754,6 +807,8 @@ public final OperationFuture deleteIndexEndpoint
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   DeleteIndexEndpointRequest request =
@@ -780,6 +835,8 @@ public final UnaryCallable deleteIndexEnd
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   IndexEndpointName indexEndpoint =
@@ -813,6 +870,8 @@ public final OperationFuture
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   String indexEndpoint =
@@ -846,6 +905,8 @@ public final OperationFuture
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   DeployIndexRequest request =
@@ -874,6 +935,8 @@ public final OperationFuture
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   DeployIndexRequest request =
@@ -903,6 +966,8 @@ public final OperationFuture
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   DeployIndexRequest request =
@@ -930,6 +995,8 @@ public final UnaryCallable deployIndexCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   IndexEndpointName indexEndpoint =
@@ -964,6 +1031,8 @@ public final UnaryCallable deployIndexCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   String indexEndpoint =
@@ -998,6 +1067,8 @@ public final UnaryCallable deployIndexCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   UndeployIndexRequest request =
@@ -1026,6 +1097,8 @@ public final UnaryCallable deployIndexCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   UndeployIndexRequest request =
@@ -1055,6 +1128,8 @@ public final UnaryCallable deployIndexCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   UndeployIndexRequest request =
@@ -1081,6 +1156,8 @@ public final UnaryCallable undeployIndexCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   IndexEndpointName indexEndpoint =
@@ -1115,6 +1192,8 @@ public final UnaryCallable undeployIndexCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   String indexEndpoint =
@@ -1149,6 +1228,8 @@ public final UnaryCallable undeployIndexCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   MutateDeployedIndexRequest request =
@@ -1177,6 +1258,8 @@ public final UnaryCallable undeployIndexCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   MutateDeployedIndexRequest request =
@@ -1207,6 +1290,8 @@ public final UnaryCallable undeployIndexCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   MutateDeployedIndexRequest request =
@@ -1226,6 +1311,346 @@ public final UnaryCallable mutateDeployed
     return stub.mutateDeployedIndexCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Lists information about the supported locations for this service.
+   *
+   * 

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : indexEndpointServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       indexEndpointServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         indexEndpointServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = indexEndpointServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       indexEndpointServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = indexEndpointServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       indexEndpointServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = indexEndpointServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       indexEndpointServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = indexEndpointServiceClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       indexEndpointServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + @Override public final void close() { stub.close(); @@ -1335,4 +1760,80 @@ protected ListIndexEndpointsFixedSizeCollection createCollection( return new ListIndexEndpointsFixedSizeCollection(pages, collectionSize); } } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointServiceSettings.java index f3c9759f7fa6..7747036f3595 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ package com.google.cloud.aiplatform.v1; import static com.google.cloud.aiplatform.v1.IndexEndpointServiceClient.ListIndexEndpointsPagedResponse; +import static com.google.cloud.aiplatform.v1.IndexEndpointServiceClient.ListLocationsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -31,6 +32,15 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.aiplatform.v1.stub.IndexEndpointServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -55,6 +65,8 @@ *

For example, to set the total timeout of getIndexEndpoint to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IndexEndpointServiceSettings.Builder indexEndpointServiceSettingsBuilder =
  *     IndexEndpointServiceSettings.newBuilder();
  * indexEndpointServiceSettingsBuilder
@@ -155,6 +167,33 @@ public UnaryCallSettings mutateDeployedIn
         .mutateDeployedIndexOperationSettings();
   }
 
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return ((IndexEndpointServiceStubSettings) getStubSettings()).listLocationsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return ((IndexEndpointServiceStubSettings) getStubSettings()).getLocationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return ((IndexEndpointServiceStubSettings) getStubSettings()).setIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return ((IndexEndpointServiceStubSettings) getStubSettings()).getIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return ((IndexEndpointServiceStubSettings) getStubSettings()).testIamPermissionsSettings();
+  }
+
   public static final IndexEndpointServiceSettings create(IndexEndpointServiceStubSettings stub)
       throws IOException {
     return new IndexEndpointServiceSettings.Builder(stub.toBuilder()).build();
@@ -336,6 +375,34 @@ public UnaryCallSettings.Builder undeployIndexS
       return getStubSettingsBuilder().mutateDeployedIndexOperationSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return getStubSettingsBuilder().listLocationsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getStubSettingsBuilder().getLocationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return getStubSettingsBuilder().setIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getStubSettingsBuilder().getIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return getStubSettingsBuilder().testIamPermissionsSettings();
+    }
+
     @Override
     public IndexEndpointServiceSettings build() throws IOException {
       return new IndexEndpointServiceSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexServiceClient.java
index 9696bb4c22f6..fa4ab3ec0f08 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexServiceClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -18,7 +18,6 @@
 
 import com.google.api.core.ApiFuture;
 import com.google.api.core.ApiFutures;
-import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
@@ -29,7 +28,16 @@
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1.stub.IndexServiceStub;
 import com.google.cloud.aiplatform.v1.stub.IndexServiceStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.OperationsClient;
 import com.google.protobuf.Empty;
@@ -47,6 +55,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
  *   IndexName name = IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]");
  *   Index response = indexServiceClient.getIndex(name);
@@ -82,6 +92,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IndexServiceSettings indexServiceSettings =
  *     IndexServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -92,6 +104,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IndexServiceSettings indexServiceSettings =
  *     IndexServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * IndexServiceClient indexServiceClient = IndexServiceClient.create(indexServiceSettings);
@@ -122,7 +136,6 @@ public static final IndexServiceClient create(IndexServiceSettings settings) thr
    * Constructs an instance of IndexServiceClient, using the given stub for making calls. This is
    * for advanced usage - prefer using create(IndexServiceSettings).
    */
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public static final IndexServiceClient create(IndexServiceStub stub) {
     return new IndexServiceClient(stub);
   }
@@ -138,7 +151,6 @@ protected IndexServiceClient(IndexServiceSettings settings) throws IOException {
     this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected IndexServiceClient(IndexServiceStub stub) {
     this.settings = null;
     this.stub = stub;
@@ -149,7 +161,6 @@ public final IndexServiceSettings getSettings() {
     return settings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public IndexServiceStub getStub() {
     return stub;
   }
@@ -169,6 +180,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Index index = Index.newBuilder().build();
@@ -198,6 +211,8 @@ public final OperationFuture createIndexAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Index index = Index.newBuilder().build();
@@ -224,6 +239,8 @@ public final OperationFuture createIndexAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   CreateIndexRequest request =
    *       CreateIndexRequest.newBuilder()
@@ -249,6 +266,8 @@ public final OperationFuture createIndexAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   CreateIndexRequest request =
    *       CreateIndexRequest.newBuilder()
@@ -274,6 +293,8 @@ public final OperationFuture createIndexAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   CreateIndexRequest request =
    *       CreateIndexRequest.newBuilder()
@@ -297,6 +318,8 @@ public final UnaryCallable createIndexCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   IndexName name = IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]");
    *   Index response = indexServiceClient.getIndex(name);
@@ -320,6 +343,8 @@ public final Index getIndex(IndexName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   String name = IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]").toString();
    *   Index response = indexServiceClient.getIndex(name);
@@ -342,6 +367,8 @@ public final Index getIndex(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   GetIndexRequest request =
    *       GetIndexRequest.newBuilder()
@@ -365,6 +392,8 @@ public final Index getIndex(GetIndexRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   GetIndexRequest request =
    *       GetIndexRequest.newBuilder()
@@ -387,6 +416,8 @@ public final UnaryCallable getIndexCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Index element : indexServiceClient.listIndexes(parent).iterateAll()) {
@@ -414,6 +445,8 @@ public final ListIndexesPagedResponse listIndexes(LocationName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Index element : indexServiceClient.listIndexes(parent).iterateAll()) {
@@ -438,6 +471,8 @@ public final ListIndexesPagedResponse listIndexes(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   ListIndexesRequest request =
    *       ListIndexesRequest.newBuilder()
@@ -467,6 +502,8 @@ public final ListIndexesPagedResponse listIndexes(ListIndexesRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   ListIndexesRequest request =
    *       ListIndexesRequest.newBuilder()
@@ -496,6 +533,8 @@ public final ListIndexesPagedResponse listIndexes(ListIndexesRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   ListIndexesRequest request =
    *       ListIndexesRequest.newBuilder()
@@ -507,7 +546,7 @@ public final ListIndexesPagedResponse listIndexes(ListIndexesRequest request) {
    *           .build();
    *   while (true) {
    *     ListIndexesResponse response = indexServiceClient.listIndexesCallable().call(request);
-   *     for (Index element : response.getResponsesList()) {
+   *     for (Index element : response.getIndexesList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -531,6 +570,8 @@ public final UnaryCallable listIndexesC
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   Index index = Index.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -557,6 +598,8 @@ public final OperationFuture updateIndexAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   UpdateIndexRequest request =
    *       UpdateIndexRequest.newBuilder()
@@ -582,6 +625,8 @@ public final OperationFuture updateIndexAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   UpdateIndexRequest request =
    *       UpdateIndexRequest.newBuilder()
@@ -607,6 +652,8 @@ public final OperationFuture updateIndexAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   UpdateIndexRequest request =
    *       UpdateIndexRequest.newBuilder()
@@ -631,6 +678,8 @@ public final UnaryCallable updateIndexCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   IndexName name = IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]");
    *   indexServiceClient.deleteIndexAsync(name).get();
@@ -655,6 +704,8 @@ public final OperationFuture deleteIndexAsync(In
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   String name = IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]").toString();
    *   indexServiceClient.deleteIndexAsync(name).get();
@@ -678,6 +729,8 @@ public final OperationFuture deleteIndexAsync(St
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   DeleteIndexRequest request =
    *       DeleteIndexRequest.newBuilder()
@@ -703,6 +756,8 @@ public final OperationFuture deleteIndexAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   DeleteIndexRequest request =
    *       DeleteIndexRequest.newBuilder()
@@ -728,6 +783,8 @@ public final OperationFuture deleteIndexAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   DeleteIndexRequest request =
    *       DeleteIndexRequest.newBuilder()
@@ -743,6 +800,331 @@ public final UnaryCallable deleteIndexCallable()
     return stub.deleteIndexCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Lists information about the supported locations for this service.
+   *
+   * 

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : indexServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       indexServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response = indexServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = indexServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = indexServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = indexServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = indexServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = indexServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = indexServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = indexServiceClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       indexServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + @Override public final void close() { stub.close(); @@ -845,4 +1227,80 @@ protected ListIndexesFixedSizeCollection createCollection( return new ListIndexesFixedSizeCollection(pages, collectionSize); } } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexServiceSettings.java index 2180f354037f..6b1d481e8688 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/IndexServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ package com.google.cloud.aiplatform.v1; import static com.google.cloud.aiplatform.v1.IndexServiceClient.ListIndexesPagedResponse; +import static com.google.cloud.aiplatform.v1.IndexServiceClient.ListLocationsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -31,6 +32,15 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.aiplatform.v1.stub.IndexServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -55,6 +65,8 @@ *

For example, to set the total timeout of getIndex to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IndexServiceSettings.Builder indexServiceSettingsBuilder = IndexServiceSettings.newBuilder();
  * indexServiceSettingsBuilder
  *     .getIndexSettings()
@@ -115,6 +127,33 @@ public UnaryCallSettings deleteIndexSettings() {
     return ((IndexServiceStubSettings) getStubSettings()).deleteIndexOperationSettings();
   }
 
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return ((IndexServiceStubSettings) getStubSettings()).listLocationsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return ((IndexServiceStubSettings) getStubSettings()).getLocationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return ((IndexServiceStubSettings) getStubSettings()).setIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return ((IndexServiceStubSettings) getStubSettings()).getIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return ((IndexServiceStubSettings) getStubSettings()).testIamPermissionsSettings();
+  }
+
   public static final IndexServiceSettings create(IndexServiceStubSettings stub)
       throws IOException {
     return new IndexServiceSettings.Builder(stub.toBuilder()).build();
@@ -257,6 +296,34 @@ public UnaryCallSettings.Builder deleteIndexSetti
       return getStubSettingsBuilder().deleteIndexOperationSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return getStubSettingsBuilder().listLocationsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getStubSettingsBuilder().getLocationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return getStubSettingsBuilder().setIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getStubSettingsBuilder().getIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return getStubSettingsBuilder().testIamPermissionsSettings();
+    }
+
     @Override
     public IndexServiceSettings build() throws IOException {
       return new IndexServiceSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/JobServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/JobServiceClient.java
index ee2eaa0ddd74..86f9aeccf425 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/JobServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/JobServiceClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -18,7 +18,6 @@
 
 import com.google.api.core.ApiFuture;
 import com.google.api.core.ApiFutures;
-import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
@@ -29,7 +28,16 @@
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1.stub.JobServiceStub;
 import com.google.cloud.aiplatform.v1.stub.JobServiceStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.OperationsClient;
 import com.google.protobuf.Empty;
@@ -47,6 +55,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
  *   CustomJob customJob = CustomJob.newBuilder().build();
@@ -83,6 +93,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * JobServiceSettings jobServiceSettings =
  *     JobServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -93,6 +105,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * JobServiceSettings jobServiceSettings =
  *     JobServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * JobServiceClient jobServiceClient = JobServiceClient.create(jobServiceSettings);
@@ -123,7 +137,6 @@ public static final JobServiceClient create(JobServiceSettings settings) throws
    * Constructs an instance of JobServiceClient, using the given stub for making calls. This is for
    * advanced usage - prefer using create(JobServiceSettings).
    */
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public static final JobServiceClient create(JobServiceStub stub) {
     return new JobServiceClient(stub);
   }
@@ -138,7 +151,6 @@ protected JobServiceClient(JobServiceSettings settings) throws IOException {
     this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected JobServiceClient(JobServiceStub stub) {
     this.settings = null;
     this.stub = stub;
@@ -149,7 +161,6 @@ public final JobServiceSettings getSettings() {
     return settings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public JobServiceStub getStub() {
     return stub;
   }
@@ -169,6 +180,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   CustomJob customJob = CustomJob.newBuilder().build();
@@ -197,6 +210,8 @@ public final CustomJob createCustomJob(LocationName parent, CustomJob customJob)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   CustomJob customJob = CustomJob.newBuilder().build();
@@ -222,6 +237,8 @@ public final CustomJob createCustomJob(String parent, CustomJob customJob) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CreateCustomJobRequest request =
    *       CreateCustomJobRequest.newBuilder()
@@ -246,6 +263,8 @@ public final CustomJob createCustomJob(CreateCustomJobRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CreateCustomJobRequest request =
    *       CreateCustomJobRequest.newBuilder()
@@ -269,6 +288,8 @@ public final UnaryCallable createCustomJobCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CustomJobName name = CustomJobName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]");
    *   CustomJob response = jobServiceClient.getCustomJob(name);
@@ -292,6 +313,8 @@ public final CustomJob getCustomJob(CustomJobName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name = CustomJobName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]").toString();
    *   CustomJob response = jobServiceClient.getCustomJob(name);
@@ -314,6 +337,8 @@ public final CustomJob getCustomJob(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   GetCustomJobRequest request =
    *       GetCustomJobRequest.newBuilder()
@@ -337,6 +362,8 @@ public final CustomJob getCustomJob(GetCustomJobRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   GetCustomJobRequest request =
    *       GetCustomJobRequest.newBuilder()
@@ -359,6 +386,8 @@ public final UnaryCallable getCustomJobCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (CustomJob element : jobServiceClient.listCustomJobs(parent).iterateAll()) {
@@ -386,6 +415,8 @@ public final ListCustomJobsPagedResponse listCustomJobs(LocationName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (CustomJob element : jobServiceClient.listCustomJobs(parent).iterateAll()) {
@@ -410,6 +441,8 @@ public final ListCustomJobsPagedResponse listCustomJobs(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ListCustomJobsRequest request =
    *       ListCustomJobsRequest.newBuilder()
@@ -439,6 +472,8 @@ public final ListCustomJobsPagedResponse listCustomJobs(ListCustomJobsRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ListCustomJobsRequest request =
    *       ListCustomJobsRequest.newBuilder()
@@ -469,6 +504,8 @@ public final ListCustomJobsPagedResponse listCustomJobs(ListCustomJobsRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ListCustomJobsRequest request =
    *       ListCustomJobsRequest.newBuilder()
@@ -480,7 +517,7 @@ public final ListCustomJobsPagedResponse listCustomJobs(ListCustomJobsRequest re
    *           .build();
    *   while (true) {
    *     ListCustomJobsResponse response = jobServiceClient.listCustomJobsCallable().call(request);
-   *     for (CustomJob element : response.getResponsesList()) {
+   *     for (CustomJob element : response.getCustomJobsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -505,6 +542,8 @@ public final ListCustomJobsPagedResponse listCustomJobs(ListCustomJobsRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CustomJobName name = CustomJobName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]");
    *   jobServiceClient.deleteCustomJobAsync(name).get();
@@ -529,6 +568,8 @@ public final OperationFuture deleteCustomJobAsyn
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name = CustomJobName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]").toString();
    *   jobServiceClient.deleteCustomJobAsync(name).get();
@@ -551,6 +592,8 @@ public final OperationFuture deleteCustomJobAsyn
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DeleteCustomJobRequest request =
    *       DeleteCustomJobRequest.newBuilder()
@@ -575,6 +618,8 @@ public final OperationFuture deleteCustomJobAsyn
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DeleteCustomJobRequest request =
    *       DeleteCustomJobRequest.newBuilder()
@@ -599,6 +644,8 @@ public final OperationFuture deleteCustomJobAsyn
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DeleteCustomJobRequest request =
    *       DeleteCustomJobRequest.newBuilder()
@@ -628,6 +675,8 @@ public final UnaryCallable deleteCustomJobCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CustomJobName name = CustomJobName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]");
    *   jobServiceClient.cancelCustomJob(name);
@@ -658,6 +707,8 @@ public final void cancelCustomJob(CustomJobName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name = CustomJobName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]").toString();
    *   jobServiceClient.cancelCustomJob(name);
@@ -687,6 +738,8 @@ public final void cancelCustomJob(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CancelCustomJobRequest request =
    *       CancelCustomJobRequest.newBuilder()
@@ -717,6 +770,8 @@ public final void cancelCustomJob(CancelCustomJobRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CancelCustomJobRequest request =
    *       CancelCustomJobRequest.newBuilder()
@@ -739,6 +794,8 @@ public final UnaryCallable cancelCustomJobCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   DataLabelingJob dataLabelingJob = DataLabelingJob.newBuilder().build();
@@ -768,6 +825,8 @@ public final DataLabelingJob createDataLabelingJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   DataLabelingJob dataLabelingJob = DataLabelingJob.newBuilder().build();
@@ -797,6 +856,8 @@ public final DataLabelingJob createDataLabelingJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CreateDataLabelingJobRequest request =
    *       CreateDataLabelingJobRequest.newBuilder()
@@ -821,6 +882,8 @@ public final DataLabelingJob createDataLabelingJob(CreateDataLabelingJobRequest
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CreateDataLabelingJobRequest request =
    *       CreateDataLabelingJobRequest.newBuilder()
@@ -846,6 +909,8 @@ public final DataLabelingJob createDataLabelingJob(CreateDataLabelingJobRequest
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DataLabelingJobName name =
    *       DataLabelingJobName.of("[PROJECT]", "[LOCATION]", "[DATA_LABELING_JOB]");
@@ -872,6 +937,8 @@ public final DataLabelingJob getDataLabelingJob(DataLabelingJobName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name =
    *       DataLabelingJobName.of("[PROJECT]", "[LOCATION]", "[DATA_LABELING_JOB]").toString();
@@ -896,6 +963,8 @@ public final DataLabelingJob getDataLabelingJob(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   GetDataLabelingJobRequest request =
    *       GetDataLabelingJobRequest.newBuilder()
@@ -921,6 +990,8 @@ public final DataLabelingJob getDataLabelingJob(GetDataLabelingJobRequest reques
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   GetDataLabelingJobRequest request =
    *       GetDataLabelingJobRequest.newBuilder()
@@ -947,6 +1018,8 @@ public final DataLabelingJob getDataLabelingJob(GetDataLabelingJobRequest reques
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (DataLabelingJob element : jobServiceClient.listDataLabelingJobs(parent).iterateAll()) {
@@ -974,6 +1047,8 @@ public final ListDataLabelingJobsPagedResponse listDataLabelingJobs(LocationName
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (DataLabelingJob element : jobServiceClient.listDataLabelingJobs(parent).iterateAll()) {
@@ -999,6 +1074,8 @@ public final ListDataLabelingJobsPagedResponse listDataLabelingJobs(String paren
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ListDataLabelingJobsRequest request =
    *       ListDataLabelingJobsRequest.newBuilder()
@@ -1030,6 +1107,8 @@ public final ListDataLabelingJobsPagedResponse listDataLabelingJobs(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ListDataLabelingJobsRequest request =
    *       ListDataLabelingJobsRequest.newBuilder()
@@ -1061,6 +1140,8 @@ public final ListDataLabelingJobsPagedResponse listDataLabelingJobs(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ListDataLabelingJobsRequest request =
    *       ListDataLabelingJobsRequest.newBuilder()
@@ -1074,7 +1155,7 @@ public final ListDataLabelingJobsPagedResponse listDataLabelingJobs(
    *   while (true) {
    *     ListDataLabelingJobsResponse response =
    *         jobServiceClient.listDataLabelingJobsCallable().call(request);
-   *     for (DataLabelingJob element : response.getResponsesList()) {
+   *     for (DataLabelingJob element : response.getDataLabelingJobsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -1099,6 +1180,8 @@ public final ListDataLabelingJobsPagedResponse listDataLabelingJobs(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DataLabelingJobName name =
    *       DataLabelingJobName.of("[PROJECT]", "[LOCATION]", "[DATA_LABELING_JOB]");
@@ -1126,6 +1209,8 @@ public final OperationFuture deleteDataLabelingJ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name =
    *       DataLabelingJobName.of("[PROJECT]", "[LOCATION]", "[DATA_LABELING_JOB]").toString();
@@ -1151,6 +1236,8 @@ public final OperationFuture deleteDataLabelingJ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DeleteDataLabelingJobRequest request =
    *       DeleteDataLabelingJobRequest.newBuilder()
@@ -1177,6 +1264,8 @@ public final OperationFuture deleteDataLabelingJ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DeleteDataLabelingJobRequest request =
    *       DeleteDataLabelingJobRequest.newBuilder()
@@ -1203,6 +1292,8 @@ public final OperationFuture deleteDataLabelingJ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DeleteDataLabelingJobRequest request =
    *       DeleteDataLabelingJobRequest.newBuilder()
@@ -1229,6 +1320,8 @@ public final OperationFuture deleteDataLabelingJ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DataLabelingJobName name =
    *       DataLabelingJobName.of("[PROJECT]", "[LOCATION]", "[DATA_LABELING_JOB]");
@@ -1255,6 +1348,8 @@ public final void cancelDataLabelingJob(DataLabelingJobName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name =
    *       DataLabelingJobName.of("[PROJECT]", "[LOCATION]", "[DATA_LABELING_JOB]").toString();
@@ -1279,6 +1374,8 @@ public final void cancelDataLabelingJob(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CancelDataLabelingJobRequest request =
    *       CancelDataLabelingJobRequest.newBuilder()
@@ -1304,6 +1401,8 @@ public final void cancelDataLabelingJob(CancelDataLabelingJobRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CancelDataLabelingJobRequest request =
    *       CancelDataLabelingJobRequest.newBuilder()
@@ -1329,6 +1428,8 @@ public final UnaryCallable cancelDataLabeli
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   HyperparameterTuningJob hyperparameterTuningJob =
@@ -1360,6 +1461,8 @@ public final HyperparameterTuningJob createHyperparameterTuningJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   HyperparameterTuningJob hyperparameterTuningJob =
@@ -1391,6 +1494,8 @@ public final HyperparameterTuningJob createHyperparameterTuningJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CreateHyperparameterTuningJobRequest request =
    *       CreateHyperparameterTuningJobRequest.newBuilder()
@@ -1416,6 +1521,8 @@ public final HyperparameterTuningJob createHyperparameterTuningJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CreateHyperparameterTuningJobRequest request =
    *       CreateHyperparameterTuningJobRequest.newBuilder()
@@ -1441,6 +1548,8 @@ public final HyperparameterTuningJob createHyperparameterTuningJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   HyperparameterTuningJobName name =
    *       HyperparameterTuningJobName.of("[PROJECT]", "[LOCATION]", "[HYPERPARAMETER_TUNING_JOB]");
@@ -1468,6 +1577,8 @@ public final HyperparameterTuningJob getHyperparameterTuningJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name =
    *       HyperparameterTuningJobName.of("[PROJECT]", "[LOCATION]", "[HYPERPARAMETER_TUNING_JOB]")
@@ -1493,6 +1604,8 @@ public final HyperparameterTuningJob getHyperparameterTuningJob(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   GetHyperparameterTuningJobRequest request =
    *       GetHyperparameterTuningJobRequest.newBuilder()
@@ -1520,6 +1633,8 @@ public final HyperparameterTuningJob getHyperparameterTuningJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   GetHyperparameterTuningJobRequest request =
    *       GetHyperparameterTuningJobRequest.newBuilder()
@@ -1547,6 +1662,8 @@ public final HyperparameterTuningJob getHyperparameterTuningJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (HyperparameterTuningJob element :
@@ -1576,6 +1693,8 @@ public final ListHyperparameterTuningJobsPagedResponse listHyperparameterTuningJ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (HyperparameterTuningJob element :
@@ -1603,6 +1722,8 @@ public final ListHyperparameterTuningJobsPagedResponse listHyperparameterTuningJ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ListHyperparameterTuningJobsRequest request =
    *       ListHyperparameterTuningJobsRequest.newBuilder()
@@ -1634,6 +1755,8 @@ public final ListHyperparameterTuningJobsPagedResponse listHyperparameterTuningJ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ListHyperparameterTuningJobsRequest request =
    *       ListHyperparameterTuningJobsRequest.newBuilder()
@@ -1665,6 +1788,8 @@ public final ListHyperparameterTuningJobsPagedResponse listHyperparameterTuningJ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ListHyperparameterTuningJobsRequest request =
    *       ListHyperparameterTuningJobsRequest.newBuilder()
@@ -1677,7 +1802,7 @@ public final ListHyperparameterTuningJobsPagedResponse listHyperparameterTuningJ
    *   while (true) {
    *     ListHyperparameterTuningJobsResponse response =
    *         jobServiceClient.listHyperparameterTuningJobsCallable().call(request);
-   *     for (HyperparameterTuningJob element : response.getResponsesList()) {
+   *     for (HyperparameterTuningJob element : response.getHyperparameterTuningJobsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -1703,6 +1828,8 @@ public final ListHyperparameterTuningJobsPagedResponse listHyperparameterTuningJ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   HyperparameterTuningJobName name =
    *       HyperparameterTuningJobName.of("[PROJECT]", "[LOCATION]", "[HYPERPARAMETER_TUNING_JOB]");
@@ -1730,6 +1857,8 @@ public final OperationFuture deleteHyperparamete
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name =
    *       HyperparameterTuningJobName.of("[PROJECT]", "[LOCATION]", "[HYPERPARAMETER_TUNING_JOB]")
@@ -1756,6 +1885,8 @@ public final OperationFuture deleteHyperparamete
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DeleteHyperparameterTuningJobRequest request =
    *       DeleteHyperparameterTuningJobRequest.newBuilder()
@@ -1783,6 +1914,8 @@ public final OperationFuture deleteHyperparamete
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DeleteHyperparameterTuningJobRequest request =
    *       DeleteHyperparameterTuningJobRequest.newBuilder()
@@ -1811,6 +1944,8 @@ public final OperationFuture deleteHyperparamete
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DeleteHyperparameterTuningJobRequest request =
    *       DeleteHyperparameterTuningJobRequest.newBuilder()
@@ -1849,6 +1984,8 @@ public final OperationFuture deleteHyperparamete
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   HyperparameterTuningJobName name =
    *       HyperparameterTuningJobName.of("[PROJECT]", "[LOCATION]", "[HYPERPARAMETER_TUNING_JOB]");
@@ -1886,6 +2023,8 @@ public final void cancelHyperparameterTuningJob(HyperparameterTuningJobName name
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name =
    *       HyperparameterTuningJobName.of("[PROJECT]", "[LOCATION]", "[HYPERPARAMETER_TUNING_JOB]")
@@ -1922,6 +2061,8 @@ public final void cancelHyperparameterTuningJob(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CancelHyperparameterTuningJobRequest request =
    *       CancelHyperparameterTuningJobRequest.newBuilder()
@@ -1959,6 +2100,8 @@ public final void cancelHyperparameterTuningJob(CancelHyperparameterTuningJobReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CancelHyperparameterTuningJobRequest request =
    *       CancelHyperparameterTuningJobRequest.newBuilder()
@@ -1987,6 +2130,8 @@ public final void cancelHyperparameterTuningJob(CancelHyperparameterTuningJobReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   BatchPredictionJob batchPredictionJob = BatchPredictionJob.newBuilder().build();
@@ -2018,6 +2163,8 @@ public final BatchPredictionJob createBatchPredictionJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   BatchPredictionJob batchPredictionJob = BatchPredictionJob.newBuilder().build();
@@ -2049,6 +2196,8 @@ public final BatchPredictionJob createBatchPredictionJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CreateBatchPredictionJobRequest request =
    *       CreateBatchPredictionJobRequest.newBuilder()
@@ -2075,6 +2224,8 @@ public final BatchPredictionJob createBatchPredictionJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CreateBatchPredictionJobRequest request =
    *       CreateBatchPredictionJobRequest.newBuilder()
@@ -2100,6 +2251,8 @@ public final BatchPredictionJob createBatchPredictionJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   BatchPredictionJobName name =
    *       BatchPredictionJobName.of("[PROJECT]", "[LOCATION]", "[BATCH_PREDICTION_JOB]");
@@ -2126,6 +2279,8 @@ public final BatchPredictionJob getBatchPredictionJob(BatchPredictionJobName nam
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name =
    *       BatchPredictionJobName.of("[PROJECT]", "[LOCATION]", "[BATCH_PREDICTION_JOB]").toString();
@@ -2150,6 +2305,8 @@ public final BatchPredictionJob getBatchPredictionJob(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   GetBatchPredictionJobRequest request =
    *       GetBatchPredictionJobRequest.newBuilder()
@@ -2175,6 +2332,8 @@ public final BatchPredictionJob getBatchPredictionJob(GetBatchPredictionJobReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   GetBatchPredictionJobRequest request =
    *       GetBatchPredictionJobRequest.newBuilder()
@@ -2201,6 +2360,8 @@ public final BatchPredictionJob getBatchPredictionJob(GetBatchPredictionJobReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (BatchPredictionJob element :
@@ -2229,6 +2390,8 @@ public final ListBatchPredictionJobsPagedResponse listBatchPredictionJobs(Locati
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (BatchPredictionJob element :
@@ -2255,6 +2418,8 @@ public final ListBatchPredictionJobsPagedResponse listBatchPredictionJobs(String
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ListBatchPredictionJobsRequest request =
    *       ListBatchPredictionJobsRequest.newBuilder()
@@ -2286,6 +2451,8 @@ public final ListBatchPredictionJobsPagedResponse listBatchPredictionJobs(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ListBatchPredictionJobsRequest request =
    *       ListBatchPredictionJobsRequest.newBuilder()
@@ -2316,6 +2483,8 @@ public final ListBatchPredictionJobsPagedResponse listBatchPredictionJobs(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ListBatchPredictionJobsRequest request =
    *       ListBatchPredictionJobsRequest.newBuilder()
@@ -2328,7 +2497,7 @@ public final ListBatchPredictionJobsPagedResponse listBatchPredictionJobs(
    *   while (true) {
    *     ListBatchPredictionJobsResponse response =
    *         jobServiceClient.listBatchPredictionJobsCallable().call(request);
-   *     for (BatchPredictionJob element : response.getResponsesList()) {
+   *     for (BatchPredictionJob element : response.getBatchPredictionJobsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -2353,6 +2522,8 @@ public final ListBatchPredictionJobsPagedResponse listBatchPredictionJobs(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   BatchPredictionJobName name =
    *       BatchPredictionJobName.of("[PROJECT]", "[LOCATION]", "[BATCH_PREDICTION_JOB]");
@@ -2380,6 +2551,8 @@ public final OperationFuture deleteBatchPredicti
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name =
    *       BatchPredictionJobName.of("[PROJECT]", "[LOCATION]", "[BATCH_PREDICTION_JOB]").toString();
@@ -2405,6 +2578,8 @@ public final OperationFuture deleteBatchPredicti
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DeleteBatchPredictionJobRequest request =
    *       DeleteBatchPredictionJobRequest.newBuilder()
@@ -2431,6 +2606,8 @@ public final OperationFuture deleteBatchPredicti
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DeleteBatchPredictionJobRequest request =
    *       DeleteBatchPredictionJobRequest.newBuilder()
@@ -2457,6 +2634,8 @@ public final OperationFuture deleteBatchPredicti
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DeleteBatchPredictionJobRequest request =
    *       DeleteBatchPredictionJobRequest.newBuilder()
@@ -2492,6 +2671,8 @@ public final OperationFuture deleteBatchPredicti
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   BatchPredictionJobName name =
    *       BatchPredictionJobName.of("[PROJECT]", "[LOCATION]", "[BATCH_PREDICTION_JOB]");
@@ -2527,6 +2708,8 @@ public final void cancelBatchPredictionJob(BatchPredictionJobName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name =
    *       BatchPredictionJobName.of("[PROJECT]", "[LOCATION]", "[BATCH_PREDICTION_JOB]").toString();
@@ -2560,6 +2743,8 @@ public final void cancelBatchPredictionJob(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CancelBatchPredictionJobRequest request =
    *       CancelBatchPredictionJobRequest.newBuilder()
@@ -2594,6 +2779,8 @@ public final void cancelBatchPredictionJob(CancelBatchPredictionJobRequest reque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CancelBatchPredictionJobRequest request =
    *       CancelBatchPredictionJobRequest.newBuilder()
@@ -2620,6 +2807,8 @@ public final void cancelBatchPredictionJob(CancelBatchPredictionJobRequest reque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   ModelDeploymentMonitoringJob modelDeploymentMonitoringJob =
@@ -2651,6 +2840,8 @@ public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   ModelDeploymentMonitoringJob modelDeploymentMonitoringJob =
@@ -2682,6 +2873,8 @@ public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CreateModelDeploymentMonitoringJobRequest request =
    *       CreateModelDeploymentMonitoringJobRequest.newBuilder()
@@ -2708,6 +2901,8 @@ public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CreateModelDeploymentMonitoringJobRequest request =
    *       CreateModelDeploymentMonitoringJobRequest.newBuilder()
@@ -2734,6 +2929,8 @@ public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ModelDeploymentMonitoringJobName modelDeploymentMonitoringJob =
    *       ModelDeploymentMonitoringJobName.of(
@@ -2777,6 +2974,8 @@ public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String modelDeploymentMonitoringJob =
    *       ModelDeploymentMonitoringJobName.of(
@@ -2818,6 +3017,8 @@ public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   SearchModelDeploymentMonitoringStatsAnomaliesRequest request =
    *       SearchModelDeploymentMonitoringStatsAnomaliesRequest.newBuilder()
@@ -2859,6 +3060,8 @@ public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   SearchModelDeploymentMonitoringStatsAnomaliesRequest request =
    *       SearchModelDeploymentMonitoringStatsAnomaliesRequest.newBuilder()
@@ -2902,6 +3105,8 @@ public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   SearchModelDeploymentMonitoringStatsAnomaliesRequest request =
    *       SearchModelDeploymentMonitoringStatsAnomaliesRequest.newBuilder()
@@ -2923,7 +3128,7 @@ public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob(
    *   while (true) {
    *     SearchModelDeploymentMonitoringStatsAnomaliesResponse response =
    *         jobServiceClient.searchModelDeploymentMonitoringStatsAnomaliesCallable().call(request);
-   *     for (ModelMonitoringStatsAnomalies element : response.getResponsesList()) {
+   *     for (ModelMonitoringStatsAnomalies element : response.getMonitoringStatsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -2950,6 +3155,8 @@ public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ModelDeploymentMonitoringJobName name =
    *       ModelDeploymentMonitoringJobName.of(
@@ -2979,6 +3186,8 @@ public final ModelDeploymentMonitoringJob getModelDeploymentMonitoringJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name =
    *       ModelDeploymentMonitoringJobName.of(
@@ -3006,6 +3215,8 @@ public final ModelDeploymentMonitoringJob getModelDeploymentMonitoringJob(String
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   GetModelDeploymentMonitoringJobRequest request =
    *       GetModelDeploymentMonitoringJobRequest.newBuilder()
@@ -3034,6 +3245,8 @@ public final ModelDeploymentMonitoringJob getModelDeploymentMonitoringJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   GetModelDeploymentMonitoringJobRequest request =
    *       GetModelDeploymentMonitoringJobRequest.newBuilder()
@@ -3061,6 +3274,8 @@ public final ModelDeploymentMonitoringJob getModelDeploymentMonitoringJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (ModelDeploymentMonitoringJob element :
@@ -3090,6 +3305,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (ModelDeploymentMonitoringJob element :
@@ -3117,6 +3334,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ListModelDeploymentMonitoringJobsRequest request =
    *       ListModelDeploymentMonitoringJobsRequest.newBuilder()
@@ -3148,6 +3367,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ListModelDeploymentMonitoringJobsRequest request =
    *       ListModelDeploymentMonitoringJobsRequest.newBuilder()
@@ -3179,6 +3400,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ListModelDeploymentMonitoringJobsRequest request =
    *       ListModelDeploymentMonitoringJobsRequest.newBuilder()
@@ -3191,7 +3414,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM
    *   while (true) {
    *     ListModelDeploymentMonitoringJobsResponse response =
    *         jobServiceClient.listModelDeploymentMonitoringJobsCallable().call(request);
-   *     for (ModelDeploymentMonitoringJob element : response.getResponsesList()) {
+   *     for (ModelDeploymentMonitoringJob element :
+   *         response.getModelDeploymentMonitoringJobsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -3217,6 +3441,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ModelDeploymentMonitoringJob modelDeploymentMonitoringJob =
    *       ModelDeploymentMonitoringJob.newBuilder().build();
@@ -3268,6 +3494,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   UpdateModelDeploymentMonitoringJobRequest request =
    *       UpdateModelDeploymentMonitoringJobRequest.newBuilder()
@@ -3295,6 +3523,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   UpdateModelDeploymentMonitoringJobRequest request =
    *       UpdateModelDeploymentMonitoringJobRequest.newBuilder()
@@ -3327,6 +3557,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   UpdateModelDeploymentMonitoringJobRequest request =
    *       UpdateModelDeploymentMonitoringJobRequest.newBuilder()
@@ -3352,6 +3584,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ModelDeploymentMonitoringJobName name =
    *       ModelDeploymentMonitoringJobName.of(
@@ -3380,6 +3614,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name =
    *       ModelDeploymentMonitoringJobName.of(
@@ -3407,6 +3643,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DeleteModelDeploymentMonitoringJobRequest request =
    *       DeleteModelDeploymentMonitoringJobRequest.newBuilder()
@@ -3434,6 +3672,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DeleteModelDeploymentMonitoringJobRequest request =
    *       DeleteModelDeploymentMonitoringJobRequest.newBuilder()
@@ -3464,6 +3704,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DeleteModelDeploymentMonitoringJobRequest request =
    *       DeleteModelDeploymentMonitoringJobRequest.newBuilder()
@@ -3494,6 +3736,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ModelDeploymentMonitoringJobName name =
    *       ModelDeploymentMonitoringJobName.of(
@@ -3524,6 +3768,8 @@ public final void pauseModelDeploymentMonitoringJob(ModelDeploymentMonitoringJob
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name =
    *       ModelDeploymentMonitoringJobName.of(
@@ -3553,6 +3799,8 @@ public final void pauseModelDeploymentMonitoringJob(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   PauseModelDeploymentMonitoringJobRequest request =
    *       PauseModelDeploymentMonitoringJobRequest.newBuilder()
@@ -3583,6 +3831,8 @@ public final void pauseModelDeploymentMonitoringJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   PauseModelDeploymentMonitoringJobRequest request =
    *       PauseModelDeploymentMonitoringJobRequest.newBuilder()
@@ -3611,6 +3861,8 @@ public final void pauseModelDeploymentMonitoringJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ModelDeploymentMonitoringJobName name =
    *       ModelDeploymentMonitoringJobName.of(
@@ -3639,6 +3891,8 @@ public final void resumeModelDeploymentMonitoringJob(ModelDeploymentMonitoringJo
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name =
    *       ModelDeploymentMonitoringJobName.of(
@@ -3666,6 +3920,8 @@ public final void resumeModelDeploymentMonitoringJob(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ResumeModelDeploymentMonitoringJobRequest request =
    *       ResumeModelDeploymentMonitoringJobRequest.newBuilder()
@@ -3694,6 +3950,8 @@ public final void resumeModelDeploymentMonitoringJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ResumeModelDeploymentMonitoringJobRequest request =
    *       ResumeModelDeploymentMonitoringJobRequest.newBuilder()
@@ -3714,6 +3972,331 @@ public final void resumeModelDeploymentMonitoringJob(
     return stub.resumeModelDeploymentMonitoringJobCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Lists information about the supported locations for this service.
+   *
+   * 

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : jobServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       jobServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response = jobServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = jobServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = jobServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = jobServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = jobServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = jobServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = jobServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = jobServiceClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       jobServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + @Override public final void close() { stub.close(); @@ -4288,4 +4871,80 @@ protected ListModelDeploymentMonitoringJobsFixedSizeCollection createCollection( return new ListModelDeploymentMonitoringJobsFixedSizeCollection(pages, collectionSize); } } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/JobServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/JobServiceSettings.java index 52e83b447aa2..e7d9af01ae8c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/JobServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/JobServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ import static com.google.cloud.aiplatform.v1.JobServiceClient.ListCustomJobsPagedResponse; import static com.google.cloud.aiplatform.v1.JobServiceClient.ListDataLabelingJobsPagedResponse; import static com.google.cloud.aiplatform.v1.JobServiceClient.ListHyperparameterTuningJobsPagedResponse; +import static com.google.cloud.aiplatform.v1.JobServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1.JobServiceClient.ListModelDeploymentMonitoringJobsPagedResponse; import static com.google.cloud.aiplatform.v1.JobServiceClient.SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse; @@ -36,6 +37,15 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.aiplatform.v1.stub.JobServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -60,6 +70,8 @@ *

For example, to set the total timeout of createCustomJob to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * JobServiceSettings.Builder jobServiceSettingsBuilder = JobServiceSettings.newBuilder();
  * jobServiceSettingsBuilder
  *     .createCustomJobSettings()
@@ -306,6 +318,33 @@ public UnaryCallSettings cancelDataLabeling
         .resumeModelDeploymentMonitoringJobSettings();
   }
 
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return ((JobServiceStubSettings) getStubSettings()).listLocationsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return ((JobServiceStubSettings) getStubSettings()).getLocationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return ((JobServiceStubSettings) getStubSettings()).setIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return ((JobServiceStubSettings) getStubSettings()).getIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return ((JobServiceStubSettings) getStubSettings()).testIamPermissionsSettings();
+  }
+
   public static final JobServiceSettings create(JobServiceStubSettings stub) throws IOException {
     return new JobServiceSettings.Builder(stub.toBuilder()).build();
   }
@@ -642,6 +681,34 @@ public UnaryCallSettings.Builder cancelCustomJobS
       return getStubSettingsBuilder().resumeModelDeploymentMonitoringJobSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return getStubSettingsBuilder().listLocationsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getStubSettingsBuilder().getLocationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return getStubSettingsBuilder().setIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getStubSettingsBuilder().getIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return getStubSettingsBuilder().testIamPermissionsSettings();
+    }
+
     @Override
     public JobServiceSettings build() throws IOException {
       return new JobServiceSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceClient.java
index a541537632f0..e6917b92422b 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -18,7 +18,6 @@
 
 import com.google.api.core.ApiFuture;
 import com.google.api.core.ApiFutures;
-import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
@@ -29,7 +28,16 @@
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1.stub.MetadataServiceStub;
 import com.google.cloud.aiplatform.v1.stub.MetadataServiceStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.OperationsClient;
 import com.google.protobuf.Empty;
@@ -47,6 +55,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
  *   MetadataStoreName name = MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
  *   MetadataStore response = metadataServiceClient.getMetadataStore(name);
@@ -83,6 +93,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * MetadataServiceSettings metadataServiceSettings =
  *     MetadataServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -94,6 +106,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * MetadataServiceSettings metadataServiceSettings =
  *     MetadataServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * MetadataServiceClient metadataServiceClient =
@@ -126,7 +140,6 @@ public static final MetadataServiceClient create(MetadataServiceSettings setting
    * Constructs an instance of MetadataServiceClient, using the given stub for making calls. This is
    * for advanced usage - prefer using create(MetadataServiceSettings).
    */
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public static final MetadataServiceClient create(MetadataServiceStub stub) {
     return new MetadataServiceClient(stub);
   }
@@ -142,7 +155,6 @@ protected MetadataServiceClient(MetadataServiceSettings settings) throws IOExcep
     this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected MetadataServiceClient(MetadataServiceStub stub) {
     this.settings = null;
     this.stub = stub;
@@ -153,7 +165,6 @@ public final MetadataServiceSettings getSettings() {
     return settings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public MetadataServiceStub getStub() {
     return stub;
   }
@@ -173,6 +184,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   MetadataStore metadataStore = MetadataStore.newBuilder().build();
@@ -214,6 +227,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   MetadataStore metadataStore = MetadataStore.newBuilder().build();
@@ -254,6 +269,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   CreateMetadataStoreRequest request =
    *       CreateMetadataStoreRequest.newBuilder()
@@ -280,6 +297,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   CreateMetadataStoreRequest request =
    *       CreateMetadataStoreRequest.newBuilder()
@@ -307,6 +326,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   CreateMetadataStoreRequest request =
    *       CreateMetadataStoreRequest.newBuilder()
@@ -332,6 +353,8 @@ public final UnaryCallable createMetadata
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   MetadataStoreName name = MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
    *   MetadataStore response = metadataServiceClient.getMetadataStore(name);
@@ -355,6 +378,8 @@ public final MetadataStore getMetadataStore(MetadataStoreName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String name = MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
    *   MetadataStore response = metadataServiceClient.getMetadataStore(name);
@@ -377,6 +402,8 @@ public final MetadataStore getMetadataStore(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   GetMetadataStoreRequest request =
    *       GetMetadataStoreRequest.newBuilder()
@@ -401,6 +428,8 @@ public final MetadataStore getMetadataStore(GetMetadataStoreRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   GetMetadataStoreRequest request =
    *       GetMetadataStoreRequest.newBuilder()
@@ -425,6 +454,8 @@ public final UnaryCallable getMetadataSt
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (MetadataStore element : metadataServiceClient.listMetadataStores(parent).iterateAll()) {
@@ -452,6 +483,8 @@ public final ListMetadataStoresPagedResponse listMetadataStores(LocationName par
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (MetadataStore element : metadataServiceClient.listMetadataStores(parent).iterateAll()) {
@@ -477,6 +510,8 @@ public final ListMetadataStoresPagedResponse listMetadataStores(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ListMetadataStoresRequest request =
    *       ListMetadataStoresRequest.newBuilder()
@@ -505,6 +540,8 @@ public final ListMetadataStoresPagedResponse listMetadataStores(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ListMetadataStoresRequest request =
    *       ListMetadataStoresRequest.newBuilder()
@@ -533,6 +570,8 @@ public final ListMetadataStoresPagedResponse listMetadataStores(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ListMetadataStoresRequest request =
    *       ListMetadataStoresRequest.newBuilder()
@@ -543,7 +582,7 @@ public final ListMetadataStoresPagedResponse listMetadataStores(
    *   while (true) {
    *     ListMetadataStoresResponse response =
    *         metadataServiceClient.listMetadataStoresCallable().call(request);
-   *     for (MetadataStore element : response.getResponsesList()) {
+   *     for (MetadataStore element : response.getMetadataStoresList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -569,6 +608,8 @@ public final ListMetadataStoresPagedResponse listMetadataStores(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   MetadataStoreName name = MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
    *   metadataServiceClient.deleteMetadataStoreAsync(name).get();
@@ -596,6 +637,8 @@ public final ListMetadataStoresPagedResponse listMetadataStores(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String name = MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
    *   metadataServiceClient.deleteMetadataStoreAsync(name).get();
@@ -621,6 +664,8 @@ public final ListMetadataStoresPagedResponse listMetadataStores(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   DeleteMetadataStoreRequest request =
    *       DeleteMetadataStoreRequest.newBuilder()
@@ -648,6 +693,8 @@ public final ListMetadataStoresPagedResponse listMetadataStores(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   DeleteMetadataStoreRequest request =
    *       DeleteMetadataStoreRequest.newBuilder()
@@ -676,6 +723,8 @@ public final ListMetadataStoresPagedResponse listMetadataStores(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   DeleteMetadataStoreRequest request =
    *       DeleteMetadataStoreRequest.newBuilder()
@@ -701,6 +750,8 @@ public final UnaryCallable deleteMetadata
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   MetadataStoreName parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
@@ -739,6 +790,8 @@ public final Artifact createArtifact(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
@@ -776,6 +829,8 @@ public final Artifact createArtifact(String parent, Artifact artifact, String ar
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   CreateArtifactRequest request =
    *       CreateArtifactRequest.newBuilder()
@@ -802,6 +857,8 @@ public final Artifact createArtifact(CreateArtifactRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   CreateArtifactRequest request =
    *       CreateArtifactRequest.newBuilder()
@@ -828,6 +885,8 @@ public final UnaryCallable createArtifactCallab
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ArtifactName name =
    *       ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]");
@@ -852,6 +911,8 @@ public final Artifact getArtifact(ArtifactName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String name =
    *       ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]").toString();
@@ -875,6 +936,8 @@ public final Artifact getArtifact(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   GetArtifactRequest request =
    *       GetArtifactRequest.newBuilder()
@@ -900,6 +963,8 @@ public final Artifact getArtifact(GetArtifactRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   GetArtifactRequest request =
    *       GetArtifactRequest.newBuilder()
@@ -924,6 +989,8 @@ public final UnaryCallable getArtifactCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   MetadataStoreName parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
@@ -952,6 +1019,8 @@ public final ListArtifactsPagedResponse listArtifacts(MetadataStoreName parent)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
@@ -977,6 +1046,8 @@ public final ListArtifactsPagedResponse listArtifacts(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ListArtifactsRequest request =
    *       ListArtifactsRequest.newBuilder()
@@ -1006,6 +1077,8 @@ public final ListArtifactsPagedResponse listArtifacts(ListArtifactsRequest reque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ListArtifactsRequest request =
    *       ListArtifactsRequest.newBuilder()
@@ -1036,6 +1109,8 @@ public final ListArtifactsPagedResponse listArtifacts(ListArtifactsRequest reque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ListArtifactsRequest request =
    *       ListArtifactsRequest.newBuilder()
@@ -1048,7 +1123,7 @@ public final ListArtifactsPagedResponse listArtifacts(ListArtifactsRequest reque
    *   while (true) {
    *     ListArtifactsResponse response =
    *         metadataServiceClient.listArtifactsCallable().call(request);
-   *     for (Artifact element : response.getResponsesList()) {
+   *     for (Artifact element : response.getArtifactsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -1072,6 +1147,8 @@ public final UnaryCallable listArti
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   Artifact artifact = Artifact.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1100,6 +1177,8 @@ public final Artifact updateArtifact(Artifact artifact, FieldMask updateMask) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   UpdateArtifactRequest request =
    *       UpdateArtifactRequest.newBuilder()
@@ -1125,6 +1204,8 @@ public final Artifact updateArtifact(UpdateArtifactRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   UpdateArtifactRequest request =
    *       UpdateArtifactRequest.newBuilder()
@@ -1150,6 +1231,8 @@ public final UnaryCallable updateArtifactCallab
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ArtifactName name =
    *       ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]");
@@ -1175,6 +1258,8 @@ public final OperationFuture deleteArtifactAsync
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String name =
    *       ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]").toString();
@@ -1198,6 +1283,8 @@ public final OperationFuture deleteArtifactAsync
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   DeleteArtifactRequest request =
    *       DeleteArtifactRequest.newBuilder()
@@ -1225,6 +1312,8 @@ public final OperationFuture deleteArtifactAsync
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   DeleteArtifactRequest request =
    *       DeleteArtifactRequest.newBuilder()
@@ -1252,6 +1341,8 @@ public final OperationFuture deleteArtifactAsync
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   DeleteArtifactRequest request =
    *       DeleteArtifactRequest.newBuilder()
@@ -1278,6 +1369,8 @@ public final UnaryCallable deleteArtifactCalla
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   MetadataStoreName parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
@@ -1305,6 +1398,8 @@ public final OperationFuture pur
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
@@ -1329,6 +1424,8 @@ public final OperationFuture pur
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   PurgeArtifactsRequest request =
    *       PurgeArtifactsRequest.newBuilder()
@@ -1356,6 +1453,8 @@ public final OperationFuture pur
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   PurgeArtifactsRequest request =
    *       PurgeArtifactsRequest.newBuilder()
@@ -1384,6 +1483,8 @@ public final OperationFuture pur
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   PurgeArtifactsRequest request =
    *       PurgeArtifactsRequest.newBuilder()
@@ -1410,6 +1511,8 @@ public final UnaryCallable purgeArtifactsCalla
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   MetadataStoreName parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
@@ -1447,6 +1550,8 @@ public final Context createContext(MetadataStoreName parent, Context context, St
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
@@ -1484,6 +1589,8 @@ public final Context createContext(String parent, Context context, String contex
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   CreateContextRequest request =
    *       CreateContextRequest.newBuilder()
@@ -1510,6 +1617,8 @@ public final Context createContext(CreateContextRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   CreateContextRequest request =
    *       CreateContextRequest.newBuilder()
@@ -1535,6 +1644,8 @@ public final UnaryCallable createContextCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ContextName name = ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]");
    *   Context response = metadataServiceClient.getContext(name);
@@ -1558,6 +1669,8 @@ public final Context getContext(ContextName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String name =
    *       ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]").toString();
@@ -1581,6 +1694,8 @@ public final Context getContext(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   GetContextRequest request =
    *       GetContextRequest.newBuilder()
@@ -1606,6 +1721,8 @@ public final Context getContext(GetContextRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   GetContextRequest request =
    *       GetContextRequest.newBuilder()
@@ -1630,6 +1747,8 @@ public final UnaryCallable getContextCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   MetadataStoreName parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
@@ -1658,6 +1777,8 @@ public final ListContextsPagedResponse listContexts(MetadataStoreName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
@@ -1683,6 +1804,8 @@ public final ListContextsPagedResponse listContexts(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ListContextsRequest request =
    *       ListContextsRequest.newBuilder()
@@ -1712,6 +1835,8 @@ public final ListContextsPagedResponse listContexts(ListContextsRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ListContextsRequest request =
    *       ListContextsRequest.newBuilder()
@@ -1742,6 +1867,8 @@ public final ListContextsPagedResponse listContexts(ListContextsRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ListContextsRequest request =
    *       ListContextsRequest.newBuilder()
@@ -1753,7 +1880,7 @@ public final ListContextsPagedResponse listContexts(ListContextsRequest request)
    *           .build();
    *   while (true) {
    *     ListContextsResponse response = metadataServiceClient.listContextsCallable().call(request);
-   *     for (Context element : response.getResponsesList()) {
+   *     for (Context element : response.getContextsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -1777,6 +1904,8 @@ public final UnaryCallable listContex
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   Context context = Context.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1805,6 +1934,8 @@ public final Context updateContext(Context context, FieldMask updateMask) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   UpdateContextRequest request =
    *       UpdateContextRequest.newBuilder()
@@ -1830,6 +1961,8 @@ public final Context updateContext(UpdateContextRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   UpdateContextRequest request =
    *       UpdateContextRequest.newBuilder()
@@ -1854,6 +1987,8 @@ public final UnaryCallable updateContextCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ContextName name = ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]");
    *   metadataServiceClient.deleteContextAsync(name).get();
@@ -1878,6 +2013,8 @@ public final OperationFuture deleteContextAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String name =
    *       ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]").toString();
@@ -1901,6 +2038,8 @@ public final OperationFuture deleteContextAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   DeleteContextRequest request =
    *       DeleteContextRequest.newBuilder()
@@ -1929,6 +2068,8 @@ public final OperationFuture deleteContextAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   DeleteContextRequest request =
    *       DeleteContextRequest.newBuilder()
@@ -1957,6 +2098,8 @@ public final OperationFuture deleteContextAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   DeleteContextRequest request =
    *       DeleteContextRequest.newBuilder()
@@ -1984,6 +2127,8 @@ public final UnaryCallable deleteContextCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   MetadataStoreName parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
@@ -2011,6 +2156,8 @@ public final OperationFuture purge
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
@@ -2035,6 +2182,8 @@ public final OperationFuture purge
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   PurgeContextsRequest request =
    *       PurgeContextsRequest.newBuilder()
@@ -2062,6 +2211,8 @@ public final OperationFuture purge
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   PurgeContextsRequest request =
    *       PurgeContextsRequest.newBuilder()
@@ -2089,6 +2240,8 @@ public final OperationFuture purge
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   PurgeContextsRequest request =
    *       PurgeContextsRequest.newBuilder()
@@ -2116,6 +2269,8 @@ public final UnaryCallable purgeContextsCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ContextName context =
    *       ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]");
@@ -2156,6 +2311,8 @@ public final AddContextArtifactsAndExecutionsResponse addContextArtifactsAndExec
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String context =
    *       ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]").toString();
@@ -2196,6 +2353,8 @@ public final AddContextArtifactsAndExecutionsResponse addContextArtifactsAndExec
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   AddContextArtifactsAndExecutionsRequest request =
    *       AddContextArtifactsAndExecutionsRequest.newBuilder()
@@ -2226,6 +2385,8 @@ public final AddContextArtifactsAndExecutionsResponse addContextArtifactsAndExec
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   AddContextArtifactsAndExecutionsRequest request =
    *       AddContextArtifactsAndExecutionsRequest.newBuilder()
@@ -2258,6 +2419,8 @@ public final AddContextArtifactsAndExecutionsResponse addContextArtifactsAndExec
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ContextName context =
    *       ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]");
@@ -2293,6 +2456,8 @@ public final AddContextChildrenResponse addContextChildren(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String context =
    *       ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]").toString();
@@ -2328,6 +2493,8 @@ public final AddContextChildrenResponse addContextChildren(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   AddContextChildrenRequest request =
    *       AddContextChildrenRequest.newBuilder()
@@ -2357,6 +2524,8 @@ public final AddContextChildrenResponse addContextChildren(AddContextChildrenReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   AddContextChildrenRequest request =
    *       AddContextChildrenRequest.newBuilder()
@@ -2385,6 +2554,8 @@ public final AddContextChildrenResponse addContextChildren(AddContextChildrenReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ContextName context =
    *       ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]");
@@ -2415,6 +2586,8 @@ public final LineageSubgraph queryContextLineageSubgraph(ContextName context) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String context =
    *       ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]").toString();
@@ -2443,6 +2616,8 @@ public final LineageSubgraph queryContextLineageSubgraph(String context) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   QueryContextLineageSubgraphRequest request =
    *       QueryContextLineageSubgraphRequest.newBuilder()
@@ -2470,6 +2645,8 @@ public final LineageSubgraph queryContextLineageSubgraph(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   QueryContextLineageSubgraphRequest request =
    *       QueryContextLineageSubgraphRequest.newBuilder()
@@ -2496,6 +2673,8 @@ public final LineageSubgraph queryContextLineageSubgraph(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   MetadataStoreName parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
@@ -2534,6 +2713,8 @@ public final Execution createExecution(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
@@ -2571,6 +2752,8 @@ public final Execution createExecution(String parent, Execution execution, Strin
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   CreateExecutionRequest request =
    *       CreateExecutionRequest.newBuilder()
@@ -2597,6 +2780,8 @@ public final Execution createExecution(CreateExecutionRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   CreateExecutionRequest request =
    *       CreateExecutionRequest.newBuilder()
@@ -2623,6 +2808,8 @@ public final UnaryCallable createExecutionCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ExecutionName name =
    *       ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]");
@@ -2647,6 +2834,8 @@ public final Execution getExecution(ExecutionName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String name =
    *       ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]").toString();
@@ -2670,6 +2859,8 @@ public final Execution getExecution(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   GetExecutionRequest request =
    *       GetExecutionRequest.newBuilder()
@@ -2695,6 +2886,8 @@ public final Execution getExecution(GetExecutionRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   GetExecutionRequest request =
    *       GetExecutionRequest.newBuilder()
@@ -2720,6 +2913,8 @@ public final UnaryCallable getExecutionCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   MetadataStoreName parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
@@ -2748,6 +2943,8 @@ public final ListExecutionsPagedResponse listExecutions(MetadataStoreName parent
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
@@ -2773,6 +2970,8 @@ public final ListExecutionsPagedResponse listExecutions(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ListExecutionsRequest request =
    *       ListExecutionsRequest.newBuilder()
@@ -2802,6 +3001,8 @@ public final ListExecutionsPagedResponse listExecutions(ListExecutionsRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ListExecutionsRequest request =
    *       ListExecutionsRequest.newBuilder()
@@ -2832,6 +3033,8 @@ public final ListExecutionsPagedResponse listExecutions(ListExecutionsRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ListExecutionsRequest request =
    *       ListExecutionsRequest.newBuilder()
@@ -2844,7 +3047,7 @@ public final ListExecutionsPagedResponse listExecutions(ListExecutionsRequest re
    *   while (true) {
    *     ListExecutionsResponse response =
    *         metadataServiceClient.listExecutionsCallable().call(request);
-   *     for (Execution element : response.getResponsesList()) {
+   *     for (Execution element : response.getExecutionsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -2869,6 +3072,8 @@ public final ListExecutionsPagedResponse listExecutions(ListExecutionsRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   Execution execution = Execution.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -2900,6 +3105,8 @@ public final Execution updateExecution(Execution execution, FieldMask updateMask
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   UpdateExecutionRequest request =
    *       UpdateExecutionRequest.newBuilder()
@@ -2925,6 +3132,8 @@ public final Execution updateExecution(UpdateExecutionRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   UpdateExecutionRequest request =
    *       UpdateExecutionRequest.newBuilder()
@@ -2950,6 +3159,8 @@ public final UnaryCallable updateExecutionCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ExecutionName name =
    *       ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]");
@@ -2975,6 +3186,8 @@ public final OperationFuture deleteExecutionAsyn
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String name =
    *       ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]").toString();
@@ -2998,6 +3211,8 @@ public final OperationFuture deleteExecutionAsyn
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   DeleteExecutionRequest request =
    *       DeleteExecutionRequest.newBuilder()
@@ -3025,6 +3240,8 @@ public final OperationFuture deleteExecutionAsyn
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   DeleteExecutionRequest request =
    *       DeleteExecutionRequest.newBuilder()
@@ -3052,6 +3269,8 @@ public final OperationFuture deleteExecutionAsyn
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   DeleteExecutionRequest request =
    *       DeleteExecutionRequest.newBuilder()
@@ -3078,6 +3297,8 @@ public final UnaryCallable deleteExecutionCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   MetadataStoreName parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
@@ -3105,6 +3326,8 @@ public final UnaryCallable deleteExecutionCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
@@ -3129,6 +3352,8 @@ public final UnaryCallable deleteExecutionCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   PurgeExecutionsRequest request =
    *       PurgeExecutionsRequest.newBuilder()
@@ -3156,6 +3381,8 @@ public final UnaryCallable deleteExecutionCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   PurgeExecutionsRequest request =
    *       PurgeExecutionsRequest.newBuilder()
@@ -3184,6 +3411,8 @@ public final UnaryCallable deleteExecutionCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   PurgeExecutionsRequest request =
    *       PurgeExecutionsRequest.newBuilder()
@@ -3212,6 +3441,8 @@ public final UnaryCallable purgeExecutionsCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ExecutionName execution =
    *       ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]");
@@ -3246,6 +3477,8 @@ public final AddExecutionEventsResponse addExecutionEvents(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String execution =
    *       ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]").toString();
@@ -3276,6 +3509,8 @@ public final AddExecutionEventsResponse addExecutionEvents(String execution, Lis
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   AddExecutionEventsRequest request =
    *       AddExecutionEventsRequest.newBuilder()
@@ -3304,6 +3539,8 @@ public final AddExecutionEventsResponse addExecutionEvents(AddExecutionEventsReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   AddExecutionEventsRequest request =
    *       AddExecutionEventsRequest.newBuilder()
@@ -3332,6 +3569,8 @@ public final AddExecutionEventsResponse addExecutionEvents(AddExecutionEventsReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ExecutionName execution =
    *       ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]");
@@ -3360,6 +3599,8 @@ public final LineageSubgraph queryExecutionInputsAndOutputs(ExecutionName execut
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String execution =
    *       ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]").toString();
@@ -3386,6 +3627,8 @@ public final LineageSubgraph queryExecutionInputsAndOutputs(String execution) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   QueryExecutionInputsAndOutputsRequest request =
    *       QueryExecutionInputsAndOutputsRequest.newBuilder()
@@ -3413,6 +3656,8 @@ public final LineageSubgraph queryExecutionInputsAndOutputs(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   QueryExecutionInputsAndOutputsRequest request =
    *       QueryExecutionInputsAndOutputsRequest.newBuilder()
@@ -3439,6 +3684,8 @@ public final LineageSubgraph queryExecutionInputsAndOutputs(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   MetadataStoreName parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
@@ -3480,6 +3727,8 @@ public final MetadataSchema createMetadataSchema(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
@@ -3521,6 +3770,8 @@ public final MetadataSchema createMetadataSchema(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   CreateMetadataSchemaRequest request =
    *       CreateMetadataSchemaRequest.newBuilder()
@@ -3547,6 +3798,8 @@ public final MetadataSchema createMetadataSchema(CreateMetadataSchemaRequest req
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   CreateMetadataSchemaRequest request =
    *       CreateMetadataSchemaRequest.newBuilder()
@@ -3574,6 +3827,8 @@ public final MetadataSchema createMetadataSchema(CreateMetadataSchemaRequest req
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   MetadataSchemaName name =
    *       MetadataSchemaName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[METADATA_SCHEMA]");
@@ -3600,6 +3855,8 @@ public final MetadataSchema getMetadataSchema(MetadataSchemaName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String name =
    *       MetadataSchemaName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[METADATA_SCHEMA]")
@@ -3624,6 +3881,8 @@ public final MetadataSchema getMetadataSchema(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   GetMetadataSchemaRequest request =
    *       GetMetadataSchemaRequest.newBuilder()
@@ -3650,6 +3909,8 @@ public final MetadataSchema getMetadataSchema(GetMetadataSchemaRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   GetMetadataSchemaRequest request =
    *       GetMetadataSchemaRequest.newBuilder()
@@ -3676,6 +3937,8 @@ public final UnaryCallable getMetadata
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   MetadataStoreName parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
@@ -3705,6 +3968,8 @@ public final ListMetadataSchemasPagedResponse listMetadataSchemas(MetadataStoreN
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
@@ -3732,6 +3997,8 @@ public final ListMetadataSchemasPagedResponse listMetadataSchemas(String parent)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ListMetadataSchemasRequest request =
    *       ListMetadataSchemasRequest.newBuilder()
@@ -3763,6 +4030,8 @@ public final ListMetadataSchemasPagedResponse listMetadataSchemas(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ListMetadataSchemasRequest request =
    *       ListMetadataSchemasRequest.newBuilder()
@@ -3793,6 +4062,8 @@ public final ListMetadataSchemasPagedResponse listMetadataSchemas(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ListMetadataSchemasRequest request =
    *       ListMetadataSchemasRequest.newBuilder()
@@ -3805,7 +4076,7 @@ public final ListMetadataSchemasPagedResponse listMetadataSchemas(
    *   while (true) {
    *     ListMetadataSchemasResponse response =
    *         metadataServiceClient.listMetadataSchemasCallable().call(request);
-   *     for (MetadataSchema element : response.getResponsesList()) {
+   *     for (MetadataSchema element : response.getMetadataSchemasList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -3831,6 +4102,8 @@ public final ListMetadataSchemasPagedResponse listMetadataSchemas(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ArtifactName artifact =
    *       ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]");
@@ -3861,6 +4134,8 @@ public final LineageSubgraph queryArtifactLineageSubgraph(ArtifactName artifact)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String artifact =
    *       ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]").toString();
@@ -3889,6 +4164,8 @@ public final LineageSubgraph queryArtifactLineageSubgraph(String artifact) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   QueryArtifactLineageSubgraphRequest request =
    *       QueryArtifactLineageSubgraphRequest.newBuilder()
@@ -3918,6 +4195,8 @@ public final LineageSubgraph queryArtifactLineageSubgraph(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   QueryArtifactLineageSubgraphRequest request =
    *       QueryArtifactLineageSubgraphRequest.newBuilder()
@@ -3939,6 +4218,332 @@ public final LineageSubgraph queryArtifactLineageSubgraph(
     return stub.queryArtifactLineageSubgraphCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Lists information about the supported locations for this service.
+   *
+   * 

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : metadataServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       metadataServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         metadataServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = metadataServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = metadataServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = metadataServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = metadataServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = metadataServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = metadataServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = metadataServiceClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       metadataServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + @Override public final void close() { stub.close(); @@ -4359,4 +4964,80 @@ protected ListMetadataSchemasFixedSizeCollection createCollection( return new ListMetadataSchemasFixedSizeCollection(pages, collectionSize); } } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceSettings.java index 2affebef9a4a..b43be6b32b7a 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MetadataServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,6 +19,7 @@ import static com.google.cloud.aiplatform.v1.MetadataServiceClient.ListArtifactsPagedResponse; import static com.google.cloud.aiplatform.v1.MetadataServiceClient.ListContextsPagedResponse; import static com.google.cloud.aiplatform.v1.MetadataServiceClient.ListExecutionsPagedResponse; +import static com.google.cloud.aiplatform.v1.MetadataServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1.MetadataServiceClient.ListMetadataSchemasPagedResponse; import static com.google.cloud.aiplatform.v1.MetadataServiceClient.ListMetadataStoresPagedResponse; @@ -35,6 +36,15 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.aiplatform.v1.stub.MetadataServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -59,6 +69,8 @@ *

For example, to set the total timeout of getMetadataStore to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * MetadataServiceSettings.Builder metadataServiceSettingsBuilder =
  *     MetadataServiceSettings.newBuilder();
  * metadataServiceSettingsBuilder
@@ -301,6 +313,33 @@ public UnaryCallSettings getMetadataSc
     return ((MetadataServiceStubSettings) getStubSettings()).queryArtifactLineageSubgraphSettings();
   }
 
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return ((MetadataServiceStubSettings) getStubSettings()).listLocationsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return ((MetadataServiceStubSettings) getStubSettings()).getLocationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return ((MetadataServiceStubSettings) getStubSettings()).setIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return ((MetadataServiceStubSettings) getStubSettings()).getIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return ((MetadataServiceStubSettings) getStubSettings()).testIamPermissionsSettings();
+  }
+
   public static final MetadataServiceSettings create(MetadataServiceStubSettings stub)
       throws IOException {
     return new MetadataServiceSettings.Builder(stub.toBuilder()).build();
@@ -630,6 +669,34 @@ public UnaryCallSettings.Builder purgeExecuti
       return getStubSettingsBuilder().queryArtifactLineageSubgraphSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return getStubSettingsBuilder().listLocationsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getStubSettingsBuilder().getLocationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return getStubSettingsBuilder().setIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getStubSettingsBuilder().getIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return getStubSettingsBuilder().testIamPermissionsSettings();
+    }
+
     @Override
     public MetadataServiceSettings build() throws IOException {
       return new MetadataServiceSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceClient.java
index bc641fdb9279..187064dfa8ba 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -18,7 +18,6 @@
 
 import com.google.api.core.ApiFuture;
 import com.google.api.core.ApiFutures;
-import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
@@ -29,7 +28,16 @@
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1.stub.MigrationServiceStub;
 import com.google.cloud.aiplatform.v1.stub.MigrationServiceStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.OperationsClient;
 import java.io.IOException;
@@ -46,12 +54,11 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
- *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- *   for (MigratableResource element :
- *       migrationServiceClient.searchMigratableResources(parent).iterateAll()) {
- *     // doThingsWith(element);
- *   }
+ *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ *   Location response = migrationServiceClient.getLocation(request);
  * }
  * }
* @@ -85,6 +92,8 @@ *

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * MigrationServiceSettings migrationServiceSettings =
  *     MigrationServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -96,6 +105,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * MigrationServiceSettings migrationServiceSettings =
  *     MigrationServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * MigrationServiceClient migrationServiceClient =
@@ -128,7 +139,6 @@ public static final MigrationServiceClient create(MigrationServiceSettings setti
    * Constructs an instance of MigrationServiceClient, using the given stub for making calls. This
    * is for advanced usage - prefer using create(MigrationServiceSettings).
    */
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public static final MigrationServiceClient create(MigrationServiceStub stub) {
     return new MigrationServiceClient(stub);
   }
@@ -144,7 +154,6 @@ protected MigrationServiceClient(MigrationServiceSettings settings) throws IOExc
     this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected MigrationServiceClient(MigrationServiceStub stub) {
     this.settings = null;
     this.stub = stub;
@@ -155,7 +164,6 @@ public final MigrationServiceSettings getSettings() {
     return settings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public MigrationServiceStub getStub() {
     return stub;
   }
@@ -176,6 +184,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (MigratableResource element :
@@ -207,6 +217,8 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (MigratableResource element :
@@ -235,6 +247,8 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(St
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
    *   SearchMigratableResourcesRequest request =
    *       SearchMigratableResourcesRequest.newBuilder()
@@ -266,6 +280,8 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
    *   SearchMigratableResourcesRequest request =
    *       SearchMigratableResourcesRequest.newBuilder()
@@ -297,6 +313,8 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
    *   SearchMigratableResourcesRequest request =
    *       SearchMigratableResourcesRequest.newBuilder()
@@ -308,7 +326,7 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
    *   while (true) {
    *     SearchMigratableResourcesResponse response =
    *         migrationServiceClient.searchMigratableResourcesCallable().call(request);
-   *     for (MigratableResource element : response.getResponsesList()) {
+   *     for (MigratableResource element : response.getMigratableResourcesList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -334,6 +352,8 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   List migrateResourceRequests = new ArrayList<>();
@@ -369,6 +389,8 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   List migrateResourceRequests = new ArrayList<>();
@@ -404,6 +426,8 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
    *   BatchMigrateResourcesRequest request =
    *       BatchMigrateResourcesRequest.newBuilder()
@@ -432,6 +456,8 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
    *   BatchMigrateResourcesRequest request =
    *       BatchMigrateResourcesRequest.newBuilder()
@@ -462,6 +488,8 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
    *   BatchMigrateResourcesRequest request =
    *       BatchMigrateResourcesRequest.newBuilder()
@@ -480,6 +508,332 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
     return stub.batchMigrateResourcesCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Lists information about the supported locations for this service.
+   *
+   * 

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : migrationServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       migrationServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         migrationServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = migrationServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = migrationServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = migrationServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = migrationServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = migrationServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = migrationServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = migrationServiceClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       migrationServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + @Override public final void close() { stub.close(); @@ -605,4 +959,80 @@ protected SearchMigratableResourcesFixedSizeCollection createCollection( return new SearchMigratableResourcesFixedSizeCollection(pages, collectionSize); } } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceSettings.java index 7a1ffc10659b..57034dcc11a7 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ package com.google.cloud.aiplatform.v1; +import static com.google.cloud.aiplatform.v1.MigrationServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1.MigrationServiceClient.SearchMigratableResourcesPagedResponse; import com.google.api.core.ApiFunction; @@ -31,6 +32,15 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.aiplatform.v1.stub.MigrationServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import java.io.IOException; import java.util.List; @@ -51,16 +61,18 @@ *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. * - *

For example, to set the total timeout of searchMigratableResources to 30 seconds: + *

For example, to set the total timeout of getLocation to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * MigrationServiceSettings.Builder migrationServiceSettingsBuilder =
  *     MigrationServiceSettings.newBuilder();
  * migrationServiceSettingsBuilder
- *     .searchMigratableResourcesSettings()
+ *     .getLocationSettings()
  *     .setRetrySettings(
  *         migrationServiceSettingsBuilder
- *             .searchMigratableResourcesSettings()
+ *             .getLocationSettings()
  *             .getRetrySettings()
  *             .toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
@@ -96,6 +108,33 @@ public class MigrationServiceSettings extends ClientSettings
+      listLocationsSettings() {
+    return ((MigrationServiceStubSettings) getStubSettings()).listLocationsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return ((MigrationServiceStubSettings) getStubSettings()).getLocationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return ((MigrationServiceStubSettings) getStubSettings()).setIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return ((MigrationServiceStubSettings) getStubSettings()).getIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return ((MigrationServiceStubSettings) getStubSettings()).testIamPermissionsSettings();
+  }
+
   public static final MigrationServiceSettings create(MigrationServiceStubSettings stub)
       throws IOException {
     return new MigrationServiceSettings.Builder(stub.toBuilder()).build();
@@ -217,6 +256,34 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().batchMigrateResourcesOperationSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return getStubSettingsBuilder().listLocationsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getStubSettingsBuilder().getLocationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return getStubSettingsBuilder().setIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getStubSettingsBuilder().getIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return getStubSettingsBuilder().testIamPermissionsSettings();
+    }
+
     @Override
     public MigrationServiceSettings build() throws IOException {
       return new MigrationServiceSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceClient.java
index 9d1cc5a7b49a..5b22fba90d12 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -18,7 +18,6 @@
 
 import com.google.api.core.ApiFuture;
 import com.google.api.core.ApiFutures;
-import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
@@ -29,7 +28,16 @@
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1.stub.ModelServiceStub;
 import com.google.cloud.aiplatform.v1.stub.ModelServiceStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.OperationsClient;
 import com.google.protobuf.Empty;
@@ -47,6 +55,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
  *   ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
  *   Model response = modelServiceClient.getModel(name);
@@ -82,6 +92,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * ModelServiceSettings modelServiceSettings =
  *     ModelServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -92,6 +104,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * ModelServiceSettings modelServiceSettings =
  *     ModelServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * ModelServiceClient modelServiceClient = ModelServiceClient.create(modelServiceSettings);
@@ -122,7 +136,6 @@ public static final ModelServiceClient create(ModelServiceSettings settings) thr
    * Constructs an instance of ModelServiceClient, using the given stub for making calls. This is
    * for advanced usage - prefer using create(ModelServiceSettings).
    */
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public static final ModelServiceClient create(ModelServiceStub stub) {
     return new ModelServiceClient(stub);
   }
@@ -138,7 +151,6 @@ protected ModelServiceClient(ModelServiceSettings settings) throws IOException {
     this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected ModelServiceClient(ModelServiceStub stub) {
     this.settings = null;
     this.stub = stub;
@@ -149,7 +161,6 @@ public final ModelServiceSettings getSettings() {
     return settings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public ModelServiceStub getStub() {
     return stub;
   }
@@ -169,6 +180,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Model model = Model.newBuilder().build();
@@ -198,6 +211,8 @@ public final OperationFuture
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Model model = Model.newBuilder().build();
@@ -224,10 +239,14 @@ public final OperationFuture
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   UploadModelRequest request =
    *       UploadModelRequest.newBuilder()
    *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setParentModel("parentModel998431903")
+   *           .setModelId("modelId1226956324")
    *           .setModel(Model.newBuilder().build())
    *           .build();
    *   UploadModelResponse response = modelServiceClient.uploadModelAsync(request).get();
@@ -249,10 +268,14 @@ public final OperationFuture
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   UploadModelRequest request =
    *       UploadModelRequest.newBuilder()
    *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setParentModel("parentModel998431903")
+   *           .setModelId("modelId1226956324")
    *           .setModel(Model.newBuilder().build())
    *           .build();
    *   OperationFuture future =
@@ -275,10 +298,14 @@ public final OperationFuture
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   UploadModelRequest request =
    *       UploadModelRequest.newBuilder()
    *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setParentModel("parentModel998431903")
+   *           .setModelId("modelId1226956324")
    *           .setModel(Model.newBuilder().build())
    *           .build();
    *   ApiFuture future = modelServiceClient.uploadModelCallable().futureCall(request);
@@ -298,6 +325,8 @@ public final UnaryCallable uploadModelCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
    *   Model response = modelServiceClient.getModel(name);
@@ -306,6 +335,13 @@ public final UnaryCallable uploadModelCallable()
    *
    * @param name Required. The name of the Model resource. Format:
    *     `projects/{project}/locations/{location}/models/{model}`
+   *     

In order to retrieve a specific version of the model, also provide the version ID or + * version alias. Example: + * `projects/{project}/locations/{location}/models/{model}{@literal @}2` or + * `projects/{project}/locations/{location}/models/{model}{@literal @}golden` If no version ID + * or alias is specified, the "default" version will be returned. The "default" version alias + * is created for the first version of the model, and can be moved to other versions later on. + * There will be exactly one default version. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Model getModel(ModelName name) { @@ -321,6 +357,8 @@ public final Model getModel(ModelName name) { *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   String name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString();
    *   Model response = modelServiceClient.getModel(name);
@@ -329,6 +367,13 @@ public final Model getModel(ModelName name) {
    *
    * @param name Required. The name of the Model resource. Format:
    *     `projects/{project}/locations/{location}/models/{model}`
+   *     

In order to retrieve a specific version of the model, also provide the version ID or + * version alias. Example: + * `projects/{project}/locations/{location}/models/{model}{@literal @}2` or + * `projects/{project}/locations/{location}/models/{model}{@literal @}golden` If no version ID + * or alias is specified, the "default" version will be returned. The "default" version alias + * is created for the first version of the model, and can be moved to other versions later on. + * There will be exactly one default version. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Model getModel(String name) { @@ -343,6 +388,8 @@ public final Model getModel(String name) { *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   GetModelRequest request =
    *       GetModelRequest.newBuilder()
@@ -366,6 +413,8 @@ public final Model getModel(GetModelRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   GetModelRequest request =
    *       GetModelRequest.newBuilder()
@@ -388,6 +437,8 @@ public final UnaryCallable getModelCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Model element : modelServiceClient.listModels(parent).iterateAll()) {
@@ -413,6 +464,8 @@ public final ListModelsPagedResponse listModels(LocationName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Model element : modelServiceClient.listModels(parent).iterateAll()) {
@@ -437,6 +490,8 @@ public final ListModelsPagedResponse listModels(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ListModelsRequest request =
    *       ListModelsRequest.newBuilder()
@@ -467,6 +522,8 @@ public final ListModelsPagedResponse listModels(ListModelsRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ListModelsRequest request =
    *       ListModelsRequest.newBuilder()
@@ -496,6 +553,8 @@ public final UnaryCallable listModel
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ListModelsRequest request =
    *       ListModelsRequest.newBuilder()
@@ -508,7 +567,7 @@ public final UnaryCallable listModel
    *           .build();
    *   while (true) {
    *     ListModelsResponse response = modelServiceClient.listModelsCallable().call(request);
-   *     for (Model element : response.getResponsesList()) {
+   *     for (Model element : response.getModelsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -525,6 +584,161 @@ public final UnaryCallable listModelsCall
     return stub.listModelsCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Lists versions of the specified model.
+   *
+   * 

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
+   *   for (Model element : modelServiceClient.listModelVersions(name).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param name Required. The name of the model to list versions for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListModelVersionsPagedResponse listModelVersions(ModelName name) { + ListModelVersionsRequest request = + ListModelVersionsRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return listModelVersions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists versions of the specified model. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   String name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString();
+   *   for (Model element : modelServiceClient.listModelVersions(name).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param name Required. The name of the model to list versions for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListModelVersionsPagedResponse listModelVersions(String name) { + ListModelVersionsRequest request = ListModelVersionsRequest.newBuilder().setName(name).build(); + return listModelVersions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists versions of the specified model. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ListModelVersionsRequest request =
+   *       ListModelVersionsRequest.newBuilder()
+   *           .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   for (Model element : modelServiceClient.listModelVersions(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListModelVersionsPagedResponse listModelVersions(ListModelVersionsRequest request) { + return listModelVersionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists versions of the specified model. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ListModelVersionsRequest request =
+   *       ListModelVersionsRequest.newBuilder()
+   *           .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       modelServiceClient.listModelVersionsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Model element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listModelVersionsPagedCallable() { + return stub.listModelVersionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists versions of the specified model. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ListModelVersionsRequest request =
+   *       ListModelVersionsRequest.newBuilder()
+   *           .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   while (true) {
+   *     ListModelVersionsResponse response =
+   *         modelServiceClient.listModelVersionsCallable().call(request);
+   *     for (Model element : response.getModelsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listModelVersionsCallable() { + return stub.listModelVersionsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a Model. @@ -532,6 +746,8 @@ public final UnaryCallable listModelsCall *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   Model model = Model.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -568,6 +784,8 @@ public final Model updateModel(Model model, FieldMask updateMask) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   UpdateModelRequest request =
    *       UpdateModelRequest.newBuilder()
@@ -592,6 +810,8 @@ public final Model updateModel(UpdateModelRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   UpdateModelRequest request =
    *       UpdateModelRequest.newBuilder()
@@ -619,6 +839,8 @@ public final UnaryCallable updateModelCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
    *   modelServiceClient.deleteModelAsync(name).get();
@@ -646,6 +868,8 @@ public final OperationFuture deleteModelAsync(Mo
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   String name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString();
    *   modelServiceClient.deleteModelAsync(name).get();
@@ -672,6 +896,8 @@ public final OperationFuture deleteModelAsync(St
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   DeleteModelRequest request =
    *       DeleteModelRequest.newBuilder()
@@ -700,6 +926,8 @@ public final OperationFuture deleteModelAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   DeleteModelRequest request =
    *       DeleteModelRequest.newBuilder()
@@ -728,6 +956,8 @@ public final OperationFuture deleteModelAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   DeleteModelRequest request =
    *       DeleteModelRequest.newBuilder()
@@ -745,283 +975,595 @@ public final UnaryCallable deleteModelCallable()
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD.
   /**
-   * Exports a trained, exportable Model to a location specified by the user. A Model is considered
-   * to be exportable if it has at least one [supported export
-   * format][google.cloud.aiplatform.v1.Model.supported_export_formats].
+   * Deletes a Model version.
+   *
+   * 

Model version can only be deleted if there are no [DeployedModels][] created from it. + * Deleting the only version in the Model is not allowed. Use + * [DeleteModel][google.cloud.aiplatform.v1.ModelService.DeleteModel] for deleting the Model + * instead. * *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
-   *   ExportModelRequest.OutputConfig outputConfig =
-   *       ExportModelRequest.OutputConfig.newBuilder().build();
-   *   ExportModelResponse response = modelServiceClient.exportModelAsync(name, outputConfig).get();
+   *   modelServiceClient.deleteModelVersionAsync(name).get();
    * }
    * }
* - * @param name Required. The resource name of the Model to export. - * @param outputConfig Required. The desired output location and configuration. + * @param name Required. The name of the model version to be deleted, with a version ID explicitly + * included. + *

Example: `projects/{project}/locations/{location}/models/{model}{@literal @}1234` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture exportModelAsync( - ModelName name, ExportModelRequest.OutputConfig outputConfig) { - ExportModelRequest request = - ExportModelRequest.newBuilder() + public final OperationFuture deleteModelVersionAsync( + ModelName name) { + DeleteModelVersionRequest request = + DeleteModelVersionRequest.newBuilder() .setName(name == null ? null : name.toString()) - .setOutputConfig(outputConfig) .build(); - return exportModelAsync(request); + return deleteModelVersionAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Exports a trained, exportable Model to a location specified by the user. A Model is considered - * to be exportable if it has at least one [supported export - * format][google.cloud.aiplatform.v1.Model.supported_export_formats]. + * Deletes a Model version. + * + *

Model version can only be deleted if there are no [DeployedModels][] created from it. + * Deleting the only version in the Model is not allowed. Use + * [DeleteModel][google.cloud.aiplatform.v1.ModelService.DeleteModel] for deleting the Model + * instead. * *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   String name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString();
-   *   ExportModelRequest.OutputConfig outputConfig =
-   *       ExportModelRequest.OutputConfig.newBuilder().build();
-   *   ExportModelResponse response = modelServiceClient.exportModelAsync(name, outputConfig).get();
+   *   modelServiceClient.deleteModelVersionAsync(name).get();
    * }
    * }
* - * @param name Required. The resource name of the Model to export. - * @param outputConfig Required. The desired output location and configuration. + * @param name Required. The name of the model version to be deleted, with a version ID explicitly + * included. + *

Example: `projects/{project}/locations/{location}/models/{model}{@literal @}1234` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture exportModelAsync( - String name, ExportModelRequest.OutputConfig outputConfig) { - ExportModelRequest request = - ExportModelRequest.newBuilder().setName(name).setOutputConfig(outputConfig).build(); - return exportModelAsync(request); + public final OperationFuture deleteModelVersionAsync( + String name) { + DeleteModelVersionRequest request = + DeleteModelVersionRequest.newBuilder().setName(name).build(); + return deleteModelVersionAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Exports a trained, exportable Model to a location specified by the user. A Model is considered - * to be exportable if it has at least one [supported export - * format][google.cloud.aiplatform.v1.Model.supported_export_formats]. + * Deletes a Model version. + * + *

Model version can only be deleted if there are no [DeployedModels][] created from it. + * Deleting the only version in the Model is not allowed. Use + * [DeleteModel][google.cloud.aiplatform.v1.ModelService.DeleteModel] for deleting the Model + * instead. * *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
-   *   ExportModelRequest request =
-   *       ExportModelRequest.newBuilder()
+   *   DeleteModelVersionRequest request =
+   *       DeleteModelVersionRequest.newBuilder()
    *           .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
-   *           .setOutputConfig(ExportModelRequest.OutputConfig.newBuilder().build())
    *           .build();
-   *   ExportModelResponse response = modelServiceClient.exportModelAsync(request).get();
+   *   modelServiceClient.deleteModelVersionAsync(request).get();
    * }
    * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture exportModelAsync( - ExportModelRequest request) { - return exportModelOperationCallable().futureCall(request); + public final OperationFuture deleteModelVersionAsync( + DeleteModelVersionRequest request) { + return deleteModelVersionOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Exports a trained, exportable Model to a location specified by the user. A Model is considered - * to be exportable if it has at least one [supported export - * format][google.cloud.aiplatform.v1.Model.supported_export_formats]. + * Deletes a Model version. + * + *

Model version can only be deleted if there are no [DeployedModels][] created from it. + * Deleting the only version in the Model is not allowed. Use + * [DeleteModel][google.cloud.aiplatform.v1.ModelService.DeleteModel] for deleting the Model + * instead. * *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
-   *   ExportModelRequest request =
-   *       ExportModelRequest.newBuilder()
+   *   DeleteModelVersionRequest request =
+   *       DeleteModelVersionRequest.newBuilder()
    *           .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
-   *           .setOutputConfig(ExportModelRequest.OutputConfig.newBuilder().build())
    *           .build();
-   *   OperationFuture future =
-   *       modelServiceClient.exportModelOperationCallable().futureCall(request);
+   *   OperationFuture future =
+   *       modelServiceClient.deleteModelVersionOperationCallable().futureCall(request);
    *   // Do something.
-   *   ExportModelResponse response = future.get();
+   *   future.get();
    * }
    * }
*/ - public final OperationCallable< - ExportModelRequest, ExportModelResponse, ExportModelOperationMetadata> - exportModelOperationCallable() { - return stub.exportModelOperationCallable(); + public final OperationCallable + deleteModelVersionOperationCallable() { + return stub.deleteModelVersionOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Exports a trained, exportable Model to a location specified by the user. A Model is considered - * to be exportable if it has at least one [supported export - * format][google.cloud.aiplatform.v1.Model.supported_export_formats]. + * Deletes a Model version. + * + *

Model version can only be deleted if there are no [DeployedModels][] created from it. + * Deleting the only version in the Model is not allowed. Use + * [DeleteModel][google.cloud.aiplatform.v1.ModelService.DeleteModel] for deleting the Model + * instead. * *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
-   *   ExportModelRequest request =
-   *       ExportModelRequest.newBuilder()
+   *   DeleteModelVersionRequest request =
+   *       DeleteModelVersionRequest.newBuilder()
    *           .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
-   *           .setOutputConfig(ExportModelRequest.OutputConfig.newBuilder().build())
    *           .build();
-   *   ApiFuture future = modelServiceClient.exportModelCallable().futureCall(request);
+   *   ApiFuture future =
+   *       modelServiceClient.deleteModelVersionCallable().futureCall(request);
    *   // Do something.
-   *   Operation response = future.get();
+   *   future.get();
    * }
    * }
*/ - public final UnaryCallable exportModelCallable() { - return stub.exportModelCallable(); + public final UnaryCallable deleteModelVersionCallable() { + return stub.deleteModelVersionCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Imports an externally generated ModelEvaluation. + * Merges a set of aliases for a Model version. * *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
-   *   ModelName parent = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
-   *   ModelEvaluation modelEvaluation = ModelEvaluation.newBuilder().build();
-   *   ModelEvaluation response = modelServiceClient.importModelEvaluation(parent, modelEvaluation);
+   *   ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
+   *   List versionAliases = new ArrayList<>();
+   *   Model response = modelServiceClient.mergeVersionAliases(name, versionAliases);
    * }
    * }
* - * @param parent Required. The name of the parent model resource. Format: - * `projects/{project}/locations/{location}/models/{model}` - * @param modelEvaluation Required. Model evaluation resource to be imported. + * @param name Required. The name of the model version to merge aliases, with a version ID + * explicitly included. + *

Example: `projects/{project}/locations/{location}/models/{model}{@literal @}1234` + * @param versionAliases Required. The set of version aliases to merge. The alias should be at + * most 128 characters, and match `[a-z][a-z0-9-]{0,126}[a-z-0-9]`. Add the `-` prefix to an + * alias means removing that alias from the version. `-` is NOT counted in the 128 characters. + * Example: `-golden` means removing the `golden` alias from the version. + *

There is NO ordering in aliases, which means 1) The aliases returned from GetModel API + * might not have the exactly same order from this MergeVersionAliases API. 2) Adding and + * deleting the same alias in the request is not recommended, and the 2 operations will be + * cancelled out. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ModelEvaluation importModelEvaluation( - ModelName parent, ModelEvaluation modelEvaluation) { - ImportModelEvaluationRequest request = - ImportModelEvaluationRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setModelEvaluation(modelEvaluation) + public final Model mergeVersionAliases(ModelName name, List versionAliases) { + MergeVersionAliasesRequest request = + MergeVersionAliasesRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .addAllVersionAliases(versionAliases) .build(); - return importModelEvaluation(request); + return mergeVersionAliases(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Imports an externally generated ModelEvaluation. + * Merges a set of aliases for a Model version. * *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
-   *   String parent = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString();
-   *   ModelEvaluation modelEvaluation = ModelEvaluation.newBuilder().build();
-   *   ModelEvaluation response = modelServiceClient.importModelEvaluation(parent, modelEvaluation);
+   *   String name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString();
+   *   List versionAliases = new ArrayList<>();
+   *   Model response = modelServiceClient.mergeVersionAliases(name, versionAliases);
    * }
    * }
* - * @param parent Required. The name of the parent model resource. Format: - * `projects/{project}/locations/{location}/models/{model}` - * @param modelEvaluation Required. Model evaluation resource to be imported. + * @param name Required. The name of the model version to merge aliases, with a version ID + * explicitly included. + *

Example: `projects/{project}/locations/{location}/models/{model}{@literal @}1234` + * @param versionAliases Required. The set of version aliases to merge. The alias should be at + * most 128 characters, and match `[a-z][a-z0-9-]{0,126}[a-z-0-9]`. Add the `-` prefix to an + * alias means removing that alias from the version. `-` is NOT counted in the 128 characters. + * Example: `-golden` means removing the `golden` alias from the version. + *

There is NO ordering in aliases, which means 1) The aliases returned from GetModel API + * might not have the exactly same order from this MergeVersionAliases API. 2) Adding and + * deleting the same alias in the request is not recommended, and the 2 operations will be + * cancelled out. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ModelEvaluation importModelEvaluation( - String parent, ModelEvaluation modelEvaluation) { - ImportModelEvaluationRequest request = - ImportModelEvaluationRequest.newBuilder() - .setParent(parent) - .setModelEvaluation(modelEvaluation) + public final Model mergeVersionAliases(String name, List versionAliases) { + MergeVersionAliasesRequest request = + MergeVersionAliasesRequest.newBuilder() + .setName(name) + .addAllVersionAliases(versionAliases) .build(); - return importModelEvaluation(request); + return mergeVersionAliases(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Imports an externally generated ModelEvaluation. + * Merges a set of aliases for a Model version. * *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
-   *   ImportModelEvaluationRequest request =
-   *       ImportModelEvaluationRequest.newBuilder()
-   *           .setParent(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
-   *           .setModelEvaluation(ModelEvaluation.newBuilder().build())
+   *   MergeVersionAliasesRequest request =
+   *       MergeVersionAliasesRequest.newBuilder()
+   *           .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+   *           .addAllVersionAliases(new ArrayList())
    *           .build();
-   *   ModelEvaluation response = modelServiceClient.importModelEvaluation(request);
+   *   Model response = modelServiceClient.mergeVersionAliases(request);
    * }
    * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ModelEvaluation importModelEvaluation(ImportModelEvaluationRequest request) { - return importModelEvaluationCallable().call(request); + public final Model mergeVersionAliases(MergeVersionAliasesRequest request) { + return mergeVersionAliasesCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Imports an externally generated ModelEvaluation. + * Merges a set of aliases for a Model version. * *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
-   *   ImportModelEvaluationRequest request =
-   *       ImportModelEvaluationRequest.newBuilder()
-   *           .setParent(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
-   *           .setModelEvaluation(ModelEvaluation.newBuilder().build())
+   *   MergeVersionAliasesRequest request =
+   *       MergeVersionAliasesRequest.newBuilder()
+   *           .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+   *           .addAllVersionAliases(new ArrayList())
    *           .build();
-   *   ApiFuture future =
-   *       modelServiceClient.importModelEvaluationCallable().futureCall(request);
+   *   ApiFuture future =
+   *       modelServiceClient.mergeVersionAliasesCallable().futureCall(request);
    *   // Do something.
-   *   ModelEvaluation response = future.get();
+   *   Model response = future.get();
    * }
    * }
*/ - public final UnaryCallable - importModelEvaluationCallable() { - return stub.importModelEvaluationCallable(); + public final UnaryCallable mergeVersionAliasesCallable() { + return stub.mergeVersionAliasesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a ModelEvaluation. + * Exports a trained, exportable Model to a location specified by the user. A Model is considered + * to be exportable if it has at least one [supported export + * format][google.cloud.aiplatform.v1.Model.supported_export_formats]. * *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
-   *   ModelEvaluationName name =
-   *       ModelEvaluationName.of("[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]");
-   *   ModelEvaluation response = modelServiceClient.getModelEvaluation(name);
+   *   ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
+   *   ExportModelRequest.OutputConfig outputConfig =
+   *       ExportModelRequest.OutputConfig.newBuilder().build();
+   *   ExportModelResponse response = modelServiceClient.exportModelAsync(name, outputConfig).get();
    * }
    * }
* - * @param name Required. The name of the ModelEvaluation resource. Format: - * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + * @param name Required. The resource name of the Model to export. The resource name may contain + * version id or version alias to specify the version, if no version is specified, the default + * version will be exported. + * @param outputConfig Required. The desired output location and configuration. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ModelEvaluation getModelEvaluation(ModelEvaluationName name) { - GetModelEvaluationRequest request = - GetModelEvaluationRequest.newBuilder() + public final OperationFuture exportModelAsync( + ModelName name, ExportModelRequest.OutputConfig outputConfig) { + ExportModelRequest request = + ExportModelRequest.newBuilder() .setName(name == null ? null : name.toString()) + .setOutputConfig(outputConfig) .build(); - return getModelEvaluation(request); + return exportModelAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a ModelEvaluation. + * Exports a trained, exportable Model to a location specified by the user. A Model is considered + * to be exportable if it has at least one [supported export + * format][google.cloud.aiplatform.v1.Model.supported_export_formats]. * *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   String name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString();
+   *   ExportModelRequest.OutputConfig outputConfig =
+   *       ExportModelRequest.OutputConfig.newBuilder().build();
+   *   ExportModelResponse response = modelServiceClient.exportModelAsync(name, outputConfig).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the Model to export. The resource name may contain + * version id or version alias to specify the version, if no version is specified, the default + * version will be exported. + * @param outputConfig Required. The desired output location and configuration. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture exportModelAsync( + String name, ExportModelRequest.OutputConfig outputConfig) { + ExportModelRequest request = + ExportModelRequest.newBuilder().setName(name).setOutputConfig(outputConfig).build(); + return exportModelAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports a trained, exportable Model to a location specified by the user. A Model is considered + * to be exportable if it has at least one [supported export + * format][google.cloud.aiplatform.v1.Model.supported_export_formats]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ExportModelRequest request =
+   *       ExportModelRequest.newBuilder()
+   *           .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+   *           .setOutputConfig(ExportModelRequest.OutputConfig.newBuilder().build())
+   *           .build();
+   *   ExportModelResponse response = modelServiceClient.exportModelAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture exportModelAsync( + ExportModelRequest request) { + return exportModelOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports a trained, exportable Model to a location specified by the user. A Model is considered + * to be exportable if it has at least one [supported export + * format][google.cloud.aiplatform.v1.Model.supported_export_formats]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ExportModelRequest request =
+   *       ExportModelRequest.newBuilder()
+   *           .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+   *           .setOutputConfig(ExportModelRequest.OutputConfig.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       modelServiceClient.exportModelOperationCallable().futureCall(request);
+   *   // Do something.
+   *   ExportModelResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + ExportModelRequest, ExportModelResponse, ExportModelOperationMetadata> + exportModelOperationCallable() { + return stub.exportModelOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports a trained, exportable Model to a location specified by the user. A Model is considered + * to be exportable if it has at least one [supported export + * format][google.cloud.aiplatform.v1.Model.supported_export_formats]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ExportModelRequest request =
+   *       ExportModelRequest.newBuilder()
+   *           .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+   *           .setOutputConfig(ExportModelRequest.OutputConfig.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = modelServiceClient.exportModelCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable exportModelCallable() { + return stub.exportModelCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports an externally generated ModelEvaluation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ModelName parent = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
+   *   ModelEvaluation modelEvaluation = ModelEvaluation.newBuilder().build();
+   *   ModelEvaluation response = modelServiceClient.importModelEvaluation(parent, modelEvaluation);
+   * }
+   * }
+ * + * @param parent Required. The name of the parent model resource. Format: + * `projects/{project}/locations/{location}/models/{model}` + * @param modelEvaluation Required. Model evaluation resource to be imported. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ModelEvaluation importModelEvaluation( + ModelName parent, ModelEvaluation modelEvaluation) { + ImportModelEvaluationRequest request = + ImportModelEvaluationRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setModelEvaluation(modelEvaluation) + .build(); + return importModelEvaluation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports an externally generated ModelEvaluation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   String parent = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString();
+   *   ModelEvaluation modelEvaluation = ModelEvaluation.newBuilder().build();
+   *   ModelEvaluation response = modelServiceClient.importModelEvaluation(parent, modelEvaluation);
+   * }
+   * }
+ * + * @param parent Required. The name of the parent model resource. Format: + * `projects/{project}/locations/{location}/models/{model}` + * @param modelEvaluation Required. Model evaluation resource to be imported. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ModelEvaluation importModelEvaluation( + String parent, ModelEvaluation modelEvaluation) { + ImportModelEvaluationRequest request = + ImportModelEvaluationRequest.newBuilder() + .setParent(parent) + .setModelEvaluation(modelEvaluation) + .build(); + return importModelEvaluation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports an externally generated ModelEvaluation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ImportModelEvaluationRequest request =
+   *       ImportModelEvaluationRequest.newBuilder()
+   *           .setParent(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+   *           .setModelEvaluation(ModelEvaluation.newBuilder().build())
+   *           .build();
+   *   ModelEvaluation response = modelServiceClient.importModelEvaluation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ModelEvaluation importModelEvaluation(ImportModelEvaluationRequest request) { + return importModelEvaluationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports an externally generated ModelEvaluation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ImportModelEvaluationRequest request =
+   *       ImportModelEvaluationRequest.newBuilder()
+   *           .setParent(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+   *           .setModelEvaluation(ModelEvaluation.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       modelServiceClient.importModelEvaluationCallable().futureCall(request);
+   *   // Do something.
+   *   ModelEvaluation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + importModelEvaluationCallable() { + return stub.importModelEvaluationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a ModelEvaluation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ModelEvaluationName name =
+   *       ModelEvaluationName.of("[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]");
+   *   ModelEvaluation response = modelServiceClient.getModelEvaluation(name);
+   * }
+   * }
+ * + * @param name Required. The name of the ModelEvaluation resource. Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ModelEvaluation getModelEvaluation(ModelEvaluationName name) { + GetModelEvaluationRequest request = + GetModelEvaluationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getModelEvaluation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a ModelEvaluation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   String name =
    *       ModelEvaluationName.of("[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]").toString();
@@ -1046,6 +1588,8 @@ public final ModelEvaluation getModelEvaluation(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   GetModelEvaluationRequest request =
    *       GetModelEvaluationRequest.newBuilder()
@@ -1071,6 +1615,8 @@ public final ModelEvaluation getModelEvaluation(GetModelEvaluationRequest reques
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   GetModelEvaluationRequest request =
    *       GetModelEvaluationRequest.newBuilder()
@@ -1097,6 +1643,8 @@ public final ModelEvaluation getModelEvaluation(GetModelEvaluationRequest reques
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ModelName parent = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
    *   for (ModelEvaluation element : modelServiceClient.listModelEvaluations(parent).iterateAll()) {
@@ -1124,6 +1672,8 @@ public final ListModelEvaluationsPagedResponse listModelEvaluations(ModelName pa
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   String parent = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString();
    *   for (ModelEvaluation element : modelServiceClient.listModelEvaluations(parent).iterateAll()) {
@@ -1149,6 +1699,8 @@ public final ListModelEvaluationsPagedResponse listModelEvaluations(String paren
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ListModelEvaluationsRequest request =
    *       ListModelEvaluationsRequest.newBuilder()
@@ -1180,6 +1732,8 @@ public final ListModelEvaluationsPagedResponse listModelEvaluations(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ListModelEvaluationsRequest request =
    *       ListModelEvaluationsRequest.newBuilder()
@@ -1189,40 +1743,429 @@ public final ListModelEvaluationsPagedResponse listModelEvaluations(
    *           .setPageToken("pageToken873572522")
    *           .setReadMask(FieldMask.newBuilder().build())
    *           .build();
-   *   ApiFuture future =
-   *       modelServiceClient.listModelEvaluationsPagedCallable().futureCall(request);
+   *   ApiFuture future =
+   *       modelServiceClient.listModelEvaluationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ModelEvaluation element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listModelEvaluationsPagedCallable() { + return stub.listModelEvaluationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ModelEvaluations in a Model. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ListModelEvaluationsRequest request =
+   *       ListModelEvaluationsRequest.newBuilder()
+   *           .setParent(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   while (true) {
+   *     ListModelEvaluationsResponse response =
+   *         modelServiceClient.listModelEvaluationsCallable().call(request);
+   *     for (ModelEvaluation element : response.getModelEvaluationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listModelEvaluationsCallable() { + return stub.listModelEvaluationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a ModelEvaluationSlice. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ModelEvaluationSliceName name =
+   *       ModelEvaluationSliceName.of(
+   *           "[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]", "[SLICE]");
+   *   ModelEvaluationSlice response = modelServiceClient.getModelEvaluationSlice(name);
+   * }
+   * }
+ * + * @param name Required. The name of the ModelEvaluationSlice resource. Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ModelEvaluationSlice getModelEvaluationSlice(ModelEvaluationSliceName name) { + GetModelEvaluationSliceRequest request = + GetModelEvaluationSliceRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getModelEvaluationSlice(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a ModelEvaluationSlice. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   String name =
+   *       ModelEvaluationSliceName.of(
+   *               "[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]", "[SLICE]")
+   *           .toString();
+   *   ModelEvaluationSlice response = modelServiceClient.getModelEvaluationSlice(name);
+   * }
+   * }
+ * + * @param name Required. The name of the ModelEvaluationSlice resource. Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ModelEvaluationSlice getModelEvaluationSlice(String name) { + GetModelEvaluationSliceRequest request = + GetModelEvaluationSliceRequest.newBuilder().setName(name).build(); + return getModelEvaluationSlice(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a ModelEvaluationSlice. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   GetModelEvaluationSliceRequest request =
+   *       GetModelEvaluationSliceRequest.newBuilder()
+   *           .setName(
+   *               ModelEvaluationSliceName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]", "[SLICE]")
+   *                   .toString())
+   *           .build();
+   *   ModelEvaluationSlice response = modelServiceClient.getModelEvaluationSlice(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ModelEvaluationSlice getModelEvaluationSlice( + GetModelEvaluationSliceRequest request) { + return getModelEvaluationSliceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a ModelEvaluationSlice. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   GetModelEvaluationSliceRequest request =
+   *       GetModelEvaluationSliceRequest.newBuilder()
+   *           .setName(
+   *               ModelEvaluationSliceName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]", "[SLICE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       modelServiceClient.getModelEvaluationSliceCallable().futureCall(request);
+   *   // Do something.
+   *   ModelEvaluationSlice response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getModelEvaluationSliceCallable() { + return stub.getModelEvaluationSliceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ModelEvaluationSlices in a ModelEvaluation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ModelEvaluationName parent =
+   *       ModelEvaluationName.of("[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]");
+   *   for (ModelEvaluationSlice element :
+   *       modelServiceClient.listModelEvaluationSlices(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the ModelEvaluation to list the + * ModelEvaluationSlices from. Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListModelEvaluationSlicesPagedResponse listModelEvaluationSlices( + ModelEvaluationName parent) { + ListModelEvaluationSlicesRequest request = + ListModelEvaluationSlicesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listModelEvaluationSlices(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ModelEvaluationSlices in a ModelEvaluation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   String parent =
+   *       ModelEvaluationName.of("[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]").toString();
+   *   for (ModelEvaluationSlice element :
+   *       modelServiceClient.listModelEvaluationSlices(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the ModelEvaluation to list the + * ModelEvaluationSlices from. Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListModelEvaluationSlicesPagedResponse listModelEvaluationSlices(String parent) { + ListModelEvaluationSlicesRequest request = + ListModelEvaluationSlicesRequest.newBuilder().setParent(parent).build(); + return listModelEvaluationSlices(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ModelEvaluationSlices in a ModelEvaluation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ListModelEvaluationSlicesRequest request =
+   *       ListModelEvaluationSlicesRequest.newBuilder()
+   *           .setParent(
+   *               ModelEvaluationName.of("[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   for (ModelEvaluationSlice element :
+   *       modelServiceClient.listModelEvaluationSlices(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListModelEvaluationSlicesPagedResponse listModelEvaluationSlices( + ListModelEvaluationSlicesRequest request) { + return listModelEvaluationSlicesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ModelEvaluationSlices in a ModelEvaluation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ListModelEvaluationSlicesRequest request =
+   *       ListModelEvaluationSlicesRequest.newBuilder()
+   *           .setParent(
+   *               ModelEvaluationName.of("[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       modelServiceClient.listModelEvaluationSlicesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ModelEvaluationSlice element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListModelEvaluationSlicesRequest, ListModelEvaluationSlicesPagedResponse> + listModelEvaluationSlicesPagedCallable() { + return stub.listModelEvaluationSlicesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ModelEvaluationSlices in a ModelEvaluation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ListModelEvaluationSlicesRequest request =
+   *       ListModelEvaluationSlicesRequest.newBuilder()
+   *           .setParent(
+   *               ModelEvaluationName.of("[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   while (true) {
+   *     ListModelEvaluationSlicesResponse response =
+   *         modelServiceClient.listModelEvaluationSlicesCallable().call(request);
+   *     for (ModelEvaluationSlice element : response.getModelEvaluationSlicesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listModelEvaluationSlicesCallable() { + return stub.listModelEvaluationSlicesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : modelServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       modelServiceClient.listLocationsPagedCallable().futureCall(request);
    *   // Do something.
-   *   for (ModelEvaluation element : future.get().iterateAll()) {
+   *   for (Location element : future.get().iterateAll()) {
    *     // doThingsWith(element);
    *   }
    * }
    * }
*/ - public final UnaryCallable - listModelEvaluationsPagedCallable() { - return stub.listModelEvaluationsPagedCallable(); + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ModelEvaluations in a Model. + * Lists information about the supported locations for this service. * *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
-   *   ListModelEvaluationsRequest request =
-   *       ListModelEvaluationsRequest.newBuilder()
-   *           .setParent(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
    *           .setFilter("filter-1274492040")
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
-   *           .setReadMask(FieldMask.newBuilder().build())
    *           .build();
    *   while (true) {
-   *     ListModelEvaluationsResponse response =
-   *         modelServiceClient.listModelEvaluationsCallable().call(request);
-   *     for (ModelEvaluation element : response.getResponsesList()) {
+   *     ListLocationsResponse response = modelServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -1235,280 +2178,236 @@ public final ListModelEvaluationsPagedResponse listModelEvaluations(
    * }
    * }
*/ - public final UnaryCallable - listModelEvaluationsCallable() { - return stub.listModelEvaluationsCallable(); + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a ModelEvaluationSlice. + * Gets information about a location. * *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
-   *   ModelEvaluationSliceName name =
-   *       ModelEvaluationSliceName.of(
-   *           "[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]", "[SLICE]");
-   *   ModelEvaluationSlice response = modelServiceClient.getModelEvaluationSlice(name);
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = modelServiceClient.getLocation(request);
    * }
    * }
* - * @param name Required. The name of the ModelEvaluationSlice resource. Format: - * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ModelEvaluationSlice getModelEvaluationSlice(ModelEvaluationSliceName name) { - GetModelEvaluationSliceRequest request = - GetModelEvaluationSliceRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getModelEvaluationSlice(request); + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a ModelEvaluationSlice. + * Gets information about a location. * *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
-   *   String name =
-   *       ModelEvaluationSliceName.of(
-   *               "[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]", "[SLICE]")
-   *           .toString();
-   *   ModelEvaluationSlice response = modelServiceClient.getModelEvaluationSlice(name);
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = modelServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
    * }
    * }
- * - * @param name Required. The name of the ModelEvaluationSlice resource. Format: - * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ModelEvaluationSlice getModelEvaluationSlice(String name) { - GetModelEvaluationSliceRequest request = - GetModelEvaluationSliceRequest.newBuilder().setName(name).build(); - return getModelEvaluationSlice(request); + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a ModelEvaluationSlice. + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. * *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
-   *   GetModelEvaluationSliceRequest request =
-   *       GetModelEvaluationSliceRequest.newBuilder()
-   *           .setName(
-   *               ModelEvaluationSliceName.of(
-   *                       "[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]", "[SLICE]")
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
    *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
    *           .build();
-   *   ModelEvaluationSlice response = modelServiceClient.getModelEvaluationSlice(request);
+   *   Policy response = modelServiceClient.setIamPolicy(request);
    * }
    * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ModelEvaluationSlice getModelEvaluationSlice( - GetModelEvaluationSliceRequest request) { - return getModelEvaluationSliceCallable().call(request); + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a ModelEvaluationSlice. + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. * *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
-   *   GetModelEvaluationSliceRequest request =
-   *       GetModelEvaluationSliceRequest.newBuilder()
-   *           .setName(
-   *               ModelEvaluationSliceName.of(
-   *                       "[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]", "[SLICE]")
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
    *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
    *           .build();
-   *   ApiFuture future =
-   *       modelServiceClient.getModelEvaluationSliceCallable().futureCall(request);
+   *   ApiFuture future = modelServiceClient.setIamPolicyCallable().futureCall(request);
    *   // Do something.
-   *   ModelEvaluationSlice response = future.get();
+   *   Policy response = future.get();
    * }
    * }
*/ - public final UnaryCallable - getModelEvaluationSliceCallable() { - return stub.getModelEvaluationSliceCallable(); + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ModelEvaluationSlices in a ModelEvaluation. + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. * *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
-   *   ModelEvaluationName parent =
-   *       ModelEvaluationName.of("[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]");
-   *   for (ModelEvaluationSlice element :
-   *       modelServiceClient.listModelEvaluationSlices(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = modelServiceClient.getIamPolicy(request);
    * }
    * }
* - * @param parent Required. The resource name of the ModelEvaluation to list the - * ModelEvaluationSlices from. Format: - * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListModelEvaluationSlicesPagedResponse listModelEvaluationSlices( - ModelEvaluationName parent) { - ListModelEvaluationSlicesRequest request = - ListModelEvaluationSlicesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listModelEvaluationSlices(request); + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ModelEvaluationSlices in a ModelEvaluation. + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. * *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
-   *   String parent =
-   *       ModelEvaluationName.of("[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]").toString();
-   *   for (ModelEvaluationSlice element :
-   *       modelServiceClient.listModelEvaluationSlices(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = modelServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
    * }
    * }
- * - * @param parent Required. The resource name of the ModelEvaluation to list the - * ModelEvaluationSlices from. Format: - * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListModelEvaluationSlicesPagedResponse listModelEvaluationSlices(String parent) { - ListModelEvaluationSlicesRequest request = - ListModelEvaluationSlicesRequest.newBuilder().setParent(parent).build(); - return listModelEvaluationSlices(request); + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ModelEvaluationSlices in a ModelEvaluation. + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. * *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
-   *   ListModelEvaluationSlicesRequest request =
-   *       ListModelEvaluationSlicesRequest.newBuilder()
-   *           .setParent(
-   *               ModelEvaluationName.of("[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]")
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
    *                   .toString())
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .addAllPermissions(new ArrayList())
    *           .build();
-   *   for (ModelEvaluationSlice element :
-   *       modelServiceClient.listModelEvaluationSlices(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
+   *   TestIamPermissionsResponse response = modelServiceClient.testIamPermissions(request);
    * }
    * }
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListModelEvaluationSlicesPagedResponse listModelEvaluationSlices( - ListModelEvaluationSlicesRequest request) { - return listModelEvaluationSlicesPagedCallable().call(request); + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ModelEvaluationSlices in a ModelEvaluation. + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. * - *

Sample code: - * - *

{@code
-   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
-   *   ListModelEvaluationSlicesRequest request =
-   *       ListModelEvaluationSlicesRequest.newBuilder()
-   *           .setParent(
-   *               ModelEvaluationName.of("[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]")
-   *                   .toString())
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setReadMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       modelServiceClient.listModelEvaluationSlicesPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (ModelEvaluationSlice element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable< - ListModelEvaluationSlicesRequest, ListModelEvaluationSlicesPagedResponse> - listModelEvaluationSlicesPagedCallable() { - return stub.listModelEvaluationSlicesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists ModelEvaluationSlices in a ModelEvaluation. + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. * *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
-   *   ListModelEvaluationSlicesRequest request =
-   *       ListModelEvaluationSlicesRequest.newBuilder()
-   *           .setParent(
-   *               ModelEvaluationName.of("[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]")
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
    *                   .toString())
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .addAllPermissions(new ArrayList())
    *           .build();
-   *   while (true) {
-   *     ListModelEvaluationSlicesResponse response =
-   *         modelServiceClient.listModelEvaluationSlicesCallable().call(request);
-   *     for (ModelEvaluationSlice element : response.getResponsesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
+   *   ApiFuture future =
+   *       modelServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
    * }
    * }
*/ - public final UnaryCallable - listModelEvaluationSlicesCallable() { - return stub.listModelEvaluationSlicesCallable(); + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); } @Override @@ -1614,6 +2513,83 @@ protected ListModelsFixedSizeCollection createCollection( } } + public static class ListModelVersionsPagedResponse + extends AbstractPagedListResponse< + ListModelVersionsRequest, + ListModelVersionsResponse, + Model, + ListModelVersionsPage, + ListModelVersionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListModelVersionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListModelVersionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListModelVersionsPagedResponse(ListModelVersionsPage page) { + super(page, ListModelVersionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListModelVersionsPage + extends AbstractPage< + ListModelVersionsRequest, ListModelVersionsResponse, Model, ListModelVersionsPage> { + + private ListModelVersionsPage( + PageContext context, + ListModelVersionsResponse response) { + super(context, response); + } + + private static ListModelVersionsPage createEmptyPage() { + return new ListModelVersionsPage(null, null); + } + + @Override + protected ListModelVersionsPage createPage( + PageContext context, + ListModelVersionsResponse response) { + return new ListModelVersionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListModelVersionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListModelVersionsRequest, + ListModelVersionsResponse, + Model, + ListModelVersionsPage, + ListModelVersionsFixedSizeCollection> { + + private ListModelVersionsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListModelVersionsFixedSizeCollection createEmptyCollection() { + return new ListModelVersionsFixedSizeCollection(null, 0); + } + + @Override + protected ListModelVersionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListModelVersionsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListModelEvaluationsPagedResponse extends AbstractPagedListResponse< ListModelEvaluationsRequest, @@ -1793,4 +2769,80 @@ protected ListModelEvaluationSlicesFixedSizeCollection createCollection( return new ListModelEvaluationSlicesFixedSizeCollection(pages, collectionSize); } } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceSettings.java index ceba1bd99661..d028c939f85d 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,8 +16,10 @@ package com.google.cloud.aiplatform.v1; +import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelEvaluationSlicesPagedResponse; import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelEvaluationsPagedResponse; +import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelVersionsPagedResponse; import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelsPagedResponse; import com.google.api.core.ApiFunction; @@ -33,6 +35,15 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.aiplatform.v1.stub.ModelServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -57,6 +68,8 @@ *

For example, to set the total timeout of getModel to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * ModelServiceSettings.Builder modelServiceSettingsBuilder = ModelServiceSettings.newBuilder();
  * modelServiceSettingsBuilder
  *     .getModelSettings()
@@ -96,6 +109,13 @@ public UnaryCallSettings getModelSettings() {
     return ((ModelServiceStubSettings) getStubSettings()).listModelsSettings();
   }
 
+  /** Returns the object with the settings used for calls to listModelVersions. */
+  public PagedCallSettings<
+          ListModelVersionsRequest, ListModelVersionsResponse, ListModelVersionsPagedResponse>
+      listModelVersionsSettings() {
+    return ((ModelServiceStubSettings) getStubSettings()).listModelVersionsSettings();
+  }
+
   /** Returns the object with the settings used for calls to updateModel. */
   public UnaryCallSettings updateModelSettings() {
     return ((ModelServiceStubSettings) getStubSettings()).updateModelSettings();
@@ -112,6 +132,22 @@ public UnaryCallSettings deleteModelSettings() {
     return ((ModelServiceStubSettings) getStubSettings()).deleteModelOperationSettings();
   }
 
+  /** Returns the object with the settings used for calls to deleteModelVersion. */
+  public UnaryCallSettings deleteModelVersionSettings() {
+    return ((ModelServiceStubSettings) getStubSettings()).deleteModelVersionSettings();
+  }
+
+  /** Returns the object with the settings used for calls to deleteModelVersion. */
+  public OperationCallSettings
+      deleteModelVersionOperationSettings() {
+    return ((ModelServiceStubSettings) getStubSettings()).deleteModelVersionOperationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to mergeVersionAliases. */
+  public UnaryCallSettings mergeVersionAliasesSettings() {
+    return ((ModelServiceStubSettings) getStubSettings()).mergeVersionAliasesSettings();
+  }
+
   /** Returns the object with the settings used for calls to exportModel. */
   public UnaryCallSettings exportModelSettings() {
     return ((ModelServiceStubSettings) getStubSettings()).exportModelSettings();
@@ -160,6 +196,33 @@ public UnaryCallSettings exportModelSettings() {
     return ((ModelServiceStubSettings) getStubSettings()).listModelEvaluationSlicesSettings();
   }
 
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return ((ModelServiceStubSettings) getStubSettings()).listLocationsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return ((ModelServiceStubSettings) getStubSettings()).getLocationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return ((ModelServiceStubSettings) getStubSettings()).setIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return ((ModelServiceStubSettings) getStubSettings()).getIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return ((ModelServiceStubSettings) getStubSettings()).testIamPermissionsSettings();
+  }
+
   public static final ModelServiceSettings create(ModelServiceStubSettings stub)
       throws IOException {
     return new ModelServiceSettings.Builder(stub.toBuilder()).build();
@@ -280,6 +343,13 @@ public UnaryCallSettings.Builder getModelSettings() {
       return getStubSettingsBuilder().listModelsSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listModelVersions. */
+    public PagedCallSettings.Builder<
+            ListModelVersionsRequest, ListModelVersionsResponse, ListModelVersionsPagedResponse>
+        listModelVersionsSettings() {
+      return getStubSettingsBuilder().listModelVersionsSettings();
+    }
+
     /** Returns the builder for the settings used for calls to updateModel. */
     public UnaryCallSettings.Builder updateModelSettings() {
       return getStubSettingsBuilder().updateModelSettings();
@@ -296,6 +366,24 @@ public UnaryCallSettings.Builder deleteModelSetti
       return getStubSettingsBuilder().deleteModelOperationSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteModelVersion. */
+    public UnaryCallSettings.Builder
+        deleteModelVersionSettings() {
+      return getStubSettingsBuilder().deleteModelVersionSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to deleteModelVersion. */
+    public OperationCallSettings.Builder
+        deleteModelVersionOperationSettings() {
+      return getStubSettingsBuilder().deleteModelVersionOperationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to mergeVersionAliases. */
+    public UnaryCallSettings.Builder
+        mergeVersionAliasesSettings() {
+      return getStubSettingsBuilder().mergeVersionAliasesSettings();
+    }
+
     /** Returns the builder for the settings used for calls to exportModel. */
     public UnaryCallSettings.Builder exportModelSettings() {
       return getStubSettingsBuilder().exportModelSettings();
@@ -344,6 +432,34 @@ public UnaryCallSettings.Builder exportModelSetti
       return getStubSettingsBuilder().listModelEvaluationSlicesSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return getStubSettingsBuilder().listLocationsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getStubSettingsBuilder().getLocationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return getStubSettingsBuilder().setIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getStubSettingsBuilder().getIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return getStubSettingsBuilder().testIamPermissionsSettings();
+    }
+
     @Override
     public ModelServiceSettings build() throws IOException {
       return new ModelServiceSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceClient.java
index 862760f3111c..3e1c8484b497 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -18,7 +18,6 @@
 
 import com.google.api.core.ApiFuture;
 import com.google.api.core.ApiFutures;
-import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
@@ -29,7 +28,16 @@
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1.stub.PipelineServiceStub;
 import com.google.cloud.aiplatform.v1.stub.PipelineServiceStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.OperationsClient;
 import com.google.protobuf.Empty;
@@ -48,6 +56,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
  *   TrainingPipeline trainingPipeline = TrainingPipeline.newBuilder().build();
@@ -86,6 +96,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * PipelineServiceSettings pipelineServiceSettings =
  *     PipelineServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -97,6 +109,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * PipelineServiceSettings pipelineServiceSettings =
  *     PipelineServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * PipelineServiceClient pipelineServiceClient =
@@ -129,7 +143,6 @@ public static final PipelineServiceClient create(PipelineServiceSettings setting
    * Constructs an instance of PipelineServiceClient, using the given stub for making calls. This is
    * for advanced usage - prefer using create(PipelineServiceSettings).
    */
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public static final PipelineServiceClient create(PipelineServiceStub stub) {
     return new PipelineServiceClient(stub);
   }
@@ -145,7 +158,6 @@ protected PipelineServiceClient(PipelineServiceSettings settings) throws IOExcep
     this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected PipelineServiceClient(PipelineServiceStub stub) {
     this.settings = null;
     this.stub = stub;
@@ -156,7 +168,6 @@ public final PipelineServiceSettings getSettings() {
     return settings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public PipelineServiceStub getStub() {
     return stub;
   }
@@ -176,6 +187,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   TrainingPipeline trainingPipeline = TrainingPipeline.newBuilder().build();
@@ -206,6 +219,8 @@ public final TrainingPipeline createTrainingPipeline(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   TrainingPipeline trainingPipeline = TrainingPipeline.newBuilder().build();
@@ -236,6 +251,8 @@ public final TrainingPipeline createTrainingPipeline(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   CreateTrainingPipelineRequest request =
    *       CreateTrainingPipelineRequest.newBuilder()
@@ -260,6 +277,8 @@ public final TrainingPipeline createTrainingPipeline(CreateTrainingPipelineReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   CreateTrainingPipelineRequest request =
    *       CreateTrainingPipelineRequest.newBuilder()
@@ -285,6 +304,8 @@ public final TrainingPipeline createTrainingPipeline(CreateTrainingPipelineReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   TrainingPipelineName name =
    *       TrainingPipelineName.of("[PROJECT]", "[LOCATION]", "[TRAINING_PIPELINE]");
@@ -311,6 +332,8 @@ public final TrainingPipeline getTrainingPipeline(TrainingPipelineName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   String name =
    *       TrainingPipelineName.of("[PROJECT]", "[LOCATION]", "[TRAINING_PIPELINE]").toString();
@@ -335,6 +358,8 @@ public final TrainingPipeline getTrainingPipeline(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   GetTrainingPipelineRequest request =
    *       GetTrainingPipelineRequest.newBuilder()
@@ -360,6 +385,8 @@ public final TrainingPipeline getTrainingPipeline(GetTrainingPipelineRequest req
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   GetTrainingPipelineRequest request =
    *       GetTrainingPipelineRequest.newBuilder()
@@ -386,6 +413,8 @@ public final TrainingPipeline getTrainingPipeline(GetTrainingPipelineRequest req
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (TrainingPipeline element :
@@ -414,6 +443,8 @@ public final ListTrainingPipelinesPagedResponse listTrainingPipelines(LocationNa
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (TrainingPipeline element :
@@ -440,6 +471,8 @@ public final ListTrainingPipelinesPagedResponse listTrainingPipelines(String par
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   ListTrainingPipelinesRequest request =
    *       ListTrainingPipelinesRequest.newBuilder()
@@ -471,6 +504,8 @@ public final ListTrainingPipelinesPagedResponse listTrainingPipelines(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   ListTrainingPipelinesRequest request =
    *       ListTrainingPipelinesRequest.newBuilder()
@@ -501,6 +536,8 @@ public final ListTrainingPipelinesPagedResponse listTrainingPipelines(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   ListTrainingPipelinesRequest request =
    *       ListTrainingPipelinesRequest.newBuilder()
@@ -513,7 +550,7 @@ public final ListTrainingPipelinesPagedResponse listTrainingPipelines(
    *   while (true) {
    *     ListTrainingPipelinesResponse response =
    *         pipelineServiceClient.listTrainingPipelinesCallable().call(request);
-   *     for (TrainingPipeline element : response.getResponsesList()) {
+   *     for (TrainingPipeline element : response.getTrainingPipelinesList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -538,6 +575,8 @@ public final ListTrainingPipelinesPagedResponse listTrainingPipelines(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   TrainingPipelineName name =
    *       TrainingPipelineName.of("[PROJECT]", "[LOCATION]", "[TRAINING_PIPELINE]");
@@ -565,6 +604,8 @@ public final OperationFuture deleteTrainingPipel
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   String name =
    *       TrainingPipelineName.of("[PROJECT]", "[LOCATION]", "[TRAINING_PIPELINE]").toString();
@@ -590,6 +631,8 @@ public final OperationFuture deleteTrainingPipel
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   DeleteTrainingPipelineRequest request =
    *       DeleteTrainingPipelineRequest.newBuilder()
@@ -616,6 +659,8 @@ public final OperationFuture deleteTrainingPipel
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   DeleteTrainingPipelineRequest request =
    *       DeleteTrainingPipelineRequest.newBuilder()
@@ -642,6 +687,8 @@ public final OperationFuture deleteTrainingPipel
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   DeleteTrainingPipelineRequest request =
    *       DeleteTrainingPipelineRequest.newBuilder()
@@ -678,6 +725,8 @@ public final OperationFuture deleteTrainingPipel
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   TrainingPipelineName name =
    *       TrainingPipelineName.of("[PROJECT]", "[LOCATION]", "[TRAINING_PIPELINE]");
@@ -714,6 +763,8 @@ public final void cancelTrainingPipeline(TrainingPipelineName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   String name =
    *       TrainingPipelineName.of("[PROJECT]", "[LOCATION]", "[TRAINING_PIPELINE]").toString();
@@ -748,6 +799,8 @@ public final void cancelTrainingPipeline(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   CancelTrainingPipelineRequest request =
    *       CancelTrainingPipelineRequest.newBuilder()
@@ -783,6 +836,8 @@ public final void cancelTrainingPipeline(CancelTrainingPipelineRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   CancelTrainingPipelineRequest request =
    *       CancelTrainingPipelineRequest.newBuilder()
@@ -809,6 +864,8 @@ public final void cancelTrainingPipeline(CancelTrainingPipelineRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   PipelineJob pipelineJob = PipelineJob.newBuilder().build();
@@ -844,6 +901,8 @@ public final PipelineJob createPipelineJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   PipelineJob pipelineJob = PipelineJob.newBuilder().build();
@@ -879,6 +938,8 @@ public final PipelineJob createPipelineJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   CreatePipelineJobRequest request =
    *       CreatePipelineJobRequest.newBuilder()
@@ -904,6 +965,8 @@ public final PipelineJob createPipelineJob(CreatePipelineJobRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   CreatePipelineJobRequest request =
    *       CreatePipelineJobRequest.newBuilder()
@@ -929,6 +992,8 @@ public final UnaryCallable createPipeline
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   PipelineJobName name = PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]");
    *   PipelineJob response = pipelineServiceClient.getPipelineJob(name);
@@ -952,6 +1017,8 @@ public final PipelineJob getPipelineJob(PipelineJobName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   String name = PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]").toString();
    *   PipelineJob response = pipelineServiceClient.getPipelineJob(name);
@@ -974,6 +1041,8 @@ public final PipelineJob getPipelineJob(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   GetPipelineJobRequest request =
    *       GetPipelineJobRequest.newBuilder()
@@ -997,6 +1066,8 @@ public final PipelineJob getPipelineJob(GetPipelineJobRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   GetPipelineJobRequest request =
    *       GetPipelineJobRequest.newBuilder()
@@ -1020,6 +1091,8 @@ public final UnaryCallable getPipelineJobCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (PipelineJob element : pipelineServiceClient.listPipelineJobs(parent).iterateAll()) {
@@ -1047,6 +1120,8 @@ public final ListPipelineJobsPagedResponse listPipelineJobs(LocationName parent)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (PipelineJob element : pipelineServiceClient.listPipelineJobs(parent).iterateAll()) {
@@ -1072,6 +1147,8 @@ public final ListPipelineJobsPagedResponse listPipelineJobs(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   ListPipelineJobsRequest request =
    *       ListPipelineJobsRequest.newBuilder()
@@ -1101,6 +1178,8 @@ public final ListPipelineJobsPagedResponse listPipelineJobs(ListPipelineJobsRequ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   ListPipelineJobsRequest request =
    *       ListPipelineJobsRequest.newBuilder()
@@ -1131,6 +1210,8 @@ public final ListPipelineJobsPagedResponse listPipelineJobs(ListPipelineJobsRequ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   ListPipelineJobsRequest request =
    *       ListPipelineJobsRequest.newBuilder()
@@ -1143,7 +1224,7 @@ public final ListPipelineJobsPagedResponse listPipelineJobs(ListPipelineJobsRequ
    *   while (true) {
    *     ListPipelineJobsResponse response =
    *         pipelineServiceClient.listPipelineJobsCallable().call(request);
-   *     for (PipelineJob element : response.getResponsesList()) {
+   *     for (PipelineJob element : response.getPipelineJobsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -1168,6 +1249,8 @@ public final ListPipelineJobsPagedResponse listPipelineJobs(ListPipelineJobsRequ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   PipelineJobName name = PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]");
    *   pipelineServiceClient.deletePipelineJobAsync(name).get();
@@ -1194,6 +1277,8 @@ public final OperationFuture deletePipelineJobAs
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   String name = PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]").toString();
    *   pipelineServiceClient.deletePipelineJobAsync(name).get();
@@ -1216,6 +1301,8 @@ public final OperationFuture deletePipelineJobAs
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   DeletePipelineJobRequest request =
    *       DeletePipelineJobRequest.newBuilder()
@@ -1240,6 +1327,8 @@ public final OperationFuture deletePipelineJobAs
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   DeletePipelineJobRequest request =
    *       DeletePipelineJobRequest.newBuilder()
@@ -1264,6 +1353,8 @@ public final OperationFuture deletePipelineJobAs
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   DeletePipelineJobRequest request =
    *       DeletePipelineJobRequest.newBuilder()
@@ -1295,6 +1386,8 @@ public final UnaryCallable deletePipelineJo
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   PipelineJobName name = PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]");
    *   pipelineServiceClient.cancelPipelineJob(name);
@@ -1328,6 +1421,8 @@ public final void cancelPipelineJob(PipelineJobName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   String name = PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]").toString();
    *   pipelineServiceClient.cancelPipelineJob(name);
@@ -1358,6 +1453,8 @@ public final void cancelPipelineJob(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   CancelPipelineJobRequest request =
    *       CancelPipelineJobRequest.newBuilder()
@@ -1389,6 +1486,8 @@ public final void cancelPipelineJob(CancelPipelineJobRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   CancelPipelineJobRequest request =
    *       CancelPipelineJobRequest.newBuilder()
@@ -1405,6 +1504,332 @@ public final UnaryCallable cancelPipelineJobCal
     return stub.cancelPipelineJobCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Lists information about the supported locations for this service.
+   *
+   * 

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : pipelineServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       pipelineServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         pipelineServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = pipelineServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = pipelineServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = pipelineServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = pipelineServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = pipelineServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = pipelineServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = pipelineServiceClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       pipelineServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + @Override public final void close() { stub.close(); @@ -1595,4 +2020,80 @@ protected ListPipelineJobsFixedSizeCollection createCollection( return new ListPipelineJobsFixedSizeCollection(pages, collectionSize); } } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceSettings.java index ce4beaeed1bc..a4464c141b52 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ package com.google.cloud.aiplatform.v1; +import static com.google.cloud.aiplatform.v1.PipelineServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1.PipelineServiceClient.ListPipelineJobsPagedResponse; import static com.google.cloud.aiplatform.v1.PipelineServiceClient.ListTrainingPipelinesPagedResponse; @@ -32,6 +33,15 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.aiplatform.v1.stub.PipelineServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -56,6 +66,8 @@ *

For example, to set the total timeout of createTrainingPipeline to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * PipelineServiceSettings.Builder pipelineServiceSettingsBuilder =
  *     PipelineServiceSettings.newBuilder();
  * pipelineServiceSettingsBuilder
@@ -145,6 +157,33 @@ public UnaryCallSettings cancelPipelineJobSetti
     return ((PipelineServiceStubSettings) getStubSettings()).cancelPipelineJobSettings();
   }
 
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return ((PipelineServiceStubSettings) getStubSettings()).listLocationsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return ((PipelineServiceStubSettings) getStubSettings()).getLocationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return ((PipelineServiceStubSettings) getStubSettings()).setIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return ((PipelineServiceStubSettings) getStubSettings()).getIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return ((PipelineServiceStubSettings) getStubSettings()).testIamPermissionsSettings();
+  }
+
   public static final PipelineServiceSettings create(PipelineServiceStubSettings stub)
       throws IOException {
     return new PipelineServiceSettings.Builder(stub.toBuilder()).build();
@@ -317,6 +356,34 @@ public UnaryCallSettings.Builder cancelPipeline
       return getStubSettingsBuilder().cancelPipelineJobSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return getStubSettingsBuilder().listLocationsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getStubSettingsBuilder().getLocationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return getStubSettingsBuilder().setIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getStubSettingsBuilder().getIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return getStubSettingsBuilder().testIamPermissionsSettings();
+    }
+
     @Override
     public PipelineServiceSettings build() throws IOException {
       return new PipelineServiceSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceClient.java
index 0fbfe4461a86..642ed4e212a4 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,11 +17,26 @@
 package com.google.cloud.aiplatform.v1;
 
 import com.google.api.HttpBody;
-import com.google.api.core.BetaApi;
+import com.google.api.core.ApiFuture;
+import com.google.api.core.ApiFutures;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.paging.AbstractFixedSizeCollection;
+import com.google.api.gax.paging.AbstractPage;
+import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1.stub.PredictionServiceStub;
 import com.google.cloud.aiplatform.v1.stub.PredictionServiceStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.protobuf.Value;
 import java.io.IOException;
 import java.util.List;
@@ -36,10 +51,12 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
  *   EndpointName endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
  *   List instances = new ArrayList<>();
- *   Value parameters = Value.newBuilder().build();
+ *   Value parameters = Value.newBuilder().setBoolValue(true).build();
  *   PredictResponse response = predictionServiceClient.predict(endpoint, instances, parameters);
  * }
  * }
@@ -74,6 +91,8 @@ *

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * PredictionServiceSettings predictionServiceSettings =
  *     PredictionServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -85,6 +104,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * PredictionServiceSettings predictionServiceSettings =
  *     PredictionServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * PredictionServiceClient predictionServiceClient =
@@ -116,7 +137,6 @@ public static final PredictionServiceClient create(PredictionServiceSettings set
    * Constructs an instance of PredictionServiceClient, using the given stub for making calls. This
    * is for advanced usage - prefer using create(PredictionServiceSettings).
    */
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public static final PredictionServiceClient create(PredictionServiceStub stub) {
     return new PredictionServiceClient(stub);
   }
@@ -131,7 +151,6 @@ protected PredictionServiceClient(PredictionServiceSettings settings) throws IOE
     this.stub = ((PredictionServiceStubSettings) settings.getStubSettings()).createStub();
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected PredictionServiceClient(PredictionServiceStub stub) {
     this.settings = null;
     this.stub = stub;
@@ -141,7 +160,6 @@ public final PredictionServiceSettings getSettings() {
     return settings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public PredictionServiceStub getStub() {
     return stub;
   }
@@ -153,10 +171,12 @@ public PredictionServiceStub getStub() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    *   EndpointName endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
    *   List instances = new ArrayList<>();
-   *   Value parameters = Value.newBuilder().build();
+   *   Value parameters = Value.newBuilder().setBoolValue(true).build();
    *   PredictResponse response = predictionServiceClient.predict(endpoint, instances, parameters);
    * }
    * }
@@ -196,10 +216,12 @@ public final PredictResponse predict( *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    *   String endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString();
    *   List instances = new ArrayList<>();
-   *   Value parameters = Value.newBuilder().build();
+   *   Value parameters = Value.newBuilder().setBoolValue(true).build();
    *   PredictResponse response = predictionServiceClient.predict(endpoint, instances, parameters);
    * }
    * }
@@ -238,12 +260,14 @@ public final PredictResponse predict(String endpoint, List instances, Val *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    *   PredictRequest request =
    *       PredictRequest.newBuilder()
    *           .setEndpoint(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString())
    *           .addAllInstances(new ArrayList())
-   *           .setParameters(Value.newBuilder().build())
+   *           .setParameters(Value.newBuilder().setBoolValue(true).build())
    *           .build();
    *   PredictResponse response = predictionServiceClient.predict(request);
    * }
@@ -263,12 +287,14 @@ public final PredictResponse predict(PredictRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    *   PredictRequest request =
    *       PredictRequest.newBuilder()
    *           .setEndpoint(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString())
    *           .addAllInstances(new ArrayList())
-   *           .setParameters(Value.newBuilder().build())
+   *           .setParameters(Value.newBuilder().setBoolValue(true).build())
    *           .build();
    *   ApiFuture future =
    *       predictionServiceClient.predictCallable().futureCall(request);
@@ -300,6 +326,8 @@ public final UnaryCallable predictCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    *   EndpointName endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
    *   HttpBody httpBody = HttpBody.newBuilder().build();
@@ -350,6 +378,8 @@ public final HttpBody rawPredict(EndpointName endpoint, HttpBody httpBody) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    *   String endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString();
    *   HttpBody httpBody = HttpBody.newBuilder().build();
@@ -397,6 +427,8 @@ public final HttpBody rawPredict(String endpoint, HttpBody httpBody) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    *   RawPredictRequest request =
    *       RawPredictRequest.newBuilder()
@@ -433,6 +465,8 @@ public final HttpBody rawPredict(RawPredictRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    *   RawPredictRequest request =
    *       RawPredictRequest.newBuilder()
@@ -464,10 +498,12 @@ public final UnaryCallable rawPredictCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    *   EndpointName endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
    *   List instances = new ArrayList<>();
-   *   Value parameters = Value.newBuilder().build();
+   *   Value parameters = Value.newBuilder().setBoolValue(true).build();
    *   String deployedModelId = "deployedModelId-1817547906";
    *   ExplainResponse response =
    *       predictionServiceClient.explain(endpoint, instances, parameters, deployedModelId);
@@ -521,10 +557,12 @@ public final ExplainResponse explain(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    *   String endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString();
    *   List instances = new ArrayList<>();
-   *   Value parameters = Value.newBuilder().build();
+   *   Value parameters = Value.newBuilder().setBoolValue(true).build();
    *   String deployedModelId = "deployedModelId-1817547906";
    *   ExplainResponse response =
    *       predictionServiceClient.explain(endpoint, instances, parameters, deployedModelId);
@@ -578,12 +616,14 @@ public final ExplainResponse explain(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    *   ExplainRequest request =
    *       ExplainRequest.newBuilder()
    *           .setEndpoint(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString())
    *           .addAllInstances(new ArrayList())
-   *           .setParameters(Value.newBuilder().build())
+   *           .setParameters(Value.newBuilder().setBoolValue(true).build())
    *           .setExplanationSpecOverride(ExplanationSpecOverride.newBuilder().build())
    *           .setDeployedModelId("deployedModelId-1817547906")
    *           .build();
@@ -613,12 +653,14 @@ public final ExplainResponse explain(ExplainRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    *   ExplainRequest request =
    *       ExplainRequest.newBuilder()
    *           .setEndpoint(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString())
    *           .addAllInstances(new ArrayList())
-   *           .setParameters(Value.newBuilder().build())
+   *           .setParameters(Value.newBuilder().setBoolValue(true).build())
    *           .setExplanationSpecOverride(ExplanationSpecOverride.newBuilder().build())
    *           .setDeployedModelId("deployedModelId-1817547906")
    *           .build();
@@ -633,6 +675,333 @@ public final UnaryCallable explainCallable() {
     return stub.explainCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Lists information about the supported locations for this service.
+   *
+   * 

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : predictionServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       predictionServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         predictionServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = predictionServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       predictionServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = predictionServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = predictionServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = predictionServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = predictionServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = predictionServiceClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       predictionServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + @Override public final void close() { stub.close(); @@ -662,4 +1031,80 @@ public void shutdownNow() { public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { return stub.awaitTermination(duration, unit); } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceSettings.java index ad5438a6cc98..29d9aef58145 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,8 @@ package com.google.cloud.aiplatform.v1; +import static com.google.cloud.aiplatform.v1.PredictionServiceClient.ListLocationsPagedResponse; + import com.google.api.HttpBody; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -25,9 +27,19 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.aiplatform.v1.stub.PredictionServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import java.io.IOException; import java.util.List; import javax.annotation.Generated; @@ -50,6 +62,8 @@ *

For example, to set the total timeout of predict to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * PredictionServiceSettings.Builder predictionServiceSettingsBuilder =
  *     PredictionServiceSettings.newBuilder();
  * predictionServiceSettingsBuilder
@@ -82,6 +96,33 @@ public UnaryCallSettings explainSettings() {
     return ((PredictionServiceStubSettings) getStubSettings()).explainSettings();
   }
 
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return ((PredictionServiceStubSettings) getStubSettings()).listLocationsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return ((PredictionServiceStubSettings) getStubSettings()).getLocationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return ((PredictionServiceStubSettings) getStubSettings()).setIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return ((PredictionServiceStubSettings) getStubSettings()).getIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return ((PredictionServiceStubSettings) getStubSettings()).testIamPermissionsSettings();
+  }
+
   public static final PredictionServiceSettings create(PredictionServiceStubSettings stub)
       throws IOException {
     return new PredictionServiceSettings.Builder(stub.toBuilder()).build();
@@ -194,6 +235,34 @@ public UnaryCallSettings.Builder explainSetting
       return getStubSettingsBuilder().explainSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return getStubSettingsBuilder().listLocationsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getStubSettingsBuilder().getLocationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return getStubSettingsBuilder().setIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getStubSettingsBuilder().getIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return getStubSettingsBuilder().testIamPermissionsSettings();
+    }
+
     @Override
     public PredictionServiceSettings build() throws IOException {
       return new PredictionServiceSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceClient.java
index fecbc990663c..759759d8872a 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -18,7 +18,6 @@
 
 import com.google.api.core.ApiFuture;
 import com.google.api.core.ApiFutures;
-import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
@@ -29,7 +28,16 @@
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1.stub.SpecialistPoolServiceStub;
 import com.google.cloud.aiplatform.v1.stub.SpecialistPoolServiceStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.OperationsClient;
 import com.google.protobuf.Empty;
@@ -51,6 +59,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (SpecialistPoolServiceClient specialistPoolServiceClient =
  *     SpecialistPoolServiceClient.create()) {
  *   SpecialistPoolName name =
@@ -89,6 +99,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SpecialistPoolServiceSettings specialistPoolServiceSettings =
  *     SpecialistPoolServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -100,6 +112,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SpecialistPoolServiceSettings specialistPoolServiceSettings =
  *     SpecialistPoolServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * SpecialistPoolServiceClient specialistPoolServiceClient =
@@ -132,7 +146,6 @@ public static final SpecialistPoolServiceClient create(SpecialistPoolServiceSett
    * Constructs an instance of SpecialistPoolServiceClient, using the given stub for making calls.
    * This is for advanced usage - prefer using create(SpecialistPoolServiceSettings).
    */
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public static final SpecialistPoolServiceClient create(SpecialistPoolServiceStub stub) {
     return new SpecialistPoolServiceClient(stub);
   }
@@ -148,7 +161,6 @@ protected SpecialistPoolServiceClient(SpecialistPoolServiceSettings settings) th
     this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected SpecialistPoolServiceClient(SpecialistPoolServiceStub stub) {
     this.settings = null;
     this.stub = stub;
@@ -159,7 +171,6 @@ public final SpecialistPoolServiceSettings getSettings() {
     return settings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public SpecialistPoolServiceStub getStub() {
     return stub;
   }
@@ -179,6 +190,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -210,6 +223,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
@@ -241,6 +256,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   CreateSpecialistPoolRequest request =
@@ -268,6 +285,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   CreateSpecialistPoolRequest request =
@@ -295,6 +314,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   CreateSpecialistPoolRequest request =
@@ -321,6 +342,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   SpecialistPoolName name =
@@ -348,6 +371,8 @@ public final SpecialistPool getSpecialistPool(SpecialistPoolName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   String name =
@@ -372,6 +397,8 @@ public final SpecialistPool getSpecialistPool(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   GetSpecialistPoolRequest request =
@@ -397,6 +424,8 @@ public final SpecialistPool getSpecialistPool(GetSpecialistPoolRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   GetSpecialistPoolRequest request =
@@ -422,6 +451,8 @@ public final UnaryCallable getSpeciali
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -451,6 +482,8 @@ public final ListSpecialistPoolsPagedResponse listSpecialistPools(LocationName p
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
@@ -478,6 +511,8 @@ public final ListSpecialistPoolsPagedResponse listSpecialistPools(String parent)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   ListSpecialistPoolsRequest request =
@@ -509,6 +544,8 @@ public final ListSpecialistPoolsPagedResponse listSpecialistPools(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   ListSpecialistPoolsRequest request =
@@ -539,6 +576,8 @@ public final ListSpecialistPoolsPagedResponse listSpecialistPools(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   ListSpecialistPoolsRequest request =
@@ -551,7 +590,7 @@ public final ListSpecialistPoolsPagedResponse listSpecialistPools(
    *   while (true) {
    *     ListSpecialistPoolsResponse response =
    *         specialistPoolServiceClient.listSpecialistPoolsCallable().call(request);
-   *     for (SpecialistPool element : response.getResponsesList()) {
+   *     for (SpecialistPool element : response.getSpecialistPoolsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -576,6 +615,8 @@ public final ListSpecialistPoolsPagedResponse listSpecialistPools(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   SpecialistPoolName name =
@@ -604,6 +645,8 @@ public final OperationFuture deleteSpecialistPoo
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   String name =
@@ -630,6 +673,8 @@ public final OperationFuture deleteSpecialistPoo
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   DeleteSpecialistPoolRequest request =
@@ -657,6 +702,8 @@ public final OperationFuture deleteSpecialistPoo
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   DeleteSpecialistPoolRequest request =
@@ -684,6 +731,8 @@ public final OperationFuture deleteSpecialistPoo
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   DeleteSpecialistPoolRequest request =
@@ -711,6 +760,8 @@ public final OperationFuture deleteSpecialistPoo
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   SpecialistPool specialistPool = SpecialistPool.newBuilder().build();
@@ -741,6 +792,8 @@ public final OperationFuture deleteSpecialistPoo
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   UpdateSpecialistPoolRequest request =
@@ -768,6 +821,8 @@ public final OperationFuture deleteSpecialistPoo
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   UpdateSpecialistPoolRequest request =
@@ -795,6 +850,8 @@ public final OperationFuture deleteSpecialistPoo
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   UpdateSpecialistPoolRequest request =
@@ -814,6 +871,346 @@ public final OperationFuture deleteSpecialistPoo
     return stub.updateSpecialistPoolCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Lists information about the supported locations for this service.
+   *
+   * 

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (SpecialistPoolServiceClient specialistPoolServiceClient =
+   *     SpecialistPoolServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : specialistPoolServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (SpecialistPoolServiceClient specialistPoolServiceClient =
+   *     SpecialistPoolServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       specialistPoolServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (SpecialistPoolServiceClient specialistPoolServiceClient =
+   *     SpecialistPoolServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         specialistPoolServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (SpecialistPoolServiceClient specialistPoolServiceClient =
+   *     SpecialistPoolServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = specialistPoolServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (SpecialistPoolServiceClient specialistPoolServiceClient =
+   *     SpecialistPoolServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       specialistPoolServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (SpecialistPoolServiceClient specialistPoolServiceClient =
+   *     SpecialistPoolServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = specialistPoolServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (SpecialistPoolServiceClient specialistPoolServiceClient =
+   *     SpecialistPoolServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       specialistPoolServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (SpecialistPoolServiceClient specialistPoolServiceClient =
+   *     SpecialistPoolServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = specialistPoolServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (SpecialistPoolServiceClient specialistPoolServiceClient =
+   *     SpecialistPoolServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       specialistPoolServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (SpecialistPoolServiceClient specialistPoolServiceClient =
+   *     SpecialistPoolServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = specialistPoolServiceClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (SpecialistPoolServiceClient specialistPoolServiceClient =
+   *     SpecialistPoolServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       specialistPoolServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + @Override public final void close() { stub.close(); @@ -927,4 +1324,80 @@ protected ListSpecialistPoolsFixedSizeCollection createCollection( return new ListSpecialistPoolsFixedSizeCollection(pages, collectionSize); } } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceSettings.java index 24a946135a24..4c1c44326072 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ package com.google.cloud.aiplatform.v1; +import static com.google.cloud.aiplatform.v1.SpecialistPoolServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1.SpecialistPoolServiceClient.ListSpecialistPoolsPagedResponse; import com.google.api.core.ApiFunction; @@ -31,6 +32,15 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.aiplatform.v1.stub.SpecialistPoolServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -55,6 +65,8 @@ *

For example, to set the total timeout of getSpecialistPool to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SpecialistPoolServiceSettings.Builder specialistPoolServiceSettingsBuilder =
  *     SpecialistPoolServiceSettings.newBuilder();
  * specialistPoolServiceSettingsBuilder
@@ -123,6 +135,33 @@ public UnaryCallSettings updateSpecialis
         .updateSpecialistPoolOperationSettings();
   }
 
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return ((SpecialistPoolServiceStubSettings) getStubSettings()).listLocationsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return ((SpecialistPoolServiceStubSettings) getStubSettings()).getLocationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return ((SpecialistPoolServiceStubSettings) getStubSettings()).setIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return ((SpecialistPoolServiceStubSettings) getStubSettings()).getIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return ((SpecialistPoolServiceStubSettings) getStubSettings()).testIamPermissionsSettings();
+  }
+
   public static final SpecialistPoolServiceSettings create(SpecialistPoolServiceStubSettings stub)
       throws IOException {
     return new SpecialistPoolServiceSettings.Builder(stub.toBuilder()).build();
@@ -275,6 +314,34 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().updateSpecialistPoolOperationSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return getStubSettingsBuilder().listLocationsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getStubSettingsBuilder().getLocationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return getStubSettingsBuilder().setIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getStubSettingsBuilder().getIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return getStubSettingsBuilder().testIamPermissionsSettings();
+    }
+
     @Override
     public SpecialistPoolServiceSettings build() throws IOException {
       return new SpecialistPoolServiceSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceClient.java
index aa401c6696da..609d7c60712d 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -18,7 +18,6 @@
 
 import com.google.api.core.ApiFuture;
 import com.google.api.core.ApiFutures;
-import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
@@ -30,7 +29,16 @@
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1.stub.TensorboardServiceStub;
 import com.google.cloud.aiplatform.v1.stub.TensorboardServiceStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.OperationsClient;
 import com.google.protobuf.Empty;
@@ -48,6 +56,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
  *   TensorboardName name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
  *   Tensorboard response = tensorboardServiceClient.getTensorboard(name);
@@ -84,6 +94,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * TensorboardServiceSettings tensorboardServiceSettings =
  *     TensorboardServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -95,6 +107,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * TensorboardServiceSettings tensorboardServiceSettings =
  *     TensorboardServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * TensorboardServiceClient tensorboardServiceClient =
@@ -127,7 +141,6 @@ public static final TensorboardServiceClient create(TensorboardServiceSettings s
    * Constructs an instance of TensorboardServiceClient, using the given stub for making calls. This
    * is for advanced usage - prefer using create(TensorboardServiceSettings).
    */
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public static final TensorboardServiceClient create(TensorboardServiceStub stub) {
     return new TensorboardServiceClient(stub);
   }
@@ -143,7 +156,6 @@ protected TensorboardServiceClient(TensorboardServiceSettings settings) throws I
     this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected TensorboardServiceClient(TensorboardServiceStub stub) {
     this.settings = null;
     this.stub = stub;
@@ -154,7 +166,6 @@ public final TensorboardServiceSettings getSettings() {
     return settings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public TensorboardServiceStub getStub() {
     return stub;
   }
@@ -174,6 +185,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardName parent = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
    *   Tensorboard tensorboard = Tensorboard.newBuilder().build();
@@ -204,6 +217,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String parent = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString();
    *   Tensorboard tensorboard = Tensorboard.newBuilder().build();
@@ -231,6 +246,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   CreateTensorboardRequest request =
    *       CreateTensorboardRequest.newBuilder()
@@ -256,6 +273,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   CreateTensorboardRequest request =
    *       CreateTensorboardRequest.newBuilder()
@@ -282,6 +301,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   CreateTensorboardRequest request =
    *       CreateTensorboardRequest.newBuilder()
@@ -306,6 +327,8 @@ public final UnaryCallable createTensorboar
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardName name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
    *   Tensorboard response = tensorboardServiceClient.getTensorboard(name);
@@ -329,6 +352,8 @@ public final Tensorboard getTensorboard(TensorboardName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString();
    *   Tensorboard response = tensorboardServiceClient.getTensorboard(name);
@@ -351,6 +376,8 @@ public final Tensorboard getTensorboard(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   GetTensorboardRequest request =
    *       GetTensorboardRequest.newBuilder()
@@ -374,6 +401,8 @@ public final Tensorboard getTensorboard(GetTensorboardRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   GetTensorboardRequest request =
    *       GetTensorboardRequest.newBuilder()
@@ -397,6 +426,8 @@ public final UnaryCallable getTensorboardCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   Tensorboard tensorboard = Tensorboard.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -431,6 +462,8 @@ public final UnaryCallable getTensorboardCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   UpdateTensorboardRequest request =
    *       UpdateTensorboardRequest.newBuilder()
@@ -456,6 +489,8 @@ public final UnaryCallable getTensorboardCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   UpdateTensorboardRequest request =
    *       UpdateTensorboardRequest.newBuilder()
@@ -482,6 +517,8 @@ public final UnaryCallable getTensorboardCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   UpdateTensorboardRequest request =
    *       UpdateTensorboardRequest.newBuilder()
@@ -506,6 +543,8 @@ public final UnaryCallable updateTensorboar
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Tensorboard element : tensorboardServiceClient.listTensorboards(parent).iterateAll()) {
@@ -533,6 +572,8 @@ public final ListTensorboardsPagedResponse listTensorboards(LocationName parent)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Tensorboard element : tensorboardServiceClient.listTensorboards(parent).iterateAll()) {
@@ -558,6 +599,8 @@ public final ListTensorboardsPagedResponse listTensorboards(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ListTensorboardsRequest request =
    *       ListTensorboardsRequest.newBuilder()
@@ -588,6 +631,8 @@ public final ListTensorboardsPagedResponse listTensorboards(ListTensorboardsRequ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ListTensorboardsRequest request =
    *       ListTensorboardsRequest.newBuilder()
@@ -619,6 +664,8 @@ public final ListTensorboardsPagedResponse listTensorboards(ListTensorboardsRequ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ListTensorboardsRequest request =
    *       ListTensorboardsRequest.newBuilder()
@@ -632,7 +679,7 @@ public final ListTensorboardsPagedResponse listTensorboards(ListTensorboardsRequ
    *   while (true) {
    *     ListTensorboardsResponse response =
    *         tensorboardServiceClient.listTensorboardsCallable().call(request);
-   *     for (Tensorboard element : response.getResponsesList()) {
+   *     for (Tensorboard element : response.getTensorboardsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -657,6 +704,8 @@ public final ListTensorboardsPagedResponse listTensorboards(ListTensorboardsRequ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardName name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
    *   tensorboardServiceClient.deleteTensorboardAsync(name).get();
@@ -683,6 +732,8 @@ public final OperationFuture deleteTensorboardAs
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString();
    *   tensorboardServiceClient.deleteTensorboardAsync(name).get();
@@ -705,6 +756,8 @@ public final OperationFuture deleteTensorboardAs
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   DeleteTensorboardRequest request =
    *       DeleteTensorboardRequest.newBuilder()
@@ -729,6 +782,8 @@ public final OperationFuture deleteTensorboardAs
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   DeleteTensorboardRequest request =
    *       DeleteTensorboardRequest.newBuilder()
@@ -753,6 +808,8 @@ public final OperationFuture deleteTensorboardAs
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   DeleteTensorboardRequest request =
    *       DeleteTensorboardRequest.newBuilder()
@@ -776,6 +833,8 @@ public final UnaryCallable deleteTensorboar
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardExperimentName parent =
    *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
@@ -816,6 +875,8 @@ public final TensorboardExperiment createTensorboardExperiment(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String parent =
    *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
@@ -855,6 +916,8 @@ public final TensorboardExperiment createTensorboardExperiment(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   CreateTensorboardExperimentRequest request =
    *       CreateTensorboardExperimentRequest.newBuilder()
@@ -885,6 +948,8 @@ public final TensorboardExperiment createTensorboardExperiment(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   CreateTensorboardExperimentRequest request =
    *       CreateTensorboardExperimentRequest.newBuilder()
@@ -914,6 +979,8 @@ public final TensorboardExperiment createTensorboardExperiment(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardExperimentName name =
    *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
@@ -940,6 +1007,8 @@ public final TensorboardExperiment getTensorboardExperiment(TensorboardExperimen
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String name =
    *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
@@ -965,6 +1034,8 @@ public final TensorboardExperiment getTensorboardExperiment(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   GetTensorboardExperimentRequest request =
    *       GetTensorboardExperimentRequest.newBuilder()
@@ -992,6 +1063,8 @@ public final TensorboardExperiment getTensorboardExperiment(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   GetTensorboardExperimentRequest request =
    *       GetTensorboardExperimentRequest.newBuilder()
@@ -1019,6 +1092,8 @@ public final TensorboardExperiment getTensorboardExperiment(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardExperiment tensorboardExperiment = TensorboardExperiment.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1054,6 +1129,8 @@ public final TensorboardExperiment updateTensorboardExperiment(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   UpdateTensorboardExperimentRequest request =
    *       UpdateTensorboardExperimentRequest.newBuilder()
@@ -1080,6 +1157,8 @@ public final TensorboardExperiment updateTensorboardExperiment(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   UpdateTensorboardExperimentRequest request =
    *       UpdateTensorboardExperimentRequest.newBuilder()
@@ -1105,6 +1184,8 @@ public final TensorboardExperiment updateTensorboardExperiment(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardName parent = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
    *   for (TensorboardExperiment element :
@@ -1134,6 +1215,8 @@ public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String parent = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString();
    *   for (TensorboardExperiment element :
@@ -1160,6 +1243,8 @@ public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ListTensorboardExperimentsRequest request =
    *       ListTensorboardExperimentsRequest.newBuilder()
@@ -1192,6 +1277,8 @@ public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ListTensorboardExperimentsRequest request =
    *       ListTensorboardExperimentsRequest.newBuilder()
@@ -1224,6 +1311,8 @@ public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ListTensorboardExperimentsRequest request =
    *       ListTensorboardExperimentsRequest.newBuilder()
@@ -1237,7 +1326,7 @@ public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments(
    *   while (true) {
    *     ListTensorboardExperimentsResponse response =
    *         tensorboardServiceClient.listTensorboardExperimentsCallable().call(request);
-   *     for (TensorboardExperiment element : response.getResponsesList()) {
+   *     for (TensorboardExperiment element : response.getTensorboardExperimentsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -1262,6 +1351,8 @@ public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardExperimentName name =
    *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
@@ -1289,6 +1380,8 @@ public final OperationFuture deleteTensorboardEx
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String name =
    *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
@@ -1315,6 +1408,8 @@ public final OperationFuture deleteTensorboardEx
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   DeleteTensorboardExperimentRequest request =
    *       DeleteTensorboardExperimentRequest.newBuilder()
@@ -1342,6 +1437,8 @@ public final OperationFuture deleteTensorboardEx
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   DeleteTensorboardExperimentRequest request =
    *       DeleteTensorboardExperimentRequest.newBuilder()
@@ -1371,6 +1468,8 @@ public final OperationFuture deleteTensorboardEx
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   DeleteTensorboardExperimentRequest request =
    *       DeleteTensorboardExperimentRequest.newBuilder()
@@ -1398,6 +1497,8 @@ public final OperationFuture deleteTensorboardEx
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardRunName parent =
    *       TensorboardRunName.of(
@@ -1436,6 +1537,8 @@ public final TensorboardRun createTensorboardRun(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String parent =
    *       TensorboardRunName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
@@ -1474,6 +1577,8 @@ public final TensorboardRun createTensorboardRun(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   CreateTensorboardRunRequest request =
    *       CreateTensorboardRunRequest.newBuilder()
@@ -1502,6 +1607,8 @@ public final TensorboardRun createTensorboardRun(CreateTensorboardRunRequest req
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   CreateTensorboardRunRequest request =
    *       CreateTensorboardRunRequest.newBuilder()
@@ -1531,6 +1638,8 @@ public final TensorboardRun createTensorboardRun(CreateTensorboardRunRequest req
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardExperimentName parent =
    *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
@@ -1565,6 +1674,8 @@ public final BatchCreateTensorboardRunsResponse batchCreateTensorboardRuns(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String parent =
    *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
@@ -1600,6 +1711,8 @@ public final BatchCreateTensorboardRunsResponse batchCreateTensorboardRuns(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   BatchCreateTensorboardRunsRequest request =
    *       BatchCreateTensorboardRunsRequest.newBuilder()
@@ -1629,6 +1742,8 @@ public final BatchCreateTensorboardRunsResponse batchCreateTensorboardRuns(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   BatchCreateTensorboardRunsRequest request =
    *       BatchCreateTensorboardRunsRequest.newBuilder()
@@ -1657,6 +1772,8 @@ public final BatchCreateTensorboardRunsResponse batchCreateTensorboardRuns(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardRunName name =
    *       TensorboardRunName.of(
@@ -1684,6 +1801,8 @@ public final TensorboardRun getTensorboardRun(TensorboardRunName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String name =
    *       TensorboardRunName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
@@ -1708,6 +1827,8 @@ public final TensorboardRun getTensorboardRun(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   GetTensorboardRunRequest request =
    *       GetTensorboardRunRequest.newBuilder()
@@ -1734,6 +1855,8 @@ public final TensorboardRun getTensorboardRun(GetTensorboardRunRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   GetTensorboardRunRequest request =
    *       GetTensorboardRunRequest.newBuilder()
@@ -1760,6 +1883,8 @@ public final UnaryCallable getTensorbo
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardRun tensorboardRun = TensorboardRun.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1795,6 +1920,8 @@ public final TensorboardRun updateTensorboardRun(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   UpdateTensorboardRunRequest request =
    *       UpdateTensorboardRunRequest.newBuilder()
@@ -1819,6 +1946,8 @@ public final TensorboardRun updateTensorboardRun(UpdateTensorboardRunRequest req
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   UpdateTensorboardRunRequest request =
    *       UpdateTensorboardRunRequest.newBuilder()
@@ -1844,6 +1973,8 @@ public final TensorboardRun updateTensorboardRun(UpdateTensorboardRunRequest req
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardExperimentName parent =
    *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
@@ -1875,6 +2006,8 @@ public final ListTensorboardRunsPagedResponse listTensorboardRuns(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String parent =
    *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
@@ -1904,6 +2037,8 @@ public final ListTensorboardRunsPagedResponse listTensorboardRuns(String parent)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ListTensorboardRunsRequest request =
    *       ListTensorboardRunsRequest.newBuilder()
@@ -1939,6 +2074,8 @@ public final ListTensorboardRunsPagedResponse listTensorboardRuns(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ListTensorboardRunsRequest request =
    *       ListTensorboardRunsRequest.newBuilder()
@@ -1973,6 +2110,8 @@ public final ListTensorboardRunsPagedResponse listTensorboardRuns(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ListTensorboardRunsRequest request =
    *       ListTensorboardRunsRequest.newBuilder()
@@ -1989,7 +2128,7 @@ public final ListTensorboardRunsPagedResponse listTensorboardRuns(
    *   while (true) {
    *     ListTensorboardRunsResponse response =
    *         tensorboardServiceClient.listTensorboardRunsCallable().call(request);
-   *     for (TensorboardRun element : response.getResponsesList()) {
+   *     for (TensorboardRun element : response.getTensorboardRunsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -2014,6 +2153,8 @@ public final ListTensorboardRunsPagedResponse listTensorboardRuns(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardRunName name =
    *       TensorboardRunName.of(
@@ -2042,6 +2183,8 @@ public final OperationFuture deleteTensorboardRu
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String name =
    *       TensorboardRunName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
@@ -2068,6 +2211,8 @@ public final OperationFuture deleteTensorboardRu
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   DeleteTensorboardRunRequest request =
    *       DeleteTensorboardRunRequest.newBuilder()
@@ -2095,6 +2240,8 @@ public final OperationFuture deleteTensorboardRu
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   DeleteTensorboardRunRequest request =
    *       DeleteTensorboardRunRequest.newBuilder()
@@ -2122,6 +2269,8 @@ public final OperationFuture deleteTensorboardRu
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   DeleteTensorboardRunRequest request =
    *       DeleteTensorboardRunRequest.newBuilder()
@@ -2149,6 +2298,8 @@ public final OperationFuture deleteTensorboardRu
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardExperimentName parent =
    *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
@@ -2185,6 +2336,8 @@ public final BatchCreateTensorboardTimeSeriesResponse batchCreateTensorboardTime
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String parent =
    *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
@@ -2222,6 +2375,8 @@ public final BatchCreateTensorboardTimeSeriesResponse batchCreateTensorboardTime
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   BatchCreateTensorboardTimeSeriesRequest request =
    *       BatchCreateTensorboardTimeSeriesRequest.newBuilder()
@@ -2251,6 +2406,8 @@ public final BatchCreateTensorboardTimeSeriesResponse batchCreateTensorboardTime
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   BatchCreateTensorboardTimeSeriesRequest request =
    *       BatchCreateTensorboardTimeSeriesRequest.newBuilder()
@@ -2280,6 +2437,8 @@ public final BatchCreateTensorboardTimeSeriesResponse batchCreateTensorboardTime
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardTimeSeriesName parent =
    *       TensorboardTimeSeriesName.of(
@@ -2313,6 +2472,8 @@ public final TensorboardTimeSeries createTensorboardTimeSeries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String parent =
    *       TensorboardTimeSeriesName.of(
@@ -2352,6 +2513,8 @@ public final TensorboardTimeSeries createTensorboardTimeSeries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   CreateTensorboardTimeSeriesRequest request =
    *       CreateTensorboardTimeSeriesRequest.newBuilder()
@@ -2387,6 +2550,8 @@ public final TensorboardTimeSeries createTensorboardTimeSeries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   CreateTensorboardTimeSeriesRequest request =
    *       CreateTensorboardTimeSeriesRequest.newBuilder()
@@ -2421,6 +2586,8 @@ public final TensorboardTimeSeries createTensorboardTimeSeries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardTimeSeriesName name =
    *       TensorboardTimeSeriesName.of(
@@ -2448,6 +2615,8 @@ public final TensorboardTimeSeries getTensorboardTimeSeries(TensorboardTimeSerie
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String name =
    *       TensorboardTimeSeriesName.of(
@@ -2479,6 +2648,8 @@ public final TensorboardTimeSeries getTensorboardTimeSeries(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   GetTensorboardTimeSeriesRequest request =
    *       GetTensorboardTimeSeriesRequest.newBuilder()
@@ -2511,6 +2682,8 @@ public final TensorboardTimeSeries getTensorboardTimeSeries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   GetTensorboardTimeSeriesRequest request =
    *       GetTensorboardTimeSeriesRequest.newBuilder()
@@ -2543,6 +2716,8 @@ public final TensorboardTimeSeries getTensorboardTimeSeries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardTimeSeries tensorboardTimeSeries = TensorboardTimeSeries.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -2578,6 +2753,8 @@ public final TensorboardTimeSeries updateTensorboardTimeSeries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   UpdateTensorboardTimeSeriesRequest request =
    *       UpdateTensorboardTimeSeriesRequest.newBuilder()
@@ -2604,6 +2781,8 @@ public final TensorboardTimeSeries updateTensorboardTimeSeries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   UpdateTensorboardTimeSeriesRequest request =
    *       UpdateTensorboardTimeSeriesRequest.newBuilder()
@@ -2629,6 +2808,8 @@ public final TensorboardTimeSeries updateTensorboardTimeSeries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardRunName parent =
    *       TensorboardRunName.of(
@@ -2661,6 +2842,8 @@ public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String parent =
    *       TensorboardRunName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
@@ -2690,6 +2873,8 @@ public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries(St
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ListTensorboardTimeSeriesRequest request =
    *       ListTensorboardTimeSeriesRequest.newBuilder()
@@ -2725,6 +2910,8 @@ public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ListTensorboardTimeSeriesRequest request =
    *       ListTensorboardTimeSeriesRequest.newBuilder()
@@ -2760,6 +2947,8 @@ public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ListTensorboardTimeSeriesRequest request =
    *       ListTensorboardTimeSeriesRequest.newBuilder()
@@ -2776,7 +2965,7 @@ public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries(
    *   while (true) {
    *     ListTensorboardTimeSeriesResponse response =
    *         tensorboardServiceClient.listTensorboardTimeSeriesCallable().call(request);
-   *     for (TensorboardTimeSeries element : response.getResponsesList()) {
+   *     for (TensorboardTimeSeries element : response.getTensorboardTimeSeriesList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -2801,6 +2990,8 @@ public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardTimeSeriesName name =
    *       TensorboardTimeSeriesName.of(
@@ -2829,6 +3020,8 @@ public final OperationFuture deleteTensorboardTi
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String name =
    *       TensorboardTimeSeriesName.of(
@@ -2861,6 +3054,8 @@ public final OperationFuture deleteTensorboardTi
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   DeleteTensorboardTimeSeriesRequest request =
    *       DeleteTensorboardTimeSeriesRequest.newBuilder()
@@ -2893,6 +3088,8 @@ public final OperationFuture deleteTensorboardTi
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   DeleteTensorboardTimeSeriesRequest request =
    *       DeleteTensorboardTimeSeriesRequest.newBuilder()
@@ -2927,6 +3124,8 @@ public final OperationFuture deleteTensorboardTi
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   DeleteTensorboardTimeSeriesRequest request =
    *       DeleteTensorboardTimeSeriesRequest.newBuilder()
@@ -2962,6 +3161,8 @@ public final OperationFuture deleteTensorboardTi
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardName tensorboard = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
    *   BatchReadTensorboardTimeSeriesDataResponse response =
@@ -2996,6 +3197,8 @@ public final BatchReadTensorboardTimeSeriesDataResponse batchReadTensorboardTime
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String tensorboard =
    *       TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString();
@@ -3029,6 +3232,8 @@ public final BatchReadTensorboardTimeSeriesDataResponse batchReadTensorboardTime
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   BatchReadTensorboardTimeSeriesDataRequest request =
    *       BatchReadTensorboardTimeSeriesDataRequest.newBuilder()
@@ -3059,6 +3264,8 @@ public final BatchReadTensorboardTimeSeriesDataResponse batchReadTensorboardTime
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   BatchReadTensorboardTimeSeriesDataRequest request =
    *       BatchReadTensorboardTimeSeriesDataRequest.newBuilder()
@@ -3089,6 +3296,8 @@ public final BatchReadTensorboardTimeSeriesDataResponse batchReadTensorboardTime
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardTimeSeriesName tensorboardTimeSeries =
    *       TensorboardTimeSeriesName.of(
@@ -3123,6 +3332,8 @@ public final ReadTensorboardTimeSeriesDataResponse readTensorboardTimeSeriesData
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String tensorboardTimeSeries =
    *       TensorboardTimeSeriesName.of(
@@ -3162,6 +3373,8 @@ public final ReadTensorboardTimeSeriesDataResponse readTensorboardTimeSeriesData
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ReadTensorboardTimeSeriesDataRequest request =
    *       ReadTensorboardTimeSeriesDataRequest.newBuilder()
@@ -3200,6 +3413,8 @@ public final ReadTensorboardTimeSeriesDataResponse readTensorboardTimeSeriesData
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ReadTensorboardTimeSeriesDataRequest request =
    *       ReadTensorboardTimeSeriesDataRequest.newBuilder()
@@ -3236,6 +3451,8 @@ public final ReadTensorboardTimeSeriesDataResponse readTensorboardTimeSeriesData
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ReadTensorboardBlobDataRequest request =
    *       ReadTensorboardBlobDataRequest.newBuilder()
@@ -3272,6 +3489,8 @@ public final ReadTensorboardTimeSeriesDataResponse readTensorboardTimeSeriesData
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardExperimentName tensorboardExperiment =
    *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
@@ -3309,6 +3528,8 @@ public final WriteTensorboardExperimentDataResponse writeTensorboardExperimentDa
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String tensorboardExperiment =
    *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
@@ -3345,6 +3566,8 @@ public final WriteTensorboardExperimentDataResponse writeTensorboardExperimentDa
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   WriteTensorboardExperimentDataRequest request =
    *       WriteTensorboardExperimentDataRequest.newBuilder()
@@ -3375,6 +3598,8 @@ public final WriteTensorboardExperimentDataResponse writeTensorboardExperimentDa
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   WriteTensorboardExperimentDataRequest request =
    *       WriteTensorboardExperimentDataRequest.newBuilder()
@@ -3405,6 +3630,8 @@ public final WriteTensorboardExperimentDataResponse writeTensorboardExperimentDa
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardRunName tensorboardRun =
    *       TensorboardRunName.of(
@@ -3441,6 +3668,8 @@ public final WriteTensorboardRunDataResponse writeTensorboardRunData(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String tensorboardRun =
    *       TensorboardRunName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
@@ -3477,6 +3706,8 @@ public final WriteTensorboardRunDataResponse writeTensorboardRunData(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   WriteTensorboardRunDataRequest request =
    *       WriteTensorboardRunDataRequest.newBuilder()
@@ -3507,6 +3738,8 @@ public final WriteTensorboardRunDataResponse writeTensorboardRunData(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   WriteTensorboardRunDataRequest request =
    *       WriteTensorboardRunDataRequest.newBuilder()
@@ -3535,6 +3768,8 @@ public final WriteTensorboardRunDataResponse writeTensorboardRunData(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardTimeSeriesName tensorboardTimeSeries =
    *       TensorboardTimeSeriesName.of(
@@ -3570,6 +3805,8 @@ public final ExportTensorboardTimeSeriesDataPagedResponse exportTensorboardTimeS
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String tensorboardTimeSeries =
    *       TensorboardTimeSeriesName.of(
@@ -3610,6 +3847,8 @@ public final ExportTensorboardTimeSeriesDataPagedResponse exportTensorboardTimeS
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ExportTensorboardTimeSeriesDataRequest request =
    *       ExportTensorboardTimeSeriesDataRequest.newBuilder()
@@ -3649,6 +3888,8 @@ public final ExportTensorboardTimeSeriesDataPagedResponse exportTensorboardTimeS
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ExportTensorboardTimeSeriesDataRequest request =
    *       ExportTensorboardTimeSeriesDataRequest.newBuilder()
@@ -3690,6 +3931,8 @@ public final ExportTensorboardTimeSeriesDataPagedResponse exportTensorboardTimeS
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ExportTensorboardTimeSeriesDataRequest request =
    *       ExportTensorboardTimeSeriesDataRequest.newBuilder()
@@ -3710,7 +3953,7 @@ public final ExportTensorboardTimeSeriesDataPagedResponse exportTensorboardTimeS
    *   while (true) {
    *     ExportTensorboardTimeSeriesDataResponse response =
    *         tensorboardServiceClient.exportTensorboardTimeSeriesDataCallable().call(request);
-   *     for (TimeSeriesDataPoint element : response.getResponsesList()) {
+   *     for (TimeSeriesDataPoint element : response.getTimeSeriesDataPointsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -3729,6 +3972,335 @@ public final ExportTensorboardTimeSeriesDataPagedResponse exportTensorboardTimeS
     return stub.exportTensorboardTimeSeriesDataCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Lists information about the supported locations for this service.
+   *
+   * 

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : tensorboardServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         tensorboardServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = tensorboardServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = tensorboardServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = tensorboardServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = tensorboardServiceClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + @Override public final void close() { stub.close(); @@ -4208,4 +4780,80 @@ protected ExportTensorboardTimeSeriesDataFixedSizeCollection createCollection( return new ExportTensorboardTimeSeriesDataFixedSizeCollection(pages, collectionSize); } } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceSettings.java index cdafabd38bbd..795927a19b44 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ package com.google.cloud.aiplatform.v1; import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse; +import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListTensorboardExperimentsPagedResponse; import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListTensorboardRunsPagedResponse; import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListTensorboardTimeSeriesPagedResponse; @@ -36,6 +37,15 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.aiplatform.v1.stub.TensorboardServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -60,6 +70,8 @@ *

For example, to set the total timeout of getTensorboard to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * TensorboardServiceSettings.Builder tensorboardServiceSettingsBuilder =
  *     TensorboardServiceSettings.newBuilder();
  * tensorboardServiceSettingsBuilder
@@ -313,6 +325,33 @@ public UnaryCallSettings deleteTensorboa
         .exportTensorboardTimeSeriesDataSettings();
   }
 
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return ((TensorboardServiceStubSettings) getStubSettings()).listLocationsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return ((TensorboardServiceStubSettings) getStubSettings()).getLocationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return ((TensorboardServiceStubSettings) getStubSettings()).setIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return ((TensorboardServiceStubSettings) getStubSettings()).getIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return ((TensorboardServiceStubSettings) getStubSettings()).testIamPermissionsSettings();
+  }
+
   public static final TensorboardServiceSettings create(TensorboardServiceStubSettings stub)
       throws IOException {
     return new TensorboardServiceSettings.Builder(stub.toBuilder()).build();
@@ -640,6 +679,34 @@ public UnaryCallSettings.Builder getTensorbo
       return getStubSettingsBuilder().exportTensorboardTimeSeriesDataSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return getStubSettingsBuilder().listLocationsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getStubSettingsBuilder().getLocationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return getStubSettingsBuilder().setIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getStubSettingsBuilder().getIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return getStubSettingsBuilder().testIamPermissionsSettings();
+    }
+
     @Override
     public TensorboardServiceSettings build() throws IOException {
       return new TensorboardServiceSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VizierServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VizierServiceClient.java
index 4b5c402409b8..50c61d0e3018 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VizierServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VizierServiceClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -18,7 +18,6 @@
 
 import com.google.api.core.ApiFuture;
 import com.google.api.core.ApiFutures;
-import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
@@ -29,7 +28,16 @@
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1.stub.VizierServiceStub;
 import com.google.cloud.aiplatform.v1.stub.VizierServiceStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.OperationsClient;
 import com.google.protobuf.Empty;
@@ -49,6 +57,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
  *   Study study = Study.newBuilder().build();
@@ -85,6 +95,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * VizierServiceSettings vizierServiceSettings =
  *     VizierServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -95,6 +107,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * VizierServiceSettings vizierServiceSettings =
  *     VizierServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * VizierServiceClient vizierServiceClient = VizierServiceClient.create(vizierServiceSettings);
@@ -126,7 +140,6 @@ public static final VizierServiceClient create(VizierServiceSettings settings)
    * Constructs an instance of VizierServiceClient, using the given stub for making calls. This is
    * for advanced usage - prefer using create(VizierServiceSettings).
    */
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public static final VizierServiceClient create(VizierServiceStub stub) {
     return new VizierServiceClient(stub);
   }
@@ -142,7 +155,6 @@ protected VizierServiceClient(VizierServiceSettings settings) throws IOException
     this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected VizierServiceClient(VizierServiceStub stub) {
     this.settings = null;
     this.stub = stub;
@@ -153,7 +165,6 @@ public final VizierServiceSettings getSettings() {
     return settings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public VizierServiceStub getStub() {
     return stub;
   }
@@ -173,6 +184,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Study study = Study.newBuilder().build();
@@ -201,6 +214,8 @@ public final Study createStudy(LocationName parent, Study study) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Study study = Study.newBuilder().build();
@@ -226,6 +241,8 @@ public final Study createStudy(String parent, Study study) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   CreateStudyRequest request =
    *       CreateStudyRequest.newBuilder()
@@ -250,6 +267,8 @@ public final Study createStudy(CreateStudyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   CreateStudyRequest request =
    *       CreateStudyRequest.newBuilder()
@@ -273,6 +292,8 @@ public final UnaryCallable createStudyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   StudyName name = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]");
    *   Study response = vizierServiceClient.getStudy(name);
@@ -296,6 +317,8 @@ public final Study getStudy(StudyName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   String name = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString();
    *   Study response = vizierServiceClient.getStudy(name);
@@ -318,6 +341,8 @@ public final Study getStudy(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   GetStudyRequest request =
    *       GetStudyRequest.newBuilder()
@@ -341,6 +366,8 @@ public final Study getStudy(GetStudyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   GetStudyRequest request =
    *       GetStudyRequest.newBuilder()
@@ -363,6 +390,8 @@ public final UnaryCallable getStudyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Study element : vizierServiceClient.listStudies(parent).iterateAll()) {
@@ -390,6 +419,8 @@ public final ListStudiesPagedResponse listStudies(LocationName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Study element : vizierServiceClient.listStudies(parent).iterateAll()) {
@@ -414,6 +445,8 @@ public final ListStudiesPagedResponse listStudies(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   ListStudiesRequest request =
    *       ListStudiesRequest.newBuilder()
@@ -441,6 +474,8 @@ public final ListStudiesPagedResponse listStudies(ListStudiesRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   ListStudiesRequest request =
    *       ListStudiesRequest.newBuilder()
@@ -468,6 +503,8 @@ public final ListStudiesPagedResponse listStudies(ListStudiesRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   ListStudiesRequest request =
    *       ListStudiesRequest.newBuilder()
@@ -477,7 +514,7 @@ public final ListStudiesPagedResponse listStudies(ListStudiesRequest request) {
    *           .build();
    *   while (true) {
    *     ListStudiesResponse response = vizierServiceClient.listStudiesCallable().call(request);
-   *     for (Study element : response.getResponsesList()) {
+   *     for (Study element : response.getStudiesList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -501,6 +538,8 @@ public final UnaryCallable listStudiesC
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   StudyName name = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]");
    *   vizierServiceClient.deleteStudy(name);
@@ -524,6 +563,8 @@ public final void deleteStudy(StudyName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   String name = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString();
    *   vizierServiceClient.deleteStudy(name);
@@ -546,6 +587,8 @@ public final void deleteStudy(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   DeleteStudyRequest request =
    *       DeleteStudyRequest.newBuilder()
@@ -569,6 +612,8 @@ public final void deleteStudy(DeleteStudyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   DeleteStudyRequest request =
    *       DeleteStudyRequest.newBuilder()
@@ -592,6 +637,8 @@ public final UnaryCallable deleteStudyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Study response = vizierServiceClient.lookupStudy(parent);
@@ -618,6 +665,8 @@ public final Study lookupStudy(LocationName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Study response = vizierServiceClient.lookupStudy(parent);
@@ -641,6 +690,8 @@ public final Study lookupStudy(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   LookupStudyRequest request =
    *       LookupStudyRequest.newBuilder()
@@ -666,6 +717,8 @@ public final Study lookupStudy(LookupStudyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   LookupStudyRequest request =
    *       LookupStudyRequest.newBuilder()
@@ -692,6 +745,8 @@ public final UnaryCallable lookupStudyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   SuggestTrialsRequest request =
    *       SuggestTrialsRequest.newBuilder()
@@ -721,6 +776,8 @@ public final OperationFuture sugge
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   SuggestTrialsRequest request =
    *       SuggestTrialsRequest.newBuilder()
@@ -750,6 +807,8 @@ public final OperationFuture sugge
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   SuggestTrialsRequest request =
    *       SuggestTrialsRequest.newBuilder()
@@ -774,6 +833,8 @@ public final UnaryCallable suggestTrialsCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   StudyName parent = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]");
    *   Trial trial = Trial.newBuilder().build();
@@ -802,6 +863,8 @@ public final Trial createTrial(StudyName parent, Trial trial) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   String parent = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString();
    *   Trial trial = Trial.newBuilder().build();
@@ -827,6 +890,8 @@ public final Trial createTrial(String parent, Trial trial) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   CreateTrialRequest request =
    *       CreateTrialRequest.newBuilder()
@@ -851,6 +916,8 @@ public final Trial createTrial(CreateTrialRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   CreateTrialRequest request =
    *       CreateTrialRequest.newBuilder()
@@ -874,6 +941,8 @@ public final UnaryCallable createTrialCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   TrialName name = TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]");
    *   Trial response = vizierServiceClient.getTrial(name);
@@ -897,6 +966,8 @@ public final Trial getTrial(TrialName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   String name = TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString();
    *   Trial response = vizierServiceClient.getTrial(name);
@@ -919,6 +990,8 @@ public final Trial getTrial(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   GetTrialRequest request =
    *       GetTrialRequest.newBuilder()
@@ -942,6 +1015,8 @@ public final Trial getTrial(GetTrialRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   GetTrialRequest request =
    *       GetTrialRequest.newBuilder()
@@ -964,6 +1039,8 @@ public final UnaryCallable getTrialCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   StudyName parent = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]");
    *   for (Trial element : vizierServiceClient.listTrials(parent).iterateAll()) {
@@ -989,6 +1066,8 @@ public final ListTrialsPagedResponse listTrials(StudyName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   String parent = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString();
    *   for (Trial element : vizierServiceClient.listTrials(parent).iterateAll()) {
@@ -1013,6 +1092,8 @@ public final ListTrialsPagedResponse listTrials(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   ListTrialsRequest request =
    *       ListTrialsRequest.newBuilder()
@@ -1040,6 +1121,8 @@ public final ListTrialsPagedResponse listTrials(ListTrialsRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   ListTrialsRequest request =
    *       ListTrialsRequest.newBuilder()
@@ -1066,6 +1149,8 @@ public final UnaryCallable listTrial
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   ListTrialsRequest request =
    *       ListTrialsRequest.newBuilder()
@@ -1075,7 +1160,7 @@ public final UnaryCallable listTrial
    *           .build();
    *   while (true) {
    *     ListTrialsResponse response = vizierServiceClient.listTrialsCallable().call(request);
-   *     for (Trial element : response.getResponsesList()) {
+   *     for (Trial element : response.getTrialsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -1100,6 +1185,8 @@ public final UnaryCallable listTrialsCall
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   AddTrialMeasurementRequest request =
    *       AddTrialMeasurementRequest.newBuilder()
@@ -1126,6 +1213,8 @@ public final Trial addTrialMeasurement(AddTrialMeasurementRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   AddTrialMeasurementRequest request =
    *       AddTrialMeasurementRequest.newBuilder()
@@ -1151,6 +1240,8 @@ public final UnaryCallable addTrialMeasuremen
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   CompleteTrialRequest request =
    *       CompleteTrialRequest.newBuilder()
@@ -1177,6 +1268,8 @@ public final Trial completeTrial(CompleteTrialRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   CompleteTrialRequest request =
    *       CompleteTrialRequest.newBuilder()
@@ -1202,6 +1295,8 @@ public final UnaryCallable completeTrialCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   TrialName name = TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]");
    *   vizierServiceClient.deleteTrial(name);
@@ -1225,6 +1320,8 @@ public final void deleteTrial(TrialName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   String name = TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString();
    *   vizierServiceClient.deleteTrial(name);
@@ -1247,6 +1344,8 @@ public final void deleteTrial(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   DeleteTrialRequest request =
    *       DeleteTrialRequest.newBuilder()
@@ -1270,6 +1369,8 @@ public final void deleteTrial(DeleteTrialRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   DeleteTrialRequest request =
    *       DeleteTrialRequest.newBuilder()
@@ -1294,6 +1395,8 @@ public final UnaryCallable deleteTrialCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   CheckTrialEarlyStoppingStateRequest request =
    *       CheckTrialEarlyStoppingStateRequest.newBuilder()
@@ -1323,6 +1426,8 @@ public final UnaryCallable deleteTrialCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   CheckTrialEarlyStoppingStateRequest request =
    *       CheckTrialEarlyStoppingStateRequest.newBuilder()
@@ -1356,6 +1461,8 @@ public final UnaryCallable deleteTrialCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   CheckTrialEarlyStoppingStateRequest request =
    *       CheckTrialEarlyStoppingStateRequest.newBuilder()
@@ -1381,6 +1488,8 @@ public final UnaryCallable deleteTrialCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   StopTrialRequest request =
    *       StopTrialRequest.newBuilder()
@@ -1404,6 +1513,8 @@ public final Trial stopTrial(StopTrialRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   StopTrialRequest request =
    *       StopTrialRequest.newBuilder()
@@ -1428,6 +1539,8 @@ public final UnaryCallable stopTrialCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   StudyName parent = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]");
    *   ListOptimalTrialsResponse response = vizierServiceClient.listOptimalTrials(parent);
@@ -1454,6 +1567,8 @@ public final ListOptimalTrialsResponse listOptimalTrials(StudyName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   String parent = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString();
    *   ListOptimalTrialsResponse response = vizierServiceClient.listOptimalTrials(parent);
@@ -1478,6 +1593,8 @@ public final ListOptimalTrialsResponse listOptimalTrials(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   ListOptimalTrialsRequest request =
    *       ListOptimalTrialsRequest.newBuilder()
@@ -1503,6 +1620,8 @@ public final ListOptimalTrialsResponse listOptimalTrials(ListOptimalTrialsReques
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   ListOptimalTrialsRequest request =
    *       ListOptimalTrialsRequest.newBuilder()
@@ -1520,6 +1639,331 @@ public final ListOptimalTrialsResponse listOptimalTrials(ListOptimalTrialsReques
     return stub.listOptimalTrialsCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Lists information about the supported locations for this service.
+   *
+   * 

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : vizierServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       vizierServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response = vizierServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = vizierServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = vizierServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = vizierServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = vizierServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = vizierServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = vizierServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = vizierServiceClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       vizierServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + @Override public final void close() { stub.close(); @@ -1695,4 +2139,80 @@ protected ListTrialsFixedSizeCollection createCollection( return new ListTrialsFixedSizeCollection(pages, collectionSize); } } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VizierServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VizierServiceSettings.java index 430c5e7d3f1c..21d56e666345 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VizierServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/VizierServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ package com.google.cloud.aiplatform.v1; +import static com.google.cloud.aiplatform.v1.VizierServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1.VizierServiceClient.ListStudiesPagedResponse; import static com.google.cloud.aiplatform.v1.VizierServiceClient.ListTrialsPagedResponse; @@ -32,6 +33,15 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.aiplatform.v1.stub.VizierServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -56,6 +66,8 @@ *

For example, to set the total timeout of createStudy to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * VizierServiceSettings.Builder vizierServiceSettingsBuilder = VizierServiceSettings.newBuilder();
  * vizierServiceSettingsBuilder
  *     .createStudySettings()
@@ -167,6 +179,33 @@ public UnaryCallSettings stopTrialSettings() {
     return ((VizierServiceStubSettings) getStubSettings()).listOptimalTrialsSettings();
   }
 
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return ((VizierServiceStubSettings) getStubSettings()).listLocationsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return ((VizierServiceStubSettings) getStubSettings()).getLocationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return ((VizierServiceStubSettings) getStubSettings()).setIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return ((VizierServiceStubSettings) getStubSettings()).getIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return ((VizierServiceStubSettings) getStubSettings()).testIamPermissionsSettings();
+  }
+
   public static final VizierServiceSettings create(VizierServiceStubSettings stub)
       throws IOException {
     return new VizierServiceSettings.Builder(stub.toBuilder()).build();
@@ -361,6 +400,34 @@ public UnaryCallSettings.Builder stopTrialSettings() {
       return getStubSettingsBuilder().listOptimalTrialsSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return getStubSettingsBuilder().listLocationsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getStubSettingsBuilder().getLocationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return getStubSettingsBuilder().setIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getStubSettingsBuilder().getIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return getStubSettingsBuilder().testIamPermissionsSettings();
+    }
+
     @Override
     public VizierServiceSettings build() throws IOException {
       return new VizierServiceSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json
index dde8e00c266f..76777b4ad5dd 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json
@@ -25,6 +25,12 @@
             "GetDataset": {
               "methods": ["getDataset", "getDataset", "getDataset", "getDatasetCallable"]
             },
+            "GetIamPolicy": {
+              "methods": ["getIamPolicy", "getIamPolicyCallable"]
+            },
+            "GetLocation": {
+              "methods": ["getLocation", "getLocationCallable"]
+            },
             "ImportData": {
               "methods": ["importDataAsync", "importDataAsync", "importDataAsync", "importDataOperationCallable", "importDataCallable"]
             },
@@ -37,6 +43,15 @@
             "ListDatasets": {
               "methods": ["listDatasets", "listDatasets", "listDatasets", "listDatasetsPagedCallable", "listDatasetsCallable"]
             },
+            "ListLocations": {
+              "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
+            },
+            "SetIamPolicy": {
+              "methods": ["setIamPolicy", "setIamPolicyCallable"]
+            },
+            "TestIamPermissions": {
+              "methods": ["testIamPermissions", "testIamPermissionsCallable"]
+            },
             "UpdateDataset": {
               "methods": ["updateDataset", "updateDataset", "updateDatasetCallable"]
             }
@@ -61,9 +76,24 @@
             "GetEndpoint": {
               "methods": ["getEndpoint", "getEndpoint", "getEndpoint", "getEndpointCallable"]
             },
+            "GetIamPolicy": {
+              "methods": ["getIamPolicy", "getIamPolicyCallable"]
+            },
+            "GetLocation": {
+              "methods": ["getLocation", "getLocationCallable"]
+            },
             "ListEndpoints": {
               "methods": ["listEndpoints", "listEndpoints", "listEndpoints", "listEndpointsPagedCallable", "listEndpointsCallable"]
             },
+            "ListLocations": {
+              "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
+            },
+            "SetIamPolicy": {
+              "methods": ["setIamPolicy", "setIamPolicyCallable"]
+            },
+            "TestIamPermissions": {
+              "methods": ["testIamPermissions", "testIamPermissionsCallable"]
+            },
             "UndeployModel": {
               "methods": ["undeployModelAsync", "undeployModelAsync", "undeployModelAsync", "undeployModelOperationCallable", "undeployModelCallable"]
             },
@@ -79,11 +109,26 @@
         "grpc": {
           "libraryClient": "FeaturestoreOnlineServingServiceClient",
           "rpcs": {
+            "GetIamPolicy": {
+              "methods": ["getIamPolicy", "getIamPolicyCallable"]
+            },
+            "GetLocation": {
+              "methods": ["getLocation", "getLocationCallable"]
+            },
+            "ListLocations": {
+              "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
+            },
             "ReadFeatureValues": {
               "methods": ["readFeatureValues", "readFeatureValues", "readFeatureValues", "readFeatureValuesCallable"]
             },
+            "SetIamPolicy": {
+              "methods": ["setIamPolicy", "setIamPolicyCallable"]
+            },
             "StreamingReadFeatureValues": {
               "methods": ["streamingReadFeatureValuesCallable"]
+            },
+            "TestIamPermissions": {
+              "methods": ["testIamPermissions", "testIamPermissionsCallable"]
             }
           }
         }
@@ -130,6 +175,12 @@
             "GetFeaturestore": {
               "methods": ["getFeaturestore", "getFeaturestore", "getFeaturestore", "getFeaturestoreCallable"]
             },
+            "GetIamPolicy": {
+              "methods": ["getIamPolicy", "getIamPolicyCallable"]
+            },
+            "GetLocation": {
+              "methods": ["getLocation", "getLocationCallable"]
+            },
             "ImportFeatureValues": {
               "methods": ["importFeatureValuesAsync", "importFeatureValuesAsync", "importFeatureValuesAsync", "importFeatureValuesOperationCallable", "importFeatureValuesCallable"]
             },
@@ -142,9 +193,18 @@
             "ListFeaturestores": {
               "methods": ["listFeaturestores", "listFeaturestores", "listFeaturestores", "listFeaturestoresPagedCallable", "listFeaturestoresCallable"]
             },
+            "ListLocations": {
+              "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
+            },
             "SearchFeatures": {
               "methods": ["searchFeatures", "searchFeatures", "searchFeatures", "searchFeatures", "searchFeatures", "searchFeaturesPagedCallable", "searchFeaturesCallable"]
             },
+            "SetIamPolicy": {
+              "methods": ["setIamPolicy", "setIamPolicyCallable"]
+            },
+            "TestIamPermissions": {
+              "methods": ["testIamPermissions", "testIamPermissionsCallable"]
+            },
             "UpdateEntityType": {
               "methods": ["updateEntityType", "updateEntityType", "updateEntityTypeCallable"]
             },
@@ -172,15 +232,30 @@
             "DeployIndex": {
               "methods": ["deployIndexAsync", "deployIndexAsync", "deployIndexAsync", "deployIndexOperationCallable", "deployIndexCallable"]
             },
+            "GetIamPolicy": {
+              "methods": ["getIamPolicy", "getIamPolicyCallable"]
+            },
             "GetIndexEndpoint": {
               "methods": ["getIndexEndpoint", "getIndexEndpoint", "getIndexEndpoint", "getIndexEndpointCallable"]
             },
+            "GetLocation": {
+              "methods": ["getLocation", "getLocationCallable"]
+            },
             "ListIndexEndpoints": {
               "methods": ["listIndexEndpoints", "listIndexEndpoints", "listIndexEndpoints", "listIndexEndpointsPagedCallable", "listIndexEndpointsCallable"]
             },
+            "ListLocations": {
+              "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
+            },
             "MutateDeployedIndex": {
               "methods": ["mutateDeployedIndexAsync", "mutateDeployedIndexAsync", "mutateDeployedIndexAsync", "mutateDeployedIndexOperationCallable", "mutateDeployedIndexCallable"]
             },
+            "SetIamPolicy": {
+              "methods": ["setIamPolicy", "setIamPolicyCallable"]
+            },
+            "TestIamPermissions": {
+              "methods": ["testIamPermissions", "testIamPermissionsCallable"]
+            },
             "UndeployIndex": {
               "methods": ["undeployIndexAsync", "undeployIndexAsync", "undeployIndexAsync", "undeployIndexOperationCallable", "undeployIndexCallable"]
             },
@@ -202,12 +277,27 @@
             "DeleteIndex": {
               "methods": ["deleteIndexAsync", "deleteIndexAsync", "deleteIndexAsync", "deleteIndexOperationCallable", "deleteIndexCallable"]
             },
+            "GetIamPolicy": {
+              "methods": ["getIamPolicy", "getIamPolicyCallable"]
+            },
             "GetIndex": {
               "methods": ["getIndex", "getIndex", "getIndex", "getIndexCallable"]
             },
+            "GetLocation": {
+              "methods": ["getLocation", "getLocationCallable"]
+            },
             "ListIndexes": {
               "methods": ["listIndexes", "listIndexes", "listIndexes", "listIndexesPagedCallable", "listIndexesCallable"]
             },
+            "ListLocations": {
+              "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
+            },
+            "SetIamPolicy": {
+              "methods": ["setIamPolicy", "setIamPolicyCallable"]
+            },
+            "TestIamPermissions": {
+              "methods": ["testIamPermissions", "testIamPermissionsCallable"]
+            },
             "UpdateIndex": {
               "methods": ["updateIndexAsync", "updateIndexAsync", "updateIndexOperationCallable", "updateIndexCallable"]
             }
@@ -274,6 +364,12 @@
             "GetHyperparameterTuningJob": {
               "methods": ["getHyperparameterTuningJob", "getHyperparameterTuningJob", "getHyperparameterTuningJob", "getHyperparameterTuningJobCallable"]
             },
+            "GetIamPolicy": {
+              "methods": ["getIamPolicy", "getIamPolicyCallable"]
+            },
+            "GetLocation": {
+              "methods": ["getLocation", "getLocationCallable"]
+            },
             "GetModelDeploymentMonitoringJob": {
               "methods": ["getModelDeploymentMonitoringJob", "getModelDeploymentMonitoringJob", "getModelDeploymentMonitoringJob", "getModelDeploymentMonitoringJobCallable"]
             },
@@ -289,6 +385,9 @@
             "ListHyperparameterTuningJobs": {
               "methods": ["listHyperparameterTuningJobs", "listHyperparameterTuningJobs", "listHyperparameterTuningJobs", "listHyperparameterTuningJobsPagedCallable", "listHyperparameterTuningJobsCallable"]
             },
+            "ListLocations": {
+              "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
+            },
             "ListModelDeploymentMonitoringJobs": {
               "methods": ["listModelDeploymentMonitoringJobs", "listModelDeploymentMonitoringJobs", "listModelDeploymentMonitoringJobs", "listModelDeploymentMonitoringJobsPagedCallable", "listModelDeploymentMonitoringJobsCallable"]
             },
@@ -301,6 +400,12 @@
             "SearchModelDeploymentMonitoringStatsAnomalies": {
               "methods": ["searchModelDeploymentMonitoringStatsAnomalies", "searchModelDeploymentMonitoringStatsAnomalies", "searchModelDeploymentMonitoringStatsAnomalies", "searchModelDeploymentMonitoringStatsAnomaliesPagedCallable", "searchModelDeploymentMonitoringStatsAnomaliesCallable"]
             },
+            "SetIamPolicy": {
+              "methods": ["setIamPolicy", "setIamPolicyCallable"]
+            },
+            "TestIamPermissions": {
+              "methods": ["testIamPermissions", "testIamPermissionsCallable"]
+            },
             "UpdateModelDeploymentMonitoringJob": {
               "methods": ["updateModelDeploymentMonitoringJobAsync", "updateModelDeploymentMonitoringJobAsync", "updateModelDeploymentMonitoringJobOperationCallable", "updateModelDeploymentMonitoringJobCallable"]
             }
@@ -358,6 +463,12 @@
             "GetExecution": {
               "methods": ["getExecution", "getExecution", "getExecution", "getExecutionCallable"]
             },
+            "GetIamPolicy": {
+              "methods": ["getIamPolicy", "getIamPolicyCallable"]
+            },
+            "GetLocation": {
+              "methods": ["getLocation", "getLocationCallable"]
+            },
             "GetMetadataSchema": {
               "methods": ["getMetadataSchema", "getMetadataSchema", "getMetadataSchema", "getMetadataSchemaCallable"]
             },
@@ -373,6 +484,9 @@
             "ListExecutions": {
               "methods": ["listExecutions", "listExecutions", "listExecutions", "listExecutionsPagedCallable", "listExecutionsCallable"]
             },
+            "ListLocations": {
+              "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
+            },
             "ListMetadataSchemas": {
               "methods": ["listMetadataSchemas", "listMetadataSchemas", "listMetadataSchemas", "listMetadataSchemasPagedCallable", "listMetadataSchemasCallable"]
             },
@@ -397,6 +511,12 @@
             "QueryExecutionInputsAndOutputs": {
               "methods": ["queryExecutionInputsAndOutputs", "queryExecutionInputsAndOutputs", "queryExecutionInputsAndOutputs", "queryExecutionInputsAndOutputsCallable"]
             },
+            "SetIamPolicy": {
+              "methods": ["setIamPolicy", "setIamPolicyCallable"]
+            },
+            "TestIamPermissions": {
+              "methods": ["testIamPermissions", "testIamPermissionsCallable"]
+            },
             "UpdateArtifact": {
               "methods": ["updateArtifact", "updateArtifact", "updateArtifactCallable"]
             },
@@ -418,8 +538,23 @@
             "BatchMigrateResources": {
               "methods": ["batchMigrateResourcesAsync", "batchMigrateResourcesAsync", "batchMigrateResourcesAsync", "batchMigrateResourcesOperationCallable", "batchMigrateResourcesCallable"]
             },
+            "GetIamPolicy": {
+              "methods": ["getIamPolicy", "getIamPolicyCallable"]
+            },
+            "GetLocation": {
+              "methods": ["getLocation", "getLocationCallable"]
+            },
+            "ListLocations": {
+              "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
+            },
             "SearchMigratableResources": {
               "methods": ["searchMigratableResources", "searchMigratableResources", "searchMigratableResources", "searchMigratableResourcesPagedCallable", "searchMigratableResourcesCallable"]
+            },
+            "SetIamPolicy": {
+              "methods": ["setIamPolicy", "setIamPolicyCallable"]
+            },
+            "TestIamPermissions": {
+              "methods": ["testIamPermissions", "testIamPermissionsCallable"]
             }
           }
         }
@@ -433,9 +568,18 @@
             "DeleteModel": {
               "methods": ["deleteModelAsync", "deleteModelAsync", "deleteModelAsync", "deleteModelOperationCallable", "deleteModelCallable"]
             },
+            "DeleteModelVersion": {
+              "methods": ["deleteModelVersionAsync", "deleteModelVersionAsync", "deleteModelVersionAsync", "deleteModelVersionOperationCallable", "deleteModelVersionCallable"]
+            },
             "ExportModel": {
               "methods": ["exportModelAsync", "exportModelAsync", "exportModelAsync", "exportModelOperationCallable", "exportModelCallable"]
             },
+            "GetIamPolicy": {
+              "methods": ["getIamPolicy", "getIamPolicyCallable"]
+            },
+            "GetLocation": {
+              "methods": ["getLocation", "getLocationCallable"]
+            },
             "GetModel": {
               "methods": ["getModel", "getModel", "getModel", "getModelCallable"]
             },
@@ -448,15 +592,30 @@
             "ImportModelEvaluation": {
               "methods": ["importModelEvaluation", "importModelEvaluation", "importModelEvaluation", "importModelEvaluationCallable"]
             },
+            "ListLocations": {
+              "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
+            },
             "ListModelEvaluationSlices": {
               "methods": ["listModelEvaluationSlices", "listModelEvaluationSlices", "listModelEvaluationSlices", "listModelEvaluationSlicesPagedCallable", "listModelEvaluationSlicesCallable"]
             },
             "ListModelEvaluations": {
               "methods": ["listModelEvaluations", "listModelEvaluations", "listModelEvaluations", "listModelEvaluationsPagedCallable", "listModelEvaluationsCallable"]
             },
+            "ListModelVersions": {
+              "methods": ["listModelVersions", "listModelVersions", "listModelVersions", "listModelVersionsPagedCallable", "listModelVersionsCallable"]
+            },
             "ListModels": {
               "methods": ["listModels", "listModels", "listModels", "listModelsPagedCallable", "listModelsCallable"]
             },
+            "MergeVersionAliases": {
+              "methods": ["mergeVersionAliases", "mergeVersionAliases", "mergeVersionAliases", "mergeVersionAliasesCallable"]
+            },
+            "SetIamPolicy": {
+              "methods": ["setIamPolicy", "setIamPolicyCallable"]
+            },
+            "TestIamPermissions": {
+              "methods": ["testIamPermissions", "testIamPermissionsCallable"]
+            },
             "UpdateModel": {
               "methods": ["updateModel", "updateModel", "updateModelCallable"]
             },
@@ -490,17 +649,32 @@
             "DeleteTrainingPipeline": {
               "methods": ["deleteTrainingPipelineAsync", "deleteTrainingPipelineAsync", "deleteTrainingPipelineAsync", "deleteTrainingPipelineOperationCallable", "deleteTrainingPipelineCallable"]
             },
+            "GetIamPolicy": {
+              "methods": ["getIamPolicy", "getIamPolicyCallable"]
+            },
+            "GetLocation": {
+              "methods": ["getLocation", "getLocationCallable"]
+            },
             "GetPipelineJob": {
               "methods": ["getPipelineJob", "getPipelineJob", "getPipelineJob", "getPipelineJobCallable"]
             },
             "GetTrainingPipeline": {
               "methods": ["getTrainingPipeline", "getTrainingPipeline", "getTrainingPipeline", "getTrainingPipelineCallable"]
             },
+            "ListLocations": {
+              "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
+            },
             "ListPipelineJobs": {
               "methods": ["listPipelineJobs", "listPipelineJobs", "listPipelineJobs", "listPipelineJobsPagedCallable", "listPipelineJobsCallable"]
             },
             "ListTrainingPipelines": {
               "methods": ["listTrainingPipelines", "listTrainingPipelines", "listTrainingPipelines", "listTrainingPipelinesPagedCallable", "listTrainingPipelinesCallable"]
+            },
+            "SetIamPolicy": {
+              "methods": ["setIamPolicy", "setIamPolicyCallable"]
+            },
+            "TestIamPermissions": {
+              "methods": ["testIamPermissions", "testIamPermissionsCallable"]
             }
           }
         }
@@ -514,11 +688,26 @@
             "Explain": {
               "methods": ["explain", "explain", "explain", "explainCallable"]
             },
+            "GetIamPolicy": {
+              "methods": ["getIamPolicy", "getIamPolicyCallable"]
+            },
+            "GetLocation": {
+              "methods": ["getLocation", "getLocationCallable"]
+            },
+            "ListLocations": {
+              "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
+            },
             "Predict": {
               "methods": ["predict", "predict", "predict", "predictCallable"]
             },
             "RawPredict": {
               "methods": ["rawPredict", "rawPredict", "rawPredict", "rawPredictCallable"]
+            },
+            "SetIamPolicy": {
+              "methods": ["setIamPolicy", "setIamPolicyCallable"]
+            },
+            "TestIamPermissions": {
+              "methods": ["testIamPermissions", "testIamPermissionsCallable"]
             }
           }
         }
@@ -535,12 +724,27 @@
             "DeleteSpecialistPool": {
               "methods": ["deleteSpecialistPoolAsync", "deleteSpecialistPoolAsync", "deleteSpecialistPoolAsync", "deleteSpecialistPoolOperationCallable", "deleteSpecialistPoolCallable"]
             },
+            "GetIamPolicy": {
+              "methods": ["getIamPolicy", "getIamPolicyCallable"]
+            },
+            "GetLocation": {
+              "methods": ["getLocation", "getLocationCallable"]
+            },
             "GetSpecialistPool": {
               "methods": ["getSpecialistPool", "getSpecialistPool", "getSpecialistPool", "getSpecialistPoolCallable"]
             },
+            "ListLocations": {
+              "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
+            },
             "ListSpecialistPools": {
               "methods": ["listSpecialistPools", "listSpecialistPools", "listSpecialistPools", "listSpecialistPoolsPagedCallable", "listSpecialistPoolsCallable"]
             },
+            "SetIamPolicy": {
+              "methods": ["setIamPolicy", "setIamPolicyCallable"]
+            },
+            "TestIamPermissions": {
+              "methods": ["testIamPermissions", "testIamPermissionsCallable"]
+            },
             "UpdateSpecialistPool": {
               "methods": ["updateSpecialistPoolAsync", "updateSpecialistPoolAsync", "updateSpecialistPoolOperationCallable", "updateSpecialistPoolCallable"]
             }
@@ -589,6 +793,12 @@
             "ExportTensorboardTimeSeriesData": {
               "methods": ["exportTensorboardTimeSeriesData", "exportTensorboardTimeSeriesData", "exportTensorboardTimeSeriesData", "exportTensorboardTimeSeriesDataPagedCallable", "exportTensorboardTimeSeriesDataCallable"]
             },
+            "GetIamPolicy": {
+              "methods": ["getIamPolicy", "getIamPolicyCallable"]
+            },
+            "GetLocation": {
+              "methods": ["getLocation", "getLocationCallable"]
+            },
             "GetTensorboard": {
               "methods": ["getTensorboard", "getTensorboard", "getTensorboard", "getTensorboardCallable"]
             },
@@ -601,6 +811,9 @@
             "GetTensorboardTimeSeries": {
               "methods": ["getTensorboardTimeSeries", "getTensorboardTimeSeries", "getTensorboardTimeSeries", "getTensorboardTimeSeriesCallable"]
             },
+            "ListLocations": {
+              "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
+            },
             "ListTensorboardExperiments": {
               "methods": ["listTensorboardExperiments", "listTensorboardExperiments", "listTensorboardExperiments", "listTensorboardExperimentsPagedCallable", "listTensorboardExperimentsCallable"]
             },
@@ -619,6 +832,12 @@
             "ReadTensorboardTimeSeriesData": {
               "methods": ["readTensorboardTimeSeriesData", "readTensorboardTimeSeriesData", "readTensorboardTimeSeriesData", "readTensorboardTimeSeriesDataCallable"]
             },
+            "SetIamPolicy": {
+              "methods": ["setIamPolicy", "setIamPolicyCallable"]
+            },
+            "TestIamPermissions": {
+              "methods": ["testIamPermissions", "testIamPermissionsCallable"]
+            },
             "UpdateTensorboard": {
               "methods": ["updateTensorboardAsync", "updateTensorboardAsync", "updateTensorboardOperationCallable", "updateTensorboardCallable"]
             },
@@ -667,12 +886,21 @@
             "DeleteTrial": {
               "methods": ["deleteTrial", "deleteTrial", "deleteTrial", "deleteTrialCallable"]
             },
+            "GetIamPolicy": {
+              "methods": ["getIamPolicy", "getIamPolicyCallable"]
+            },
+            "GetLocation": {
+              "methods": ["getLocation", "getLocationCallable"]
+            },
             "GetStudy": {
               "methods": ["getStudy", "getStudy", "getStudy", "getStudyCallable"]
             },
             "GetTrial": {
               "methods": ["getTrial", "getTrial", "getTrial", "getTrialCallable"]
             },
+            "ListLocations": {
+              "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
+            },
             "ListOptimalTrials": {
               "methods": ["listOptimalTrials", "listOptimalTrials", "listOptimalTrials", "listOptimalTrialsCallable"]
             },
@@ -685,11 +913,17 @@
             "LookupStudy": {
               "methods": ["lookupStudy", "lookupStudy", "lookupStudy", "lookupStudyCallable"]
             },
+            "SetIamPolicy": {
+              "methods": ["setIamPolicy", "setIamPolicyCallable"]
+            },
             "StopTrial": {
               "methods": ["stopTrial", "stopTrialCallable"]
             },
             "SuggestTrials": {
               "methods": ["suggestTrialsAsync", "suggestTrialsOperationCallable", "suggestTrialsCallable"]
+            },
+            "TestIamPermissions": {
+              "methods": ["testIamPermissions", "testIamPermissionsCallable"]
             }
           }
         }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/package-info.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/package-info.java
index 4acd7ace6fb7..6e086ab6d232 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/package-info.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/package-info.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -15,7 +15,9 @@
  */
 
 /**
- * The interfaces provided are listed below, along with usage samples.
+ * A client to Vertex AI API
+ *
+ * 

The interfaces provided are listed below, along with usage samples. * *

======================= DatasetServiceClient ======================= * @@ -25,6 +27,8 @@ *

Sample for DatasetServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
  *   DatasetName name = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]");
  *   Dataset response = datasetServiceClient.getDataset(name);
@@ -38,6 +42,8 @@
  * 

Sample for EndpointServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
  *   EndpointName name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
  *   Endpoint response = endpointServiceClient.getEndpoint(name);
@@ -51,6 +57,8 @@
  * 

Sample for FeaturestoreOnlineServingServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
  *     FeaturestoreOnlineServingServiceClient.create()) {
  *   EntityTypeName entityType =
@@ -67,6 +75,8 @@
  * 

Sample for FeaturestoreServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
  *   FeaturestoreName name = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
  *   Featurestore response = featurestoreServiceClient.getFeaturestore(name);
@@ -80,6 +90,8 @@
  * 

Sample for IndexEndpointServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (IndexEndpointServiceClient indexEndpointServiceClient =
  *     IndexEndpointServiceClient.create()) {
  *   IndexEndpointName name = IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]");
@@ -94,6 +106,8 @@
  * 

Sample for IndexServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
  *   IndexName name = IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]");
  *   Index response = indexServiceClient.getIndex(name);
@@ -107,6 +121,8 @@
  * 

Sample for JobServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
  *   CustomJob customJob = CustomJob.newBuilder().build();
@@ -121,6 +137,8 @@
  * 

Sample for MetadataServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
  *   MetadataStoreName name = MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
  *   MetadataStore response = metadataServiceClient.getMetadataStore(name);
@@ -135,12 +153,11 @@
  * 

Sample for MigrationServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
- *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- *   for (MigratableResource element :
- *       migrationServiceClient.searchMigratableResources(parent).iterateAll()) {
- *     // doThingsWith(element);
- *   }
+ *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ *   Location response = migrationServiceClient.getLocation(request);
  * }
  * }
* @@ -151,6 +168,8 @@ *

Sample for ModelServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
  *   ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
  *   Model response = modelServiceClient.getModel(name);
@@ -166,6 +185,8 @@
  * 

Sample for PipelineServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
  *   TrainingPipeline trainingPipeline = TrainingPipeline.newBuilder().build();
@@ -181,10 +202,12 @@
  * 

Sample for PredictionServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
  *   EndpointName endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
  *   List instances = new ArrayList<>();
- *   Value parameters = Value.newBuilder().build();
+ *   Value parameters = Value.newBuilder().setBoolValue(true).build();
  *   PredictResponse response = predictionServiceClient.predict(endpoint, instances, parameters);
  * }
  * }
@@ -200,6 +223,8 @@ *

Sample for SpecialistPoolServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (SpecialistPoolServiceClient specialistPoolServiceClient =
  *     SpecialistPoolServiceClient.create()) {
  *   SpecialistPoolName name =
@@ -215,6 +240,8 @@
  * 

Sample for TensorboardServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
  *   TensorboardName name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
  *   Tensorboard response = tensorboardServiceClient.getTensorboard(name);
@@ -231,6 +258,8 @@
  * 

Sample for VizierServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
  *   Study study = Study.newBuilder().build();
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStub.java
index 2e8bb32cea42..bcf8d819d391 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
 import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListAnnotationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDataItemsPagedResponse;
 import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDatasetsPagedResponse;
+import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.gax.core.BackgroundResource;
 import com.google.api.gax.rpc.OperationCallable;
@@ -44,6 +45,15 @@
 import com.google.cloud.aiplatform.v1.ListDatasetsRequest;
 import com.google.cloud.aiplatform.v1.ListDatasetsResponse;
 import com.google.cloud.aiplatform.v1.UpdateDatasetRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.OperationsStub;
 import com.google.protobuf.Empty;
@@ -136,6 +146,32 @@ public UnaryCallable listAnnota
     throw new UnsupportedOperationException("Not implemented: listAnnotationsCallable()");
   }
 
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
+  }
+
+  public UnaryCallable listLocationsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
+  }
+
+  public UnaryCallable getLocationCallable() {
+    throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
+  }
+
+  public UnaryCallable setIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
+  }
+
+  public UnaryCallable getIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
+  }
+
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java
index 5c53cb5c56cd..66c9d9293747 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
 import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListAnnotationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDataItemsPagedResponse;
 import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDatasetsPagedResponse;
+import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.core.ApiFunction;
 import com.google.api.core.ApiFuture;
@@ -69,10 +70,19 @@
 import com.google.cloud.aiplatform.v1.ListDatasetsRequest;
 import com.google.cloud.aiplatform.v1.ListDatasetsResponse;
 import com.google.cloud.aiplatform.v1.UpdateDatasetRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.Empty;
 import java.io.IOException;
@@ -98,6 +108,8 @@
  * 

For example, to set the total timeout of getDataset to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * DatasetServiceStubSettings.Builder datasetServiceSettingsBuilder =
  *     DatasetServiceStubSettings.newBuilder();
  * datasetServiceSettingsBuilder
@@ -145,6 +157,14 @@ public class DatasetServiceStubSettings extends StubSettings
       listAnnotationsSettings;
+  private final PagedCallSettings<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      listLocationsSettings;
+  private final UnaryCallSettings getLocationSettings;
+  private final UnaryCallSettings setIamPolicySettings;
+  private final UnaryCallSettings getIamPolicySettings;
+  private final UnaryCallSettings
+      testIamPermissionsSettings;
 
   private static final PagedListDescriptor
       LIST_DATASETS_PAGE_STR_DESC =
@@ -257,6 +277,42 @@ public Iterable extractResources(ListAnnotationsResponse payload) {
             }
           };
 
+  private static final PagedListDescriptor
+      LIST_LOCATIONS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) {
+              return ListLocationsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) {
+              return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListLocationsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListLocationsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListLocationsResponse payload) {
+              return payload.getLocationsList() == null
+                  ? ImmutableList.of()
+                  : payload.getLocationsList();
+            }
+          };
+
   private static final PagedListResponseFactory<
           ListDatasetsRequest, ListDatasetsResponse, ListDatasetsPagedResponse>
       LIST_DATASETS_PAGE_STR_FACT =
@@ -308,6 +364,23 @@ public ApiFuture getFuturePagedResponse(
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      LIST_LOCATIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListLocationsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context);
+              return ListLocationsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
   /** Returns the object with the settings used for calls to createDataset. */
   public UnaryCallSettings createDatasetSettings() {
     return createDatasetSettings;
@@ -386,7 +459,33 @@ public UnaryCallSettings getAnnotation
     return listAnnotationsSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return listLocationsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return getLocationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return setIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return getIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return testIamPermissionsSettings;
+  }
+
   public DatasetServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -476,6 +575,11 @@ protected DatasetServiceStubSettings(Builder settingsBuilder) throws IOException
     listDataItemsSettings = settingsBuilder.listDataItemsSettings().build();
     getAnnotationSpecSettings = settingsBuilder.getAnnotationSpecSettings().build();
     listAnnotationsSettings = settingsBuilder.listAnnotationsSettings().build();
+    listLocationsSettings = settingsBuilder.listLocationsSettings().build();
+    getLocationSettings = settingsBuilder.getLocationSettings().build();
+    setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
+    getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
+    testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
   }
 
   /** Builder for DatasetServiceStubSettings. */
@@ -510,6 +614,14 @@ public static class Builder extends StubSettings.Builder
         listAnnotationsSettings;
+    private final PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings;
+    private final UnaryCallSettings.Builder getLocationSettings;
+    private final UnaryCallSettings.Builder setIamPolicySettings;
+    private final UnaryCallSettings.Builder getIamPolicySettings;
+    private final UnaryCallSettings.Builder
+        testIamPermissionsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -551,6 +663,11 @@ protected Builder(ClientContext clientContext) {
       listDataItemsSettings = PagedCallSettings.newBuilder(LIST_DATA_ITEMS_PAGE_STR_FACT);
       getAnnotationSpecSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       listAnnotationsSettings = PagedCallSettings.newBuilder(LIST_ANNOTATIONS_PAGE_STR_FACT);
+      listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
+      getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -563,7 +680,12 @@ protected Builder(ClientContext clientContext) {
               exportDataSettings,
               listDataItemsSettings,
               getAnnotationSpecSettings,
-              listAnnotationsSettings);
+              listAnnotationsSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
       initDefaults(this);
     }
 
@@ -584,6 +706,11 @@ protected Builder(DatasetServiceStubSettings settings) {
       listDataItemsSettings = settings.listDataItemsSettings.toBuilder();
       getAnnotationSpecSettings = settings.getAnnotationSpecSettings.toBuilder();
       listAnnotationsSettings = settings.listAnnotationsSettings.toBuilder();
+      listLocationsSettings = settings.listLocationsSettings.toBuilder();
+      getLocationSettings = settings.getLocationSettings.toBuilder();
+      setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
+      getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
+      testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -596,7 +723,12 @@ protected Builder(DatasetServiceStubSettings settings) {
               exportDataSettings,
               listDataItemsSettings,
               getAnnotationSpecSettings,
-              listAnnotationsSettings);
+              listAnnotationsSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
     }
 
     private static Builder createDefault() {
@@ -663,6 +795,31 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
 
+      builder
+          .listLocationsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getLocationSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .setIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .testIamPermissionsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .createDatasetOperationSettings()
           .setInitialCallSettings(
@@ -870,6 +1027,34 @@ public UnaryCallSettings.Builder exportDataSetting
       return listAnnotationsSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return listLocationsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getLocationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return setIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return testIamPermissionsSettings;
+    }
+
     @Override
     public DatasetServiceStubSettings build() throws IOException {
       return new DatasetServiceStubSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStub.java
index 1904849dc263..878541d0f383 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1.stub;
 
 import static com.google.cloud.aiplatform.v1.EndpointServiceClient.ListEndpointsPagedResponse;
+import static com.google.cloud.aiplatform.v1.EndpointServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.gax.core.BackgroundResource;
 import com.google.api.gax.rpc.OperationCallable;
@@ -36,6 +37,15 @@
 import com.google.cloud.aiplatform.v1.UndeployModelRequest;
 import com.google.cloud.aiplatform.v1.UndeployModelResponse;
 import com.google.cloud.aiplatform.v1.UpdateEndpointRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.OperationsStub;
 import com.google.protobuf.Empty;
@@ -108,6 +118,32 @@ public UnaryCallable undeployModelCallable() {
     throw new UnsupportedOperationException("Not implemented: undeployModelCallable()");
   }
 
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
+  }
+
+  public UnaryCallable listLocationsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
+  }
+
+  public UnaryCallable getLocationCallable() {
+    throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
+  }
+
+  public UnaryCallable setIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
+  }
+
+  public UnaryCallable getIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
+  }
+
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStubSettings.java
index c4c4d3979643..f9525c09f4b2 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1.stub;
 
 import static com.google.cloud.aiplatform.v1.EndpointServiceClient.ListEndpointsPagedResponse;
+import static com.google.cloud.aiplatform.v1.EndpointServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.core.ApiFunction;
 import com.google.api.core.ApiFuture;
@@ -59,10 +60,19 @@
 import com.google.cloud.aiplatform.v1.UndeployModelRequest;
 import com.google.cloud.aiplatform.v1.UndeployModelResponse;
 import com.google.cloud.aiplatform.v1.UpdateEndpointRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.Empty;
 import java.io.IOException;
@@ -88,6 +98,8 @@
  * 

For example, to set the total timeout of getEndpoint to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * EndpointServiceStubSettings.Builder endpointServiceSettingsBuilder =
  *     EndpointServiceStubSettings.newBuilder();
  * endpointServiceSettingsBuilder
@@ -128,6 +140,14 @@ public class EndpointServiceStubSettings extends StubSettings
       undeployModelOperationSettings;
+  private final PagedCallSettings<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      listLocationsSettings;
+  private final UnaryCallSettings getLocationSettings;
+  private final UnaryCallSettings setIamPolicySettings;
+  private final UnaryCallSettings getIamPolicySettings;
+  private final UnaryCallSettings
+      testIamPermissionsSettings;
 
   private static final PagedListDescriptor
       LIST_ENDPOINTS_PAGE_STR_DESC =
@@ -165,6 +185,42 @@ public Iterable extractResources(ListEndpointsResponse payload) {
             }
           };
 
+  private static final PagedListDescriptor
+      LIST_LOCATIONS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) {
+              return ListLocationsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) {
+              return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListLocationsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListLocationsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListLocationsResponse payload) {
+              return payload.getLocationsList() == null
+                  ? ImmutableList.of()
+                  : payload.getLocationsList();
+            }
+          };
+
   private static final PagedListResponseFactory<
           ListEndpointsRequest, ListEndpointsResponse, ListEndpointsPagedResponse>
       LIST_ENDPOINTS_PAGE_STR_FACT =
@@ -182,6 +238,23 @@ public ApiFuture getFuturePagedResponse(
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      LIST_LOCATIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListLocationsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context);
+              return ListLocationsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
   /** Returns the object with the settings used for calls to createEndpoint. */
   public UnaryCallSettings createEndpointSettings() {
     return createEndpointSettings;
@@ -244,7 +317,33 @@ public UnaryCallSettings undeployModelSettings(
     return undeployModelOperationSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return listLocationsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return getLocationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return setIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return getIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return testIamPermissionsSettings;
+  }
+
   public EndpointServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -331,6 +430,11 @@ protected EndpointServiceStubSettings(Builder settingsBuilder) throws IOExceptio
     deployModelOperationSettings = settingsBuilder.deployModelOperationSettings().build();
     undeployModelSettings = settingsBuilder.undeployModelSettings().build();
     undeployModelOperationSettings = settingsBuilder.undeployModelOperationSettings().build();
+    listLocationsSettings = settingsBuilder.listLocationsSettings().build();
+    getLocationSettings = settingsBuilder.getLocationSettings().build();
+    setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
+    getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
+    testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
   }
 
   /** Builder for EndpointServiceStubSettings. */
@@ -359,6 +463,14 @@ public static class Builder extends StubSettings.Builder
         undeployModelOperationSettings;
+    private final PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings;
+    private final UnaryCallSettings.Builder getLocationSettings;
+    private final UnaryCallSettings.Builder setIamPolicySettings;
+    private final UnaryCallSettings.Builder getIamPolicySettings;
+    private final UnaryCallSettings.Builder
+        testIamPermissionsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -397,6 +509,11 @@ protected Builder(ClientContext clientContext) {
       deployModelOperationSettings = OperationCallSettings.newBuilder();
       undeployModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       undeployModelOperationSettings = OperationCallSettings.newBuilder();
+      listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
+      getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -406,7 +523,12 @@ protected Builder(ClientContext clientContext) {
               updateEndpointSettings,
               deleteEndpointSettings,
               deployModelSettings,
-              undeployModelSettings);
+              undeployModelSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
       initDefaults(this);
     }
 
@@ -424,6 +546,11 @@ protected Builder(EndpointServiceStubSettings settings) {
       deployModelOperationSettings = settings.deployModelOperationSettings.toBuilder();
       undeployModelSettings = settings.undeployModelSettings.toBuilder();
       undeployModelOperationSettings = settings.undeployModelOperationSettings.toBuilder();
+      listLocationsSettings = settings.listLocationsSettings.toBuilder();
+      getLocationSettings = settings.getLocationSettings.toBuilder();
+      setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
+      getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
+      testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -433,7 +560,12 @@ protected Builder(EndpointServiceStubSettings settings) {
               updateEndpointSettings,
               deleteEndpointSettings,
               deployModelSettings,
-              undeployModelSettings);
+              undeployModelSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
     }
 
     private static Builder createDefault() {
@@ -485,6 +617,31 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
 
+      builder
+          .listLocationsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getLocationSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .setIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .testIamPermissionsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .createEndpointOperationSettings()
           .setInitialCallSettings(
@@ -673,6 +830,34 @@ public UnaryCallSettings.Builder undeployModelS
       return undeployModelOperationSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return listLocationsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getLocationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return setIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return testIamPermissionsSettings;
+    }
+
     @Override
     public EndpointServiceStubSettings build() throws IOException {
       return new EndpointServiceStubSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreOnlineServingServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreOnlineServingServiceStub.java
index 369474f0e064..bc29da25dcea 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreOnlineServingServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreOnlineServingServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,12 +16,23 @@
 
 package com.google.cloud.aiplatform.v1.stub;
 
+import static com.google.cloud.aiplatform.v1.FeaturestoreOnlineServingServiceClient.ListLocationsPagedResponse;
+
 import com.google.api.gax.core.BackgroundResource;
 import com.google.api.gax.rpc.ServerStreamingCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1.ReadFeatureValuesRequest;
 import com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse;
 import com.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS.
@@ -44,6 +55,32 @@ public abstract class FeaturestoreOnlineServingServiceStub implements Background
         "Not implemented: streamingReadFeatureValuesCallable()");
   }
 
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
+  }
+
+  public UnaryCallable listLocationsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
+  }
+
+  public UnaryCallable getLocationCallable() {
+    throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
+  }
+
+  public UnaryCallable setIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
+  }
+
+  public UnaryCallable getIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
+  }
+
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreOnlineServingServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreOnlineServingServiceStubSettings.java
index 3476a5d25ee0..3fd811c5541f 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreOnlineServingServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreOnlineServingServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,7 +16,10 @@
 
 package com.google.cloud.aiplatform.v1.stub;
 
+import static com.google.cloud.aiplatform.v1.FeaturestoreOnlineServingServiceClient.ListLocationsPagedResponse;
+
 import com.google.api.core.ApiFunction;
+import com.google.api.core.ApiFuture;
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
@@ -25,20 +28,35 @@
 import com.google.api.gax.grpc.GrpcTransportChannel;
 import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
 import com.google.api.gax.retrying.RetrySettings;
+import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.PageContext;
+import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.PagedListDescriptor;
+import com.google.api.gax.rpc.PagedListResponseFactory;
 import com.google.api.gax.rpc.ServerStreamingCallSettings;
 import com.google.api.gax.rpc.StatusCode;
 import com.google.api.gax.rpc.StubSettings;
 import com.google.api.gax.rpc.TransportChannelProvider;
 import com.google.api.gax.rpc.UnaryCallSettings;
+import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1.ReadFeatureValuesRequest;
 import com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse;
 import com.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import java.io.IOException;
 import java.util.List;
 import javax.annotation.Generated;
@@ -61,6 +79,8 @@
  * 

For example, to set the total timeout of readFeatureValues to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * FeaturestoreOnlineServingServiceStubSettings.Builder
  *     featurestoreOnlineServingServiceSettingsBuilder =
  *         FeaturestoreOnlineServingServiceStubSettings.newBuilder();
@@ -89,6 +109,67 @@ public class FeaturestoreOnlineServingServiceStubSettings
   private final ServerStreamingCallSettings<
           StreamingReadFeatureValuesRequest, ReadFeatureValuesResponse>
       streamingReadFeatureValuesSettings;
+  private final PagedCallSettings<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      listLocationsSettings;
+  private final UnaryCallSettings getLocationSettings;
+  private final UnaryCallSettings setIamPolicySettings;
+  private final UnaryCallSettings getIamPolicySettings;
+  private final UnaryCallSettings
+      testIamPermissionsSettings;
+
+  private static final PagedListDescriptor
+      LIST_LOCATIONS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) {
+              return ListLocationsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) {
+              return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListLocationsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListLocationsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListLocationsResponse payload) {
+              return payload.getLocationsList() == null
+                  ? ImmutableList.of()
+                  : payload.getLocationsList();
+            }
+          };
+
+  private static final PagedListResponseFactory<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      LIST_LOCATIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListLocationsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context);
+              return ListLocationsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
 
   /** Returns the object with the settings used for calls to readFeatureValues. */
   public UnaryCallSettings
@@ -102,7 +183,33 @@ public class FeaturestoreOnlineServingServiceStubSettings
     return streamingReadFeatureValuesSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return listLocationsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return getLocationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return setIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return getIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return testIamPermissionsSettings;
+  }
+
   public FeaturestoreOnlineServingServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -183,6 +290,11 @@ protected FeaturestoreOnlineServingServiceStubSettings(Builder settingsBuilder)
     readFeatureValuesSettings = settingsBuilder.readFeatureValuesSettings().build();
     streamingReadFeatureValuesSettings =
         settingsBuilder.streamingReadFeatureValuesSettings().build();
+    listLocationsSettings = settingsBuilder.listLocationsSettings().build();
+    getLocationSettings = settingsBuilder.getLocationSettings().build();
+    setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
+    getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
+    testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
   }
 
   /** Builder for FeaturestoreOnlineServingServiceStubSettings. */
@@ -194,6 +306,14 @@ public static class Builder
     private final ServerStreamingCallSettings.Builder<
             StreamingReadFeatureValuesRequest, ReadFeatureValuesResponse>
         streamingReadFeatureValuesSettings;
+    private final PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings;
+    private final UnaryCallSettings.Builder getLocationSettings;
+    private final UnaryCallSettings.Builder setIamPolicySettings;
+    private final UnaryCallSettings.Builder getIamPolicySettings;
+    private final UnaryCallSettings.Builder
+        testIamPermissionsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -223,9 +343,20 @@ protected Builder(ClientContext clientContext) {
 
       readFeatureValuesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       streamingReadFeatureValuesSettings = ServerStreamingCallSettings.newBuilder();
+      listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
+      getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
-          ImmutableList.>of(readFeatureValuesSettings);
+          ImmutableList.>of(
+              readFeatureValuesSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
       initDefaults(this);
     }
 
@@ -234,9 +365,20 @@ protected Builder(FeaturestoreOnlineServingServiceStubSettings settings) {
 
       readFeatureValuesSettings = settings.readFeatureValuesSettings.toBuilder();
       streamingReadFeatureValuesSettings = settings.streamingReadFeatureValuesSettings.toBuilder();
+      listLocationsSettings = settings.listLocationsSettings.toBuilder();
+      getLocationSettings = settings.getLocationSettings.toBuilder();
+      setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
+      getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
+      testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
-          ImmutableList.>of(readFeatureValuesSettings);
+          ImmutableList.>of(
+              readFeatureValuesSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
     }
 
     private static Builder createDefault() {
@@ -263,6 +405,31 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
 
+      builder
+          .listLocationsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getLocationSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .setIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .testIamPermissionsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       return builder;
     }
 
@@ -294,6 +461,34 @@ public Builder applyToAllUnaryMethods(
       return streamingReadFeatureValuesSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return listLocationsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getLocationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return setIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return testIamPermissionsSettings;
+    }
+
     @Override
     public FeaturestoreOnlineServingServiceStubSettings build() throws IOException {
       return new FeaturestoreOnlineServingServiceStubSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreServiceStub.java
index 178695e8b647..60cc62f85319 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
 import static com.google.cloud.aiplatform.v1.FeaturestoreServiceClient.ListEntityTypesPagedResponse;
 import static com.google.cloud.aiplatform.v1.FeaturestoreServiceClient.ListFeaturesPagedResponse;
 import static com.google.cloud.aiplatform.v1.FeaturestoreServiceClient.ListFeaturestoresPagedResponse;
+import static com.google.cloud.aiplatform.v1.FeaturestoreServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.FeaturestoreServiceClient.SearchFeaturesPagedResponse;
 
 import com.google.api.gax.core.BackgroundResource;
@@ -64,6 +65,15 @@
 import com.google.cloud.aiplatform.v1.UpdateFeatureRequest;
 import com.google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata;
 import com.google.cloud.aiplatform.v1.UpdateFeaturestoreRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.OperationsStub;
 import com.google.protobuf.Empty;
@@ -258,6 +268,32 @@ public UnaryCallable searchFeatur
     throw new UnsupportedOperationException("Not implemented: searchFeaturesCallable()");
   }
 
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
+  }
+
+  public UnaryCallable listLocationsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
+  }
+
+  public UnaryCallable getLocationCallable() {
+    throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
+  }
+
+  public UnaryCallable setIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
+  }
+
+  public UnaryCallable getIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
+  }
+
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreServiceStubSettings.java
index e4680608ab39..c949d4f984de 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
 import static com.google.cloud.aiplatform.v1.FeaturestoreServiceClient.ListEntityTypesPagedResponse;
 import static com.google.cloud.aiplatform.v1.FeaturestoreServiceClient.ListFeaturesPagedResponse;
 import static com.google.cloud.aiplatform.v1.FeaturestoreServiceClient.ListFeaturestoresPagedResponse;
+import static com.google.cloud.aiplatform.v1.FeaturestoreServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.FeaturestoreServiceClient.SearchFeaturesPagedResponse;
 
 import com.google.api.core.ApiFunction;
@@ -87,10 +88,19 @@
 import com.google.cloud.aiplatform.v1.UpdateFeatureRequest;
 import com.google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata;
 import com.google.cloud.aiplatform.v1.UpdateFeaturestoreRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.Empty;
 import java.io.IOException;
@@ -116,6 +126,8 @@
  * 

For example, to set the total timeout of getFeaturestore to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * FeaturestoreServiceStubSettings.Builder featurestoreServiceSettingsBuilder =
  *     FeaturestoreServiceStubSettings.newBuilder();
  * featurestoreServiceSettingsBuilder
@@ -206,6 +218,14 @@ public class FeaturestoreServiceStubSettings extends StubSettings
       searchFeaturesSettings;
+  private final PagedCallSettings<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      listLocationsSettings;
+  private final UnaryCallSettings getLocationSettings;
+  private final UnaryCallSettings setIamPolicySettings;
+  private final UnaryCallSettings getIamPolicySettings;
+  private final UnaryCallSettings
+      testIamPermissionsSettings;
 
   private static final PagedListDescriptor<
           ListFeaturestoresRequest, ListFeaturestoresResponse, Featurestore>
@@ -359,6 +379,42 @@ public Iterable extractResources(SearchFeaturesResponse payload) {
             }
           };
 
+  private static final PagedListDescriptor
+      LIST_LOCATIONS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) {
+              return ListLocationsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) {
+              return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListLocationsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListLocationsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListLocationsResponse payload) {
+              return payload.getLocationsList() == null
+                  ? ImmutableList.of()
+                  : payload.getLocationsList();
+            }
+          };
+
   private static final PagedListResponseFactory<
           ListFeaturestoresRequest, ListFeaturestoresResponse, ListFeaturestoresPagedResponse>
       LIST_FEATURESTORES_PAGE_STR_FACT =
@@ -431,6 +487,23 @@ public ApiFuture getFuturePagedResponse(
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      LIST_LOCATIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListLocationsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context);
+              return ListLocationsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
   /** Returns the object with the settings used for calls to createFeaturestore. */
   public UnaryCallSettings createFeaturestoreSettings() {
     return createFeaturestoreSettings;
@@ -620,7 +693,33 @@ public UnaryCallSettings exportFeatureVal
     return searchFeaturesSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return listLocationsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return getLocationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return setIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return getIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return testIamPermissionsSettings;
+  }
+
   public FeaturestoreServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -734,6 +833,11 @@ protected FeaturestoreServiceStubSettings(Builder settingsBuilder) throws IOExce
     exportFeatureValuesOperationSettings =
         settingsBuilder.exportFeatureValuesOperationSettings().build();
     searchFeaturesSettings = settingsBuilder.searchFeaturesSettings().build();
+    listLocationsSettings = settingsBuilder.listLocationsSettings().build();
+    getLocationSettings = settingsBuilder.getLocationSettings().build();
+    setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
+    getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
+    testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
   }
 
   /** Builder for FeaturestoreServiceStubSettings. */
@@ -820,6 +924,14 @@ public static class Builder
     private final PagedCallSettings.Builder<
             SearchFeaturesRequest, SearchFeaturesResponse, SearchFeaturesPagedResponse>
         searchFeaturesSettings;
+    private final PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings;
+    private final UnaryCallSettings.Builder getLocationSettings;
+    private final UnaryCallSettings.Builder setIamPolicySettings;
+    private final UnaryCallSettings.Builder getIamPolicySettings;
+    private final UnaryCallSettings.Builder
+        testIamPermissionsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -878,6 +990,11 @@ protected Builder(ClientContext clientContext) {
       exportFeatureValuesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       exportFeatureValuesOperationSettings = OperationCallSettings.newBuilder();
       searchFeaturesSettings = PagedCallSettings.newBuilder(SEARCH_FEATURES_PAGE_STR_FACT);
+      listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
+      getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -900,7 +1017,12 @@ protected Builder(ClientContext clientContext) {
               importFeatureValuesSettings,
               batchReadFeatureValuesSettings,
               exportFeatureValuesSettings,
-              searchFeaturesSettings);
+              searchFeaturesSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
       initDefaults(this);
     }
 
@@ -945,6 +1067,11 @@ protected Builder(FeaturestoreServiceStubSettings settings) {
       exportFeatureValuesOperationSettings =
           settings.exportFeatureValuesOperationSettings.toBuilder();
       searchFeaturesSettings = settings.searchFeaturesSettings.toBuilder();
+      listLocationsSettings = settings.listLocationsSettings.toBuilder();
+      getLocationSettings = settings.getLocationSettings.toBuilder();
+      setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
+      getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
+      testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -967,7 +1094,12 @@ protected Builder(FeaturestoreServiceStubSettings settings) {
               importFeatureValuesSettings,
               batchReadFeatureValuesSettings,
               exportFeatureValuesSettings,
-              searchFeaturesSettings);
+              searchFeaturesSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
     }
 
     private static Builder createDefault() {
@@ -1084,6 +1216,31 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
 
+      builder
+          .listLocationsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getLocationSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .setIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .testIamPermissionsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .createFeaturestoreOperationSettings()
           .setInitialCallSettings(
@@ -1601,6 +1758,34 @@ public UnaryCallSettings.Builder deleteFeatureS
       return searchFeaturesSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return listLocationsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getLocationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return setIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return testIamPermissionsSettings;
+    }
+
     @Override
     public FeaturestoreServiceStubSettings build() throws IOException {
       return new FeaturestoreServiceStubSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcDatasetServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcDatasetServiceCallableFactory.java
index 0b57ca8604c3..33e103d1d312 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcDatasetServiceCallableFactory.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcDatasetServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcDatasetServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcDatasetServiceStub.java
index 552a4764fa65..2ee3e9432c17 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcDatasetServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcDatasetServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
 import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListAnnotationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDataItemsPagedResponse;
 import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDatasetsPagedResponse;
+import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.gax.core.BackgroundResource;
 import com.google.api.gax.core.BackgroundResourceAggregation;
@@ -48,7 +49,16 @@
 import com.google.cloud.aiplatform.v1.ListDatasetsRequest;
 import com.google.cloud.aiplatform.v1.ListDatasetsResponse;
 import com.google.cloud.aiplatform.v1.UpdateDatasetRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableMap;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.GrpcOperationsStub;
 import com.google.protobuf.Empty;
@@ -162,6 +172,52 @@ public class GrpcDatasetServiceStub extends DatasetServiceStub {
                   ProtoUtils.marshaller(ListAnnotationsResponse.getDefaultInstance()))
               .build();
 
+  private static final MethodDescriptor
+      listLocationsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.location.Locations/ListLocations")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor getLocationMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.location.Locations/GetLocation")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor setIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor getIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor
+      testIamPermissionsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
+              .build();
+
   private final UnaryCallable createDatasetCallable;
   private final OperationCallable
       createDatasetOperationCallable;
@@ -189,6 +245,14 @@ public class GrpcDatasetServiceStub extends DatasetServiceStub {
       listAnnotationsCallable;
   private final UnaryCallable
       listAnnotationsPagedCallable;
+  private final UnaryCallable listLocationsCallable;
+  private final UnaryCallable
+      listLocationsPagedCallable;
+  private final UnaryCallable getLocationCallable;
+  private final UnaryCallable setIamPolicyCallable;
+  private final UnaryCallable getIamPolicyCallable;
+  private final UnaryCallable
+      testIamPermissionsCallable;
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -335,6 +399,57 @@ protected GrpcDatasetServiceStub(
                       return params.build();
                     })
                 .build();
+    GrpcCallSettings listLocationsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listLocationsMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getLocationTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getLocationMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings setIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(setIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings
+        testIamPermissionsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(testIamPermissionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("resource", String.valueOf(request.getResource()));
+                      return params.build();
+                    })
+                .build();
 
     this.createDatasetCallable =
         callableFactory.createUnaryCallable(
@@ -401,6 +516,26 @@ protected GrpcDatasetServiceStub(
     this.listAnnotationsPagedCallable =
         callableFactory.createPagedCallable(
             listAnnotationsTransportSettings, settings.listAnnotationsSettings(), clientContext);
+    this.listLocationsCallable =
+        callableFactory.createUnaryCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.listLocationsPagedCallable =
+        callableFactory.createPagedCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.getLocationCallable =
+        callableFactory.createUnaryCallable(
+            getLocationTransportSettings, settings.getLocationSettings(), clientContext);
+    this.setIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
+    this.getIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
+    this.testIamPermissionsCallable =
+        callableFactory.createUnaryCallable(
+            testIamPermissionsTransportSettings,
+            settings.testIamPermissionsSettings(),
+            clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -501,6 +636,38 @@ public UnaryCallable listAnnota
     return listAnnotationsPagedCallable;
   }
 
+  @Override
+  public UnaryCallable listLocationsCallable() {
+    return listLocationsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    return listLocationsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable getLocationCallable() {
+    return getLocationCallable;
+  }
+
+  @Override
+  public UnaryCallable setIamPolicyCallable() {
+    return setIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable getIamPolicyCallable() {
+    return getIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    return testIamPermissionsCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcEndpointServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcEndpointServiceCallableFactory.java
index cbb057f87be6..76df71691b96 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcEndpointServiceCallableFactory.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcEndpointServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcEndpointServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcEndpointServiceStub.java
index e89167e45d63..a168302fe395 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcEndpointServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcEndpointServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1.stub;
 
 import static com.google.cloud.aiplatform.v1.EndpointServiceClient.ListEndpointsPagedResponse;
+import static com.google.cloud.aiplatform.v1.EndpointServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.gax.core.BackgroundResource;
 import com.google.api.gax.core.BackgroundResourceAggregation;
@@ -40,7 +41,16 @@
 import com.google.cloud.aiplatform.v1.UndeployModelRequest;
 import com.google.cloud.aiplatform.v1.UndeployModelResponse;
 import com.google.cloud.aiplatform.v1.UpdateEndpointRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableMap;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.GrpcOperationsStub;
 import com.google.protobuf.Empty;
@@ -125,6 +135,52 @@ public class GrpcEndpointServiceStub extends EndpointServiceStub {
               .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
               .build();
 
+  private static final MethodDescriptor
+      listLocationsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.location.Locations/ListLocations")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor getLocationMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.location.Locations/GetLocation")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor setIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor getIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor
+      testIamPermissionsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
+              .build();
+
   private final UnaryCallable createEndpointCallable;
   private final OperationCallable
       createEndpointOperationCallable;
@@ -144,6 +200,14 @@ public class GrpcEndpointServiceStub extends EndpointServiceStub {
   private final OperationCallable<
           UndeployModelRequest, UndeployModelResponse, UndeployModelOperationMetadata>
       undeployModelOperationCallable;
+  private final UnaryCallable listLocationsCallable;
+  private final UnaryCallable
+      listLocationsPagedCallable;
+  private final UnaryCallable getLocationCallable;
+  private final UnaryCallable setIamPolicyCallable;
+  private final UnaryCallable getIamPolicyCallable;
+  private final UnaryCallable
+      testIamPermissionsCallable;
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -259,6 +323,57 @@ protected GrpcEndpointServiceStub(
                   return params.build();
                 })
             .build();
+    GrpcCallSettings listLocationsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listLocationsMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getLocationTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getLocationMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings setIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(setIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings
+        testIamPermissionsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(testIamPermissionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("resource", String.valueOf(request.getResource()));
+                      return params.build();
+                    })
+                .build();
 
     this.createEndpointCallable =
         callableFactory.createUnaryCallable(
@@ -308,6 +423,26 @@ protected GrpcEndpointServiceStub(
             settings.undeployModelOperationSettings(),
             clientContext,
             operationsStub);
+    this.listLocationsCallable =
+        callableFactory.createUnaryCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.listLocationsPagedCallable =
+        callableFactory.createPagedCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.getLocationCallable =
+        callableFactory.createUnaryCallable(
+            getLocationTransportSettings, settings.getLocationSettings(), clientContext);
+    this.setIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
+    this.getIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
+    this.testIamPermissionsCallable =
+        callableFactory.createUnaryCallable(
+            testIamPermissionsTransportSettings,
+            settings.testIamPermissionsSettings(),
+            clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -383,6 +518,38 @@ public UnaryCallable undeployModelCallable() {
     return undeployModelOperationCallable;
   }
 
+  @Override
+  public UnaryCallable listLocationsCallable() {
+    return listLocationsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    return listLocationsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable getLocationCallable() {
+    return getLocationCallable;
+  }
+
+  @Override
+  public UnaryCallable setIamPolicyCallable() {
+    return setIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable getIamPolicyCallable() {
+    return getIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    return testIamPermissionsCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcFeaturestoreOnlineServingServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcFeaturestoreOnlineServingServiceCallableFactory.java
index f12b578f555b..e4493fc4188e 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcFeaturestoreOnlineServingServiceCallableFactory.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcFeaturestoreOnlineServingServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcFeaturestoreOnlineServingServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcFeaturestoreOnlineServingServiceStub.java
index c5f402906919..514665402b61 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcFeaturestoreOnlineServingServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcFeaturestoreOnlineServingServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,8 @@
 
 package com.google.cloud.aiplatform.v1.stub;
 
+import static com.google.cloud.aiplatform.v1.FeaturestoreOnlineServingServiceClient.ListLocationsPagedResponse;
+
 import com.google.api.gax.core.BackgroundResource;
 import com.google.api.gax.core.BackgroundResourceAggregation;
 import com.google.api.gax.grpc.GrpcCallSettings;
@@ -26,7 +28,16 @@
 import com.google.cloud.aiplatform.v1.ReadFeatureValuesRequest;
 import com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse;
 import com.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableMap;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.stub.GrpcOperationsStub;
 import io.grpc.MethodDescriptor;
 import io.grpc.protobuf.ProtoUtils;
@@ -68,11 +79,65 @@ public class GrpcFeaturestoreOnlineServingServiceStub extends FeaturestoreOnline
                   ProtoUtils.marshaller(ReadFeatureValuesResponse.getDefaultInstance()))
               .build();
 
+  private static final MethodDescriptor
+      listLocationsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.location.Locations/ListLocations")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor getLocationMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.location.Locations/GetLocation")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor setIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor getIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor
+      testIamPermissionsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
+              .build();
+
   private final UnaryCallable
       readFeatureValuesCallable;
   private final ServerStreamingCallable<
           StreamingReadFeatureValuesRequest, ReadFeatureValuesResponse>
       streamingReadFeatureValuesCallable;
+  private final UnaryCallable listLocationsCallable;
+  private final UnaryCallable
+      listLocationsPagedCallable;
+  private final UnaryCallable getLocationCallable;
+  private final UnaryCallable setIamPolicyCallable;
+  private final UnaryCallable getIamPolicyCallable;
+  private final UnaryCallable
+      testIamPermissionsCallable;
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -144,6 +209,57 @@ protected GrpcFeaturestoreOnlineServingServiceStub(
                       return params.build();
                     })
                 .build();
+    GrpcCallSettings listLocationsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listLocationsMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getLocationTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getLocationMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings setIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(setIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings
+        testIamPermissionsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(testIamPermissionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("resource", String.valueOf(request.getResource()));
+                      return params.build();
+                    })
+                .build();
 
     this.readFeatureValuesCallable =
         callableFactory.createUnaryCallable(
@@ -155,6 +271,26 @@ protected GrpcFeaturestoreOnlineServingServiceStub(
             streamingReadFeatureValuesTransportSettings,
             settings.streamingReadFeatureValuesSettings(),
             clientContext);
+    this.listLocationsCallable =
+        callableFactory.createUnaryCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.listLocationsPagedCallable =
+        callableFactory.createPagedCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.getLocationCallable =
+        callableFactory.createUnaryCallable(
+            getLocationTransportSettings, settings.getLocationSettings(), clientContext);
+    this.setIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
+    this.getIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
+    this.testIamPermissionsCallable =
+        callableFactory.createUnaryCallable(
+            testIamPermissionsTransportSettings,
+            settings.testIamPermissionsSettings(),
+            clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -176,6 +312,38 @@ public GrpcOperationsStub getOperationsStub() {
     return streamingReadFeatureValuesCallable;
   }
 
+  @Override
+  public UnaryCallable listLocationsCallable() {
+    return listLocationsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    return listLocationsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable getLocationCallable() {
+    return getLocationCallable;
+  }
+
+  @Override
+  public UnaryCallable setIamPolicyCallable() {
+    return setIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable getIamPolicyCallable() {
+    return getIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    return testIamPermissionsCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcFeaturestoreServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcFeaturestoreServiceCallableFactory.java
index 6d07ec0dd859..4facdf7a893c 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcFeaturestoreServiceCallableFactory.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcFeaturestoreServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcFeaturestoreServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcFeaturestoreServiceStub.java
index d6f208281b5e..f8ed76e47db0 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcFeaturestoreServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcFeaturestoreServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
 import static com.google.cloud.aiplatform.v1.FeaturestoreServiceClient.ListEntityTypesPagedResponse;
 import static com.google.cloud.aiplatform.v1.FeaturestoreServiceClient.ListFeaturesPagedResponse;
 import static com.google.cloud.aiplatform.v1.FeaturestoreServiceClient.ListFeaturestoresPagedResponse;
+import static com.google.cloud.aiplatform.v1.FeaturestoreServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.FeaturestoreServiceClient.SearchFeaturesPagedResponse;
 
 import com.google.api.gax.core.BackgroundResource;
@@ -68,7 +69,16 @@
 import com.google.cloud.aiplatform.v1.UpdateFeatureRequest;
 import com.google.cloud.aiplatform.v1.UpdateFeaturestoreOperationMetadata;
 import com.google.cloud.aiplatform.v1.UpdateFeaturestoreRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableMap;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.GrpcOperationsStub;
 import com.google.protobuf.Empty;
@@ -294,6 +304,52 @@ public class GrpcFeaturestoreServiceStub extends FeaturestoreServiceStub {
                   ProtoUtils.marshaller(SearchFeaturesResponse.getDefaultInstance()))
               .build();
 
+  private static final MethodDescriptor
+      listLocationsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.location.Locations/ListLocations")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor getLocationMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.location.Locations/GetLocation")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor setIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor getIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor
+      testIamPermissionsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
+              .build();
+
   private final UnaryCallable createFeaturestoreCallable;
   private final OperationCallable<
           CreateFeaturestoreRequest, Featurestore, CreateFeaturestoreOperationMetadata>
@@ -362,6 +418,14 @@ public class GrpcFeaturestoreServiceStub extends FeaturestoreServiceStub {
   private final UnaryCallable searchFeaturesCallable;
   private final UnaryCallable
       searchFeaturesPagedCallable;
+  private final UnaryCallable listLocationsCallable;
+  private final UnaryCallable
+      listLocationsPagedCallable;
+  private final UnaryCallable getLocationCallable;
+  private final UnaryCallable setIamPolicyCallable;
+  private final UnaryCallable getIamPolicyCallable;
+  private final UnaryCallable
+      testIamPermissionsCallable;
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -612,6 +676,57 @@ protected GrpcFeaturestoreServiceStub(
                       return params.build();
                     })
                 .build();
+    GrpcCallSettings listLocationsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listLocationsMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getLocationTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getLocationMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings setIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(setIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings
+        testIamPermissionsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(testIamPermissionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("resource", String.valueOf(request.getResource()));
+                      return params.build();
+                    })
+                .build();
 
     this.createFeaturestoreCallable =
         callableFactory.createUnaryCallable(
@@ -769,6 +884,26 @@ protected GrpcFeaturestoreServiceStub(
     this.searchFeaturesPagedCallable =
         callableFactory.createPagedCallable(
             searchFeaturesTransportSettings, settings.searchFeaturesSettings(), clientContext);
+    this.listLocationsCallable =
+        callableFactory.createUnaryCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.listLocationsPagedCallable =
+        callableFactory.createPagedCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.getLocationCallable =
+        callableFactory.createUnaryCallable(
+            getLocationTransportSettings, settings.getLocationSettings(), clientContext);
+    this.setIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
+    this.getIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
+    this.testIamPermissionsCallable =
+        callableFactory.createUnaryCallable(
+            testIamPermissionsTransportSettings,
+            settings.testIamPermissionsSettings(),
+            clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -982,6 +1117,38 @@ public UnaryCallable searchFeatur
     return searchFeaturesPagedCallable;
   }
 
+  @Override
+  public UnaryCallable listLocationsCallable() {
+    return listLocationsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    return listLocationsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable getLocationCallable() {
+    return getLocationCallable;
+  }
+
+  @Override
+  public UnaryCallable setIamPolicyCallable() {
+    return setIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable getIamPolicyCallable() {
+    return getIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    return testIamPermissionsCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcIndexEndpointServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcIndexEndpointServiceCallableFactory.java
index b172cf7c829b..fefbcda66f91 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcIndexEndpointServiceCallableFactory.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcIndexEndpointServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcIndexEndpointServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcIndexEndpointServiceStub.java
index cc17c0b05cef..39dd812072c4 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcIndexEndpointServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcIndexEndpointServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1.stub;
 
 import static com.google.cloud.aiplatform.v1.IndexEndpointServiceClient.ListIndexEndpointsPagedResponse;
+import static com.google.cloud.aiplatform.v1.IndexEndpointServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.gax.core.BackgroundResource;
 import com.google.api.gax.core.BackgroundResourceAggregation;
@@ -43,7 +44,16 @@
 import com.google.cloud.aiplatform.v1.UndeployIndexRequest;
 import com.google.cloud.aiplatform.v1.UndeployIndexResponse;
 import com.google.cloud.aiplatform.v1.UpdateIndexEndpointRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableMap;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.GrpcOperationsStub;
 import com.google.protobuf.Empty;
@@ -145,6 +155,52 @@ public class GrpcIndexEndpointServiceStub extends IndexEndpointServiceStub {
               .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
               .build();
 
+  private static final MethodDescriptor
+      listLocationsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.location.Locations/ListLocations")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor getLocationMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.location.Locations/GetLocation")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor setIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor getIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor
+      testIamPermissionsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
+              .build();
+
   private final UnaryCallable createIndexEndpointCallable;
   private final OperationCallable<
           CreateIndexEndpointRequest, IndexEndpoint, CreateIndexEndpointOperationMetadata>
@@ -173,6 +229,14 @@ public class GrpcIndexEndpointServiceStub extends IndexEndpointServiceStub {
           MutateDeployedIndexResponse,
           MutateDeployedIndexOperationMetadata>
       mutateDeployedIndexOperationCallable;
+  private final UnaryCallable listLocationsCallable;
+  private final UnaryCallable
+      listLocationsPagedCallable;
+  private final UnaryCallable getLocationCallable;
+  private final UnaryCallable setIamPolicyCallable;
+  private final UnaryCallable getIamPolicyCallable;
+  private final UnaryCallable
+      testIamPermissionsCallable;
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -302,6 +366,57 @@ protected GrpcIndexEndpointServiceStub(
                   return params.build();
                 })
             .build();
+    GrpcCallSettings listLocationsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listLocationsMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getLocationTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getLocationMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings setIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(setIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings
+        testIamPermissionsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(testIamPermissionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("resource", String.valueOf(request.getResource()));
+                      return params.build();
+                    })
+                .build();
 
     this.createIndexEndpointCallable =
         callableFactory.createUnaryCallable(
@@ -372,6 +487,26 @@ protected GrpcIndexEndpointServiceStub(
             settings.mutateDeployedIndexOperationSettings(),
             clientContext,
             operationsStub);
+    this.listLocationsCallable =
+        callableFactory.createUnaryCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.listLocationsPagedCallable =
+        callableFactory.createPagedCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.getLocationCallable =
+        callableFactory.createUnaryCallable(
+            getLocationTransportSettings, settings.getLocationSettings(), clientContext);
+    this.setIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
+    this.getIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
+    this.testIamPermissionsCallable =
+        callableFactory.createUnaryCallable(
+            testIamPermissionsTransportSettings,
+            settings.testIamPermissionsSettings(),
+            clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -463,6 +598,38 @@ public UnaryCallable mutateDeployedIndexC
     return mutateDeployedIndexOperationCallable;
   }
 
+  @Override
+  public UnaryCallable listLocationsCallable() {
+    return listLocationsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    return listLocationsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable getLocationCallable() {
+    return getLocationCallable;
+  }
+
+  @Override
+  public UnaryCallable setIamPolicyCallable() {
+    return setIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable getIamPolicyCallable() {
+    return getIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    return testIamPermissionsCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcIndexServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcIndexServiceCallableFactory.java
index 8558a41047d5..9b97a1181f63 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcIndexServiceCallableFactory.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcIndexServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcIndexServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcIndexServiceStub.java
index 8432072d5de1..e653f1bef0e6 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcIndexServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcIndexServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1.stub;
 
 import static com.google.cloud.aiplatform.v1.IndexServiceClient.ListIndexesPagedResponse;
+import static com.google.cloud.aiplatform.v1.IndexServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.gax.core.BackgroundResource;
 import com.google.api.gax.core.BackgroundResourceAggregation;
@@ -35,7 +36,16 @@
 import com.google.cloud.aiplatform.v1.ListIndexesResponse;
 import com.google.cloud.aiplatform.v1.UpdateIndexOperationMetadata;
 import com.google.cloud.aiplatform.v1.UpdateIndexRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableMap;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.GrpcOperationsStub;
 import com.google.protobuf.Empty;
@@ -95,6 +105,52 @@ public class GrpcIndexServiceStub extends IndexServiceStub {
           .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
           .build();
 
+  private static final MethodDescriptor
+      listLocationsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.location.Locations/ListLocations")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor getLocationMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.location.Locations/GetLocation")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor setIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor getIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor
+      testIamPermissionsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
+              .build();
+
   private final UnaryCallable createIndexCallable;
   private final OperationCallable
       createIndexOperationCallable;
@@ -108,6 +164,14 @@ public class GrpcIndexServiceStub extends IndexServiceStub {
   private final UnaryCallable deleteIndexCallable;
   private final OperationCallable
       deleteIndexOperationCallable;
+  private final UnaryCallable listLocationsCallable;
+  private final UnaryCallable
+      listLocationsPagedCallable;
+  private final UnaryCallable getLocationCallable;
+  private final UnaryCallable setIamPolicyCallable;
+  private final UnaryCallable getIamPolicyCallable;
+  private final UnaryCallable
+      testIamPermissionsCallable;
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -201,6 +265,57 @@ protected GrpcIndexServiceStub(
                   return params.build();
                 })
             .build();
+    GrpcCallSettings listLocationsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listLocationsMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getLocationTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getLocationMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings setIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(setIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings
+        testIamPermissionsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(testIamPermissionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("resource", String.valueOf(request.getResource()));
+                      return params.build();
+                    })
+                .build();
 
     this.createIndexCallable =
         callableFactory.createUnaryCallable(
@@ -238,6 +353,26 @@ protected GrpcIndexServiceStub(
             settings.deleteIndexOperationSettings(),
             clientContext,
             operationsStub);
+    this.listLocationsCallable =
+        callableFactory.createUnaryCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.listLocationsPagedCallable =
+        callableFactory.createPagedCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.getLocationCallable =
+        callableFactory.createUnaryCallable(
+            getLocationTransportSettings, settings.getLocationSettings(), clientContext);
+    this.setIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
+    this.getIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
+    this.testIamPermissionsCallable =
+        callableFactory.createUnaryCallable(
+            testIamPermissionsTransportSettings,
+            settings.testIamPermissionsSettings(),
+            clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -295,6 +430,38 @@ public UnaryCallable deleteIndexCallable() {
     return deleteIndexOperationCallable;
   }
 
+  @Override
+  public UnaryCallable listLocationsCallable() {
+    return listLocationsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    return listLocationsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable getLocationCallable() {
+    return getLocationCallable;
+  }
+
+  @Override
+  public UnaryCallable setIamPolicyCallable() {
+    return setIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable getIamPolicyCallable() {
+    return getIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    return testIamPermissionsCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcJobServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcJobServiceCallableFactory.java
index 6fce34332cef..38ce226e0c4a 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcJobServiceCallableFactory.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcJobServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcJobServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcJobServiceStub.java
index ba1084071f98..c9891404dac8 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcJobServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcJobServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -20,6 +20,7 @@
 import static com.google.cloud.aiplatform.v1.JobServiceClient.ListCustomJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1.JobServiceClient.ListDataLabelingJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1.JobServiceClient.ListHyperparameterTuningJobsPagedResponse;
+import static com.google.cloud.aiplatform.v1.JobServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.JobServiceClient.ListModelDeploymentMonitoringJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1.JobServiceClient.SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse;
 
@@ -71,7 +72,16 @@
 import com.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse;
 import com.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata;
 import com.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableMap;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.GrpcOperationsStub;
 import com.google.protobuf.Empty;
@@ -419,6 +429,52 @@ public class GrpcJobServiceStub extends JobServiceStub {
               .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
               .build();
 
+  private static final MethodDescriptor
+      listLocationsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.location.Locations/ListLocations")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor getLocationMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.location.Locations/GetLocation")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor setIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor getIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor
+      testIamPermissionsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
+              .build();
+
   private final UnaryCallable createCustomJobCallable;
   private final UnaryCallable getCustomJobCallable;
   private final UnaryCallable listCustomJobsCallable;
@@ -507,6 +563,14 @@ public class GrpcJobServiceStub extends JobServiceStub {
       pauseModelDeploymentMonitoringJobCallable;
   private final UnaryCallable
       resumeModelDeploymentMonitoringJobCallable;
+  private final UnaryCallable listLocationsCallable;
+  private final UnaryCallable
+      listLocationsPagedCallable;
+  private final UnaryCallable getLocationCallable;
+  private final UnaryCallable setIamPolicyCallable;
+  private final UnaryCallable getIamPolicyCallable;
+  private final UnaryCallable
+      testIamPermissionsCallable;
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -874,6 +938,57 @@ protected GrpcJobServiceStub(
                       return params.build();
                     })
                 .build();
+    GrpcCallSettings listLocationsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listLocationsMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getLocationTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getLocationMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings setIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(setIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings
+        testIamPermissionsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(testIamPermissionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("resource", String.valueOf(request.getResource()));
+                      return params.build();
+                    })
+                .build();
 
     this.createCustomJobCallable =
         callableFactory.createUnaryCallable(
@@ -1069,6 +1184,26 @@ protected GrpcJobServiceStub(
             resumeModelDeploymentMonitoringJobTransportSettings,
             settings.resumeModelDeploymentMonitoringJobSettings(),
             clientContext);
+    this.listLocationsCallable =
+        callableFactory.createUnaryCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.listLocationsPagedCallable =
+        callableFactory.createPagedCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.getLocationCallable =
+        callableFactory.createUnaryCallable(
+            getLocationTransportSettings, settings.getLocationSettings(), clientContext);
+    this.setIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
+    this.getIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
+    this.testIamPermissionsCallable =
+        callableFactory.createUnaryCallable(
+            testIamPermissionsTransportSettings,
+            settings.testIamPermissionsSettings(),
+            clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -1320,6 +1455,38 @@ public UnaryCallable cancelBatchPredicti
     return resumeModelDeploymentMonitoringJobCallable;
   }
 
+  @Override
+  public UnaryCallable listLocationsCallable() {
+    return listLocationsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    return listLocationsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable getLocationCallable() {
+    return getLocationCallable;
+  }
+
+  @Override
+  public UnaryCallable setIamPolicyCallable() {
+    return setIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable getIamPolicyCallable() {
+    return getIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    return testIamPermissionsCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcMetadataServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcMetadataServiceCallableFactory.java
index e295ffdb128e..4362eda2c85c 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcMetadataServiceCallableFactory.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcMetadataServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcMetadataServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcMetadataServiceStub.java
index a4942e8c679b..bc6074fe22f7 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcMetadataServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcMetadataServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
 import static com.google.cloud.aiplatform.v1.MetadataServiceClient.ListArtifactsPagedResponse;
 import static com.google.cloud.aiplatform.v1.MetadataServiceClient.ListContextsPagedResponse;
 import static com.google.cloud.aiplatform.v1.MetadataServiceClient.ListExecutionsPagedResponse;
+import static com.google.cloud.aiplatform.v1.MetadataServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.MetadataServiceClient.ListMetadataSchemasPagedResponse;
 import static com.google.cloud.aiplatform.v1.MetadataServiceClient.ListMetadataStoresPagedResponse;
 
@@ -83,7 +84,16 @@
 import com.google.cloud.aiplatform.v1.UpdateArtifactRequest;
 import com.google.cloud.aiplatform.v1.UpdateContextRequest;
 import com.google.cloud.aiplatform.v1.UpdateExecutionRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableMap;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.GrpcOperationsStub;
 import com.google.protobuf.Empty;
@@ -422,6 +432,52 @@ public class GrpcMetadataServiceStub extends MetadataServiceStub {
               .setResponseMarshaller(ProtoUtils.marshaller(LineageSubgraph.getDefaultInstance()))
               .build();
 
+  private static final MethodDescriptor
+      listLocationsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.location.Locations/ListLocations")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor getLocationMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.location.Locations/GetLocation")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor setIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor getIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor
+      testIamPermissionsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
+              .build();
+
   private final UnaryCallable createMetadataStoreCallable;
   private final OperationCallable<
           CreateMetadataStoreRequest, MetadataStore, CreateMetadataStoreOperationMetadata>
@@ -494,6 +550,14 @@ public class GrpcMetadataServiceStub extends MetadataServiceStub {
       listMetadataSchemasPagedCallable;
   private final UnaryCallable
       queryArtifactLineageSubgraphCallable;
+  private final UnaryCallable listLocationsCallable;
+  private final UnaryCallable
+      listLocationsPagedCallable;
+  private final UnaryCallable getLocationCallable;
+  private final UnaryCallable setIamPolicyCallable;
+  private final UnaryCallable getIamPolicyCallable;
+  private final UnaryCallable
+      testIamPermissionsCallable;
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -862,6 +926,57 @@ protected GrpcMetadataServiceStub(
                       return params.build();
                     })
                 .build();
+    GrpcCallSettings listLocationsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listLocationsMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getLocationTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getLocationMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings setIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(setIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings
+        testIamPermissionsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(testIamPermissionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("resource", String.valueOf(request.getResource()));
+                      return params.build();
+                    })
+                .build();
 
     this.createMetadataStoreCallable =
         callableFactory.createUnaryCallable(
@@ -1047,6 +1162,26 @@ protected GrpcMetadataServiceStub(
             queryArtifactLineageSubgraphTransportSettings,
             settings.queryArtifactLineageSubgraphSettings(),
             clientContext);
+    this.listLocationsCallable =
+        callableFactory.createUnaryCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.listLocationsPagedCallable =
+        callableFactory.createPagedCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.getLocationCallable =
+        callableFactory.createUnaryCallable(
+            getLocationTransportSettings, settings.getLocationSettings(), clientContext);
+    this.setIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
+    this.getIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
+    this.testIamPermissionsCallable =
+        callableFactory.createUnaryCallable(
+            testIamPermissionsTransportSettings,
+            settings.testIamPermissionsSettings(),
+            clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -1298,6 +1433,38 @@ public UnaryCallable getMetadataSchema
     return queryArtifactLineageSubgraphCallable;
   }
 
+  @Override
+  public UnaryCallable listLocationsCallable() {
+    return listLocationsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    return listLocationsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable getLocationCallable() {
+    return getLocationCallable;
+  }
+
+  @Override
+  public UnaryCallable setIamPolicyCallable() {
+    return setIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable getIamPolicyCallable() {
+    return getIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    return testIamPermissionsCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcMigrationServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcMigrationServiceCallableFactory.java
index 7c4963a3ac6e..46c2897c190c 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcMigrationServiceCallableFactory.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcMigrationServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcMigrationServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcMigrationServiceStub.java
index 382d8dbc68c7..e87468ef062c 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcMigrationServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcMigrationServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1.stub;
 
+import static com.google.cloud.aiplatform.v1.MigrationServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.MigrationServiceClient.SearchMigratableResourcesPagedResponse;
 
 import com.google.api.gax.core.BackgroundResource;
@@ -30,7 +31,16 @@
 import com.google.cloud.aiplatform.v1.BatchMigrateResourcesResponse;
 import com.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest;
 import com.google.cloud.aiplatform.v1.SearchMigratableResourcesResponse;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableMap;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.GrpcOperationsStub;
 import io.grpc.MethodDescriptor;
@@ -72,6 +82,52 @@ public class GrpcMigrationServiceStub extends MigrationServiceStub {
               .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
               .build();
 
+  private static final MethodDescriptor
+      listLocationsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.location.Locations/ListLocations")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor getLocationMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.location.Locations/GetLocation")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor setIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor getIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor
+      testIamPermissionsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
+              .build();
+
   private final UnaryCallable
       searchMigratableResourcesCallable;
   private final UnaryCallable<
@@ -84,6 +140,14 @@ public class GrpcMigrationServiceStub extends MigrationServiceStub {
           BatchMigrateResourcesResponse,
           BatchMigrateResourcesOperationMetadata>
       batchMigrateResourcesOperationCallable;
+  private final UnaryCallable listLocationsCallable;
+  private final UnaryCallable
+      listLocationsPagedCallable;
+  private final UnaryCallable getLocationCallable;
+  private final UnaryCallable setIamPolicyCallable;
+  private final UnaryCallable getIamPolicyCallable;
+  private final UnaryCallable
+      testIamPermissionsCallable;
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -152,6 +216,57 @@ protected GrpcMigrationServiceStub(
                       return params.build();
                     })
                 .build();
+    GrpcCallSettings listLocationsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listLocationsMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getLocationTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getLocationMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings setIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(setIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings
+        testIamPermissionsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(testIamPermissionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("resource", String.valueOf(request.getResource()));
+                      return params.build();
+                    })
+                .build();
 
     this.searchMigratableResourcesCallable =
         callableFactory.createUnaryCallable(
@@ -174,6 +289,26 @@ protected GrpcMigrationServiceStub(
             settings.batchMigrateResourcesOperationSettings(),
             clientContext,
             operationsStub);
+    this.listLocationsCallable =
+        callableFactory.createUnaryCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.listLocationsPagedCallable =
+        callableFactory.createPagedCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.getLocationCallable =
+        callableFactory.createUnaryCallable(
+            getLocationTransportSettings, settings.getLocationSettings(), clientContext);
+    this.setIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
+    this.getIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
+    this.testIamPermissionsCallable =
+        callableFactory.createUnaryCallable(
+            testIamPermissionsTransportSettings,
+            settings.testIamPermissionsSettings(),
+            clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -209,6 +344,38 @@ public UnaryCallable batchMigrateResour
     return batchMigrateResourcesOperationCallable;
   }
 
+  @Override
+  public UnaryCallable listLocationsCallable() {
+    return listLocationsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    return listLocationsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable getLocationCallable() {
+    return getLocationCallable;
+  }
+
+  @Override
+  public UnaryCallable setIamPolicyCallable() {
+    return setIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable getIamPolicyCallable() {
+    return getIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    return testIamPermissionsCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcModelServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcModelServiceCallableFactory.java
index 101a7d825b19..406e758318a9 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcModelServiceCallableFactory.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcModelServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcModelServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcModelServiceStub.java
index cf4f63b76367..f58a29d9e5e8 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcModelServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcModelServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,8 +16,10 @@
 
 package com.google.cloud.aiplatform.v1.stub;
 
+import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelEvaluationSlicesPagedResponse;
 import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelEvaluationsPagedResponse;
+import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelVersionsPagedResponse;
 import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelsPagedResponse;
 
 import com.google.api.gax.core.BackgroundResource;
@@ -28,6 +30,7 @@
 import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1.DeleteModelRequest;
+import com.google.cloud.aiplatform.v1.DeleteModelVersionRequest;
 import com.google.cloud.aiplatform.v1.DeleteOperationMetadata;
 import com.google.cloud.aiplatform.v1.ExportModelOperationMetadata;
 import com.google.cloud.aiplatform.v1.ExportModelRequest;
@@ -40,8 +43,11 @@
 import com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse;
 import com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest;
 import com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse;
+import com.google.cloud.aiplatform.v1.ListModelVersionsRequest;
+import com.google.cloud.aiplatform.v1.ListModelVersionsResponse;
 import com.google.cloud.aiplatform.v1.ListModelsRequest;
 import com.google.cloud.aiplatform.v1.ListModelsResponse;
+import com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest;
 import com.google.cloud.aiplatform.v1.Model;
 import com.google.cloud.aiplatform.v1.ModelEvaluation;
 import com.google.cloud.aiplatform.v1.ModelEvaluationSlice;
@@ -49,7 +55,16 @@
 import com.google.cloud.aiplatform.v1.UploadModelOperationMetadata;
 import com.google.cloud.aiplatform.v1.UploadModelRequest;
 import com.google.cloud.aiplatform.v1.UploadModelResponse;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableMap;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.GrpcOperationsStub;
 import com.google.protobuf.Empty;
@@ -92,6 +107,17 @@ public class GrpcModelServiceStub extends ModelServiceStub {
               .setResponseMarshaller(ProtoUtils.marshaller(ListModelsResponse.getDefaultInstance()))
               .build();
 
+  private static final MethodDescriptor
+      listModelVersionsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.aiplatform.v1.ModelService/ListModelVersions")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListModelVersionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListModelVersionsResponse.getDefaultInstance()))
+              .build();
+
   private static final MethodDescriptor updateModelMethodDescriptor =
       MethodDescriptor.newBuilder()
           .setType(MethodDescriptor.MethodType.UNARY)
@@ -108,6 +134,26 @@ public class GrpcModelServiceStub extends ModelServiceStub {
           .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
           .build();
 
+  private static final MethodDescriptor
+      deleteModelVersionMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.aiplatform.v1.ModelService/DeleteModelVersion")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(DeleteModelVersionRequest.getDefaultInstance()))
+              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor
+      mergeVersionAliasesMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.aiplatform.v1.ModelService/MergeVersionAliases")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(MergeVersionAliasesRequest.getDefaultInstance()))
+              .setResponseMarshaller(ProtoUtils.marshaller(Model.getDefaultInstance()))
+              .build();
+
   private static final MethodDescriptor exportModelMethodDescriptor =
       MethodDescriptor.newBuilder()
           .setType(MethodDescriptor.MethodType.UNARY)
@@ -172,6 +218,52 @@ public class GrpcModelServiceStub extends ModelServiceStub {
                   ProtoUtils.marshaller(ListModelEvaluationSlicesResponse.getDefaultInstance()))
               .build();
 
+  private static final MethodDescriptor
+      listLocationsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.location.Locations/ListLocations")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor getLocationMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.location.Locations/GetLocation")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor setIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor getIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor
+      testIamPermissionsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
+              .build();
+
   private final UnaryCallable uploadModelCallable;
   private final OperationCallable<
           UploadModelRequest, UploadModelResponse, UploadModelOperationMetadata>
@@ -179,10 +271,18 @@ public class GrpcModelServiceStub extends ModelServiceStub {
   private final UnaryCallable getModelCallable;
   private final UnaryCallable listModelsCallable;
   private final UnaryCallable listModelsPagedCallable;
+  private final UnaryCallable
+      listModelVersionsCallable;
+  private final UnaryCallable
+      listModelVersionsPagedCallable;
   private final UnaryCallable updateModelCallable;
   private final UnaryCallable deleteModelCallable;
   private final OperationCallable
       deleteModelOperationCallable;
+  private final UnaryCallable deleteModelVersionCallable;
+  private final OperationCallable
+      deleteModelVersionOperationCallable;
+  private final UnaryCallable mergeVersionAliasesCallable;
   private final UnaryCallable exportModelCallable;
   private final OperationCallable<
           ExportModelRequest, ExportModelResponse, ExportModelOperationMetadata>
@@ -202,6 +302,14 @@ public class GrpcModelServiceStub extends ModelServiceStub {
   private final UnaryCallable<
           ListModelEvaluationSlicesRequest, ListModelEvaluationSlicesPagedResponse>
       listModelEvaluationSlicesPagedCallable;
+  private final UnaryCallable listLocationsCallable;
+  private final UnaryCallable
+      listLocationsPagedCallable;
+  private final UnaryCallable getLocationCallable;
+  private final UnaryCallable setIamPolicyCallable;
+  private final UnaryCallable getIamPolicyCallable;
+  private final UnaryCallable
+      testIamPermissionsCallable;
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -275,6 +383,17 @@ protected GrpcModelServiceStub(
                   return params.build();
                 })
             .build();
+    GrpcCallSettings
+        listModelVersionsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(listModelVersionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("name", String.valueOf(request.getName()));
+                      return params.build();
+                    })
+                .build();
     GrpcCallSettings updateModelTransportSettings =
         GrpcCallSettings.newBuilder()
             .setMethodDescriptor(updateModelMethodDescriptor)
@@ -295,6 +414,26 @@ protected GrpcModelServiceStub(
                   return params.build();
                 })
             .build();
+    GrpcCallSettings deleteModelVersionTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(deleteModelVersionMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings mergeVersionAliasesTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(mergeVersionAliasesMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
     GrpcCallSettings exportModelTransportSettings =
         GrpcCallSettings.newBuilder()
             .setMethodDescriptor(exportModelMethodDescriptor)
@@ -361,6 +500,57 @@ protected GrpcModelServiceStub(
                       return params.build();
                     })
                 .build();
+    GrpcCallSettings listLocationsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listLocationsMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getLocationTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getLocationMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings setIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(setIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings
+        testIamPermissionsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(testIamPermissionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("resource", String.valueOf(request.getResource()));
+                      return params.build();
+                    })
+                .build();
 
     this.uploadModelCallable =
         callableFactory.createUnaryCallable(
@@ -380,6 +570,16 @@ protected GrpcModelServiceStub(
     this.listModelsPagedCallable =
         callableFactory.createPagedCallable(
             listModelsTransportSettings, settings.listModelsSettings(), clientContext);
+    this.listModelVersionsCallable =
+        callableFactory.createUnaryCallable(
+            listModelVersionsTransportSettings,
+            settings.listModelVersionsSettings(),
+            clientContext);
+    this.listModelVersionsPagedCallable =
+        callableFactory.createPagedCallable(
+            listModelVersionsTransportSettings,
+            settings.listModelVersionsSettings(),
+            clientContext);
     this.updateModelCallable =
         callableFactory.createUnaryCallable(
             updateModelTransportSettings, settings.updateModelSettings(), clientContext);
@@ -392,6 +592,22 @@ protected GrpcModelServiceStub(
             settings.deleteModelOperationSettings(),
             clientContext,
             operationsStub);
+    this.deleteModelVersionCallable =
+        callableFactory.createUnaryCallable(
+            deleteModelVersionTransportSettings,
+            settings.deleteModelVersionSettings(),
+            clientContext);
+    this.deleteModelVersionOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteModelVersionTransportSettings,
+            settings.deleteModelVersionOperationSettings(),
+            clientContext,
+            operationsStub);
+    this.mergeVersionAliasesCallable =
+        callableFactory.createUnaryCallable(
+            mergeVersionAliasesTransportSettings,
+            settings.mergeVersionAliasesSettings(),
+            clientContext);
     this.exportModelCallable =
         callableFactory.createUnaryCallable(
             exportModelTransportSettings, settings.exportModelSettings(), clientContext);
@@ -436,6 +652,26 @@ protected GrpcModelServiceStub(
             listModelEvaluationSlicesTransportSettings,
             settings.listModelEvaluationSlicesSettings(),
             clientContext);
+    this.listLocationsCallable =
+        callableFactory.createUnaryCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.listLocationsPagedCallable =
+        callableFactory.createPagedCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.getLocationCallable =
+        callableFactory.createUnaryCallable(
+            getLocationTransportSettings, settings.getLocationSettings(), clientContext);
+    this.setIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
+    this.getIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
+    this.testIamPermissionsCallable =
+        callableFactory.createUnaryCallable(
+            testIamPermissionsTransportSettings,
+            settings.testIamPermissionsSettings(),
+            clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -471,6 +707,18 @@ public UnaryCallable listModelsPaged
     return listModelsPagedCallable;
   }
 
+  @Override
+  public UnaryCallable
+      listModelVersionsCallable() {
+    return listModelVersionsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listModelVersionsPagedCallable() {
+    return listModelVersionsPagedCallable;
+  }
+
   @Override
   public UnaryCallable updateModelCallable() {
     return updateModelCallable;
@@ -487,6 +735,22 @@ public UnaryCallable deleteModelCallable() {
     return deleteModelOperationCallable;
   }
 
+  @Override
+  public UnaryCallable deleteModelVersionCallable() {
+    return deleteModelVersionCallable;
+  }
+
+  @Override
+  public OperationCallable
+      deleteModelVersionOperationCallable() {
+    return deleteModelVersionOperationCallable;
+  }
+
+  @Override
+  public UnaryCallable mergeVersionAliasesCallable() {
+    return mergeVersionAliasesCallable;
+  }
+
   @Override
   public UnaryCallable exportModelCallable() {
     return exportModelCallable;
@@ -539,6 +803,38 @@ public UnaryCallable getModelEvaluat
     return listModelEvaluationSlicesPagedCallable;
   }
 
+  @Override
+  public UnaryCallable listLocationsCallable() {
+    return listLocationsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    return listLocationsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable getLocationCallable() {
+    return getLocationCallable;
+  }
+
+  @Override
+  public UnaryCallable setIamPolicyCallable() {
+    return setIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable getIamPolicyCallable() {
+    return getIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    return testIamPermissionsCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPipelineServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPipelineServiceCallableFactory.java
index b0dd7042a41d..485bd45cf27f 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPipelineServiceCallableFactory.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPipelineServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPipelineServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPipelineServiceStub.java
index c3d69bb09aba..eb8efe6f755c 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPipelineServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPipelineServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1.stub;
 
+import static com.google.cloud.aiplatform.v1.PipelineServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.PipelineServiceClient.ListPipelineJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1.PipelineServiceClient.ListTrainingPipelinesPagedResponse;
 
@@ -41,7 +42,16 @@
 import com.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse;
 import com.google.cloud.aiplatform.v1.PipelineJob;
 import com.google.cloud.aiplatform.v1.TrainingPipeline;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableMap;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.GrpcOperationsStub;
 import com.google.protobuf.Empty;
@@ -164,6 +174,52 @@ public class GrpcPipelineServiceStub extends PipelineServiceStub {
               .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
               .build();
 
+  private static final MethodDescriptor
+      listLocationsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.location.Locations/ListLocations")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor getLocationMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.location.Locations/GetLocation")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor setIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor getIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor
+      testIamPermissionsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
+              .build();
+
   private final UnaryCallable
       createTrainingPipelineCallable;
   private final UnaryCallable
@@ -187,6 +243,14 @@ public class GrpcPipelineServiceStub extends PipelineServiceStub {
   private final OperationCallable
       deletePipelineJobOperationCallable;
   private final UnaryCallable cancelPipelineJobCallable;
+  private final UnaryCallable listLocationsCallable;
+  private final UnaryCallable
+      listLocationsPagedCallable;
+  private final UnaryCallable getLocationCallable;
+  private final UnaryCallable setIamPolicyCallable;
+  private final UnaryCallable getIamPolicyCallable;
+  private final UnaryCallable
+      testIamPermissionsCallable;
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -338,6 +402,57 @@ protected GrpcPipelineServiceStub(
                   return params.build();
                 })
             .build();
+    GrpcCallSettings listLocationsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listLocationsMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getLocationTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getLocationMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings setIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(setIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings
+        testIamPermissionsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(testIamPermissionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("resource", String.valueOf(request.getResource()));
+                      return params.build();
+                    })
+                .build();
 
     this.createTrainingPipelineCallable =
         callableFactory.createUnaryCallable(
@@ -405,6 +520,26 @@ protected GrpcPipelineServiceStub(
             cancelPipelineJobTransportSettings,
             settings.cancelPipelineJobSettings(),
             clientContext);
+    this.listLocationsCallable =
+        callableFactory.createUnaryCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.listLocationsPagedCallable =
+        callableFactory.createPagedCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.getLocationCallable =
+        callableFactory.createUnaryCallable(
+            getLocationTransportSettings, settings.getLocationSettings(), clientContext);
+    this.setIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
+    this.getIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
+    this.testIamPermissionsCallable =
+        callableFactory.createUnaryCallable(
+            testIamPermissionsTransportSettings,
+            settings.testIamPermissionsSettings(),
+            clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -491,6 +626,38 @@ public UnaryCallable cancelPipelineJobCallable(
     return cancelPipelineJobCallable;
   }
 
+  @Override
+  public UnaryCallable listLocationsCallable() {
+    return listLocationsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    return listLocationsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable getLocationCallable() {
+    return getLocationCallable;
+  }
+
+  @Override
+  public UnaryCallable setIamPolicyCallable() {
+    return setIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable getIamPolicyCallable() {
+    return getIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    return testIamPermissionsCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPredictionServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPredictionServiceCallableFactory.java
index 67b0251e9be3..d5276903aa0f 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPredictionServiceCallableFactory.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPredictionServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPredictionServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPredictionServiceStub.java
index 32dd6791e7d5..b93d375d8a3e 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPredictionServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPredictionServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,8 @@
 
 package com.google.cloud.aiplatform.v1.stub;
 
+import static com.google.cloud.aiplatform.v1.PredictionServiceClient.ListLocationsPagedResponse;
+
 import com.google.api.HttpBody;
 import com.google.api.gax.core.BackgroundResource;
 import com.google.api.gax.core.BackgroundResourceAggregation;
@@ -28,7 +30,16 @@
 import com.google.cloud.aiplatform.v1.PredictRequest;
 import com.google.cloud.aiplatform.v1.PredictResponse;
 import com.google.cloud.aiplatform.v1.RawPredictRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableMap;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.stub.GrpcOperationsStub;
 import io.grpc.MethodDescriptor;
 import io.grpc.protobuf.ProtoUtils;
@@ -68,9 +79,63 @@ public class GrpcPredictionServiceStub extends PredictionServiceStub {
           .setResponseMarshaller(ProtoUtils.marshaller(ExplainResponse.getDefaultInstance()))
           .build();
 
+  private static final MethodDescriptor
+      listLocationsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.location.Locations/ListLocations")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor getLocationMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.location.Locations/GetLocation")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor setIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor getIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor
+      testIamPermissionsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
+              .build();
+
   private final UnaryCallable predictCallable;
   private final UnaryCallable rawPredictCallable;
   private final UnaryCallable explainCallable;
+  private final UnaryCallable listLocationsCallable;
+  private final UnaryCallable
+      listLocationsPagedCallable;
+  private final UnaryCallable getLocationCallable;
+  private final UnaryCallable setIamPolicyCallable;
+  private final UnaryCallable getIamPolicyCallable;
+  private final UnaryCallable
+      testIamPermissionsCallable;
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -146,6 +211,57 @@ protected GrpcPredictionServiceStub(
                   return params.build();
                 })
             .build();
+    GrpcCallSettings listLocationsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listLocationsMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getLocationTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getLocationMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings setIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(setIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings
+        testIamPermissionsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(testIamPermissionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("resource", String.valueOf(request.getResource()));
+                      return params.build();
+                    })
+                .build();
 
     this.predictCallable =
         callableFactory.createUnaryCallable(
@@ -156,6 +272,26 @@ protected GrpcPredictionServiceStub(
     this.explainCallable =
         callableFactory.createUnaryCallable(
             explainTransportSettings, settings.explainSettings(), clientContext);
+    this.listLocationsCallable =
+        callableFactory.createUnaryCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.listLocationsPagedCallable =
+        callableFactory.createPagedCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.getLocationCallable =
+        callableFactory.createUnaryCallable(
+            getLocationTransportSettings, settings.getLocationSettings(), clientContext);
+    this.setIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
+    this.getIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
+    this.testIamPermissionsCallable =
+        callableFactory.createUnaryCallable(
+            testIamPermissionsTransportSettings,
+            settings.testIamPermissionsSettings(),
+            clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -180,6 +316,38 @@ public UnaryCallable explainCallable() {
     return explainCallable;
   }
 
+  @Override
+  public UnaryCallable listLocationsCallable() {
+    return listLocationsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    return listLocationsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable getLocationCallable() {
+    return getLocationCallable;
+  }
+
+  @Override
+  public UnaryCallable setIamPolicyCallable() {
+    return setIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable getIamPolicyCallable() {
+    return getIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    return testIamPermissionsCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcSpecialistPoolServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcSpecialistPoolServiceCallableFactory.java
index 420a3f22b386..338777873456 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcSpecialistPoolServiceCallableFactory.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcSpecialistPoolServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcSpecialistPoolServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcSpecialistPoolServiceStub.java
index ecdad52416c4..1bf09dab86b9 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcSpecialistPoolServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcSpecialistPoolServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1.stub;
 
+import static com.google.cloud.aiplatform.v1.SpecialistPoolServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.SpecialistPoolServiceClient.ListSpecialistPoolsPagedResponse;
 
 import com.google.api.gax.core.BackgroundResource;
@@ -35,7 +36,16 @@
 import com.google.cloud.aiplatform.v1.SpecialistPool;
 import com.google.cloud.aiplatform.v1.UpdateSpecialistPoolOperationMetadata;
 import com.google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableMap;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.GrpcOperationsStub;
 import com.google.protobuf.Empty;
@@ -109,6 +119,52 @@ public class GrpcSpecialistPoolServiceStub extends SpecialistPoolServiceStub {
               .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
               .build();
 
+  private static final MethodDescriptor
+      listLocationsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.location.Locations/ListLocations")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor getLocationMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.location.Locations/GetLocation")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor setIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor getIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor
+      testIamPermissionsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
+              .build();
+
   private final UnaryCallable createSpecialistPoolCallable;
   private final OperationCallable<
           CreateSpecialistPoolRequest, SpecialistPool, CreateSpecialistPoolOperationMetadata>
@@ -125,6 +181,14 @@ public class GrpcSpecialistPoolServiceStub extends SpecialistPoolServiceStub {
   private final OperationCallable<
           UpdateSpecialistPoolRequest, SpecialistPool, UpdateSpecialistPoolOperationMetadata>
       updateSpecialistPoolOperationCallable;
+  private final UnaryCallable listLocationsCallable;
+  private final UnaryCallable
+      listLocationsPagedCallable;
+  private final UnaryCallable getLocationCallable;
+  private final UnaryCallable setIamPolicyCallable;
+  private final UnaryCallable getIamPolicyCallable;
+  private final UnaryCallable
+      testIamPermissionsCallable;
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -223,6 +287,57 @@ protected GrpcSpecialistPoolServiceStub(
                   return params.build();
                 })
             .build();
+    GrpcCallSettings listLocationsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listLocationsMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getLocationTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getLocationMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings setIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(setIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings
+        testIamPermissionsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(testIamPermissionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("resource", String.valueOf(request.getResource()));
+                      return params.build();
+                    })
+                .build();
 
     this.createSpecialistPoolCallable =
         callableFactory.createUnaryCallable(
@@ -272,6 +387,26 @@ protected GrpcSpecialistPoolServiceStub(
             settings.updateSpecialistPoolOperationSettings(),
             clientContext,
             operationsStub);
+    this.listLocationsCallable =
+        callableFactory.createUnaryCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.listLocationsPagedCallable =
+        callableFactory.createPagedCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.getLocationCallable =
+        callableFactory.createUnaryCallable(
+            getLocationTransportSettings, settings.getLocationSettings(), clientContext);
+    this.setIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
+    this.getIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
+    this.testIamPermissionsCallable =
+        callableFactory.createUnaryCallable(
+            testIamPermissionsTransportSettings,
+            settings.testIamPermissionsSettings(),
+            clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -333,6 +468,38 @@ public UnaryCallable updateSpecialistPoo
     return updateSpecialistPoolOperationCallable;
   }
 
+  @Override
+  public UnaryCallable listLocationsCallable() {
+    return listLocationsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    return listLocationsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable getLocationCallable() {
+    return getLocationCallable;
+  }
+
+  @Override
+  public UnaryCallable setIamPolicyCallable() {
+    return setIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable getIamPolicyCallable() {
+    return getIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    return testIamPermissionsCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcTensorboardServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcTensorboardServiceCallableFactory.java
index c551b814d56d..5b88688fd64d 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcTensorboardServiceCallableFactory.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcTensorboardServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcTensorboardServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcTensorboardServiceStub.java
index d1cc5af7ed50..4e65080ba1a7 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcTensorboardServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcTensorboardServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1.stub;
 
 import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse;
+import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListTensorboardExperimentsPagedResponse;
 import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListTensorboardRunsPagedResponse;
 import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListTensorboardTimeSeriesPagedResponse;
@@ -77,7 +78,16 @@
 import com.google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse;
 import com.google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest;
 import com.google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableMap;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.GrpcOperationsStub;
 import com.google.protobuf.Empty;
@@ -448,6 +458,52 @@ public class GrpcTensorboardServiceStub extends TensorboardServiceStub {
                       ExportTensorboardTimeSeriesDataResponse.getDefaultInstance()))
               .build();
 
+  private static final MethodDescriptor
+      listLocationsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.location.Locations/ListLocations")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor getLocationMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.location.Locations/GetLocation")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor setIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor getIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor
+      testIamPermissionsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
+              .build();
+
   private final UnaryCallable createTensorboardCallable;
   private final OperationCallable<
           CreateTensorboardRequest, Tensorboard, CreateTensorboardOperationMetadata>
@@ -533,6 +589,14 @@ public class GrpcTensorboardServiceStub extends TensorboardServiceStub {
   private final UnaryCallable<
           ExportTensorboardTimeSeriesDataRequest, ExportTensorboardTimeSeriesDataPagedResponse>
       exportTensorboardTimeSeriesDataPagedCallable;
+  private final UnaryCallable listLocationsCallable;
+  private final UnaryCallable
+      listLocationsPagedCallable;
+  private final UnaryCallable getLocationCallable;
+  private final UnaryCallable setIamPolicyCallable;
+  private final UnaryCallable getIamPolicyCallable;
+  private final UnaryCallable
+      testIamPermissionsCallable;
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -912,6 +976,57 @@ protected GrpcTensorboardServiceStub(
                       return params.build();
                     })
                 .build();
+    GrpcCallSettings listLocationsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listLocationsMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getLocationTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getLocationMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings setIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(setIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings
+        testIamPermissionsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(testIamPermissionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("resource", String.valueOf(request.getResource()));
+                      return params.build();
+                    })
+                .build();
 
     this.createTensorboardCallable =
         callableFactory.createUnaryCallable(
@@ -1108,6 +1223,26 @@ protected GrpcTensorboardServiceStub(
             exportTensorboardTimeSeriesDataTransportSettings,
             settings.exportTensorboardTimeSeriesDataSettings(),
             clientContext);
+    this.listLocationsCallable =
+        callableFactory.createUnaryCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.listLocationsPagedCallable =
+        callableFactory.createPagedCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.getLocationCallable =
+        callableFactory.createUnaryCallable(
+            getLocationTransportSettings, settings.getLocationSettings(), clientContext);
+    this.setIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
+    this.getIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
+    this.testIamPermissionsCallable =
+        callableFactory.createUnaryCallable(
+            testIamPermissionsTransportSettings,
+            settings.testIamPermissionsSettings(),
+            clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -1350,6 +1485,38 @@ public UnaryCallable deleteTensorboardRu
     return exportTensorboardTimeSeriesDataPagedCallable;
   }
 
+  @Override
+  public UnaryCallable listLocationsCallable() {
+    return listLocationsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    return listLocationsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable getLocationCallable() {
+    return getLocationCallable;
+  }
+
+  @Override
+  public UnaryCallable setIamPolicyCallable() {
+    return setIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable getIamPolicyCallable() {
+    return getIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    return testIamPermissionsCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcVizierServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcVizierServiceCallableFactory.java
index a4a613c45b46..74a374f86773 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcVizierServiceCallableFactory.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcVizierServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcVizierServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcVizierServiceStub.java
index 6746fd62d7fe..e5861e9d7ab7 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcVizierServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcVizierServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1.stub;
 
+import static com.google.cloud.aiplatform.v1.VizierServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.VizierServiceClient.ListStudiesPagedResponse;
 import static com.google.cloud.aiplatform.v1.VizierServiceClient.ListTrialsPagedResponse;
 
@@ -50,7 +51,16 @@
 import com.google.cloud.aiplatform.v1.SuggestTrialsRequest;
 import com.google.cloud.aiplatform.v1.SuggestTrialsResponse;
 import com.google.cloud.aiplatform.v1.Trial;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableMap;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.GrpcOperationsStub;
 import com.google.protobuf.Empty;
@@ -201,6 +211,52 @@ public class GrpcVizierServiceStub extends VizierServiceStub {
                   ProtoUtils.marshaller(ListOptimalTrialsResponse.getDefaultInstance()))
               .build();
 
+  private static final MethodDescriptor
+      listLocationsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.location.Locations/ListLocations")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor getLocationMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.location.Locations/GetLocation")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor setIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor getIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor
+      testIamPermissionsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
+              .build();
+
   private final UnaryCallable createStudyCallable;
   private final UnaryCallable getStudyCallable;
   private final UnaryCallable listStudiesCallable;
@@ -229,6 +285,14 @@ public class GrpcVizierServiceStub extends VizierServiceStub {
   private final UnaryCallable stopTrialCallable;
   private final UnaryCallable
       listOptimalTrialsCallable;
+  private final UnaryCallable listLocationsCallable;
+  private final UnaryCallable
+      listLocationsPagedCallable;
+  private final UnaryCallable getLocationCallable;
+  private final UnaryCallable setIamPolicyCallable;
+  private final UnaryCallable getIamPolicyCallable;
+  private final UnaryCallable
+      testIamPermissionsCallable;
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -424,6 +488,57 @@ protected GrpcVizierServiceStub(
                       return params.build();
                     })
                 .build();
+    GrpcCallSettings listLocationsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listLocationsMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getLocationTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getLocationMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings setIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(setIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings
+        testIamPermissionsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(testIamPermissionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("resource", String.valueOf(request.getResource()));
+                      return params.build();
+                    })
+                .build();
 
     this.createStudyCallable =
         callableFactory.createUnaryCallable(
@@ -494,6 +609,26 @@ protected GrpcVizierServiceStub(
             listOptimalTrialsTransportSettings,
             settings.listOptimalTrialsSettings(),
             clientContext);
+    this.listLocationsCallable =
+        callableFactory.createUnaryCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.listLocationsPagedCallable =
+        callableFactory.createPagedCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.getLocationCallable =
+        callableFactory.createUnaryCallable(
+            getLocationTransportSettings, settings.getLocationSettings(), clientContext);
+    this.setIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
+    this.getIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
+    this.testIamPermissionsCallable =
+        callableFactory.createUnaryCallable(
+            testIamPermissionsTransportSettings,
+            settings.testIamPermissionsSettings(),
+            clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -605,6 +740,38 @@ public UnaryCallable stopTrialCallable() {
     return listOptimalTrialsCallable;
   }
 
+  @Override
+  public UnaryCallable listLocationsCallable() {
+    return listLocationsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    return listLocationsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable getLocationCallable() {
+    return getLocationCallable;
+  }
+
+  @Override
+  public UnaryCallable setIamPolicyCallable() {
+    return setIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable getIamPolicyCallable() {
+    return getIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    return testIamPermissionsCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexEndpointServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexEndpointServiceStub.java
index ba706b3cf94a..cb01c9eb61cb 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexEndpointServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexEndpointServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1.stub;
 
 import static com.google.cloud.aiplatform.v1.IndexEndpointServiceClient.ListIndexEndpointsPagedResponse;
+import static com.google.cloud.aiplatform.v1.IndexEndpointServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.gax.core.BackgroundResource;
 import com.google.api.gax.rpc.OperationCallable;
@@ -39,6 +40,15 @@
 import com.google.cloud.aiplatform.v1.UndeployIndexRequest;
 import com.google.cloud.aiplatform.v1.UndeployIndexResponse;
 import com.google.cloud.aiplatform.v1.UpdateIndexEndpointRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.OperationsStub;
 import com.google.protobuf.Empty;
@@ -128,6 +138,32 @@ public UnaryCallable mutateDeployedIndexC
     throw new UnsupportedOperationException("Not implemented: mutateDeployedIndexCallable()");
   }
 
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
+  }
+
+  public UnaryCallable listLocationsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
+  }
+
+  public UnaryCallable getLocationCallable() {
+    throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
+  }
+
+  public UnaryCallable setIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
+  }
+
+  public UnaryCallable getIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
+  }
+
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexEndpointServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexEndpointServiceStubSettings.java
index afecf34f0d1a..d7623740686b 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexEndpointServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexEndpointServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1.stub;
 
 import static com.google.cloud.aiplatform.v1.IndexEndpointServiceClient.ListIndexEndpointsPagedResponse;
+import static com.google.cloud.aiplatform.v1.IndexEndpointServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.core.ApiFunction;
 import com.google.api.core.ApiFuture;
@@ -62,10 +63,19 @@
 import com.google.cloud.aiplatform.v1.UndeployIndexRequest;
 import com.google.cloud.aiplatform.v1.UndeployIndexResponse;
 import com.google.cloud.aiplatform.v1.UpdateIndexEndpointRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.Empty;
 import java.io.IOException;
@@ -91,6 +101,8 @@
  * 

For example, to set the total timeout of getIndexEndpoint to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IndexEndpointServiceStubSettings.Builder indexEndpointServiceSettingsBuilder =
  *     IndexEndpointServiceStubSettings.newBuilder();
  * indexEndpointServiceSettingsBuilder
@@ -143,6 +155,14 @@ public class IndexEndpointServiceStubSettings
           MutateDeployedIndexResponse,
           MutateDeployedIndexOperationMetadata>
       mutateDeployedIndexOperationSettings;
+  private final PagedCallSettings<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      listLocationsSettings;
+  private final UnaryCallSettings getLocationSettings;
+  private final UnaryCallSettings setIamPolicySettings;
+  private final UnaryCallSettings getIamPolicySettings;
+  private final UnaryCallSettings
+      testIamPermissionsSettings;
 
   private static final PagedListDescriptor<
           ListIndexEndpointsRequest, ListIndexEndpointsResponse, IndexEndpoint>
@@ -184,6 +204,42 @@ public Iterable extractResources(ListIndexEndpointsResponse paylo
             }
           };
 
+  private static final PagedListDescriptor
+      LIST_LOCATIONS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) {
+              return ListLocationsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) {
+              return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListLocationsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListLocationsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListLocationsResponse payload) {
+              return payload.getLocationsList() == null
+                  ? ImmutableList.of()
+                  : payload.getLocationsList();
+            }
+          };
+
   private static final PagedListResponseFactory<
           ListIndexEndpointsRequest, ListIndexEndpointsResponse, ListIndexEndpointsPagedResponse>
       LIST_INDEX_ENDPOINTS_PAGE_STR_FACT =
@@ -205,6 +261,23 @@ public ApiFuture getFuturePagedResponse(
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      LIST_LOCATIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListLocationsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context);
+              return ListLocationsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
   /** Returns the object with the settings used for calls to createIndexEndpoint. */
   public UnaryCallSettings createIndexEndpointSettings() {
     return createIndexEndpointSettings;
@@ -284,7 +357,33 @@ public UnaryCallSettings mutateDeployedIn
     return mutateDeployedIndexOperationSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return listLocationsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return getLocationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return setIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return getIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return testIamPermissionsSettings;
+  }
+
   public IndexEndpointServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -376,6 +475,11 @@ protected IndexEndpointServiceStubSettings(Builder settingsBuilder) throws IOExc
     mutateDeployedIndexSettings = settingsBuilder.mutateDeployedIndexSettings().build();
     mutateDeployedIndexOperationSettings =
         settingsBuilder.mutateDeployedIndexOperationSettings().build();
+    listLocationsSettings = settingsBuilder.listLocationsSettings().build();
+    getLocationSettings = settingsBuilder.getLocationSettings().build();
+    setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
+    getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
+    testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
   }
 
   /** Builder for IndexEndpointServiceStubSettings. */
@@ -414,6 +518,14 @@ public static class Builder
             MutateDeployedIndexResponse,
             MutateDeployedIndexOperationMetadata>
         mutateDeployedIndexOperationSettings;
+    private final PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings;
+    private final UnaryCallSettings.Builder getLocationSettings;
+    private final UnaryCallSettings.Builder setIamPolicySettings;
+    private final UnaryCallSettings.Builder getIamPolicySettings;
+    private final UnaryCallSettings.Builder
+        testIamPermissionsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -454,6 +566,11 @@ protected Builder(ClientContext clientContext) {
       undeployIndexOperationSettings = OperationCallSettings.newBuilder();
       mutateDeployedIndexSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       mutateDeployedIndexOperationSettings = OperationCallSettings.newBuilder();
+      listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
+      getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -464,7 +581,12 @@ protected Builder(ClientContext clientContext) {
               deleteIndexEndpointSettings,
               deployIndexSettings,
               undeployIndexSettings,
-              mutateDeployedIndexSettings);
+              mutateDeployedIndexSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
       initDefaults(this);
     }
 
@@ -487,6 +609,11 @@ protected Builder(IndexEndpointServiceStubSettings settings) {
       mutateDeployedIndexSettings = settings.mutateDeployedIndexSettings.toBuilder();
       mutateDeployedIndexOperationSettings =
           settings.mutateDeployedIndexOperationSettings.toBuilder();
+      listLocationsSettings = settings.listLocationsSettings.toBuilder();
+      getLocationSettings = settings.getLocationSettings.toBuilder();
+      setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
+      getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
+      testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -497,7 +624,12 @@ protected Builder(IndexEndpointServiceStubSettings settings) {
               deleteIndexEndpointSettings,
               deployIndexSettings,
               undeployIndexSettings,
-              mutateDeployedIndexSettings);
+              mutateDeployedIndexSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
     }
 
     private static Builder createDefault() {
@@ -554,6 +686,31 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
 
+      builder
+          .listLocationsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getLocationSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .setIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .testIamPermissionsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .createIndexEndpointOperationSettings()
           .setInitialCallSettings(
@@ -789,6 +946,34 @@ public UnaryCallSettings.Builder undeployIndexS
       return mutateDeployedIndexOperationSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return listLocationsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getLocationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return setIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return testIamPermissionsSettings;
+    }
+
     @Override
     public IndexEndpointServiceStubSettings build() throws IOException {
       return new IndexEndpointServiceStubSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexServiceStub.java
index af85f1280235..e53e746f1af9 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1.stub;
 
 import static com.google.cloud.aiplatform.v1.IndexServiceClient.ListIndexesPagedResponse;
+import static com.google.cloud.aiplatform.v1.IndexServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.gax.core.BackgroundResource;
 import com.google.api.gax.rpc.OperationCallable;
@@ -31,6 +32,15 @@
 import com.google.cloud.aiplatform.v1.ListIndexesResponse;
 import com.google.cloud.aiplatform.v1.UpdateIndexOperationMetadata;
 import com.google.cloud.aiplatform.v1.UpdateIndexRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.OperationsStub;
 import com.google.protobuf.Empty;
@@ -88,6 +98,32 @@ public UnaryCallable deleteIndexCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteIndexCallable()");
   }
 
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
+  }
+
+  public UnaryCallable listLocationsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
+  }
+
+  public UnaryCallable getLocationCallable() {
+    throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
+  }
+
+  public UnaryCallable setIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
+  }
+
+  public UnaryCallable getIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
+  }
+
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexServiceStubSettings.java
index 23a36d66d125..dca0bdb7088f 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/IndexServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1.stub;
 
 import static com.google.cloud.aiplatform.v1.IndexServiceClient.ListIndexesPagedResponse;
+import static com.google.cloud.aiplatform.v1.IndexServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.core.ApiFunction;
 import com.google.api.core.ApiFuture;
@@ -54,10 +55,19 @@
 import com.google.cloud.aiplatform.v1.ListIndexesResponse;
 import com.google.cloud.aiplatform.v1.UpdateIndexOperationMetadata;
 import com.google.cloud.aiplatform.v1.UpdateIndexRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.Empty;
 import java.io.IOException;
@@ -83,6 +93,8 @@
  * 

For example, to set the total timeout of getIndex to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IndexServiceStubSettings.Builder indexServiceSettingsBuilder =
  *     IndexServiceStubSettings.newBuilder();
  * indexServiceSettingsBuilder
@@ -115,6 +127,14 @@ public class IndexServiceStubSettings extends StubSettings deleteIndexSettings;
   private final OperationCallSettings
       deleteIndexOperationSettings;
+  private final PagedCallSettings<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      listLocationsSettings;
+  private final UnaryCallSettings getLocationSettings;
+  private final UnaryCallSettings setIamPolicySettings;
+  private final UnaryCallSettings getIamPolicySettings;
+  private final UnaryCallSettings
+      testIamPermissionsSettings;
 
   private static final PagedListDescriptor
       LIST_INDEXES_PAGE_STR_DESC =
@@ -152,6 +172,42 @@ public Iterable extractResources(ListIndexesResponse payload) {
             }
           };
 
+  private static final PagedListDescriptor
+      LIST_LOCATIONS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) {
+              return ListLocationsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) {
+              return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListLocationsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListLocationsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListLocationsResponse payload) {
+              return payload.getLocationsList() == null
+                  ? ImmutableList.of()
+                  : payload.getLocationsList();
+            }
+          };
+
   private static final PagedListResponseFactory<
           ListIndexesRequest, ListIndexesResponse, ListIndexesPagedResponse>
       LIST_INDEXES_PAGE_STR_FACT =
@@ -169,6 +225,23 @@ public ApiFuture getFuturePagedResponse(
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      LIST_LOCATIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListLocationsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context);
+              return ListLocationsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
   /** Returns the object with the settings used for calls to createIndex. */
   public UnaryCallSettings createIndexSettings() {
     return createIndexSettings;
@@ -213,7 +286,33 @@ public UnaryCallSettings deleteIndexSettings() {
     return deleteIndexOperationSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return listLocationsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return getLocationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return setIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return getIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return testIamPermissionsSettings;
+  }
+
   public IndexServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -297,6 +396,11 @@ protected IndexServiceStubSettings(Builder settingsBuilder) throws IOException {
     updateIndexOperationSettings = settingsBuilder.updateIndexOperationSettings().build();
     deleteIndexSettings = settingsBuilder.deleteIndexSettings().build();
     deleteIndexOperationSettings = settingsBuilder.deleteIndexOperationSettings().build();
+    listLocationsSettings = settingsBuilder.listLocationsSettings().build();
+    getLocationSettings = settingsBuilder.getLocationSettings().build();
+    setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
+    getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
+    testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
   }
 
   /** Builder for IndexServiceStubSettings. */
@@ -317,6 +421,14 @@ public static class Builder extends StubSettings.Builder deleteIndexSettings;
     private final OperationCallSettings.Builder
         deleteIndexOperationSettings;
+    private final PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings;
+    private final UnaryCallSettings.Builder getLocationSettings;
+    private final UnaryCallSettings.Builder setIamPolicySettings;
+    private final UnaryCallSettings.Builder getIamPolicySettings;
+    private final UnaryCallSettings.Builder
+        testIamPermissionsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -352,6 +464,11 @@ protected Builder(ClientContext clientContext) {
       updateIndexOperationSettings = OperationCallSettings.newBuilder();
       deleteIndexSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       deleteIndexOperationSettings = OperationCallSettings.newBuilder();
+      listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
+      getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -359,7 +476,12 @@ protected Builder(ClientContext clientContext) {
               getIndexSettings,
               listIndexesSettings,
               updateIndexSettings,
-              deleteIndexSettings);
+              deleteIndexSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
       initDefaults(this);
     }
 
@@ -374,6 +496,11 @@ protected Builder(IndexServiceStubSettings settings) {
       updateIndexOperationSettings = settings.updateIndexOperationSettings.toBuilder();
       deleteIndexSettings = settings.deleteIndexSettings.toBuilder();
       deleteIndexOperationSettings = settings.deleteIndexOperationSettings.toBuilder();
+      listLocationsSettings = settings.listLocationsSettings.toBuilder();
+      getLocationSettings = settings.getLocationSettings.toBuilder();
+      setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
+      getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
+      testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -381,7 +508,12 @@ protected Builder(IndexServiceStubSettings settings) {
               getIndexSettings,
               listIndexesSettings,
               updateIndexSettings,
-              deleteIndexSettings);
+              deleteIndexSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
     }
 
     private static Builder createDefault() {
@@ -423,6 +555,31 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
 
+      builder
+          .listLocationsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getLocationSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .setIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .testIamPermissionsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .createIndexOperationSettings()
           .setInitialCallSettings(
@@ -563,6 +720,34 @@ public UnaryCallSettings.Builder deleteIndexSetti
       return deleteIndexOperationSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return listLocationsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getLocationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return setIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return testIamPermissionsSettings;
+    }
+
     @Override
     public IndexServiceStubSettings build() throws IOException {
       return new IndexServiceStubSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/JobServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/JobServiceStub.java
index 5e043ed7fc2d..ebe4351f944b 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/JobServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/JobServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -20,6 +20,7 @@
 import static com.google.cloud.aiplatform.v1.JobServiceClient.ListCustomJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1.JobServiceClient.ListDataLabelingJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1.JobServiceClient.ListHyperparameterTuningJobsPagedResponse;
+import static com.google.cloud.aiplatform.v1.JobServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.JobServiceClient.ListModelDeploymentMonitoringJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1.JobServiceClient.SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse;
 
@@ -67,6 +68,15 @@
 import com.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse;
 import com.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata;
 import com.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.OperationsStub;
 import com.google.protobuf.Empty;
@@ -309,6 +319,32 @@ public UnaryCallable cancelBatchPredicti
         "Not implemented: resumeModelDeploymentMonitoringJobCallable()");
   }
 
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
+  }
+
+  public UnaryCallable listLocationsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
+  }
+
+  public UnaryCallable getLocationCallable() {
+    throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
+  }
+
+  public UnaryCallable setIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
+  }
+
+  public UnaryCallable getIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
+  }
+
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/JobServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/JobServiceStubSettings.java
index 1c07f4a7ca7a..1aa971b276e4 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/JobServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/JobServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -20,6 +20,7 @@
 import static com.google.cloud.aiplatform.v1.JobServiceClient.ListCustomJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1.JobServiceClient.ListDataLabelingJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1.JobServiceClient.ListHyperparameterTuningJobsPagedResponse;
+import static com.google.cloud.aiplatform.v1.JobServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.JobServiceClient.ListModelDeploymentMonitoringJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1.JobServiceClient.SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse;
 
@@ -91,10 +92,19 @@
 import com.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse;
 import com.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata;
 import com.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.Empty;
 import java.io.IOException;
@@ -120,6 +130,8 @@
  * 

For example, to set the total timeout of createCustomJob to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * JobServiceStubSettings.Builder jobServiceSettingsBuilder = JobServiceStubSettings.newBuilder();
  * jobServiceSettingsBuilder
  *     .createCustomJobSettings()
@@ -227,6 +239,14 @@ public class JobServiceStubSettings extends StubSettings
       pauseModelDeploymentMonitoringJobSettings;
   private final UnaryCallSettings
       resumeModelDeploymentMonitoringJobSettings;
+  private final PagedCallSettings<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      listLocationsSettings;
+  private final UnaryCallSettings getLocationSettings;
+  private final UnaryCallSettings setIamPolicySettings;
+  private final UnaryCallSettings getIamPolicySettings;
+  private final UnaryCallSettings
+      testIamPermissionsSettings;
 
   private static final PagedListDescriptor
       LIST_CUSTOM_JOBS_PAGE_STR_DESC =
@@ -500,6 +520,42 @@ public Iterable extractResources(
             }
           };
 
+  private static final PagedListDescriptor
+      LIST_LOCATIONS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) {
+              return ListLocationsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) {
+              return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListLocationsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListLocationsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListLocationsResponse payload) {
+              return payload.getLocationsList() == null
+                  ? ImmutableList.of()
+                  : payload.getLocationsList();
+            }
+          };
+
   private static final PagedListResponseFactory<
           ListCustomJobsRequest, ListCustomJobsResponse, ListCustomJobsPagedResponse>
       LIST_CUSTOM_JOBS_PAGE_STR_FACT =
@@ -668,6 +724,23 @@ public ApiFuture getFuturePagedR
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      LIST_LOCATIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListLocationsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context);
+              return ListLocationsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
   /** Returns the object with the settings used for calls to createCustomJob. */
   public UnaryCallSettings createCustomJobSettings() {
     return createCustomJobSettings;
@@ -890,7 +963,33 @@ public UnaryCallSettings cancelDataLabeling
     return resumeModelDeploymentMonitoringJobSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return listLocationsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return getLocationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return setIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return getIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return testIamPermissionsSettings;
+  }
+
   public JobServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -1018,6 +1117,11 @@ protected JobServiceStubSettings(Builder settingsBuilder) throws IOException {
         settingsBuilder.pauseModelDeploymentMonitoringJobSettings().build();
     resumeModelDeploymentMonitoringJobSettings =
         settingsBuilder.resumeModelDeploymentMonitoringJobSettings().build();
+    listLocationsSettings = settingsBuilder.listLocationsSettings().build();
+    getLocationSettings = settingsBuilder.getLocationSettings().build();
+    setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
+    getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
+    testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
   }
 
   /** Builder for JobServiceStubSettings. */
@@ -1117,6 +1221,14 @@ public static class Builder extends StubSettings.Builder
         resumeModelDeploymentMonitoringJobSettings;
+    private final PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings;
+    private final UnaryCallSettings.Builder getLocationSettings;
+    private final UnaryCallSettings.Builder setIamPolicySettings;
+    private final UnaryCallSettings.Builder getIamPolicySettings;
+    private final UnaryCallSettings.Builder
+        testIamPermissionsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -1184,6 +1296,11 @@ protected Builder(ClientContext clientContext) {
       deleteModelDeploymentMonitoringJobOperationSettings = OperationCallSettings.newBuilder();
       pauseModelDeploymentMonitoringJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       resumeModelDeploymentMonitoringJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
+      getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -1214,7 +1331,12 @@ protected Builder(ClientContext clientContext) {
               updateModelDeploymentMonitoringJobSettings,
               deleteModelDeploymentMonitoringJobSettings,
               pauseModelDeploymentMonitoringJobSettings,
-              resumeModelDeploymentMonitoringJobSettings);
+              resumeModelDeploymentMonitoringJobSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
       initDefaults(this);
     }
 
@@ -1272,6 +1394,11 @@ protected Builder(JobServiceStubSettings settings) {
           settings.pauseModelDeploymentMonitoringJobSettings.toBuilder();
       resumeModelDeploymentMonitoringJobSettings =
           settings.resumeModelDeploymentMonitoringJobSettings.toBuilder();
+      listLocationsSettings = settings.listLocationsSettings.toBuilder();
+      getLocationSettings = settings.getLocationSettings.toBuilder();
+      setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
+      getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
+      testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -1302,7 +1429,12 @@ protected Builder(JobServiceStubSettings settings) {
               updateModelDeploymentMonitoringJobSettings,
               deleteModelDeploymentMonitoringJobSettings,
               pauseModelDeploymentMonitoringJobSettings,
-              resumeModelDeploymentMonitoringJobSettings);
+              resumeModelDeploymentMonitoringJobSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
     }
 
     private static Builder createDefault() {
@@ -1459,6 +1591,31 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
 
+      builder
+          .listLocationsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getLocationSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .setIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .testIamPermissionsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .deleteCustomJobOperationSettings()
           .setInitialCallSettings(
@@ -1878,6 +2035,34 @@ public UnaryCallSettings.Builder cancelCustomJobS
       return resumeModelDeploymentMonitoringJobSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return listLocationsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getLocationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return setIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return testIamPermissionsSettings;
+    }
+
     @Override
     public JobServiceStubSettings build() throws IOException {
       return new JobServiceStubSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MetadataServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MetadataServiceStub.java
index 185450153359..36197a242aeb 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MetadataServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MetadataServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
 import static com.google.cloud.aiplatform.v1.MetadataServiceClient.ListArtifactsPagedResponse;
 import static com.google.cloud.aiplatform.v1.MetadataServiceClient.ListContextsPagedResponse;
 import static com.google.cloud.aiplatform.v1.MetadataServiceClient.ListExecutionsPagedResponse;
+import static com.google.cloud.aiplatform.v1.MetadataServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.MetadataServiceClient.ListMetadataSchemasPagedResponse;
 import static com.google.cloud.aiplatform.v1.MetadataServiceClient.ListMetadataStoresPagedResponse;
 
@@ -79,6 +80,15 @@
 import com.google.cloud.aiplatform.v1.UpdateArtifactRequest;
 import com.google.cloud.aiplatform.v1.UpdateContextRequest;
 import com.google.cloud.aiplatform.v1.UpdateExecutionRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.OperationsStub;
 import com.google.protobuf.Empty;
@@ -301,6 +311,32 @@ public UnaryCallable getMetadataSchema
         "Not implemented: queryArtifactLineageSubgraphCallable()");
   }
 
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
+  }
+
+  public UnaryCallable listLocationsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
+  }
+
+  public UnaryCallable getLocationCallable() {
+    throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
+  }
+
+  public UnaryCallable setIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
+  }
+
+  public UnaryCallable getIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
+  }
+
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MetadataServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MetadataServiceStubSettings.java
index 4f9776e605db..421ed94847c5 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MetadataServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MetadataServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
 import static com.google.cloud.aiplatform.v1.MetadataServiceClient.ListArtifactsPagedResponse;
 import static com.google.cloud.aiplatform.v1.MetadataServiceClient.ListContextsPagedResponse;
 import static com.google.cloud.aiplatform.v1.MetadataServiceClient.ListExecutionsPagedResponse;
+import static com.google.cloud.aiplatform.v1.MetadataServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.MetadataServiceClient.ListMetadataSchemasPagedResponse;
 import static com.google.cloud.aiplatform.v1.MetadataServiceClient.ListMetadataStoresPagedResponse;
 
@@ -102,10 +103,19 @@
 import com.google.cloud.aiplatform.v1.UpdateArtifactRequest;
 import com.google.cloud.aiplatform.v1.UpdateContextRequest;
 import com.google.cloud.aiplatform.v1.UpdateExecutionRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.Empty;
 import java.io.IOException;
@@ -131,6 +141,8 @@
  * 

For example, to set the total timeout of getMetadataStore to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * MetadataServiceStubSettings.Builder metadataServiceSettingsBuilder =
  *     MetadataServiceStubSettings.newBuilder();
  * metadataServiceSettingsBuilder
@@ -224,6 +236,14 @@ public class MetadataServiceStubSettings extends StubSettings
       queryArtifactLineageSubgraphSettings;
+  private final PagedCallSettings<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      listLocationsSettings;
+  private final UnaryCallSettings getLocationSettings;
+  private final UnaryCallSettings setIamPolicySettings;
+  private final UnaryCallSettings getIamPolicySettings;
+  private final UnaryCallSettings
+      testIamPermissionsSettings;
 
   private static final PagedListDescriptor<
           ListMetadataStoresRequest, ListMetadataStoresResponse, MetadataStore>
@@ -414,6 +434,42 @@ public Iterable extractResources(ListMetadataSchemasResponse pay
             }
           };
 
+  private static final PagedListDescriptor
+      LIST_LOCATIONS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) {
+              return ListLocationsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) {
+              return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListLocationsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListLocationsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListLocationsResponse payload) {
+              return payload.getLocationsList() == null
+                  ? ImmutableList.of()
+                  : payload.getLocationsList();
+            }
+          };
+
   private static final PagedListResponseFactory<
           ListMetadataStoresRequest, ListMetadataStoresResponse, ListMetadataStoresPagedResponse>
       LIST_METADATA_STORES_PAGE_STR_FACT =
@@ -507,6 +563,23 @@ public ApiFuture getFuturePagedResponse(
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      LIST_LOCATIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListLocationsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context);
+              return ListLocationsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
   /** Returns the object with the settings used for calls to createMetadataStore. */
   public UnaryCallSettings createMetadataStoreSettings() {
     return createMetadataStoreSettings;
@@ -730,7 +803,33 @@ public UnaryCallSettings getMetadataSc
     return queryArtifactLineageSubgraphSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return listLocationsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return getLocationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return setIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return getIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return testIamPermissionsSettings;
+  }
+
   public MetadataServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -851,6 +950,11 @@ protected MetadataServiceStubSettings(Builder settingsBuilder) throws IOExceptio
     listMetadataSchemasSettings = settingsBuilder.listMetadataSchemasSettings().build();
     queryArtifactLineageSubgraphSettings =
         settingsBuilder.queryArtifactLineageSubgraphSettings().build();
+    listLocationsSettings = settingsBuilder.listLocationsSettings().build();
+    getLocationSettings = settingsBuilder.getLocationSettings().build();
+    setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
+    getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
+    testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
   }
 
   /** Builder for MetadataServiceStubSettings. */
@@ -941,6 +1045,14 @@ public static class Builder extends StubSettings.Builder
         queryArtifactLineageSubgraphSettings;
+    private final PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings;
+    private final UnaryCallSettings.Builder getLocationSettings;
+    private final UnaryCallSettings.Builder setIamPolicySettings;
+    private final UnaryCallSettings.Builder getIamPolicySettings;
+    private final UnaryCallSettings.Builder
+        testIamPermissionsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -1008,6 +1120,11 @@ protected Builder(ClientContext clientContext) {
       listMetadataSchemasSettings =
           PagedCallSettings.newBuilder(LIST_METADATA_SCHEMAS_PAGE_STR_FACT);
       queryArtifactLineageSubgraphSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
+      getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -1041,7 +1158,12 @@ protected Builder(ClientContext clientContext) {
               createMetadataSchemaSettings,
               getMetadataSchemaSettings,
               listMetadataSchemasSettings,
-              queryArtifactLineageSubgraphSettings);
+              queryArtifactLineageSubgraphSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
       initDefaults(this);
     }
 
@@ -1093,6 +1215,11 @@ protected Builder(MetadataServiceStubSettings settings) {
       listMetadataSchemasSettings = settings.listMetadataSchemasSettings.toBuilder();
       queryArtifactLineageSubgraphSettings =
           settings.queryArtifactLineageSubgraphSettings.toBuilder();
+      listLocationsSettings = settings.listLocationsSettings.toBuilder();
+      getLocationSettings = settings.getLocationSettings.toBuilder();
+      setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
+      getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
+      testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -1126,7 +1253,12 @@ protected Builder(MetadataServiceStubSettings settings) {
               createMetadataSchemaSettings,
               getMetadataSchemaSettings,
               listMetadataSchemasSettings,
-              queryArtifactLineageSubgraphSettings);
+              queryArtifactLineageSubgraphSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
     }
 
     private static Builder createDefault() {
@@ -1298,6 +1430,31 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
 
+      builder
+          .listLocationsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getLocationSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .setIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .testIamPermissionsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .createMetadataStoreOperationSettings()
           .setInitialCallSettings(
@@ -1758,6 +1915,34 @@ public UnaryCallSettings.Builder purgeExecuti
       return queryArtifactLineageSubgraphSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return listLocationsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getLocationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return setIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return testIamPermissionsSettings;
+    }
+
     @Override
     public MetadataServiceStubSettings build() throws IOException {
       return new MetadataServiceStubSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MigrationServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MigrationServiceStub.java
index c399210d61ce..3fc571cb21a0 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MigrationServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MigrationServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1.stub;
 
+import static com.google.cloud.aiplatform.v1.MigrationServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.MigrationServiceClient.SearchMigratableResourcesPagedResponse;
 
 import com.google.api.gax.core.BackgroundResource;
@@ -26,6 +27,15 @@
 import com.google.cloud.aiplatform.v1.BatchMigrateResourcesResponse;
 import com.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest;
 import com.google.cloud.aiplatform.v1.SearchMigratableResourcesResponse;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.OperationsStub;
 import javax.annotation.Generated;
@@ -67,6 +77,32 @@ public UnaryCallable batchMigrateResour
     throw new UnsupportedOperationException("Not implemented: batchMigrateResourcesCallable()");
   }
 
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
+  }
+
+  public UnaryCallable listLocationsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
+  }
+
+  public UnaryCallable getLocationCallable() {
+    throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
+  }
+
+  public UnaryCallable setIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
+  }
+
+  public UnaryCallable getIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
+  }
+
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MigrationServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MigrationServiceStubSettings.java
index b3f678e8782c..fc555a68d4b3 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MigrationServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MigrationServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1.stub;
 
+import static com.google.cloud.aiplatform.v1.MigrationServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.MigrationServiceClient.SearchMigratableResourcesPagedResponse;
 
 import com.google.api.core.ApiFunction;
@@ -50,10 +51,19 @@
 import com.google.cloud.aiplatform.v1.MigratableResource;
 import com.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest;
 import com.google.cloud.aiplatform.v1.SearchMigratableResourcesResponse;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import java.io.IOException;
 import java.util.List;
@@ -75,16 +85,18 @@
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. * - *

For example, to set the total timeout of searchMigratableResources to 30 seconds: + *

For example, to set the total timeout of getLocation to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * MigrationServiceStubSettings.Builder migrationServiceSettingsBuilder =
  *     MigrationServiceStubSettings.newBuilder();
  * migrationServiceSettingsBuilder
- *     .searchMigratableResourcesSettings()
+ *     .getLocationSettings()
  *     .setRetrySettings(
  *         migrationServiceSettingsBuilder
- *             .searchMigratableResourcesSettings()
+ *             .getLocationSettings()
  *             .getRetrySettings()
  *             .toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
@@ -110,6 +122,14 @@ public class MigrationServiceStubSettings extends StubSettings
       batchMigrateResourcesOperationSettings;
+  private final PagedCallSettings<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      listLocationsSettings;
+  private final UnaryCallSettings getLocationSettings;
+  private final UnaryCallSettings setIamPolicySettings;
+  private final UnaryCallSettings getIamPolicySettings;
+  private final UnaryCallSettings
+      testIamPermissionsSettings;
 
   private static final PagedListDescriptor<
           SearchMigratableResourcesRequest, SearchMigratableResourcesResponse, MigratableResource>
@@ -158,6 +178,42 @@ public Iterable extractResources(
             }
           };
 
+  private static final PagedListDescriptor
+      LIST_LOCATIONS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) {
+              return ListLocationsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) {
+              return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListLocationsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListLocationsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListLocationsResponse payload) {
+              return payload.getLocationsList() == null
+                  ? ImmutableList.of()
+                  : payload.getLocationsList();
+            }
+          };
+
   private static final PagedListResponseFactory<
           SearchMigratableResourcesRequest,
           SearchMigratableResourcesResponse,
@@ -186,6 +242,23 @@ public ApiFuture getFuturePagedResponse(
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      LIST_LOCATIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListLocationsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context);
+              return ListLocationsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
   /** Returns the object with the settings used for calls to searchMigratableResources. */
   public PagedCallSettings<
           SearchMigratableResourcesRequest,
@@ -210,7 +283,33 @@ public ApiFuture getFuturePagedResponse(
     return batchMigrateResourcesOperationSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return listLocationsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return getLocationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return setIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return getIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return testIamPermissionsSettings;
+  }
+
   public MigrationServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -290,6 +389,11 @@ protected MigrationServiceStubSettings(Builder settingsBuilder) throws IOExcepti
     batchMigrateResourcesSettings = settingsBuilder.batchMigrateResourcesSettings().build();
     batchMigrateResourcesOperationSettings =
         settingsBuilder.batchMigrateResourcesOperationSettings().build();
+    listLocationsSettings = settingsBuilder.listLocationsSettings().build();
+    getLocationSettings = settingsBuilder.getLocationSettings().build();
+    setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
+    getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
+    testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
   }
 
   /** Builder for MigrationServiceStubSettings. */
@@ -307,6 +411,14 @@ public static class Builder extends StubSettings.Builder
         batchMigrateResourcesOperationSettings;
+    private final PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings;
+    private final UnaryCallSettings.Builder getLocationSettings;
+    private final UnaryCallSettings.Builder setIamPolicySettings;
+    private final UnaryCallSettings.Builder getIamPolicySettings;
+    private final UnaryCallSettings.Builder
+        testIamPermissionsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -338,10 +450,21 @@ protected Builder(ClientContext clientContext) {
           PagedCallSettings.newBuilder(SEARCH_MIGRATABLE_RESOURCES_PAGE_STR_FACT);
       batchMigrateResourcesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       batchMigrateResourcesOperationSettings = OperationCallSettings.newBuilder();
+      listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
+      getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
-              searchMigratableResourcesSettings, batchMigrateResourcesSettings);
+              searchMigratableResourcesSettings,
+              batchMigrateResourcesSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
       initDefaults(this);
     }
 
@@ -352,10 +475,21 @@ protected Builder(MigrationServiceStubSettings settings) {
       batchMigrateResourcesSettings = settings.batchMigrateResourcesSettings.toBuilder();
       batchMigrateResourcesOperationSettings =
           settings.batchMigrateResourcesOperationSettings.toBuilder();
+      listLocationsSettings = settings.listLocationsSettings.toBuilder();
+      getLocationSettings = settings.getLocationSettings.toBuilder();
+      setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
+      getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
+      testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
-              searchMigratableResourcesSettings, batchMigrateResourcesSettings);
+              searchMigratableResourcesSettings,
+              batchMigrateResourcesSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
     }
 
     private static Builder createDefault() {
@@ -382,6 +516,31 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
 
+      builder
+          .listLocationsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getLocationSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .setIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .testIamPermissionsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .batchMigrateResourcesOperationSettings()
           .setInitialCallSettings(
@@ -452,6 +611,34 @@ public Builder applyToAllUnaryMethods(
       return batchMigrateResourcesOperationSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return listLocationsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getLocationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return setIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return testIamPermissionsSettings;
+    }
+
     @Override
     public MigrationServiceStubSettings build() throws IOException {
       return new MigrationServiceStubSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStub.java
index 455acd0bf8e4..9afa3fea0984 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,14 +16,17 @@
 
 package com.google.cloud.aiplatform.v1.stub;
 
+import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelEvaluationSlicesPagedResponse;
 import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelEvaluationsPagedResponse;
+import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelVersionsPagedResponse;
 import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelsPagedResponse;
 
 import com.google.api.gax.core.BackgroundResource;
 import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1.DeleteModelRequest;
+import com.google.cloud.aiplatform.v1.DeleteModelVersionRequest;
 import com.google.cloud.aiplatform.v1.DeleteOperationMetadata;
 import com.google.cloud.aiplatform.v1.ExportModelOperationMetadata;
 import com.google.cloud.aiplatform.v1.ExportModelRequest;
@@ -36,8 +39,11 @@
 import com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse;
 import com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest;
 import com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse;
+import com.google.cloud.aiplatform.v1.ListModelVersionsRequest;
+import com.google.cloud.aiplatform.v1.ListModelVersionsResponse;
 import com.google.cloud.aiplatform.v1.ListModelsRequest;
 import com.google.cloud.aiplatform.v1.ListModelsResponse;
+import com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest;
 import com.google.cloud.aiplatform.v1.Model;
 import com.google.cloud.aiplatform.v1.ModelEvaluation;
 import com.google.cloud.aiplatform.v1.ModelEvaluationSlice;
@@ -45,6 +51,15 @@
 import com.google.cloud.aiplatform.v1.UploadModelOperationMetadata;
 import com.google.cloud.aiplatform.v1.UploadModelRequest;
 import com.google.cloud.aiplatform.v1.UploadModelResponse;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.OperationsStub;
 import com.google.protobuf.Empty;
@@ -84,6 +99,16 @@ public UnaryCallable listModelsCallable()
     throw new UnsupportedOperationException("Not implemented: listModelsCallable()");
   }
 
+  public UnaryCallable
+      listModelVersionsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listModelVersionsPagedCallable()");
+  }
+
+  public UnaryCallable
+      listModelVersionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listModelVersionsCallable()");
+  }
+
   public UnaryCallable updateModelCallable() {
     throw new UnsupportedOperationException("Not implemented: updateModelCallable()");
   }
@@ -97,6 +122,20 @@ public UnaryCallable deleteModelCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteModelCallable()");
   }
 
+  public OperationCallable
+      deleteModelVersionOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteModelVersionOperationCallable()");
+  }
+
+  public UnaryCallable deleteModelVersionCallable() {
+    throw new UnsupportedOperationException("Not implemented: deleteModelVersionCallable()");
+  }
+
+  public UnaryCallable mergeVersionAliasesCallable() {
+    throw new UnsupportedOperationException("Not implemented: mergeVersionAliasesCallable()");
+  }
+
   public OperationCallable
       exportModelOperationCallable() {
     throw new UnsupportedOperationException("Not implemented: exportModelOperationCallable()");
@@ -141,6 +180,32 @@ public UnaryCallable getModelEvaluat
     throw new UnsupportedOperationException("Not implemented: listModelEvaluationSlicesCallable()");
   }
 
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
+  }
+
+  public UnaryCallable listLocationsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
+  }
+
+  public UnaryCallable getLocationCallable() {
+    throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
+  }
+
+  public UnaryCallable setIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
+  }
+
+  public UnaryCallable getIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
+  }
+
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStubSettings.java
index aaca99c3d900..00c266a92938 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,8 +16,10 @@
 
 package com.google.cloud.aiplatform.v1.stub;
 
+import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelEvaluationSlicesPagedResponse;
 import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelEvaluationsPagedResponse;
+import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelVersionsPagedResponse;
 import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelsPagedResponse;
 
 import com.google.api.core.ApiFunction;
@@ -47,6 +49,7 @@
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1.DeleteModelRequest;
+import com.google.cloud.aiplatform.v1.DeleteModelVersionRequest;
 import com.google.cloud.aiplatform.v1.DeleteOperationMetadata;
 import com.google.cloud.aiplatform.v1.ExportModelOperationMetadata;
 import com.google.cloud.aiplatform.v1.ExportModelRequest;
@@ -59,8 +62,11 @@
 import com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse;
 import com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest;
 import com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse;
+import com.google.cloud.aiplatform.v1.ListModelVersionsRequest;
+import com.google.cloud.aiplatform.v1.ListModelVersionsResponse;
 import com.google.cloud.aiplatform.v1.ListModelsRequest;
 import com.google.cloud.aiplatform.v1.ListModelsResponse;
+import com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest;
 import com.google.cloud.aiplatform.v1.Model;
 import com.google.cloud.aiplatform.v1.ModelEvaluation;
 import com.google.cloud.aiplatform.v1.ModelEvaluationSlice;
@@ -68,10 +74,19 @@
 import com.google.cloud.aiplatform.v1.UploadModelOperationMetadata;
 import com.google.cloud.aiplatform.v1.UploadModelRequest;
 import com.google.cloud.aiplatform.v1.UploadModelResponse;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.Empty;
 import java.io.IOException;
@@ -97,6 +112,8 @@
  * 

For example, to set the total timeout of getModel to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * ModelServiceStubSettings.Builder modelServiceSettingsBuilder =
  *     ModelServiceStubSettings.newBuilder();
  * modelServiceSettingsBuilder
@@ -124,10 +141,17 @@ public class ModelServiceStubSettings extends StubSettings getModelSettings;
   private final PagedCallSettings
       listModelsSettings;
+  private final PagedCallSettings<
+          ListModelVersionsRequest, ListModelVersionsResponse, ListModelVersionsPagedResponse>
+      listModelVersionsSettings;
   private final UnaryCallSettings updateModelSettings;
   private final UnaryCallSettings deleteModelSettings;
   private final OperationCallSettings
       deleteModelOperationSettings;
+  private final UnaryCallSettings deleteModelVersionSettings;
+  private final OperationCallSettings
+      deleteModelVersionOperationSettings;
+  private final UnaryCallSettings mergeVersionAliasesSettings;
   private final UnaryCallSettings exportModelSettings;
   private final OperationCallSettings<
           ExportModelRequest, ExportModelResponse, ExportModelOperationMetadata>
@@ -148,6 +172,14 @@ public class ModelServiceStubSettings extends StubSettings
       listModelEvaluationSlicesSettings;
+  private final PagedCallSettings<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      listLocationsSettings;
+  private final UnaryCallSettings getLocationSettings;
+  private final UnaryCallSettings setIamPolicySettings;
+  private final UnaryCallSettings getIamPolicySettings;
+  private final UnaryCallSettings
+      testIamPermissionsSettings;
 
   private static final PagedListDescriptor
       LIST_MODELS_PAGE_STR_DESC =
@@ -185,6 +217,45 @@ public Iterable extractResources(ListModelsResponse payload) {
             }
           };
 
+  private static final PagedListDescriptor<
+          ListModelVersionsRequest, ListModelVersionsResponse, Model>
+      LIST_MODEL_VERSIONS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListModelVersionsRequest injectToken(
+                ListModelVersionsRequest payload, String token) {
+              return ListModelVersionsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListModelVersionsRequest injectPageSize(
+                ListModelVersionsRequest payload, int pageSize) {
+              return ListModelVersionsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListModelVersionsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListModelVersionsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListModelVersionsResponse payload) {
+              return payload.getModelsList() == null
+                  ? ImmutableList.of()
+                  : payload.getModelsList();
+            }
+          };
+
   private static final PagedListDescriptor<
           ListModelEvaluationsRequest, ListModelEvaluationsResponse, ModelEvaluation>
       LIST_MODEL_EVALUATIONS_PAGE_STR_DESC =
@@ -273,6 +344,42 @@ public Iterable extractResources(
             }
           };
 
+  private static final PagedListDescriptor
+      LIST_LOCATIONS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) {
+              return ListLocationsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) {
+              return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListLocationsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListLocationsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListLocationsResponse payload) {
+              return payload.getLocationsList() == null
+                  ? ImmutableList.of()
+                  : payload.getLocationsList();
+            }
+          };
+
   private static final PagedListResponseFactory<
           ListModelsRequest, ListModelsResponse, ListModelsPagedResponse>
       LIST_MODELS_PAGE_STR_FACT =
@@ -290,6 +397,25 @@ public ApiFuture getFuturePagedResponse(
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListModelVersionsRequest, ListModelVersionsResponse, ListModelVersionsPagedResponse>
+      LIST_MODEL_VERSIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListModelVersionsRequest,
+              ListModelVersionsResponse,
+              ListModelVersionsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListModelVersionsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_MODEL_VERSIONS_PAGE_STR_DESC, request, context);
+              return ListModelVersionsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
   private static final PagedListResponseFactory<
           ListModelEvaluationsRequest,
           ListModelEvaluationsResponse,
@@ -342,6 +468,23 @@ public ApiFuture getFuturePagedResponse(
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      LIST_LOCATIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListLocationsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context);
+              return ListLocationsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
   /** Returns the object with the settings used for calls to uploadModel. */
   public UnaryCallSettings uploadModelSettings() {
     return uploadModelSettings;
@@ -365,6 +508,13 @@ public UnaryCallSettings getModelSettings() {
     return listModelsSettings;
   }
 
+  /** Returns the object with the settings used for calls to listModelVersions. */
+  public PagedCallSettings<
+          ListModelVersionsRequest, ListModelVersionsResponse, ListModelVersionsPagedResponse>
+      listModelVersionsSettings() {
+    return listModelVersionsSettings;
+  }
+
   /** Returns the object with the settings used for calls to updateModel. */
   public UnaryCallSettings updateModelSettings() {
     return updateModelSettings;
@@ -381,6 +531,22 @@ public UnaryCallSettings deleteModelSettings() {
     return deleteModelOperationSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteModelVersion. */
+  public UnaryCallSettings deleteModelVersionSettings() {
+    return deleteModelVersionSettings;
+  }
+
+  /** Returns the object with the settings used for calls to deleteModelVersion. */
+  public OperationCallSettings
+      deleteModelVersionOperationSettings() {
+    return deleteModelVersionOperationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to mergeVersionAliases. */
+  public UnaryCallSettings mergeVersionAliasesSettings() {
+    return mergeVersionAliasesSettings;
+  }
+
   /** Returns the object with the settings used for calls to exportModel. */
   public UnaryCallSettings exportModelSettings() {
     return exportModelSettings;
@@ -429,7 +595,33 @@ public UnaryCallSettings exportModelSettings() {
     return listModelEvaluationSlicesSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return listLocationsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return getLocationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return setIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return getIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return testIamPermissionsSettings;
+  }
+
   public ModelServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -509,9 +701,14 @@ protected ModelServiceStubSettings(Builder settingsBuilder) throws IOException {
     uploadModelOperationSettings = settingsBuilder.uploadModelOperationSettings().build();
     getModelSettings = settingsBuilder.getModelSettings().build();
     listModelsSettings = settingsBuilder.listModelsSettings().build();
+    listModelVersionsSettings = settingsBuilder.listModelVersionsSettings().build();
     updateModelSettings = settingsBuilder.updateModelSettings().build();
     deleteModelSettings = settingsBuilder.deleteModelSettings().build();
     deleteModelOperationSettings = settingsBuilder.deleteModelOperationSettings().build();
+    deleteModelVersionSettings = settingsBuilder.deleteModelVersionSettings().build();
+    deleteModelVersionOperationSettings =
+        settingsBuilder.deleteModelVersionOperationSettings().build();
+    mergeVersionAliasesSettings = settingsBuilder.mergeVersionAliasesSettings().build();
     exportModelSettings = settingsBuilder.exportModelSettings().build();
     exportModelOperationSettings = settingsBuilder.exportModelOperationSettings().build();
     importModelEvaluationSettings = settingsBuilder.importModelEvaluationSettings().build();
@@ -519,6 +716,11 @@ protected ModelServiceStubSettings(Builder settingsBuilder) throws IOException {
     listModelEvaluationsSettings = settingsBuilder.listModelEvaluationsSettings().build();
     getModelEvaluationSliceSettings = settingsBuilder.getModelEvaluationSliceSettings().build();
     listModelEvaluationSlicesSettings = settingsBuilder.listModelEvaluationSlicesSettings().build();
+    listLocationsSettings = settingsBuilder.listLocationsSettings().build();
+    getLocationSettings = settingsBuilder.getLocationSettings().build();
+    setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
+    getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
+    testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
   }
 
   /** Builder for ModelServiceStubSettings. */
@@ -532,10 +734,20 @@ public static class Builder extends StubSettings.Builder
         listModelsSettings;
+    private final PagedCallSettings.Builder<
+            ListModelVersionsRequest, ListModelVersionsResponse, ListModelVersionsPagedResponse>
+        listModelVersionsSettings;
     private final UnaryCallSettings.Builder updateModelSettings;
     private final UnaryCallSettings.Builder deleteModelSettings;
     private final OperationCallSettings.Builder
         deleteModelOperationSettings;
+    private final UnaryCallSettings.Builder
+        deleteModelVersionSettings;
+    private final OperationCallSettings.Builder<
+            DeleteModelVersionRequest, Empty, DeleteOperationMetadata>
+        deleteModelVersionOperationSettings;
+    private final UnaryCallSettings.Builder
+        mergeVersionAliasesSettings;
     private final UnaryCallSettings.Builder exportModelSettings;
     private final OperationCallSettings.Builder<
             ExportModelRequest, ExportModelResponse, ExportModelOperationMetadata>
@@ -556,6 +768,14 @@ public static class Builder extends StubSettings.Builder
         listModelEvaluationSlicesSettings;
+    private final PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings;
+    private final UnaryCallSettings.Builder getLocationSettings;
+    private final UnaryCallSettings.Builder setIamPolicySettings;
+    private final UnaryCallSettings.Builder getIamPolicySettings;
+    private final UnaryCallSettings.Builder
+        testIamPermissionsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -587,9 +807,13 @@ protected Builder(ClientContext clientContext) {
       uploadModelOperationSettings = OperationCallSettings.newBuilder();
       getModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       listModelsSettings = PagedCallSettings.newBuilder(LIST_MODELS_PAGE_STR_FACT);
+      listModelVersionsSettings = PagedCallSettings.newBuilder(LIST_MODEL_VERSIONS_PAGE_STR_FACT);
       updateModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       deleteModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       deleteModelOperationSettings = OperationCallSettings.newBuilder();
+      deleteModelVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      deleteModelVersionOperationSettings = OperationCallSettings.newBuilder();
+      mergeVersionAliasesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       exportModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       exportModelOperationSettings = OperationCallSettings.newBuilder();
       importModelEvaluationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
@@ -599,20 +823,33 @@ protected Builder(ClientContext clientContext) {
       getModelEvaluationSliceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       listModelEvaluationSlicesSettings =
           PagedCallSettings.newBuilder(LIST_MODEL_EVALUATION_SLICES_PAGE_STR_FACT);
+      listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
+      getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               uploadModelSettings,
               getModelSettings,
               listModelsSettings,
+              listModelVersionsSettings,
               updateModelSettings,
               deleteModelSettings,
+              deleteModelVersionSettings,
+              mergeVersionAliasesSettings,
               exportModelSettings,
               importModelEvaluationSettings,
               getModelEvaluationSettings,
               listModelEvaluationsSettings,
               getModelEvaluationSliceSettings,
-              listModelEvaluationSlicesSettings);
+              listModelEvaluationSlicesSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
       initDefaults(this);
     }
 
@@ -623,9 +860,14 @@ protected Builder(ModelServiceStubSettings settings) {
       uploadModelOperationSettings = settings.uploadModelOperationSettings.toBuilder();
       getModelSettings = settings.getModelSettings.toBuilder();
       listModelsSettings = settings.listModelsSettings.toBuilder();
+      listModelVersionsSettings = settings.listModelVersionsSettings.toBuilder();
       updateModelSettings = settings.updateModelSettings.toBuilder();
       deleteModelSettings = settings.deleteModelSettings.toBuilder();
       deleteModelOperationSettings = settings.deleteModelOperationSettings.toBuilder();
+      deleteModelVersionSettings = settings.deleteModelVersionSettings.toBuilder();
+      deleteModelVersionOperationSettings =
+          settings.deleteModelVersionOperationSettings.toBuilder();
+      mergeVersionAliasesSettings = settings.mergeVersionAliasesSettings.toBuilder();
       exportModelSettings = settings.exportModelSettings.toBuilder();
       exportModelOperationSettings = settings.exportModelOperationSettings.toBuilder();
       importModelEvaluationSettings = settings.importModelEvaluationSettings.toBuilder();
@@ -633,20 +875,33 @@ protected Builder(ModelServiceStubSettings settings) {
       listModelEvaluationsSettings = settings.listModelEvaluationsSettings.toBuilder();
       getModelEvaluationSliceSettings = settings.getModelEvaluationSliceSettings.toBuilder();
       listModelEvaluationSlicesSettings = settings.listModelEvaluationSlicesSettings.toBuilder();
+      listLocationsSettings = settings.listLocationsSettings.toBuilder();
+      getLocationSettings = settings.getLocationSettings.toBuilder();
+      setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
+      getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
+      testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               uploadModelSettings,
               getModelSettings,
               listModelsSettings,
+              listModelVersionsSettings,
               updateModelSettings,
               deleteModelSettings,
+              deleteModelVersionSettings,
+              mergeVersionAliasesSettings,
               exportModelSettings,
               importModelEvaluationSettings,
               getModelEvaluationSettings,
               listModelEvaluationsSettings,
               getModelEvaluationSliceSettings,
-              listModelEvaluationSlicesSettings);
+              listModelEvaluationSlicesSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
     }
 
     private static Builder createDefault() {
@@ -678,6 +933,11 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
 
+      builder
+          .listModelVersionsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .updateModelSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
@@ -688,6 +948,16 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
 
+      builder
+          .deleteModelVersionSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .mergeVersionAliasesSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .exportModelSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
@@ -718,6 +988,31 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
 
+      builder
+          .listLocationsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getLocationSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .setIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .testIamPermissionsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .uploadModelOperationSettings()
           .setInitialCallSettings(
@@ -765,6 +1060,30 @@ private static Builder initDefaults(Builder builder) {
                       .setTotalTimeout(Duration.ofMillis(300000L))
                       .build()));
 
+      builder
+          .deleteModelVersionOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"))
+                  .build())
+          .setResponseTransformer(
+              ProtoOperationTransformers.ResponseTransformer.create(Empty.class))
+          .setMetadataTransformer(
+              ProtoOperationTransformers.MetadataTransformer.create(DeleteOperationMetadata.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(5000L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(45000L))
+                      .setInitialRpcTimeout(Duration.ZERO)
+                      .setRpcTimeoutMultiplier(1.0)
+                      .setMaxRpcTimeout(Duration.ZERO)
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+
       builder
           .exportModelOperationSettings()
           .setInitialCallSettings(
@@ -832,6 +1151,13 @@ public UnaryCallSettings.Builder getModelSettings() {
       return listModelsSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listModelVersions. */
+    public PagedCallSettings.Builder<
+            ListModelVersionsRequest, ListModelVersionsResponse, ListModelVersionsPagedResponse>
+        listModelVersionsSettings() {
+      return listModelVersionsSettings;
+    }
+
     /** Returns the builder for the settings used for calls to updateModel. */
     public UnaryCallSettings.Builder updateModelSettings() {
       return updateModelSettings;
@@ -850,6 +1176,26 @@ public UnaryCallSettings.Builder deleteModelSetti
       return deleteModelOperationSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteModelVersion. */
+    public UnaryCallSettings.Builder
+        deleteModelVersionSettings() {
+      return deleteModelVersionSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to deleteModelVersion. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteModelVersionOperationSettings() {
+      return deleteModelVersionOperationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to mergeVersionAliases. */
+    public UnaryCallSettings.Builder
+        mergeVersionAliasesSettings() {
+      return mergeVersionAliasesSettings;
+    }
+
     /** Returns the builder for the settings used for calls to exportModel. */
     public UnaryCallSettings.Builder exportModelSettings() {
       return exportModelSettings;
@@ -900,6 +1246,34 @@ public UnaryCallSettings.Builder exportModelSetti
       return listModelEvaluationSlicesSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return listLocationsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getLocationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return setIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return testIamPermissionsSettings;
+    }
+
     @Override
     public ModelServiceStubSettings build() throws IOException {
       return new ModelServiceStubSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStub.java
index 79f01855f28c..840b5da5604b 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1.stub;
 
+import static com.google.cloud.aiplatform.v1.PipelineServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.PipelineServiceClient.ListPipelineJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1.PipelineServiceClient.ListTrainingPipelinesPagedResponse;
 
@@ -37,6 +38,15 @@
 import com.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse;
 import com.google.cloud.aiplatform.v1.PipelineJob;
 import com.google.cloud.aiplatform.v1.TrainingPipeline;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.OperationsStub;
 import com.google.protobuf.Empty;
@@ -121,6 +131,32 @@ public UnaryCallable cancelPipelineJobCallable(
     throw new UnsupportedOperationException("Not implemented: cancelPipelineJobCallable()");
   }
 
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
+  }
+
+  public UnaryCallable listLocationsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
+  }
+
+  public UnaryCallable getLocationCallable() {
+    throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
+  }
+
+  public UnaryCallable setIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
+  }
+
+  public UnaryCallable getIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
+  }
+
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStubSettings.java
index bd8d4606a9f3..d83e38bc2f2b 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1.stub;
 
+import static com.google.cloud.aiplatform.v1.PipelineServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.PipelineServiceClient.ListPipelineJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1.PipelineServiceClient.ListTrainingPipelinesPagedResponse;
 
@@ -60,10 +61,19 @@
 import com.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse;
 import com.google.cloud.aiplatform.v1.PipelineJob;
 import com.google.cloud.aiplatform.v1.TrainingPipeline;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.Empty;
 import java.io.IOException;
@@ -89,6 +99,8 @@
  * 

For example, to set the total timeout of createTrainingPipeline to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * PipelineServiceStubSettings.Builder pipelineServiceSettingsBuilder =
  *     PipelineServiceStubSettings.newBuilder();
  * pipelineServiceSettingsBuilder
@@ -133,6 +145,14 @@ public class PipelineServiceStubSettings extends StubSettings
       deletePipelineJobOperationSettings;
   private final UnaryCallSettings cancelPipelineJobSettings;
+  private final PagedCallSettings<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      listLocationsSettings;
+  private final UnaryCallSettings getLocationSettings;
+  private final UnaryCallSettings setIamPolicySettings;
+  private final UnaryCallSettings getIamPolicySettings;
+  private final UnaryCallSettings
+      testIamPermissionsSettings;
 
   private static final PagedListDescriptor<
           ListTrainingPipelinesRequest, ListTrainingPipelinesResponse, TrainingPipeline>
@@ -215,6 +235,42 @@ public Iterable extractResources(ListPipelineJobsResponse payload)
             }
           };
 
+  private static final PagedListDescriptor
+      LIST_LOCATIONS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) {
+              return ListLocationsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) {
+              return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListLocationsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListLocationsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListLocationsResponse payload) {
+              return payload.getLocationsList() == null
+                  ? ImmutableList.of()
+                  : payload.getLocationsList();
+            }
+          };
+
   private static final PagedListResponseFactory<
           ListTrainingPipelinesRequest,
           ListTrainingPipelinesResponse,
@@ -258,6 +314,23 @@ public ApiFuture getFuturePagedResponse(
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      LIST_LOCATIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListLocationsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context);
+              return ListLocationsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
   /** Returns the object with the settings used for calls to createTrainingPipeline. */
   public UnaryCallSettings
       createTrainingPipelineSettings() {
@@ -329,7 +402,33 @@ public UnaryCallSettings cancelPipelineJobSetti
     return cancelPipelineJobSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return listLocationsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return getLocationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return setIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return getIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return testIamPermissionsSettings;
+  }
+
   public PipelineServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -419,6 +518,11 @@ protected PipelineServiceStubSettings(Builder settingsBuilder) throws IOExceptio
     deletePipelineJobOperationSettings =
         settingsBuilder.deletePipelineJobOperationSettings().build();
     cancelPipelineJobSettings = settingsBuilder.cancelPipelineJobSettings().build();
+    listLocationsSettings = settingsBuilder.listLocationsSettings().build();
+    getLocationSettings = settingsBuilder.getLocationSettings().build();
+    setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
+    getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
+    testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
   }
 
   /** Builder for PipelineServiceStubSettings. */
@@ -454,6 +558,14 @@ public static class Builder extends StubSettings.Builder
         cancelPipelineJobSettings;
+    private final PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings;
+    private final UnaryCallSettings.Builder getLocationSettings;
+    private final UnaryCallSettings.Builder setIamPolicySettings;
+    private final UnaryCallSettings.Builder getIamPolicySettings;
+    private final UnaryCallSettings.Builder
+        testIamPermissionsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -494,6 +606,11 @@ protected Builder(ClientContext clientContext) {
       deletePipelineJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       deletePipelineJobOperationSettings = OperationCallSettings.newBuilder();
       cancelPipelineJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
+      getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -506,7 +623,12 @@ protected Builder(ClientContext clientContext) {
               getPipelineJobSettings,
               listPipelineJobsSettings,
               deletePipelineJobSettings,
-              cancelPipelineJobSettings);
+              cancelPipelineJobSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
       initDefaults(this);
     }
 
@@ -526,6 +648,11 @@ protected Builder(PipelineServiceStubSettings settings) {
       deletePipelineJobSettings = settings.deletePipelineJobSettings.toBuilder();
       deletePipelineJobOperationSettings = settings.deletePipelineJobOperationSettings.toBuilder();
       cancelPipelineJobSettings = settings.cancelPipelineJobSettings.toBuilder();
+      listLocationsSettings = settings.listLocationsSettings.toBuilder();
+      getLocationSettings = settings.getLocationSettings.toBuilder();
+      setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
+      getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
+      testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -538,7 +665,12 @@ protected Builder(PipelineServiceStubSettings settings) {
               getPipelineJobSettings,
               listPipelineJobsSettings,
               deletePipelineJobSettings,
-              cancelPipelineJobSettings);
+              cancelPipelineJobSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
     }
 
     private static Builder createDefault() {
@@ -605,6 +737,31 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
 
+      builder
+          .listLocationsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getLocationSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .setIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .testIamPermissionsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .deleteTrainingPipelineOperationSettings()
           .setInitialCallSettings(
@@ -750,6 +907,34 @@ public UnaryCallSettings.Builder cancelPipeline
       return cancelPipelineJobSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return listLocationsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getLocationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return setIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return testIamPermissionsSettings;
+    }
+
     @Override
     public PipelineServiceStubSettings build() throws IOException {
       return new PipelineServiceStubSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStub.java
index 23fa081d0310..8ba47970f8ba 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,8 @@
 
 package com.google.cloud.aiplatform.v1.stub;
 
+import static com.google.cloud.aiplatform.v1.PredictionServiceClient.ListLocationsPagedResponse;
+
 import com.google.api.HttpBody;
 import com.google.api.gax.core.BackgroundResource;
 import com.google.api.gax.rpc.UnaryCallable;
@@ -24,6 +26,15 @@
 import com.google.cloud.aiplatform.v1.PredictRequest;
 import com.google.cloud.aiplatform.v1.PredictResponse;
 import com.google.cloud.aiplatform.v1.RawPredictRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS.
@@ -47,6 +58,32 @@ public UnaryCallable explainCallable() {
     throw new UnsupportedOperationException("Not implemented: explainCallable()");
   }
 
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
+  }
+
+  public UnaryCallable listLocationsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
+  }
+
+  public UnaryCallable getLocationCallable() {
+    throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
+  }
+
+  public UnaryCallable setIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
+  }
+
+  public UnaryCallable getIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
+  }
+
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStubSettings.java
index 2b55211c0110..348a7e78949f 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,8 +16,11 @@
 
 package com.google.cloud.aiplatform.v1.stub;
 
+import static com.google.cloud.aiplatform.v1.PredictionServiceClient.ListLocationsPagedResponse;
+
 import com.google.api.HttpBody;
 import com.google.api.core.ApiFunction;
+import com.google.api.core.ApiFuture;
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
@@ -26,21 +29,36 @@
 import com.google.api.gax.grpc.GrpcTransportChannel;
 import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
 import com.google.api.gax.retrying.RetrySettings;
+import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.PageContext;
+import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.PagedListDescriptor;
+import com.google.api.gax.rpc.PagedListResponseFactory;
 import com.google.api.gax.rpc.StatusCode;
 import com.google.api.gax.rpc.StubSettings;
 import com.google.api.gax.rpc.TransportChannelProvider;
 import com.google.api.gax.rpc.UnaryCallSettings;
+import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1.ExplainRequest;
 import com.google.cloud.aiplatform.v1.ExplainResponse;
 import com.google.cloud.aiplatform.v1.PredictRequest;
 import com.google.cloud.aiplatform.v1.PredictResponse;
 import com.google.cloud.aiplatform.v1.RawPredictRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import java.io.IOException;
 import java.util.List;
 import javax.annotation.Generated;
@@ -63,6 +81,8 @@
  * 

For example, to set the total timeout of predict to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * PredictionServiceStubSettings.Builder predictionServiceSettingsBuilder =
  *     PredictionServiceStubSettings.newBuilder();
  * predictionServiceSettingsBuilder
@@ -87,6 +107,67 @@ public class PredictionServiceStubSettings extends StubSettings predictSettings;
   private final UnaryCallSettings rawPredictSettings;
   private final UnaryCallSettings explainSettings;
+  private final PagedCallSettings<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      listLocationsSettings;
+  private final UnaryCallSettings getLocationSettings;
+  private final UnaryCallSettings setIamPolicySettings;
+  private final UnaryCallSettings getIamPolicySettings;
+  private final UnaryCallSettings
+      testIamPermissionsSettings;
+
+  private static final PagedListDescriptor
+      LIST_LOCATIONS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) {
+              return ListLocationsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) {
+              return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListLocationsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListLocationsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListLocationsResponse payload) {
+              return payload.getLocationsList() == null
+                  ? ImmutableList.of()
+                  : payload.getLocationsList();
+            }
+          };
+
+  private static final PagedListResponseFactory<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      LIST_LOCATIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListLocationsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context);
+              return ListLocationsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
 
   /** Returns the object with the settings used for calls to predict. */
   public UnaryCallSettings predictSettings() {
@@ -103,7 +184,33 @@ public UnaryCallSettings explainSettings() {
     return explainSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return listLocationsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return getLocationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return setIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return getIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return testIamPermissionsSettings;
+  }
+
   public PredictionServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -182,6 +289,11 @@ protected PredictionServiceStubSettings(Builder settingsBuilder) throws IOExcept
     predictSettings = settingsBuilder.predictSettings().build();
     rawPredictSettings = settingsBuilder.rawPredictSettings().build();
     explainSettings = settingsBuilder.explainSettings().build();
+    listLocationsSettings = settingsBuilder.listLocationsSettings().build();
+    getLocationSettings = settingsBuilder.getLocationSettings().build();
+    setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
+    getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
+    testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
   }
 
   /** Builder for PredictionServiceStubSettings. */
@@ -190,6 +302,14 @@ public static class Builder extends StubSettings.Builder predictSettings;
     private final UnaryCallSettings.Builder rawPredictSettings;
     private final UnaryCallSettings.Builder explainSettings;
+    private final PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings;
+    private final UnaryCallSettings.Builder getLocationSettings;
+    private final UnaryCallSettings.Builder setIamPolicySettings;
+    private final UnaryCallSettings.Builder getIamPolicySettings;
+    private final UnaryCallSettings.Builder
+        testIamPermissionsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -220,10 +340,22 @@ protected Builder(ClientContext clientContext) {
       predictSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       rawPredictSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       explainSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
+      getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
-              predictSettings, rawPredictSettings, explainSettings);
+              predictSettings,
+              rawPredictSettings,
+              explainSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
       initDefaults(this);
     }
 
@@ -233,10 +365,22 @@ protected Builder(PredictionServiceStubSettings settings) {
       predictSettings = settings.predictSettings.toBuilder();
       rawPredictSettings = settings.rawPredictSettings.toBuilder();
       explainSettings = settings.explainSettings.toBuilder();
+      listLocationsSettings = settings.listLocationsSettings.toBuilder();
+      getLocationSettings = settings.getLocationSettings.toBuilder();
+      setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
+      getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
+      testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
-              predictSettings, rawPredictSettings, explainSettings);
+              predictSettings,
+              rawPredictSettings,
+              explainSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
     }
 
     private static Builder createDefault() {
@@ -268,6 +412,31 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
 
+      builder
+          .listLocationsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getLocationSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .setIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .testIamPermissionsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       return builder;
     }
 
@@ -301,6 +470,34 @@ public UnaryCallSettings.Builder explainSetting
       return explainSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return listLocationsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getLocationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return setIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return testIamPermissionsSettings;
+    }
+
     @Override
     public PredictionServiceStubSettings build() throws IOException {
       return new PredictionServiceStubSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SpecialistPoolServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SpecialistPoolServiceStub.java
index 7af9751a209e..05baa37d639c 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SpecialistPoolServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SpecialistPoolServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1.stub;
 
+import static com.google.cloud.aiplatform.v1.SpecialistPoolServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.SpecialistPoolServiceClient.ListSpecialistPoolsPagedResponse;
 
 import com.google.api.gax.core.BackgroundResource;
@@ -31,6 +32,15 @@
 import com.google.cloud.aiplatform.v1.SpecialistPool;
 import com.google.cloud.aiplatform.v1.UpdateSpecialistPoolOperationMetadata;
 import com.google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.OperationsStub;
 import com.google.protobuf.Empty;
@@ -95,6 +105,32 @@ public UnaryCallable updateSpecialistPoo
     throw new UnsupportedOperationException("Not implemented: updateSpecialistPoolCallable()");
   }
 
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
+  }
+
+  public UnaryCallable listLocationsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
+  }
+
+  public UnaryCallable getLocationCallable() {
+    throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
+  }
+
+  public UnaryCallable setIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
+  }
+
+  public UnaryCallable getIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
+  }
+
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SpecialistPoolServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SpecialistPoolServiceStubSettings.java
index 69b8c5c675a3..8d45c488bd25 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SpecialistPoolServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SpecialistPoolServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1.stub;
 
+import static com.google.cloud.aiplatform.v1.SpecialistPoolServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.SpecialistPoolServiceClient.ListSpecialistPoolsPagedResponse;
 
 import com.google.api.core.ApiFunction;
@@ -54,10 +55,19 @@
 import com.google.cloud.aiplatform.v1.SpecialistPool;
 import com.google.cloud.aiplatform.v1.UpdateSpecialistPoolOperationMetadata;
 import com.google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.Empty;
 import java.io.IOException;
@@ -83,6 +93,8 @@
  * 

For example, to set the total timeout of getSpecialistPool to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SpecialistPoolServiceStubSettings.Builder specialistPoolServiceSettingsBuilder =
  *     SpecialistPoolServiceStubSettings.newBuilder();
  * specialistPoolServiceSettingsBuilder
@@ -124,6 +136,14 @@ public class SpecialistPoolServiceStubSettings
   private final OperationCallSettings<
           UpdateSpecialistPoolRequest, SpecialistPool, UpdateSpecialistPoolOperationMetadata>
       updateSpecialistPoolOperationSettings;
+  private final PagedCallSettings<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      listLocationsSettings;
+  private final UnaryCallSettings getLocationSettings;
+  private final UnaryCallSettings setIamPolicySettings;
+  private final UnaryCallSettings getIamPolicySettings;
+  private final UnaryCallSettings
+      testIamPermissionsSettings;
 
   private static final PagedListDescriptor<
           ListSpecialistPoolsRequest, ListSpecialistPoolsResponse, SpecialistPool>
@@ -165,6 +185,42 @@ public Iterable extractResources(ListSpecialistPoolsResponse pay
             }
           };
 
+  private static final PagedListDescriptor
+      LIST_LOCATIONS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) {
+              return ListLocationsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) {
+              return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListLocationsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListLocationsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListLocationsResponse payload) {
+              return payload.getLocationsList() == null
+                  ? ImmutableList.of()
+                  : payload.getLocationsList();
+            }
+          };
+
   private static final PagedListResponseFactory<
           ListSpecialistPoolsRequest, ListSpecialistPoolsResponse, ListSpecialistPoolsPagedResponse>
       LIST_SPECIALIST_POOLS_PAGE_STR_FACT =
@@ -186,6 +242,23 @@ public ApiFuture getFuturePagedResponse(
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      LIST_LOCATIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListLocationsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context);
+              return ListLocationsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
   /** Returns the object with the settings used for calls to createSpecialistPool. */
   public UnaryCallSettings createSpecialistPoolSettings() {
     return createSpecialistPoolSettings;
@@ -233,7 +306,33 @@ public UnaryCallSettings updateSpecialis
     return updateSpecialistPoolOperationSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return listLocationsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return getLocationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return setIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return getIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return testIamPermissionsSettings;
+  }
+
   public SpecialistPoolServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -320,6 +419,11 @@ protected SpecialistPoolServiceStubSettings(Builder settingsBuilder) throws IOEx
     updateSpecialistPoolSettings = settingsBuilder.updateSpecialistPoolSettings().build();
     updateSpecialistPoolOperationSettings =
         settingsBuilder.updateSpecialistPoolOperationSettings().build();
+    listLocationsSettings = settingsBuilder.listLocationsSettings().build();
+    getLocationSettings = settingsBuilder.getLocationSettings().build();
+    setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
+    getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
+    testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
   }
 
   /** Builder for SpecialistPoolServiceStubSettings. */
@@ -348,6 +452,14 @@ public static class Builder
     private final OperationCallSettings.Builder<
             UpdateSpecialistPoolRequest, SpecialistPool, UpdateSpecialistPoolOperationMetadata>
         updateSpecialistPoolOperationSettings;
+    private final PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings;
+    private final UnaryCallSettings.Builder getLocationSettings;
+    private final UnaryCallSettings.Builder setIamPolicySettings;
+    private final UnaryCallSettings.Builder getIamPolicySettings;
+    private final UnaryCallSettings.Builder
+        testIamPermissionsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -384,6 +496,11 @@ protected Builder(ClientContext clientContext) {
       deleteSpecialistPoolOperationSettings = OperationCallSettings.newBuilder();
       updateSpecialistPoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       updateSpecialistPoolOperationSettings = OperationCallSettings.newBuilder();
+      listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
+      getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -391,7 +508,12 @@ protected Builder(ClientContext clientContext) {
               getSpecialistPoolSettings,
               listSpecialistPoolsSettings,
               deleteSpecialistPoolSettings,
-              updateSpecialistPoolSettings);
+              updateSpecialistPoolSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
       initDefaults(this);
     }
 
@@ -409,6 +531,11 @@ protected Builder(SpecialistPoolServiceStubSettings settings) {
       updateSpecialistPoolSettings = settings.updateSpecialistPoolSettings.toBuilder();
       updateSpecialistPoolOperationSettings =
           settings.updateSpecialistPoolOperationSettings.toBuilder();
+      listLocationsSettings = settings.listLocationsSettings.toBuilder();
+      getLocationSettings = settings.getLocationSettings.toBuilder();
+      setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
+      getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
+      testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -416,7 +543,12 @@ protected Builder(SpecialistPoolServiceStubSettings settings) {
               getSpecialistPoolSettings,
               listSpecialistPoolsSettings,
               deleteSpecialistPoolSettings,
-              updateSpecialistPoolSettings);
+              updateSpecialistPoolSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
     }
 
     private static Builder createDefault() {
@@ -458,6 +590,31 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
 
+      builder
+          .listLocationsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getLocationSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .setIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .testIamPermissionsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .createSpecialistPoolOperationSettings()
           .setInitialCallSettings(
@@ -610,6 +767,34 @@ public Builder applyToAllUnaryMethods(
       return updateSpecialistPoolOperationSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return listLocationsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getLocationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return setIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return testIamPermissionsSettings;
+    }
+
     @Override
     public SpecialistPoolServiceStubSettings build() throws IOException {
       return new SpecialistPoolServiceStubSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStub.java
index fc805a0133e1..599b1e74eca6 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1.stub;
 
 import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse;
+import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListTensorboardExperimentsPagedResponse;
 import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListTensorboardRunsPagedResponse;
 import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListTensorboardTimeSeriesPagedResponse;
@@ -73,6 +74,15 @@
 import com.google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse;
 import com.google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest;
 import com.google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.OperationsStub;
 import com.google.protobuf.Empty;
@@ -307,6 +317,32 @@ public UnaryCallable deleteTensorboardRu
         "Not implemented: exportTensorboardTimeSeriesDataCallable()");
   }
 
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
+  }
+
+  public UnaryCallable listLocationsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
+  }
+
+  public UnaryCallable getLocationCallable() {
+    throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
+  }
+
+  public UnaryCallable setIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
+  }
+
+  public UnaryCallable getIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
+  }
+
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStubSettings.java
index 77cea44a83d8..efffe66d0c88 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1.stub;
 
 import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse;
+import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListTensorboardExperimentsPagedResponse;
 import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListTensorboardRunsPagedResponse;
 import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListTensorboardTimeSeriesPagedResponse;
@@ -97,10 +98,19 @@
 import com.google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse;
 import com.google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest;
 import com.google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.Empty;
 import java.io.IOException;
@@ -126,6 +136,8 @@
  * 

For example, to set the total timeout of getTensorboard to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * TensorboardServiceStubSettings.Builder tensorboardServiceSettingsBuilder =
  *     TensorboardServiceStubSettings.newBuilder();
  * tensorboardServiceSettingsBuilder
@@ -235,6 +247,14 @@ public class TensorboardServiceStubSettings extends StubSettings
       exportTensorboardTimeSeriesDataSettings;
+  private final PagedCallSettings<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      listLocationsSettings;
+  private final UnaryCallSettings getLocationSettings;
+  private final UnaryCallSettings setIamPolicySettings;
+  private final UnaryCallSettings getIamPolicySettings;
+  private final UnaryCallSettings
+      testIamPermissionsSettings;
 
   private static final PagedListDescriptor<
           ListTensorboardsRequest, ListTensorboardsResponse, Tensorboard>
@@ -463,6 +483,42 @@ public Iterable extractResources(
             }
           };
 
+  private static final PagedListDescriptor
+      LIST_LOCATIONS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) {
+              return ListLocationsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) {
+              return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListLocationsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListLocationsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListLocationsResponse payload) {
+              return payload.getLocationsList() == null
+                  ? ImmutableList.of()
+                  : payload.getLocationsList();
+            }
+          };
+
   private static final PagedListResponseFactory<
           ListTensorboardsRequest, ListTensorboardsResponse, ListTensorboardsPagedResponse>
       LIST_TENSORBOARDS_PAGE_STR_FACT =
@@ -592,6 +648,23 @@ public ApiFuture getFuturePagedRes
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      LIST_LOCATIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListLocationsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context);
+              return ListLocationsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
   /** Returns the object with the settings used for calls to createTensorboard. */
   public UnaryCallSettings createTensorboardSettings() {
     return createTensorboardSettings;
@@ -808,7 +881,33 @@ public UnaryCallSettings deleteTensorboa
     return exportTensorboardTimeSeriesDataSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return listLocationsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return getLocationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return setIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return getIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return testIamPermissionsSettings;
+  }
+
   public TensorboardServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -937,6 +1036,11 @@ protected TensorboardServiceStubSettings(Builder settingsBuilder) throws IOExcep
     writeTensorboardRunDataSettings = settingsBuilder.writeTensorboardRunDataSettings().build();
     exportTensorboardTimeSeriesDataSettings =
         settingsBuilder.exportTensorboardTimeSeriesDataSettings().build();
+    listLocationsSettings = settingsBuilder.listLocationsSettings().build();
+    getLocationSettings = settingsBuilder.getLocationSettings().build();
+    setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
+    getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
+    testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
   }
 
   /** Builder for TensorboardServiceStubSettings. */
@@ -1041,6 +1145,14 @@ public static class Builder
             ExportTensorboardTimeSeriesDataResponse,
             ExportTensorboardTimeSeriesDataPagedResponse>
         exportTensorboardTimeSeriesDataSettings;
+    private final PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings;
+    private final UnaryCallSettings.Builder getLocationSettings;
+    private final UnaryCallSettings.Builder setIamPolicySettings;
+    private final UnaryCallSettings.Builder getIamPolicySettings;
+    private final UnaryCallSettings.Builder
+        testIamPermissionsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -1106,6 +1218,11 @@ protected Builder(ClientContext clientContext) {
       writeTensorboardRunDataSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       exportTensorboardTimeSeriesDataSettings =
           PagedCallSettings.newBuilder(EXPORT_TENSORBOARD_TIME_SERIES_DATA_PAGE_STR_FACT);
+      listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
+      getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -1135,7 +1252,12 @@ protected Builder(ClientContext clientContext) {
               readTensorboardTimeSeriesDataSettings,
               writeTensorboardExperimentDataSettings,
               writeTensorboardRunDataSettings,
-              exportTensorboardTimeSeriesDataSettings);
+              exportTensorboardTimeSeriesDataSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
       initDefaults(this);
     }
 
@@ -1190,6 +1312,11 @@ protected Builder(TensorboardServiceStubSettings settings) {
       writeTensorboardRunDataSettings = settings.writeTensorboardRunDataSettings.toBuilder();
       exportTensorboardTimeSeriesDataSettings =
           settings.exportTensorboardTimeSeriesDataSettings.toBuilder();
+      listLocationsSettings = settings.listLocationsSettings.toBuilder();
+      getLocationSettings = settings.getLocationSettings.toBuilder();
+      setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
+      getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
+      testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -1219,7 +1346,12 @@ protected Builder(TensorboardServiceStubSettings settings) {
               readTensorboardTimeSeriesDataSettings,
               writeTensorboardExperimentDataSettings,
               writeTensorboardRunDataSettings,
-              exportTensorboardTimeSeriesDataSettings);
+              exportTensorboardTimeSeriesDataSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
     }
 
     private static Builder createDefault() {
@@ -1376,6 +1508,31 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
 
+      builder
+          .listLocationsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getLocationSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .setIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .testIamPermissionsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .createTensorboardOperationSettings()
           .setInitialCallSettings(
@@ -1784,6 +1941,34 @@ public UnaryCallSettings.Builder getTensorbo
       return exportTensorboardTimeSeriesDataSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return listLocationsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getLocationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return setIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return testIamPermissionsSettings;
+    }
+
     @Override
     public TensorboardServiceStubSettings build() throws IOException {
       return new TensorboardServiceStubSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VizierServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VizierServiceStub.java
index 62d212ccb21a..097507329b02 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VizierServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VizierServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1.stub;
 
+import static com.google.cloud.aiplatform.v1.VizierServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.VizierServiceClient.ListStudiesPagedResponse;
 import static com.google.cloud.aiplatform.v1.VizierServiceClient.ListTrialsPagedResponse;
 
@@ -46,6 +47,15 @@
 import com.google.cloud.aiplatform.v1.SuggestTrialsRequest;
 import com.google.cloud.aiplatform.v1.SuggestTrialsResponse;
 import com.google.cloud.aiplatform.v1.Trial;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.OperationsStub;
 import com.google.protobuf.Empty;
@@ -149,6 +159,32 @@ public UnaryCallable stopTrialCallable() {
     throw new UnsupportedOperationException("Not implemented: listOptimalTrialsCallable()");
   }
 
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
+  }
+
+  public UnaryCallable listLocationsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
+  }
+
+  public UnaryCallable getLocationCallable() {
+    throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
+  }
+
+  public UnaryCallable setIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
+  }
+
+  public UnaryCallable getIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
+  }
+
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VizierServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VizierServiceStubSettings.java
index d3550465a56c..47a9aa11ea1d 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VizierServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/VizierServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1.stub;
 
+import static com.google.cloud.aiplatform.v1.VizierServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.VizierServiceClient.ListStudiesPagedResponse;
 import static com.google.cloud.aiplatform.v1.VizierServiceClient.ListTrialsPagedResponse;
 
@@ -69,10 +70,19 @@
 import com.google.cloud.aiplatform.v1.SuggestTrialsRequest;
 import com.google.cloud.aiplatform.v1.SuggestTrialsResponse;
 import com.google.cloud.aiplatform.v1.Trial;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.Empty;
 import java.io.IOException;
@@ -98,6 +108,8 @@
  * 

For example, to set the total timeout of createStudy to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * VizierServiceStubSettings.Builder vizierServiceSettingsBuilder =
  *     VizierServiceStubSettings.newBuilder();
  * vizierServiceSettingsBuilder
@@ -145,6 +157,14 @@ public class VizierServiceStubSettings extends StubSettings stopTrialSettings;
   private final UnaryCallSettings
       listOptimalTrialsSettings;
+  private final PagedCallSettings<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      listLocationsSettings;
+  private final UnaryCallSettings getLocationSettings;
+  private final UnaryCallSettings setIamPolicySettings;
+  private final UnaryCallSettings getIamPolicySettings;
+  private final UnaryCallSettings
+      testIamPermissionsSettings;
 
   private static final PagedListDescriptor
       LIST_STUDIES_PAGE_STR_DESC =
@@ -218,6 +238,42 @@ public Iterable extractResources(ListTrialsResponse payload) {
             }
           };
 
+  private static final PagedListDescriptor
+      LIST_LOCATIONS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) {
+              return ListLocationsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) {
+              return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListLocationsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListLocationsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListLocationsResponse payload) {
+              return payload.getLocationsList() == null
+                  ? ImmutableList.of()
+                  : payload.getLocationsList();
+            }
+          };
+
   private static final PagedListResponseFactory<
           ListStudiesRequest, ListStudiesResponse, ListStudiesPagedResponse>
       LIST_STUDIES_PAGE_STR_FACT =
@@ -252,6 +308,23 @@ public ApiFuture getFuturePagedResponse(
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      LIST_LOCATIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListLocationsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context);
+              return ListLocationsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
   /** Returns the object with the settings used for calls to createStudy. */
   public UnaryCallSettings createStudySettings() {
     return createStudySettings;
@@ -346,7 +419,33 @@ public UnaryCallSettings stopTrialSettings() {
     return listOptimalTrialsSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return listLocationsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return getLocationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return setIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return getIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return testIamPermissionsSettings;
+  }
+
   public VizierServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -441,6 +540,11 @@ protected VizierServiceStubSettings(Builder settingsBuilder) throws IOException
         settingsBuilder.checkTrialEarlyStoppingStateOperationSettings().build();
     stopTrialSettings = settingsBuilder.stopTrialSettings().build();
     listOptimalTrialsSettings = settingsBuilder.listOptimalTrialsSettings().build();
+    listLocationsSettings = settingsBuilder.listLocationsSettings().build();
+    getLocationSettings = settingsBuilder.getLocationSettings().build();
+    setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
+    getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
+    testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
   }
 
   /** Builder for VizierServiceStubSettings. */
@@ -476,6 +580,14 @@ public static class Builder extends StubSettings.Builder stopTrialSettings;
     private final UnaryCallSettings.Builder
         listOptimalTrialsSettings;
+    private final PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings;
+    private final UnaryCallSettings.Builder getLocationSettings;
+    private final UnaryCallSettings.Builder setIamPolicySettings;
+    private final UnaryCallSettings.Builder getIamPolicySettings;
+    private final UnaryCallSettings.Builder
+        testIamPermissionsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -520,6 +632,11 @@ protected Builder(ClientContext clientContext) {
       checkTrialEarlyStoppingStateOperationSettings = OperationCallSettings.newBuilder();
       stopTrialSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       listOptimalTrialsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
+      getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -537,7 +654,12 @@ protected Builder(ClientContext clientContext) {
               deleteTrialSettings,
               checkTrialEarlyStoppingStateSettings,
               stopTrialSettings,
-              listOptimalTrialsSettings);
+              listOptimalTrialsSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
       initDefaults(this);
     }
 
@@ -563,6 +685,11 @@ protected Builder(VizierServiceStubSettings settings) {
           settings.checkTrialEarlyStoppingStateOperationSettings.toBuilder();
       stopTrialSettings = settings.stopTrialSettings.toBuilder();
       listOptimalTrialsSettings = settings.listOptimalTrialsSettings.toBuilder();
+      listLocationsSettings = settings.listLocationsSettings.toBuilder();
+      getLocationSettings = settings.getLocationSettings.toBuilder();
+      setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
+      getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
+      testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -580,7 +707,12 @@ protected Builder(VizierServiceStubSettings settings) {
               deleteTrialSettings,
               checkTrialEarlyStoppingStateSettings,
               stopTrialSettings,
-              listOptimalTrialsSettings);
+              listOptimalTrialsSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
     }
 
     private static Builder createDefault() {
@@ -672,6 +804,31 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
 
+      builder
+          .listLocationsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getLocationSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .setIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .testIamPermissionsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .suggestTrialsOperationSettings()
           .setInitialCallSettings(
@@ -842,6 +999,34 @@ public UnaryCallSettings.Builder stopTrialSettings() {
       return listOptimalTrialsSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return listLocationsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getLocationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return setIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return testIamPermissionsSettings;
+    }
+
     @Override
     public VizierServiceStubSettings build() throws IOException {
       return new VizierServiceStubSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClient.java
index e53ffa8fe437..7e61795a08ec 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -29,7 +29,16 @@
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1beta1.stub.DatasetServiceStub;
 import com.google.cloud.aiplatform.v1beta1.stub.DatasetServiceStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.OperationsClient;
 import com.google.protobuf.Empty;
@@ -48,6 +57,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
  *   DatasetName name = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]");
  *   Dataset response = datasetServiceClient.getDataset(name);
@@ -83,6 +94,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * DatasetServiceSettings datasetServiceSettings =
  *     DatasetServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -93,6 +106,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * DatasetServiceSettings datasetServiceSettings =
  *     DatasetServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * DatasetServiceClient datasetServiceClient = DatasetServiceClient.create(datasetServiceSettings);
@@ -125,7 +140,6 @@ public static final DatasetServiceClient create(DatasetServiceSettings settings)
    * Constructs an instance of DatasetServiceClient, using the given stub for making calls. This is
    * for advanced usage - prefer using create(DatasetServiceSettings).
    */
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public static final DatasetServiceClient create(DatasetServiceStub stub) {
     return new DatasetServiceClient(stub);
   }
@@ -141,7 +155,6 @@ protected DatasetServiceClient(DatasetServiceSettings settings) throws IOExcepti
     this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected DatasetServiceClient(DatasetServiceStub stub) {
     this.settings = null;
     this.stub = stub;
@@ -152,7 +165,6 @@ public final DatasetServiceSettings getSettings() {
     return settings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public DatasetServiceStub getStub() {
     return stub;
   }
@@ -172,6 +184,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Dataset dataset = Dataset.newBuilder().build();
@@ -201,6 +215,8 @@ public final OperationFuture createData
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Dataset dataset = Dataset.newBuilder().build();
@@ -227,6 +243,8 @@ public final OperationFuture createData
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   CreateDatasetRequest request =
    *       CreateDatasetRequest.newBuilder()
@@ -252,6 +270,8 @@ public final OperationFuture createData
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   CreateDatasetRequest request =
    *       CreateDatasetRequest.newBuilder()
@@ -277,6 +297,8 @@ public final OperationFuture createData
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   CreateDatasetRequest request =
    *       CreateDatasetRequest.newBuilder()
@@ -301,6 +323,8 @@ public final UnaryCallable createDatasetCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   DatasetName name = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]");
    *   Dataset response = datasetServiceClient.getDataset(name);
@@ -323,6 +347,8 @@ public final Dataset getDataset(DatasetName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   String name = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString();
    *   Dataset response = datasetServiceClient.getDataset(name);
@@ -344,6 +370,8 @@ public final Dataset getDataset(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   GetDatasetRequest request =
    *       GetDatasetRequest.newBuilder()
@@ -368,6 +396,8 @@ public final Dataset getDataset(GetDatasetRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   GetDatasetRequest request =
    *       GetDatasetRequest.newBuilder()
@@ -391,6 +421,8 @@ public final UnaryCallable getDatasetCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   Dataset dataset = Dataset.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -417,6 +449,8 @@ public final Dataset updateDataset(Dataset dataset, FieldMask updateMask) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   UpdateDatasetRequest request =
    *       UpdateDatasetRequest.newBuilder()
@@ -441,6 +475,8 @@ public final Dataset updateDataset(UpdateDatasetRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   UpdateDatasetRequest request =
    *       UpdateDatasetRequest.newBuilder()
@@ -464,6 +500,8 @@ public final UnaryCallable updateDatasetCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Dataset element : datasetServiceClient.listDatasets(parent).iterateAll()) {
@@ -491,6 +529,8 @@ public final ListDatasetsPagedResponse listDatasets(LocationName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Dataset element : datasetServiceClient.listDatasets(parent).iterateAll()) {
@@ -515,6 +555,8 @@ public final ListDatasetsPagedResponse listDatasets(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   ListDatasetsRequest request =
    *       ListDatasetsRequest.newBuilder()
@@ -545,6 +587,8 @@ public final ListDatasetsPagedResponse listDatasets(ListDatasetsRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   ListDatasetsRequest request =
    *       ListDatasetsRequest.newBuilder()
@@ -576,6 +620,8 @@ public final ListDatasetsPagedResponse listDatasets(ListDatasetsRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   ListDatasetsRequest request =
    *       ListDatasetsRequest.newBuilder()
@@ -588,7 +634,7 @@ public final ListDatasetsPagedResponse listDatasets(ListDatasetsRequest request)
    *           .build();
    *   while (true) {
    *     ListDatasetsResponse response = datasetServiceClient.listDatasetsCallable().call(request);
-   *     for (Dataset element : response.getResponsesList()) {
+   *     for (Dataset element : response.getDatasetsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -612,6 +658,8 @@ public final UnaryCallable listDatase
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   DatasetName name = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]");
    *   datasetServiceClient.deleteDatasetAsync(name).get();
@@ -636,6 +684,8 @@ public final OperationFuture deleteDatasetAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   String name = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString();
    *   datasetServiceClient.deleteDatasetAsync(name).get();
@@ -658,6 +708,8 @@ public final OperationFuture deleteDatasetAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   DeleteDatasetRequest request =
    *       DeleteDatasetRequest.newBuilder()
@@ -682,6 +734,8 @@ public final OperationFuture deleteDatasetAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   DeleteDatasetRequest request =
    *       DeleteDatasetRequest.newBuilder()
@@ -706,6 +760,8 @@ public final OperationFuture deleteDatasetAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   DeleteDatasetRequest request =
    *       DeleteDatasetRequest.newBuilder()
@@ -729,6 +785,8 @@ public final UnaryCallable deleteDatasetCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   DatasetName name = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]");
    *   List importConfigs = new ArrayList<>();
@@ -759,6 +817,8 @@ public final OperationFuture im
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   String name = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString();
    *   List importConfigs = new ArrayList<>();
@@ -786,6 +846,8 @@ public final OperationFuture im
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   ImportDataRequest request =
    *       ImportDataRequest.newBuilder()
@@ -811,6 +873,8 @@ public final OperationFuture im
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   ImportDataRequest request =
    *       ImportDataRequest.newBuilder()
@@ -836,6 +900,8 @@ public final OperationFuture im
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   ImportDataRequest request =
    *       ImportDataRequest.newBuilder()
@@ -859,6 +925,8 @@ public final UnaryCallable importDataCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   DatasetName name = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]");
    *   ExportDataConfig exportConfig = ExportDataConfig.newBuilder().build();
@@ -888,6 +956,8 @@ public final OperationFuture ex
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   String name = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString();
    *   ExportDataConfig exportConfig = ExportDataConfig.newBuilder().build();
@@ -914,6 +984,8 @@ public final OperationFuture ex
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   ExportDataRequest request =
    *       ExportDataRequest.newBuilder()
@@ -939,6 +1011,8 @@ public final OperationFuture ex
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   ExportDataRequest request =
    *       ExportDataRequest.newBuilder()
@@ -964,6 +1038,8 @@ public final OperationFuture ex
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   ExportDataRequest request =
    *       ExportDataRequest.newBuilder()
@@ -987,6 +1063,8 @@ public final UnaryCallable exportDataCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   DatasetName parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]");
    *   for (DataItem element : datasetServiceClient.listDataItems(parent).iterateAll()) {
@@ -1014,6 +1092,8 @@ public final ListDataItemsPagedResponse listDataItems(DatasetName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   String parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString();
    *   for (DataItem element : datasetServiceClient.listDataItems(parent).iterateAll()) {
@@ -1038,6 +1118,8 @@ public final ListDataItemsPagedResponse listDataItems(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   ListDataItemsRequest request =
    *       ListDataItemsRequest.newBuilder()
@@ -1068,6 +1150,8 @@ public final ListDataItemsPagedResponse listDataItems(ListDataItemsRequest reque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   ListDataItemsRequest request =
    *       ListDataItemsRequest.newBuilder()
@@ -1099,6 +1183,8 @@ public final ListDataItemsPagedResponse listDataItems(ListDataItemsRequest reque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   ListDataItemsRequest request =
    *       ListDataItemsRequest.newBuilder()
@@ -1111,7 +1197,7 @@ public final ListDataItemsPagedResponse listDataItems(ListDataItemsRequest reque
    *           .build();
    *   while (true) {
    *     ListDataItemsResponse response = datasetServiceClient.listDataItemsCallable().call(request);
-   *     for (DataItem element : response.getResponsesList()) {
+   *     for (DataItem element : response.getDataItemsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -1135,6 +1221,8 @@ public final UnaryCallable listData
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   AnnotationSpecName name =
    *       AnnotationSpecName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[ANNOTATION_SPEC]");
@@ -1161,6 +1249,8 @@ public final AnnotationSpec getAnnotationSpec(AnnotationSpecName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   String name =
    *       AnnotationSpecName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[ANNOTATION_SPEC]")
@@ -1185,6 +1275,8 @@ public final AnnotationSpec getAnnotationSpec(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   GetAnnotationSpecRequest request =
    *       GetAnnotationSpecRequest.newBuilder()
@@ -1211,6 +1303,8 @@ public final AnnotationSpec getAnnotationSpec(GetAnnotationSpecRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   GetAnnotationSpecRequest request =
    *       GetAnnotationSpecRequest.newBuilder()
@@ -1237,6 +1331,8 @@ public final UnaryCallable getAnnotati
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   DataItemName parent = DataItemName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATA_ITEM]");
    *   for (Annotation element : datasetServiceClient.listAnnotations(parent).iterateAll()) {
@@ -1264,6 +1360,8 @@ public final ListAnnotationsPagedResponse listAnnotations(DataItemName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   String parent =
    *       DataItemName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATA_ITEM]").toString();
@@ -1289,6 +1387,8 @@ public final ListAnnotationsPagedResponse listAnnotations(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   ListAnnotationsRequest request =
    *       ListAnnotationsRequest.newBuilder()
@@ -1320,6 +1420,8 @@ public final ListAnnotationsPagedResponse listAnnotations(ListAnnotationsRequest
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   ListAnnotationsRequest request =
    *       ListAnnotationsRequest.newBuilder()
@@ -1352,6 +1454,8 @@ public final ListAnnotationsPagedResponse listAnnotations(ListAnnotationsRequest
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
    *   ListAnnotationsRequest request =
    *       ListAnnotationsRequest.newBuilder()
@@ -1366,7 +1470,7 @@ public final ListAnnotationsPagedResponse listAnnotations(ListAnnotationsRequest
    *   while (true) {
    *     ListAnnotationsResponse response =
    *         datasetServiceClient.listAnnotationsCallable().call(request);
-   *     for (Annotation element : response.getResponsesList()) {
+   *     for (Annotation element : response.getAnnotationsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -1384,6 +1488,331 @@ public final ListAnnotationsPagedResponse listAnnotations(ListAnnotationsRequest
     return stub.listAnnotationsCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Lists information about the supported locations for this service.
+   *
+   * 

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : datasetServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       datasetServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response = datasetServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = datasetServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = datasetServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = datasetServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = datasetServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = datasetServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = datasetServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = datasetServiceClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       datasetServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + @Override public final void close() { stub.close(); @@ -1641,4 +2070,80 @@ protected ListAnnotationsFixedSizeCollection createCollection( return new ListAnnotationsFixedSizeCollection(pages, collectionSize); } } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceSettings.java index 731dbc00df3e..0acc9849f3bc 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,6 +19,7 @@ import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListAnnotationsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDataItemsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDatasetsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListLocationsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -33,6 +34,15 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.aiplatform.v1beta1.stub.DatasetServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -57,6 +67,8 @@ *

For example, to set the total timeout of getDataset to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * DatasetServiceSettings.Builder datasetServiceSettingsBuilder =
  *     DatasetServiceSettings.newBuilder();
  * datasetServiceSettingsBuilder
@@ -153,6 +165,33 @@ public UnaryCallSettings getAnnotation
     return ((DatasetServiceStubSettings) getStubSettings()).listAnnotationsSettings();
   }
 
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return ((DatasetServiceStubSettings) getStubSettings()).listLocationsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return ((DatasetServiceStubSettings) getStubSettings()).getLocationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return ((DatasetServiceStubSettings) getStubSettings()).setIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return ((DatasetServiceStubSettings) getStubSettings()).getIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return ((DatasetServiceStubSettings) getStubSettings()).testIamPermissionsSettings();
+  }
+
   public static final DatasetServiceSettings create(DatasetServiceStubSettings stub)
       throws IOException {
     return new DatasetServiceSettings.Builder(stub.toBuilder()).build();
@@ -334,6 +373,34 @@ public UnaryCallSettings.Builder exportDataSetting
       return getStubSettingsBuilder().listAnnotationsSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return getStubSettingsBuilder().listLocationsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getStubSettingsBuilder().getLocationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return getStubSettingsBuilder().setIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getStubSettingsBuilder().getIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return getStubSettingsBuilder().testIamPermissionsSettings();
+    }
+
     @Override
     public DatasetServiceSettings build() throws IOException {
       return new DatasetServiceSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClient.java
index 07b33a725581..1c95b27eb68a 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -29,7 +29,16 @@
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1beta1.stub.EndpointServiceStub;
 import com.google.cloud.aiplatform.v1beta1.stub.EndpointServiceStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.OperationsClient;
 import com.google.protobuf.Empty;
@@ -48,6 +57,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
  *   EndpointName name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
  *   Endpoint response = endpointServiceClient.getEndpoint(name);
@@ -84,6 +95,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * EndpointServiceSettings endpointServiceSettings =
  *     EndpointServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -95,6 +108,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * EndpointServiceSettings endpointServiceSettings =
  *     EndpointServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * EndpointServiceClient endpointServiceClient =
@@ -128,7 +143,6 @@ public static final EndpointServiceClient create(EndpointServiceSettings setting
    * Constructs an instance of EndpointServiceClient, using the given stub for making calls. This is
    * for advanced usage - prefer using create(EndpointServiceSettings).
    */
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public static final EndpointServiceClient create(EndpointServiceStub stub) {
     return new EndpointServiceClient(stub);
   }
@@ -144,7 +158,6 @@ protected EndpointServiceClient(EndpointServiceSettings settings) throws IOExcep
     this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected EndpointServiceClient(EndpointServiceStub stub) {
     this.settings = null;
     this.stub = stub;
@@ -155,7 +168,6 @@ public final EndpointServiceSettings getSettings() {
     return settings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public EndpointServiceStub getStub() {
     return stub;
   }
@@ -175,6 +187,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Endpoint endpoint = Endpoint.newBuilder().build();
@@ -204,6 +218,8 @@ public final OperationFuture createEn
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Endpoint endpoint = Endpoint.newBuilder().build();
@@ -230,6 +246,8 @@ public final OperationFuture createEn
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Endpoint endpoint = Endpoint.newBuilder().build();
@@ -269,6 +287,8 @@ public final OperationFuture createEn
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Endpoint endpoint = Endpoint.newBuilder().build();
@@ -308,6 +328,8 @@ public final OperationFuture createEn
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   CreateEndpointRequest request =
    *       CreateEndpointRequest.newBuilder()
@@ -334,6 +356,8 @@ public final OperationFuture createEn
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   CreateEndpointRequest request =
    *       CreateEndpointRequest.newBuilder()
@@ -360,6 +384,8 @@ public final OperationFuture createEn
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   CreateEndpointRequest request =
    *       CreateEndpointRequest.newBuilder()
@@ -385,6 +411,8 @@ public final UnaryCallable createEndpointCalla
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   EndpointName name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
    *   Endpoint response = endpointServiceClient.getEndpoint(name);
@@ -408,6 +436,8 @@ public final Endpoint getEndpoint(EndpointName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   String name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString();
    *   Endpoint response = endpointServiceClient.getEndpoint(name);
@@ -430,6 +460,8 @@ public final Endpoint getEndpoint(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   GetEndpointRequest request =
    *       GetEndpointRequest.newBuilder()
@@ -453,6 +485,8 @@ public final Endpoint getEndpoint(GetEndpointRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   GetEndpointRequest request =
    *       GetEndpointRequest.newBuilder()
@@ -475,6 +509,8 @@ public final UnaryCallable getEndpointCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Endpoint element : endpointServiceClient.listEndpoints(parent).iterateAll()) {
@@ -502,6 +538,8 @@ public final ListEndpointsPagedResponse listEndpoints(LocationName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Endpoint element : endpointServiceClient.listEndpoints(parent).iterateAll()) {
@@ -526,6 +564,8 @@ public final ListEndpointsPagedResponse listEndpoints(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   ListEndpointsRequest request =
    *       ListEndpointsRequest.newBuilder()
@@ -555,6 +595,8 @@ public final ListEndpointsPagedResponse listEndpoints(ListEndpointsRequest reque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   ListEndpointsRequest request =
    *       ListEndpointsRequest.newBuilder()
@@ -585,6 +627,8 @@ public final ListEndpointsPagedResponse listEndpoints(ListEndpointsRequest reque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   ListEndpointsRequest request =
    *       ListEndpointsRequest.newBuilder()
@@ -597,7 +641,7 @@ public final ListEndpointsPagedResponse listEndpoints(ListEndpointsRequest reque
    *   while (true) {
    *     ListEndpointsResponse response =
    *         endpointServiceClient.listEndpointsCallable().call(request);
-   *     for (Endpoint element : response.getResponsesList()) {
+   *     for (Endpoint element : response.getEndpointsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -621,6 +665,8 @@ public final UnaryCallable listEndp
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   Endpoint endpoint = Endpoint.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -646,6 +692,8 @@ public final Endpoint updateEndpoint(Endpoint endpoint, FieldMask updateMask) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   UpdateEndpointRequest request =
    *       UpdateEndpointRequest.newBuilder()
@@ -670,6 +718,8 @@ public final Endpoint updateEndpoint(UpdateEndpointRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   UpdateEndpointRequest request =
    *       UpdateEndpointRequest.newBuilder()
@@ -694,6 +744,8 @@ public final UnaryCallable updateEndpointCallab
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   EndpointName name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
    *   endpointServiceClient.deleteEndpointAsync(name).get();
@@ -718,6 +770,8 @@ public final OperationFuture deleteEndpointAsync
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   String name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString();
    *   endpointServiceClient.deleteEndpointAsync(name).get();
@@ -740,6 +794,8 @@ public final OperationFuture deleteEndpointAsync
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   DeleteEndpointRequest request =
    *       DeleteEndpointRequest.newBuilder()
@@ -764,6 +820,8 @@ public final OperationFuture deleteEndpointAsync
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   DeleteEndpointRequest request =
    *       DeleteEndpointRequest.newBuilder()
@@ -788,6 +846,8 @@ public final OperationFuture deleteEndpointAsync
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   DeleteEndpointRequest request =
    *       DeleteEndpointRequest.newBuilder()
@@ -811,6 +871,8 @@ public final UnaryCallable deleteEndpointCalla
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   EndpointName endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
    *   DeployedModel deployedModel = DeployedModel.newBuilder().build();
@@ -856,6 +918,8 @@ public final OperationFuture
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   String endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString();
    *   DeployedModel deployedModel = DeployedModel.newBuilder().build();
@@ -901,6 +965,8 @@ public final OperationFuture
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   DeployModelRequest request =
    *       DeployModelRequest.newBuilder()
@@ -927,6 +993,8 @@ public final OperationFuture
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   DeployModelRequest request =
    *       DeployModelRequest.newBuilder()
@@ -954,6 +1022,8 @@ public final OperationFuture
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   DeployModelRequest request =
    *       DeployModelRequest.newBuilder()
@@ -979,6 +1049,8 @@ public final UnaryCallable deployModelCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   EndpointName endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
    *   String deployedModelId = "deployedModelId-1817547906";
@@ -1020,6 +1092,8 @@ public final UnaryCallable deployModelCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   String endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString();
    *   String deployedModelId = "deployedModelId-1817547906";
@@ -1061,6 +1135,8 @@ public final UnaryCallable deployModelCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   UndeployModelRequest request =
    *       UndeployModelRequest.newBuilder()
@@ -1088,6 +1164,8 @@ public final UnaryCallable deployModelCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   UndeployModelRequest request =
    *       UndeployModelRequest.newBuilder()
@@ -1116,6 +1194,8 @@ public final UnaryCallable deployModelCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
    *   UndeployModelRequest request =
    *       UndeployModelRequest.newBuilder()
@@ -1134,6 +1214,332 @@ public final UnaryCallable undeployModelCallabl
     return stub.undeployModelCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Lists information about the supported locations for this service.
+   *
+   * 

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : endpointServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       endpointServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         endpointServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = endpointServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = endpointServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = endpointServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = endpointServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = endpointServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = endpointServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = endpointServiceClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       endpointServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + @Override public final void close() { stub.close(); @@ -1239,4 +1645,80 @@ protected ListEndpointsFixedSizeCollection createCollection( return new ListEndpointsFixedSizeCollection(pages, collectionSize); } } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceSettings.java index 64e3ebbb7181..088189b894dd 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ package com.google.cloud.aiplatform.v1beta1; import static com.google.cloud.aiplatform.v1beta1.EndpointServiceClient.ListEndpointsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.EndpointServiceClient.ListLocationsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -31,6 +32,15 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.aiplatform.v1beta1.stub.EndpointServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -55,6 +65,8 @@ *

For example, to set the total timeout of getEndpoint to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * EndpointServiceSettings.Builder endpointServiceSettingsBuilder =
  *     EndpointServiceSettings.newBuilder();
  * endpointServiceSettingsBuilder
@@ -135,6 +147,33 @@ public UnaryCallSettings undeployModelSettings(
     return ((EndpointServiceStubSettings) getStubSettings()).undeployModelOperationSettings();
   }
 
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return ((EndpointServiceStubSettings) getStubSettings()).listLocationsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return ((EndpointServiceStubSettings) getStubSettings()).getLocationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return ((EndpointServiceStubSettings) getStubSettings()).setIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return ((EndpointServiceStubSettings) getStubSettings()).getIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return ((EndpointServiceStubSettings) getStubSettings()).testIamPermissionsSettings();
+  }
+
   public static final EndpointServiceSettings create(EndpointServiceStubSettings stub)
       throws IOException {
     return new EndpointServiceSettings.Builder(stub.toBuilder()).build();
@@ -296,6 +335,34 @@ public UnaryCallSettings.Builder undeployModelS
       return getStubSettingsBuilder().undeployModelOperationSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return getStubSettingsBuilder().listLocationsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getStubSettingsBuilder().getLocationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return getStubSettingsBuilder().setIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getStubSettingsBuilder().getIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return getStubSettingsBuilder().testIamPermissionsSettings();
+    }
+
     @Override
     public EndpointServiceSettings build() throws IOException {
       return new EndpointServiceSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceClient.java
index 5c982ed90485..19208a11a945 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,13 +16,30 @@
 
 package com.google.cloud.aiplatform.v1beta1;
 
+import com.google.api.core.ApiFuture;
+import com.google.api.core.ApiFutures;
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.paging.AbstractFixedSizeCollection;
+import com.google.api.gax.paging.AbstractPage;
+import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.ServerStreamingCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1beta1.stub.FeaturestoreOnlineServingServiceStub;
 import com.google.cloud.aiplatform.v1beta1.stub.FeaturestoreOnlineServingServiceStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import java.io.IOException;
+import java.util.List;
 import java.util.concurrent.TimeUnit;
 import javax.annotation.Generated;
 
@@ -34,6 +51,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
  *     FeaturestoreOnlineServingServiceClient.create()) {
  *   EntityTypeName entityType =
@@ -73,6 +92,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * FeaturestoreOnlineServingServiceSettings featurestoreOnlineServingServiceSettings =
  *     FeaturestoreOnlineServingServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -84,6 +105,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * FeaturestoreOnlineServingServiceSettings featurestoreOnlineServingServiceSettings =
  *     FeaturestoreOnlineServingServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
@@ -118,7 +141,6 @@ public static final FeaturestoreOnlineServingServiceClient create(
    * making calls. This is for advanced usage - prefer using
    * create(FeaturestoreOnlineServingServiceSettings).
    */
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public static final FeaturestoreOnlineServingServiceClient create(
       FeaturestoreOnlineServingServiceStub stub) {
     return new FeaturestoreOnlineServingServiceClient(stub);
@@ -136,7 +158,6 @@ protected FeaturestoreOnlineServingServiceClient(
         ((FeaturestoreOnlineServingServiceStubSettings) settings.getStubSettings()).createStub();
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected FeaturestoreOnlineServingServiceClient(FeaturestoreOnlineServingServiceStub stub) {
     this.settings = null;
     this.stub = stub;
@@ -146,7 +167,6 @@ public final FeaturestoreOnlineServingServiceSettings getSettings() {
     return settings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public FeaturestoreOnlineServingServiceStub getStub() {
     return stub;
   }
@@ -159,6 +179,8 @@ public FeaturestoreOnlineServingServiceStub getStub() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
    *     FeaturestoreOnlineServingServiceClient.create()) {
    *   EntityTypeName entityType =
@@ -191,6 +213,8 @@ public final ReadFeatureValuesResponse readFeatureValues(EntityTypeName entityTy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
    *     FeaturestoreOnlineServingServiceClient.create()) {
    *   String entityType =
@@ -222,6 +246,8 @@ public final ReadFeatureValuesResponse readFeatureValues(String entityType) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
    *     FeaturestoreOnlineServingServiceClient.create()) {
    *   ReadFeatureValuesRequest request =
@@ -252,6 +278,8 @@ public final ReadFeatureValuesResponse readFeatureValues(ReadFeatureValuesReques
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
    *     FeaturestoreOnlineServingServiceClient.create()) {
    *   ReadFeatureValuesRequest request =
@@ -282,6 +310,8 @@ public final ReadFeatureValuesResponse readFeatureValues(ReadFeatureValuesReques
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
    *     FeaturestoreOnlineServingServiceClient.create()) {
    *   StreamingReadFeatureValuesRequest request =
@@ -305,6 +335,348 @@ public final ReadFeatureValuesResponse readFeatureValues(ReadFeatureValuesReques
     return stub.streamingReadFeatureValuesCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Lists information about the supported locations for this service.
+   *
+   * 

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+   *     FeaturestoreOnlineServingServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element :
+   *       featurestoreOnlineServingServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+   *     FeaturestoreOnlineServingServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreOnlineServingServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+   *     FeaturestoreOnlineServingServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         featurestoreOnlineServingServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+   *     FeaturestoreOnlineServingServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = featurestoreOnlineServingServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+   *     FeaturestoreOnlineServingServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       featurestoreOnlineServingServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+   *     FeaturestoreOnlineServingServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = featurestoreOnlineServingServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+   *     FeaturestoreOnlineServingServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreOnlineServingServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+   *     FeaturestoreOnlineServingServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = featurestoreOnlineServingServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+   *     FeaturestoreOnlineServingServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreOnlineServingServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+   *     FeaturestoreOnlineServingServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response =
+   *       featurestoreOnlineServingServiceClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+   *     FeaturestoreOnlineServingServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreOnlineServingServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + @Override public final void close() { stub.close(); @@ -334,4 +706,80 @@ public void shutdownNow() { public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { return stub.awaitTermination(duration, unit); } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceSettings.java index 5d066c355994..553ef04ee57f 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,8 @@ package com.google.cloud.aiplatform.v1beta1; +import static com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingServiceClient.ListLocationsPagedResponse; + import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; @@ -24,10 +26,20 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.ServerStreamingCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.aiplatform.v1beta1.stub.FeaturestoreOnlineServingServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import java.io.IOException; import java.util.List; import javax.annotation.Generated; @@ -50,6 +62,8 @@ *

For example, to set the total timeout of readFeatureValues to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * FeaturestoreOnlineServingServiceSettings.Builder
  *     featurestoreOnlineServingServiceSettingsBuilder =
  *         FeaturestoreOnlineServingServiceSettings.newBuilder();
@@ -85,6 +99,37 @@ public class FeaturestoreOnlineServingServiceSettings
         .streamingReadFeatureValuesSettings();
   }
 
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return ((FeaturestoreOnlineServingServiceStubSettings) getStubSettings())
+        .listLocationsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return ((FeaturestoreOnlineServingServiceStubSettings) getStubSettings()).getLocationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return ((FeaturestoreOnlineServingServiceStubSettings) getStubSettings())
+        .setIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return ((FeaturestoreOnlineServingServiceStubSettings) getStubSettings())
+        .getIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return ((FeaturestoreOnlineServingServiceStubSettings) getStubSettings())
+        .testIamPermissionsSettings();
+  }
+
   public static final FeaturestoreOnlineServingServiceSettings create(
       FeaturestoreOnlineServingServiceStubSettings stub) throws IOException {
     return new FeaturestoreOnlineServingServiceSettings.Builder(stub.toBuilder()).build();
@@ -196,6 +241,34 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().streamingReadFeatureValuesSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return getStubSettingsBuilder().listLocationsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getStubSettingsBuilder().getLocationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return getStubSettingsBuilder().setIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getStubSettingsBuilder().getIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return getStubSettingsBuilder().testIamPermissionsSettings();
+    }
+
     @Override
     public FeaturestoreOnlineServingServiceSettings build() throws IOException {
       return new FeaturestoreOnlineServingServiceSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClient.java
index 438ad91fe00f..1f6aeaf544df 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -29,7 +29,16 @@
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1beta1.stub.FeaturestoreServiceStub;
 import com.google.cloud.aiplatform.v1beta1.stub.FeaturestoreServiceStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.OperationsClient;
 import com.google.protobuf.Empty;
@@ -47,6 +56,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
  *   FeaturestoreName name = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
  *   Featurestore response = featurestoreServiceClient.getFeaturestore(name);
@@ -83,6 +94,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * FeaturestoreServiceSettings featurestoreServiceSettings =
  *     FeaturestoreServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -94,6 +107,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * FeaturestoreServiceSettings featurestoreServiceSettings =
  *     FeaturestoreServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * FeaturestoreServiceClient featurestoreServiceClient =
@@ -127,7 +142,6 @@ public static final FeaturestoreServiceClient create(FeaturestoreServiceSettings
    * Constructs an instance of FeaturestoreServiceClient, using the given stub for making calls.
    * This is for advanced usage - prefer using create(FeaturestoreServiceSettings).
    */
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public static final FeaturestoreServiceClient create(FeaturestoreServiceStub stub) {
     return new FeaturestoreServiceClient(stub);
   }
@@ -143,7 +157,6 @@ protected FeaturestoreServiceClient(FeaturestoreServiceSettings settings) throws
     this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected FeaturestoreServiceClient(FeaturestoreServiceStub stub) {
     this.settings = null;
     this.stub = stub;
@@ -154,7 +167,6 @@ public final FeaturestoreServiceSettings getSettings() {
     return settings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public FeaturestoreServiceStub getStub() {
     return stub;
   }
@@ -174,6 +186,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Featurestore featurestore = Featurestore.newBuilder().build();
@@ -204,6 +218,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Featurestore featurestore = Featurestore.newBuilder().build();
@@ -234,6 +250,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Featurestore featurestore = Featurestore.newBuilder().build();
@@ -274,6 +292,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Featurestore featurestore = Featurestore.newBuilder().build();
@@ -313,6 +333,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   CreateFeaturestoreRequest request =
    *       CreateFeaturestoreRequest.newBuilder()
@@ -339,6 +361,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   CreateFeaturestoreRequest request =
    *       CreateFeaturestoreRequest.newBuilder()
@@ -366,6 +390,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   CreateFeaturestoreRequest request =
    *       CreateFeaturestoreRequest.newBuilder()
@@ -391,6 +417,8 @@ public final UnaryCallable createFeaturest
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   FeaturestoreName name = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
    *   Featurestore response = featurestoreServiceClient.getFeaturestore(name);
@@ -413,6 +441,8 @@ public final Featurestore getFeaturestore(FeaturestoreName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String name = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
    *   Featurestore response = featurestoreServiceClient.getFeaturestore(name);
@@ -434,6 +464,8 @@ public final Featurestore getFeaturestore(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   GetFeaturestoreRequest request =
    *       GetFeaturestoreRequest.newBuilder()
@@ -457,6 +489,8 @@ public final Featurestore getFeaturestore(GetFeaturestoreRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   GetFeaturestoreRequest request =
    *       GetFeaturestoreRequest.newBuilder()
@@ -480,6 +514,8 @@ public final UnaryCallable getFeaturestore
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Featurestore element :
@@ -508,6 +544,8 @@ public final ListFeaturestoresPagedResponse listFeaturestores(LocationName paren
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Featurestore element :
@@ -534,6 +572,8 @@ public final ListFeaturestoresPagedResponse listFeaturestores(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   ListFeaturestoresRequest request =
    *       ListFeaturestoresRequest.newBuilder()
@@ -565,6 +605,8 @@ public final ListFeaturestoresPagedResponse listFeaturestores(ListFeaturestoresR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   ListFeaturestoresRequest request =
    *       ListFeaturestoresRequest.newBuilder()
@@ -596,6 +638,8 @@ public final ListFeaturestoresPagedResponse listFeaturestores(ListFeaturestoresR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   ListFeaturestoresRequest request =
    *       ListFeaturestoresRequest.newBuilder()
@@ -609,7 +653,7 @@ public final ListFeaturestoresPagedResponse listFeaturestores(ListFeaturestoresR
    *   while (true) {
    *     ListFeaturestoresResponse response =
    *         featurestoreServiceClient.listFeaturestoresCallable().call(request);
-   *     for (Featurestore element : response.getResponsesList()) {
+   *     for (Featurestore element : response.getFeaturestoresList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -634,6 +678,8 @@ public final ListFeaturestoresPagedResponse listFeaturestores(ListFeaturestoresR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   Featurestore featurestore = Featurestore.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -651,7 +697,8 @@ public final ListFeaturestoresPagedResponse listFeaturestores(ListFeaturestoresR
    *     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` * `online_serving_config.fixed_node_count` + *

* `labels` * `online_serving_config.fixed_node_count` * + * `online_serving_config.scaling` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture @@ -671,6 +718,8 @@ public final ListFeaturestoresPagedResponse listFeaturestores(ListFeaturestoresR *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   UpdateFeaturestoreRequest request =
    *       UpdateFeaturestoreRequest.newBuilder()
@@ -696,6 +745,8 @@ public final ListFeaturestoresPagedResponse listFeaturestores(ListFeaturestoresR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   UpdateFeaturestoreRequest request =
    *       UpdateFeaturestoreRequest.newBuilder()
@@ -722,6 +773,8 @@ public final ListFeaturestoresPagedResponse listFeaturestores(ListFeaturestoresR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   UpdateFeaturestoreRequest request =
    *       UpdateFeaturestoreRequest.newBuilder()
@@ -747,6 +800,8 @@ public final UnaryCallable updateFeaturest
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   FeaturestoreName name = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
    *   featurestoreServiceClient.deleteFeaturestoreAsync(name).get();
@@ -774,6 +829,8 @@ public final OperationFuture deleteFeaturestoreA
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String name = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
    *   featurestoreServiceClient.deleteFeaturestoreAsync(name).get();
@@ -799,6 +856,8 @@ public final OperationFuture deleteFeaturestoreA
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   FeaturestoreName name = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
    *   boolean force = true;
@@ -830,6 +889,8 @@ public final OperationFuture deleteFeaturestoreA
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String name = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
    *   boolean force = true;
@@ -858,6 +919,8 @@ public final OperationFuture deleteFeaturestoreA
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   DeleteFeaturestoreRequest request =
    *       DeleteFeaturestoreRequest.newBuilder()
@@ -884,6 +947,8 @@ public final OperationFuture deleteFeaturestoreA
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   DeleteFeaturestoreRequest request =
    *       DeleteFeaturestoreRequest.newBuilder()
@@ -910,6 +975,8 @@ public final OperationFuture deleteFeaturestoreA
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   DeleteFeaturestoreRequest request =
    *       DeleteFeaturestoreRequest.newBuilder()
@@ -934,6 +1001,8 @@ public final UnaryCallable deleteFeaturest
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   FeaturestoreName parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
    *   EntityType entityType = EntityType.newBuilder().build();
@@ -964,6 +1033,8 @@ public final OperationFuture crea
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
    *   EntityType entityType = EntityType.newBuilder().build();
@@ -991,6 +1062,8 @@ public final OperationFuture crea
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   FeaturestoreName parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
    *   EntityType entityType = EntityType.newBuilder().build();
@@ -1028,6 +1101,8 @@ public final OperationFuture crea
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
    *   EntityType entityType = EntityType.newBuilder().build();
@@ -1065,6 +1140,8 @@ public final OperationFuture crea
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   CreateEntityTypeRequest request =
    *       CreateEntityTypeRequest.newBuilder()
@@ -1092,6 +1169,8 @@ public final OperationFuture crea
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   CreateEntityTypeRequest request =
    *       CreateEntityTypeRequest.newBuilder()
@@ -1120,6 +1199,8 @@ public final OperationFuture crea
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   CreateEntityTypeRequest request =
    *       CreateEntityTypeRequest.newBuilder()
@@ -1146,6 +1227,8 @@ public final UnaryCallable createEntityTypeC
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   EntityTypeName name =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
@@ -1170,6 +1253,8 @@ public final EntityType getEntityType(EntityTypeName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String name =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
@@ -1194,6 +1279,8 @@ public final EntityType getEntityType(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   GetEntityTypeRequest request =
    *       GetEntityTypeRequest.newBuilder()
@@ -1219,6 +1306,8 @@ public final EntityType getEntityType(GetEntityTypeRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   GetEntityTypeRequest request =
    *       GetEntityTypeRequest.newBuilder()
@@ -1244,6 +1333,8 @@ public final UnaryCallable getEntityTypeCallab
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   FeaturestoreName parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
    *   for (EntityType element : featurestoreServiceClient.listEntityTypes(parent).iterateAll()) {
@@ -1271,6 +1362,8 @@ public final ListEntityTypesPagedResponse listEntityTypes(FeaturestoreName paren
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
    *   for (EntityType element : featurestoreServiceClient.listEntityTypes(parent).iterateAll()) {
@@ -1295,6 +1388,8 @@ public final ListEntityTypesPagedResponse listEntityTypes(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   ListEntityTypesRequest request =
    *       ListEntityTypesRequest.newBuilder()
@@ -1326,6 +1421,8 @@ public final ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   ListEntityTypesRequest request =
    *       ListEntityTypesRequest.newBuilder()
@@ -1358,6 +1455,8 @@ public final ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   ListEntityTypesRequest request =
    *       ListEntityTypesRequest.newBuilder()
@@ -1372,7 +1471,7 @@ public final ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest
    *   while (true) {
    *     ListEntityTypesResponse response =
    *         featurestoreServiceClient.listEntityTypesCallable().call(request);
-   *     for (EntityType element : response.getResponsesList()) {
+   *     for (EntityType element : response.getEntityTypesList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -1397,6 +1496,8 @@ public final ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   EntityType entityType = EntityType.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1438,6 +1539,8 @@ public final EntityType updateEntityType(EntityType entityType, FieldMask update
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   UpdateEntityTypeRequest request =
    *       UpdateEntityTypeRequest.newBuilder()
@@ -1462,6 +1565,8 @@ public final EntityType updateEntityType(UpdateEntityTypeRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   UpdateEntityTypeRequest request =
    *       UpdateEntityTypeRequest.newBuilder()
@@ -1487,6 +1592,8 @@ public final UnaryCallable updateEntityType
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   EntityTypeName name =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
@@ -1513,6 +1620,8 @@ public final OperationFuture deleteEntityTypeAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String name =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
@@ -1538,6 +1647,8 @@ public final OperationFuture deleteEntityTypeAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   EntityTypeName name =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
@@ -1570,6 +1681,8 @@ public final OperationFuture deleteEntityTypeAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String name =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
@@ -1600,6 +1713,8 @@ public final OperationFuture deleteEntityTypeAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   DeleteEntityTypeRequest request =
    *       DeleteEntityTypeRequest.newBuilder()
@@ -1628,6 +1743,8 @@ public final OperationFuture deleteEntityTypeAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   DeleteEntityTypeRequest request =
    *       DeleteEntityTypeRequest.newBuilder()
@@ -1656,6 +1773,8 @@ public final OperationFuture deleteEntityTypeAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   DeleteEntityTypeRequest request =
    *       DeleteEntityTypeRequest.newBuilder()
@@ -1682,6 +1801,8 @@ public final UnaryCallable deleteEntityTypeC
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   EntityTypeName parent =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
@@ -1712,6 +1833,8 @@ public final OperationFuture createFeat
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String parent =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
@@ -1740,6 +1863,8 @@ public final OperationFuture createFeat
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   EntityTypeName parent =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
@@ -1778,6 +1903,8 @@ public final OperationFuture createFeat
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String parent =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
@@ -1817,6 +1944,8 @@ public final OperationFuture createFeat
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   CreateFeatureRequest request =
    *       CreateFeatureRequest.newBuilder()
@@ -1845,6 +1974,8 @@ public final OperationFuture createFeat
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   CreateFeatureRequest request =
    *       CreateFeatureRequest.newBuilder()
@@ -1873,6 +2004,8 @@ public final OperationFuture createFeat
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   CreateFeatureRequest request =
    *       CreateFeatureRequest.newBuilder()
@@ -1900,6 +2033,8 @@ public final UnaryCallable createFeatureCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   EntityTypeName parent =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
@@ -1935,6 +2070,8 @@ public final UnaryCallable createFeatureCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String parent =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
@@ -1968,6 +2105,8 @@ public final UnaryCallable createFeatureCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   BatchCreateFeaturesRequest request =
    *       BatchCreateFeaturesRequest.newBuilder()
@@ -1996,6 +2135,8 @@ public final UnaryCallable createFeatureCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   BatchCreateFeaturesRequest request =
    *       BatchCreateFeaturesRequest.newBuilder()
@@ -2026,6 +2167,8 @@ public final UnaryCallable createFeatureCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   BatchCreateFeaturesRequest request =
    *       BatchCreateFeaturesRequest.newBuilder()
@@ -2052,6 +2195,8 @@ public final UnaryCallable batchCreateFea
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   FeatureName name =
    *       FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]");
@@ -2076,6 +2221,8 @@ public final Feature getFeature(FeatureName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String name =
    *       FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
@@ -2100,6 +2247,8 @@ public final Feature getFeature(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   GetFeatureRequest request =
    *       GetFeatureRequest.newBuilder()
@@ -2126,6 +2275,8 @@ public final Feature getFeature(GetFeatureRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   GetFeatureRequest request =
    *       GetFeatureRequest.newBuilder()
@@ -2152,6 +2303,8 @@ public final UnaryCallable getFeatureCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   EntityTypeName parent =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
@@ -2180,6 +2333,8 @@ public final ListFeaturesPagedResponse listFeatures(EntityTypeName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String parent =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
@@ -2206,6 +2361,8 @@ public final ListFeaturesPagedResponse listFeatures(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   ListFeaturesRequest request =
    *       ListFeaturesRequest.newBuilder()
@@ -2239,6 +2396,8 @@ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   ListFeaturesRequest request =
    *       ListFeaturesRequest.newBuilder()
@@ -2273,6 +2432,8 @@ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   ListFeaturesRequest request =
    *       ListFeaturesRequest.newBuilder()
@@ -2289,7 +2450,7 @@ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest request)
    *   while (true) {
    *     ListFeaturesResponse response =
    *         featurestoreServiceClient.listFeaturesCallable().call(request);
-   *     for (Feature element : response.getResponsesList()) {
+   *     for (Feature element : response.getFeaturesList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -2313,6 +2474,8 @@ public final UnaryCallable listFeatur
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   Feature feature = Feature.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -2345,6 +2508,8 @@ public final Feature updateFeature(Feature feature, FieldMask updateMask) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   UpdateFeatureRequest request =
    *       UpdateFeatureRequest.newBuilder()
@@ -2369,6 +2534,8 @@ public final Feature updateFeature(UpdateFeatureRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   UpdateFeatureRequest request =
    *       UpdateFeatureRequest.newBuilder()
@@ -2393,6 +2560,8 @@ public final UnaryCallable updateFeatureCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   FeatureName name =
    *       FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]");
@@ -2418,6 +2587,8 @@ public final OperationFuture deleteFeatureAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String name =
    *       FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
@@ -2442,6 +2613,8 @@ public final OperationFuture deleteFeatureAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   DeleteFeatureRequest request =
    *       DeleteFeatureRequest.newBuilder()
@@ -2469,6 +2642,8 @@ public final OperationFuture deleteFeatureAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   DeleteFeatureRequest request =
    *       DeleteFeatureRequest.newBuilder()
@@ -2496,6 +2671,8 @@ public final OperationFuture deleteFeatureAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   DeleteFeatureRequest request =
    *       DeleteFeatureRequest.newBuilder()
@@ -2538,6 +2715,8 @@ public final UnaryCallable deleteFeatureCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   EntityTypeName entityType =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
@@ -2583,6 +2762,8 @@ public final UnaryCallable deleteFeatureCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String entityType =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
@@ -2627,6 +2808,8 @@ public final UnaryCallable deleteFeatureCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   ImportFeatureValuesRequest request =
    *       ImportFeatureValuesRequest.newBuilder()
@@ -2675,6 +2858,8 @@ public final UnaryCallable deleteFeatureCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   ImportFeatureValuesRequest request =
    *       ImportFeatureValuesRequest.newBuilder()
@@ -2725,6 +2910,8 @@ public final UnaryCallable deleteFeatureCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   ImportFeatureValuesRequest request =
    *       ImportFeatureValuesRequest.newBuilder()
@@ -2759,6 +2946,8 @@ public final UnaryCallable importFeatureV
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   FeaturestoreName featurestore =
    *       FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
@@ -2792,6 +2981,8 @@ public final UnaryCallable importFeatureV
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String featurestore =
    *       FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
@@ -2823,6 +3014,8 @@ public final UnaryCallable importFeatureV
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   BatchReadFeatureValuesRequest request =
    *       BatchReadFeatureValuesRequest.newBuilder()
@@ -2858,6 +3051,8 @@ public final UnaryCallable importFeatureV
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   BatchReadFeatureValuesRequest request =
    *       BatchReadFeatureValuesRequest.newBuilder()
@@ -2897,6 +3092,8 @@ public final UnaryCallable importFeatureV
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   BatchReadFeatureValuesRequest request =
    *       BatchReadFeatureValuesRequest.newBuilder()
@@ -2926,6 +3123,8 @@ public final UnaryCallable importFeatureV
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   EntityTypeName entityType =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
@@ -2955,6 +3154,8 @@ public final UnaryCallable importFeatureV
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String entityType =
    *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
@@ -2983,6 +3184,8 @@ public final UnaryCallable importFeatureV
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   ExportFeatureValuesRequest request =
    *       ExportFeatureValuesRequest.newBuilder()
@@ -3013,6 +3216,8 @@ public final UnaryCallable importFeatureV
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   ExportFeatureValuesRequest request =
    *       ExportFeatureValuesRequest.newBuilder()
@@ -3045,6 +3250,8 @@ public final UnaryCallable importFeatureV
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   ExportFeatureValuesRequest request =
    *       ExportFeatureValuesRequest.newBuilder()
@@ -3073,6 +3280,8 @@ public final UnaryCallable exportFeatureV
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   LocationName location = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Feature element : featurestoreServiceClient.searchFeatures(location).iterateAll()) {
@@ -3100,6 +3309,8 @@ public final SearchFeaturesPagedResponse searchFeatures(LocationName location) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String location = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Feature element : featurestoreServiceClient.searchFeatures(location).iterateAll()) {
@@ -3125,6 +3336,8 @@ public final SearchFeaturesPagedResponse searchFeatures(String location) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   LocationName location = LocationName.of("[PROJECT]", "[LOCATION]");
    *   String query = "query107944136";
@@ -3206,6 +3419,8 @@ public final SearchFeaturesPagedResponse searchFeatures(LocationName location, S
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   String location = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   String query = "query107944136";
@@ -3284,6 +3499,8 @@ public final SearchFeaturesPagedResponse searchFeatures(String location, String
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   SearchFeaturesRequest request =
    *       SearchFeaturesRequest.newBuilder()
@@ -3312,6 +3529,8 @@ public final SearchFeaturesPagedResponse searchFeatures(SearchFeaturesRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   SearchFeaturesRequest request =
    *       SearchFeaturesRequest.newBuilder()
@@ -3341,6 +3560,8 @@ public final SearchFeaturesPagedResponse searchFeatures(SearchFeaturesRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
    *   SearchFeaturesRequest request =
    *       SearchFeaturesRequest.newBuilder()
@@ -3352,7 +3573,7 @@ public final SearchFeaturesPagedResponse searchFeatures(SearchFeaturesRequest re
    *   while (true) {
    *     SearchFeaturesResponse response =
    *         featurestoreServiceClient.searchFeaturesCallable().call(request);
-   *     for (Feature element : response.getResponsesList()) {
+   *     for (Feature element : response.getFeaturesList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -3370,6 +3591,335 @@ public final SearchFeaturesPagedResponse searchFeatures(SearchFeaturesRequest re
     return stub.searchFeaturesCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Lists information about the supported locations for this service.
+   *
+   * 

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : featurestoreServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         featurestoreServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = featurestoreServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       featurestoreServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = featurestoreServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = featurestoreServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = featurestoreServiceClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + @Override public final void close() { stub.close(); @@ -3707,4 +4257,80 @@ protected SearchFeaturesFixedSizeCollection createCollection( return new SearchFeaturesFixedSizeCollection(pages, collectionSize); } } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceSettings.java index c340fa77512b..45341fb684aa 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,6 +19,7 @@ import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListEntityTypesPagedResponse; import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListFeaturesPagedResponse; import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListFeaturestoresPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.SearchFeaturesPagedResponse; import com.google.api.core.ApiFunction; @@ -34,6 +35,15 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.aiplatform.v1beta1.stub.FeaturestoreServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -58,6 +68,8 @@ *

For example, to set the total timeout of getFeaturestore to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * FeaturestoreServiceSettings.Builder featurestoreServiceSettingsBuilder =
  *     FeaturestoreServiceSettings.newBuilder();
  * featurestoreServiceSettingsBuilder
@@ -275,6 +287,33 @@ public UnaryCallSettings exportFeatureVal
     return ((FeaturestoreServiceStubSettings) getStubSettings()).searchFeaturesSettings();
   }
 
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return ((FeaturestoreServiceStubSettings) getStubSettings()).listLocationsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return ((FeaturestoreServiceStubSettings) getStubSettings()).getLocationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return ((FeaturestoreServiceStubSettings) getStubSettings()).setIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return ((FeaturestoreServiceStubSettings) getStubSettings()).getIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return ((FeaturestoreServiceStubSettings) getStubSettings()).testIamPermissionsSettings();
+  }
+
   public static final FeaturestoreServiceSettings create(FeaturestoreServiceStubSettings stub)
       throws IOException {
     return new FeaturestoreServiceSettings.Builder(stub.toBuilder()).build();
@@ -573,6 +612,34 @@ public UnaryCallSettings.Builder deleteFeatureS
       return getStubSettingsBuilder().searchFeaturesSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return getStubSettingsBuilder().listLocationsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getStubSettingsBuilder().getLocationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return getStubSettingsBuilder().setIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getStubSettingsBuilder().getIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return getStubSettingsBuilder().testIamPermissionsSettings();
+    }
+
     @Override
     public FeaturestoreServiceSettings build() throws IOException {
       return new FeaturestoreServiceSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceClient.java
index ec95d38529fb..a2bb38b9be3d 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -29,7 +29,16 @@
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1beta1.stub.IndexEndpointServiceStub;
 import com.google.cloud.aiplatform.v1beta1.stub.IndexEndpointServiceStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.OperationsClient;
 import com.google.protobuf.Empty;
@@ -47,6 +56,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (IndexEndpointServiceClient indexEndpointServiceClient =
  *     IndexEndpointServiceClient.create()) {
  *   IndexEndpointName name = IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]");
@@ -84,6 +95,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IndexEndpointServiceSettings indexEndpointServiceSettings =
  *     IndexEndpointServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -95,6 +108,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IndexEndpointServiceSettings indexEndpointServiceSettings =
  *     IndexEndpointServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * IndexEndpointServiceClient indexEndpointServiceClient =
@@ -128,7 +143,6 @@ public static final IndexEndpointServiceClient create(IndexEndpointServiceSettin
    * Constructs an instance of IndexEndpointServiceClient, using the given stub for making calls.
    * This is for advanced usage - prefer using create(IndexEndpointServiceSettings).
    */
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public static final IndexEndpointServiceClient create(IndexEndpointServiceStub stub) {
     return new IndexEndpointServiceClient(stub);
   }
@@ -144,7 +158,6 @@ protected IndexEndpointServiceClient(IndexEndpointServiceSettings settings) thro
     this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected IndexEndpointServiceClient(IndexEndpointServiceStub stub) {
     this.settings = null;
     this.stub = stub;
@@ -155,7 +168,6 @@ public final IndexEndpointServiceSettings getSettings() {
     return settings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public IndexEndpointServiceStub getStub() {
     return stub;
   }
@@ -175,6 +187,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -206,6 +220,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
@@ -237,6 +253,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   CreateIndexEndpointRequest request =
@@ -263,6 +281,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   CreateIndexEndpointRequest request =
@@ -290,6 +310,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   CreateIndexEndpointRequest request =
@@ -315,6 +337,8 @@ public final UnaryCallable createIndexEnd
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   IndexEndpointName name = IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]");
@@ -339,6 +363,8 @@ public final IndexEndpoint getIndexEndpoint(IndexEndpointName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   String name = IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString();
@@ -362,6 +388,8 @@ public final IndexEndpoint getIndexEndpoint(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   GetIndexEndpointRequest request =
@@ -387,6 +415,8 @@ public final IndexEndpoint getIndexEndpoint(GetIndexEndpointRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   GetIndexEndpointRequest request =
@@ -412,6 +442,8 @@ public final UnaryCallable getIndexEndpo
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -441,6 +473,8 @@ public final ListIndexEndpointsPagedResponse listIndexEndpoints(LocationName par
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
@@ -468,6 +502,8 @@ public final ListIndexEndpointsPagedResponse listIndexEndpoints(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   ListIndexEndpointsRequest request =
@@ -500,6 +536,8 @@ public final ListIndexEndpointsPagedResponse listIndexEndpoints(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   ListIndexEndpointsRequest request =
@@ -531,6 +569,8 @@ public final ListIndexEndpointsPagedResponse listIndexEndpoints(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   ListIndexEndpointsRequest request =
@@ -544,7 +584,7 @@ public final ListIndexEndpointsPagedResponse listIndexEndpoints(
    *   while (true) {
    *     ListIndexEndpointsResponse response =
    *         indexEndpointServiceClient.listIndexEndpointsCallable().call(request);
-   *     for (IndexEndpoint element : response.getResponsesList()) {
+   *     for (IndexEndpoint element : response.getIndexEndpointsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -569,6 +609,8 @@ public final ListIndexEndpointsPagedResponse listIndexEndpoints(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   IndexEndpoint indexEndpoint = IndexEndpoint.newBuilder().build();
@@ -600,6 +642,8 @@ public final IndexEndpoint updateIndexEndpoint(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   UpdateIndexEndpointRequest request =
@@ -625,6 +669,8 @@ public final IndexEndpoint updateIndexEndpoint(UpdateIndexEndpointRequest reques
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   UpdateIndexEndpointRequest request =
@@ -651,6 +697,8 @@ public final IndexEndpoint updateIndexEndpoint(UpdateIndexEndpointRequest reques
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   IndexEndpointName name = IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]");
@@ -678,6 +726,8 @@ public final OperationFuture deleteIndexEndpoint
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   String name = IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString();
@@ -703,6 +753,8 @@ public final OperationFuture deleteIndexEndpoint
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   DeleteIndexEndpointRequest request =
@@ -729,6 +781,8 @@ public final OperationFuture deleteIndexEndpoint
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   DeleteIndexEndpointRequest request =
@@ -755,6 +809,8 @@ public final OperationFuture deleteIndexEndpoint
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   DeleteIndexEndpointRequest request =
@@ -781,6 +837,8 @@ public final UnaryCallable deleteIndexEnd
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   IndexEndpointName indexEndpoint =
@@ -814,6 +872,8 @@ public final OperationFuture
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   String indexEndpoint =
@@ -847,6 +907,8 @@ public final OperationFuture
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   DeployIndexRequest request =
@@ -875,6 +937,8 @@ public final OperationFuture
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   DeployIndexRequest request =
@@ -904,6 +968,8 @@ public final OperationFuture
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   DeployIndexRequest request =
@@ -931,6 +997,8 @@ public final UnaryCallable deployIndexCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   IndexEndpointName indexEndpoint =
@@ -965,6 +1033,8 @@ public final UnaryCallable deployIndexCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   String indexEndpoint =
@@ -999,6 +1069,8 @@ public final UnaryCallable deployIndexCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   UndeployIndexRequest request =
@@ -1027,6 +1099,8 @@ public final UnaryCallable deployIndexCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   UndeployIndexRequest request =
@@ -1056,6 +1130,8 @@ public final UnaryCallable deployIndexCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   UndeployIndexRequest request =
@@ -1082,6 +1158,8 @@ public final UnaryCallable undeployIndexCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   IndexEndpointName indexEndpoint =
@@ -1116,6 +1194,8 @@ public final UnaryCallable undeployIndexCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   String indexEndpoint =
@@ -1150,6 +1230,8 @@ public final UnaryCallable undeployIndexCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   MutateDeployedIndexRequest request =
@@ -1178,6 +1260,8 @@ public final UnaryCallable undeployIndexCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   MutateDeployedIndexRequest request =
@@ -1208,6 +1292,8 @@ public final UnaryCallable undeployIndexCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexEndpointServiceClient indexEndpointServiceClient =
    *     IndexEndpointServiceClient.create()) {
    *   MutateDeployedIndexRequest request =
@@ -1227,6 +1313,346 @@ public final UnaryCallable mutateDeployed
     return stub.mutateDeployedIndexCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Lists information about the supported locations for this service.
+   *
+   * 

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : indexEndpointServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       indexEndpointServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         indexEndpointServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = indexEndpointServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       indexEndpointServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = indexEndpointServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       indexEndpointServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = indexEndpointServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       indexEndpointServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = indexEndpointServiceClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexEndpointServiceClient indexEndpointServiceClient =
+   *     IndexEndpointServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       indexEndpointServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + @Override public final void close() { stub.close(); @@ -1336,4 +1762,80 @@ protected ListIndexEndpointsFixedSizeCollection createCollection( return new ListIndexEndpointsFixedSizeCollection(pages, collectionSize); } } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceSettings.java index e3a0ffbd33da..8828d4f4262e 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ package com.google.cloud.aiplatform.v1beta1; import static com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceClient.ListIndexEndpointsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceClient.ListLocationsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -31,6 +32,15 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.aiplatform.v1beta1.stub.IndexEndpointServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -55,6 +65,8 @@ *

For example, to set the total timeout of getIndexEndpoint to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IndexEndpointServiceSettings.Builder indexEndpointServiceSettingsBuilder =
  *     IndexEndpointServiceSettings.newBuilder();
  * indexEndpointServiceSettingsBuilder
@@ -156,6 +168,33 @@ public UnaryCallSettings mutateDeployedIn
         .mutateDeployedIndexOperationSettings();
   }
 
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return ((IndexEndpointServiceStubSettings) getStubSettings()).listLocationsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return ((IndexEndpointServiceStubSettings) getStubSettings()).getLocationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return ((IndexEndpointServiceStubSettings) getStubSettings()).setIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return ((IndexEndpointServiceStubSettings) getStubSettings()).getIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return ((IndexEndpointServiceStubSettings) getStubSettings()).testIamPermissionsSettings();
+  }
+
   public static final IndexEndpointServiceSettings create(IndexEndpointServiceStubSettings stub)
       throws IOException {
     return new IndexEndpointServiceSettings.Builder(stub.toBuilder()).build();
@@ -337,6 +376,34 @@ public UnaryCallSettings.Builder undeployIndexS
       return getStubSettingsBuilder().mutateDeployedIndexOperationSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return getStubSettingsBuilder().listLocationsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getStubSettingsBuilder().getLocationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return getStubSettingsBuilder().setIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getStubSettingsBuilder().getIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return getStubSettingsBuilder().testIamPermissionsSettings();
+    }
+
     @Override
     public IndexEndpointServiceSettings build() throws IOException {
       return new IndexEndpointServiceSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceClient.java
index 815372b01d69..9ef0bd8ec351 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -29,7 +29,16 @@
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1beta1.stub.IndexServiceStub;
 import com.google.cloud.aiplatform.v1beta1.stub.IndexServiceStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.OperationsClient;
 import com.google.protobuf.Empty;
@@ -47,6 +56,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
  *   IndexName name = IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]");
  *   Index response = indexServiceClient.getIndex(name);
@@ -82,6 +93,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IndexServiceSettings indexServiceSettings =
  *     IndexServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -92,6 +105,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IndexServiceSettings indexServiceSettings =
  *     IndexServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * IndexServiceClient indexServiceClient = IndexServiceClient.create(indexServiceSettings);
@@ -123,7 +138,6 @@ public static final IndexServiceClient create(IndexServiceSettings settings) thr
    * Constructs an instance of IndexServiceClient, using the given stub for making calls. This is
    * for advanced usage - prefer using create(IndexServiceSettings).
    */
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public static final IndexServiceClient create(IndexServiceStub stub) {
     return new IndexServiceClient(stub);
   }
@@ -139,7 +153,6 @@ protected IndexServiceClient(IndexServiceSettings settings) throws IOException {
     this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected IndexServiceClient(IndexServiceStub stub) {
     this.settings = null;
     this.stub = stub;
@@ -150,7 +163,6 @@ public final IndexServiceSettings getSettings() {
     return settings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public IndexServiceStub getStub() {
     return stub;
   }
@@ -170,6 +182,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Index index = Index.newBuilder().build();
@@ -199,6 +213,8 @@ public final OperationFuture createIndexAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Index index = Index.newBuilder().build();
@@ -225,6 +241,8 @@ public final OperationFuture createIndexAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   CreateIndexRequest request =
    *       CreateIndexRequest.newBuilder()
@@ -250,6 +268,8 @@ public final OperationFuture createIndexAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   CreateIndexRequest request =
    *       CreateIndexRequest.newBuilder()
@@ -275,6 +295,8 @@ public final OperationFuture createIndexAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   CreateIndexRequest request =
    *       CreateIndexRequest.newBuilder()
@@ -298,6 +320,8 @@ public final UnaryCallable createIndexCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   IndexName name = IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]");
    *   Index response = indexServiceClient.getIndex(name);
@@ -321,6 +345,8 @@ public final Index getIndex(IndexName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   String name = IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]").toString();
    *   Index response = indexServiceClient.getIndex(name);
@@ -343,6 +369,8 @@ public final Index getIndex(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   GetIndexRequest request =
    *       GetIndexRequest.newBuilder()
@@ -366,6 +394,8 @@ public final Index getIndex(GetIndexRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   GetIndexRequest request =
    *       GetIndexRequest.newBuilder()
@@ -388,6 +418,8 @@ public final UnaryCallable getIndexCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Index element : indexServiceClient.listIndexes(parent).iterateAll()) {
@@ -415,6 +447,8 @@ public final ListIndexesPagedResponse listIndexes(LocationName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Index element : indexServiceClient.listIndexes(parent).iterateAll()) {
@@ -439,6 +473,8 @@ public final ListIndexesPagedResponse listIndexes(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   ListIndexesRequest request =
    *       ListIndexesRequest.newBuilder()
@@ -468,6 +504,8 @@ public final ListIndexesPagedResponse listIndexes(ListIndexesRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   ListIndexesRequest request =
    *       ListIndexesRequest.newBuilder()
@@ -497,6 +535,8 @@ public final ListIndexesPagedResponse listIndexes(ListIndexesRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   ListIndexesRequest request =
    *       ListIndexesRequest.newBuilder()
@@ -508,7 +548,7 @@ public final ListIndexesPagedResponse listIndexes(ListIndexesRequest request) {
    *           .build();
    *   while (true) {
    *     ListIndexesResponse response = indexServiceClient.listIndexesCallable().call(request);
-   *     for (Index element : response.getResponsesList()) {
+   *     for (Index element : response.getIndexesList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -532,6 +572,8 @@ public final UnaryCallable listIndexesC
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   Index index = Index.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -558,6 +600,8 @@ public final OperationFuture updateIndexAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   UpdateIndexRequest request =
    *       UpdateIndexRequest.newBuilder()
@@ -583,6 +627,8 @@ public final OperationFuture updateIndexAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   UpdateIndexRequest request =
    *       UpdateIndexRequest.newBuilder()
@@ -608,6 +654,8 @@ public final OperationFuture updateIndexAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   UpdateIndexRequest request =
    *       UpdateIndexRequest.newBuilder()
@@ -632,6 +680,8 @@ public final UnaryCallable updateIndexCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   IndexName name = IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]");
    *   indexServiceClient.deleteIndexAsync(name).get();
@@ -656,6 +706,8 @@ public final OperationFuture deleteIndexAsync(In
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   String name = IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]").toString();
    *   indexServiceClient.deleteIndexAsync(name).get();
@@ -679,6 +731,8 @@ public final OperationFuture deleteIndexAsync(St
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   DeleteIndexRequest request =
    *       DeleteIndexRequest.newBuilder()
@@ -704,6 +758,8 @@ public final OperationFuture deleteIndexAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   DeleteIndexRequest request =
    *       DeleteIndexRequest.newBuilder()
@@ -729,6 +785,8 @@ public final OperationFuture deleteIndexAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
    *   DeleteIndexRequest request =
    *       DeleteIndexRequest.newBuilder()
@@ -744,6 +802,331 @@ public final UnaryCallable deleteIndexCallable()
     return stub.deleteIndexCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Lists information about the supported locations for this service.
+   *
+   * 

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : indexServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       indexServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response = indexServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = indexServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = indexServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = indexServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = indexServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = indexServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = indexServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = indexServiceClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       indexServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + @Override public final void close() { stub.close(); @@ -846,4 +1229,80 @@ protected ListIndexesFixedSizeCollection createCollection( return new ListIndexesFixedSizeCollection(pages, collectionSize); } } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceSettings.java index 15df0787145b..d16ed7ff3af5 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ package com.google.cloud.aiplatform.v1beta1; import static com.google.cloud.aiplatform.v1beta1.IndexServiceClient.ListIndexesPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.IndexServiceClient.ListLocationsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -31,6 +32,15 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.aiplatform.v1beta1.stub.IndexServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -55,6 +65,8 @@ *

For example, to set the total timeout of getIndex to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IndexServiceSettings.Builder indexServiceSettingsBuilder = IndexServiceSettings.newBuilder();
  * indexServiceSettingsBuilder
  *     .getIndexSettings()
@@ -116,6 +128,33 @@ public UnaryCallSettings deleteIndexSettings() {
     return ((IndexServiceStubSettings) getStubSettings()).deleteIndexOperationSettings();
   }
 
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return ((IndexServiceStubSettings) getStubSettings()).listLocationsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return ((IndexServiceStubSettings) getStubSettings()).getLocationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return ((IndexServiceStubSettings) getStubSettings()).setIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return ((IndexServiceStubSettings) getStubSettings()).getIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return ((IndexServiceStubSettings) getStubSettings()).testIamPermissionsSettings();
+  }
+
   public static final IndexServiceSettings create(IndexServiceStubSettings stub)
       throws IOException {
     return new IndexServiceSettings.Builder(stub.toBuilder()).build();
@@ -258,6 +297,34 @@ public UnaryCallSettings.Builder deleteIndexSetti
       return getStubSettingsBuilder().deleteIndexOperationSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return getStubSettingsBuilder().listLocationsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getStubSettingsBuilder().getLocationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return getStubSettingsBuilder().setIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getStubSettingsBuilder().getIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return getStubSettingsBuilder().testIamPermissionsSettings();
+    }
+
     @Override
     public IndexServiceSettings build() throws IOException {
       return new IndexServiceSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceClient.java
index c84c2d278368..0e5617e7f19d 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -29,7 +29,16 @@
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1beta1.stub.JobServiceStub;
 import com.google.cloud.aiplatform.v1beta1.stub.JobServiceStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.OperationsClient;
 import com.google.protobuf.Empty;
@@ -47,6 +56,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
  *   CustomJob customJob = CustomJob.newBuilder().build();
@@ -83,6 +94,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * JobServiceSettings jobServiceSettings =
  *     JobServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -93,6 +106,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * JobServiceSettings jobServiceSettings =
  *     JobServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * JobServiceClient jobServiceClient = JobServiceClient.create(jobServiceSettings);
@@ -124,7 +139,6 @@ public static final JobServiceClient create(JobServiceSettings settings) throws
    * Constructs an instance of JobServiceClient, using the given stub for making calls. This is for
    * advanced usage - prefer using create(JobServiceSettings).
    */
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public static final JobServiceClient create(JobServiceStub stub) {
     return new JobServiceClient(stub);
   }
@@ -139,7 +153,6 @@ protected JobServiceClient(JobServiceSettings settings) throws IOException {
     this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected JobServiceClient(JobServiceStub stub) {
     this.settings = null;
     this.stub = stub;
@@ -150,7 +163,6 @@ public final JobServiceSettings getSettings() {
     return settings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public JobServiceStub getStub() {
     return stub;
   }
@@ -170,6 +182,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   CustomJob customJob = CustomJob.newBuilder().build();
@@ -198,6 +212,8 @@ public final CustomJob createCustomJob(LocationName parent, CustomJob customJob)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   CustomJob customJob = CustomJob.newBuilder().build();
@@ -223,6 +239,8 @@ public final CustomJob createCustomJob(String parent, CustomJob customJob) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CreateCustomJobRequest request =
    *       CreateCustomJobRequest.newBuilder()
@@ -247,6 +265,8 @@ public final CustomJob createCustomJob(CreateCustomJobRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CreateCustomJobRequest request =
    *       CreateCustomJobRequest.newBuilder()
@@ -270,6 +290,8 @@ public final UnaryCallable createCustomJobCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CustomJobName name = CustomJobName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]");
    *   CustomJob response = jobServiceClient.getCustomJob(name);
@@ -293,6 +315,8 @@ public final CustomJob getCustomJob(CustomJobName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name = CustomJobName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]").toString();
    *   CustomJob response = jobServiceClient.getCustomJob(name);
@@ -315,6 +339,8 @@ public final CustomJob getCustomJob(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   GetCustomJobRequest request =
    *       GetCustomJobRequest.newBuilder()
@@ -338,6 +364,8 @@ public final CustomJob getCustomJob(GetCustomJobRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   GetCustomJobRequest request =
    *       GetCustomJobRequest.newBuilder()
@@ -360,6 +388,8 @@ public final UnaryCallable getCustomJobCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (CustomJob element : jobServiceClient.listCustomJobs(parent).iterateAll()) {
@@ -387,6 +417,8 @@ public final ListCustomJobsPagedResponse listCustomJobs(LocationName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (CustomJob element : jobServiceClient.listCustomJobs(parent).iterateAll()) {
@@ -411,6 +443,8 @@ public final ListCustomJobsPagedResponse listCustomJobs(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ListCustomJobsRequest request =
    *       ListCustomJobsRequest.newBuilder()
@@ -440,6 +474,8 @@ public final ListCustomJobsPagedResponse listCustomJobs(ListCustomJobsRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ListCustomJobsRequest request =
    *       ListCustomJobsRequest.newBuilder()
@@ -470,6 +506,8 @@ public final ListCustomJobsPagedResponse listCustomJobs(ListCustomJobsRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ListCustomJobsRequest request =
    *       ListCustomJobsRequest.newBuilder()
@@ -481,7 +519,7 @@ public final ListCustomJobsPagedResponse listCustomJobs(ListCustomJobsRequest re
    *           .build();
    *   while (true) {
    *     ListCustomJobsResponse response = jobServiceClient.listCustomJobsCallable().call(request);
-   *     for (CustomJob element : response.getResponsesList()) {
+   *     for (CustomJob element : response.getCustomJobsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -506,6 +544,8 @@ public final ListCustomJobsPagedResponse listCustomJobs(ListCustomJobsRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CustomJobName name = CustomJobName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]");
    *   jobServiceClient.deleteCustomJobAsync(name).get();
@@ -530,6 +570,8 @@ public final OperationFuture deleteCustomJobAsyn
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name = CustomJobName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]").toString();
    *   jobServiceClient.deleteCustomJobAsync(name).get();
@@ -552,6 +594,8 @@ public final OperationFuture deleteCustomJobAsyn
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DeleteCustomJobRequest request =
    *       DeleteCustomJobRequest.newBuilder()
@@ -576,6 +620,8 @@ public final OperationFuture deleteCustomJobAsyn
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DeleteCustomJobRequest request =
    *       DeleteCustomJobRequest.newBuilder()
@@ -600,6 +646,8 @@ public final OperationFuture deleteCustomJobAsyn
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DeleteCustomJobRequest request =
    *       DeleteCustomJobRequest.newBuilder()
@@ -629,6 +677,8 @@ public final UnaryCallable deleteCustomJobCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CustomJobName name = CustomJobName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]");
    *   jobServiceClient.cancelCustomJob(name);
@@ -659,6 +709,8 @@ public final void cancelCustomJob(CustomJobName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name = CustomJobName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]").toString();
    *   jobServiceClient.cancelCustomJob(name);
@@ -688,6 +740,8 @@ public final void cancelCustomJob(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CancelCustomJobRequest request =
    *       CancelCustomJobRequest.newBuilder()
@@ -718,6 +772,8 @@ public final void cancelCustomJob(CancelCustomJobRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CancelCustomJobRequest request =
    *       CancelCustomJobRequest.newBuilder()
@@ -740,6 +796,8 @@ public final UnaryCallable cancelCustomJobCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   DataLabelingJob dataLabelingJob = DataLabelingJob.newBuilder().build();
@@ -769,6 +827,8 @@ public final DataLabelingJob createDataLabelingJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   DataLabelingJob dataLabelingJob = DataLabelingJob.newBuilder().build();
@@ -798,6 +858,8 @@ public final DataLabelingJob createDataLabelingJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CreateDataLabelingJobRequest request =
    *       CreateDataLabelingJobRequest.newBuilder()
@@ -822,6 +884,8 @@ public final DataLabelingJob createDataLabelingJob(CreateDataLabelingJobRequest
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CreateDataLabelingJobRequest request =
    *       CreateDataLabelingJobRequest.newBuilder()
@@ -847,6 +911,8 @@ public final DataLabelingJob createDataLabelingJob(CreateDataLabelingJobRequest
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DataLabelingJobName name =
    *       DataLabelingJobName.of("[PROJECT]", "[LOCATION]", "[DATA_LABELING_JOB]");
@@ -873,6 +939,8 @@ public final DataLabelingJob getDataLabelingJob(DataLabelingJobName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name =
    *       DataLabelingJobName.of("[PROJECT]", "[LOCATION]", "[DATA_LABELING_JOB]").toString();
@@ -897,6 +965,8 @@ public final DataLabelingJob getDataLabelingJob(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   GetDataLabelingJobRequest request =
    *       GetDataLabelingJobRequest.newBuilder()
@@ -922,6 +992,8 @@ public final DataLabelingJob getDataLabelingJob(GetDataLabelingJobRequest reques
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   GetDataLabelingJobRequest request =
    *       GetDataLabelingJobRequest.newBuilder()
@@ -948,6 +1020,8 @@ public final DataLabelingJob getDataLabelingJob(GetDataLabelingJobRequest reques
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (DataLabelingJob element : jobServiceClient.listDataLabelingJobs(parent).iterateAll()) {
@@ -975,6 +1049,8 @@ public final ListDataLabelingJobsPagedResponse listDataLabelingJobs(LocationName
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (DataLabelingJob element : jobServiceClient.listDataLabelingJobs(parent).iterateAll()) {
@@ -1000,6 +1076,8 @@ public final ListDataLabelingJobsPagedResponse listDataLabelingJobs(String paren
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ListDataLabelingJobsRequest request =
    *       ListDataLabelingJobsRequest.newBuilder()
@@ -1031,6 +1109,8 @@ public final ListDataLabelingJobsPagedResponse listDataLabelingJobs(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ListDataLabelingJobsRequest request =
    *       ListDataLabelingJobsRequest.newBuilder()
@@ -1062,6 +1142,8 @@ public final ListDataLabelingJobsPagedResponse listDataLabelingJobs(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ListDataLabelingJobsRequest request =
    *       ListDataLabelingJobsRequest.newBuilder()
@@ -1075,7 +1157,7 @@ public final ListDataLabelingJobsPagedResponse listDataLabelingJobs(
    *   while (true) {
    *     ListDataLabelingJobsResponse response =
    *         jobServiceClient.listDataLabelingJobsCallable().call(request);
-   *     for (DataLabelingJob element : response.getResponsesList()) {
+   *     for (DataLabelingJob element : response.getDataLabelingJobsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -1100,6 +1182,8 @@ public final ListDataLabelingJobsPagedResponse listDataLabelingJobs(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DataLabelingJobName name =
    *       DataLabelingJobName.of("[PROJECT]", "[LOCATION]", "[DATA_LABELING_JOB]");
@@ -1127,6 +1211,8 @@ public final OperationFuture deleteDataLabelingJ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name =
    *       DataLabelingJobName.of("[PROJECT]", "[LOCATION]", "[DATA_LABELING_JOB]").toString();
@@ -1152,6 +1238,8 @@ public final OperationFuture deleteDataLabelingJ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DeleteDataLabelingJobRequest request =
    *       DeleteDataLabelingJobRequest.newBuilder()
@@ -1178,6 +1266,8 @@ public final OperationFuture deleteDataLabelingJ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DeleteDataLabelingJobRequest request =
    *       DeleteDataLabelingJobRequest.newBuilder()
@@ -1204,6 +1294,8 @@ public final OperationFuture deleteDataLabelingJ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DeleteDataLabelingJobRequest request =
    *       DeleteDataLabelingJobRequest.newBuilder()
@@ -1230,6 +1322,8 @@ public final OperationFuture deleteDataLabelingJ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DataLabelingJobName name =
    *       DataLabelingJobName.of("[PROJECT]", "[LOCATION]", "[DATA_LABELING_JOB]");
@@ -1256,6 +1350,8 @@ public final void cancelDataLabelingJob(DataLabelingJobName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name =
    *       DataLabelingJobName.of("[PROJECT]", "[LOCATION]", "[DATA_LABELING_JOB]").toString();
@@ -1280,6 +1376,8 @@ public final void cancelDataLabelingJob(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CancelDataLabelingJobRequest request =
    *       CancelDataLabelingJobRequest.newBuilder()
@@ -1305,6 +1403,8 @@ public final void cancelDataLabelingJob(CancelDataLabelingJobRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CancelDataLabelingJobRequest request =
    *       CancelDataLabelingJobRequest.newBuilder()
@@ -1330,6 +1430,8 @@ public final UnaryCallable cancelDataLabeli
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   HyperparameterTuningJob hyperparameterTuningJob =
@@ -1361,6 +1463,8 @@ public final HyperparameterTuningJob createHyperparameterTuningJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   HyperparameterTuningJob hyperparameterTuningJob =
@@ -1392,6 +1496,8 @@ public final HyperparameterTuningJob createHyperparameterTuningJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CreateHyperparameterTuningJobRequest request =
    *       CreateHyperparameterTuningJobRequest.newBuilder()
@@ -1417,6 +1523,8 @@ public final HyperparameterTuningJob createHyperparameterTuningJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CreateHyperparameterTuningJobRequest request =
    *       CreateHyperparameterTuningJobRequest.newBuilder()
@@ -1442,6 +1550,8 @@ public final HyperparameterTuningJob createHyperparameterTuningJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   HyperparameterTuningJobName name =
    *       HyperparameterTuningJobName.of("[PROJECT]", "[LOCATION]", "[HYPERPARAMETER_TUNING_JOB]");
@@ -1469,6 +1579,8 @@ public final HyperparameterTuningJob getHyperparameterTuningJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name =
    *       HyperparameterTuningJobName.of("[PROJECT]", "[LOCATION]", "[HYPERPARAMETER_TUNING_JOB]")
@@ -1494,6 +1606,8 @@ public final HyperparameterTuningJob getHyperparameterTuningJob(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   GetHyperparameterTuningJobRequest request =
    *       GetHyperparameterTuningJobRequest.newBuilder()
@@ -1521,6 +1635,8 @@ public final HyperparameterTuningJob getHyperparameterTuningJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   GetHyperparameterTuningJobRequest request =
    *       GetHyperparameterTuningJobRequest.newBuilder()
@@ -1548,6 +1664,8 @@ public final HyperparameterTuningJob getHyperparameterTuningJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (HyperparameterTuningJob element :
@@ -1577,6 +1695,8 @@ public final ListHyperparameterTuningJobsPagedResponse listHyperparameterTuningJ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (HyperparameterTuningJob element :
@@ -1604,6 +1724,8 @@ public final ListHyperparameterTuningJobsPagedResponse listHyperparameterTuningJ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ListHyperparameterTuningJobsRequest request =
    *       ListHyperparameterTuningJobsRequest.newBuilder()
@@ -1635,6 +1757,8 @@ public final ListHyperparameterTuningJobsPagedResponse listHyperparameterTuningJ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ListHyperparameterTuningJobsRequest request =
    *       ListHyperparameterTuningJobsRequest.newBuilder()
@@ -1666,6 +1790,8 @@ public final ListHyperparameterTuningJobsPagedResponse listHyperparameterTuningJ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ListHyperparameterTuningJobsRequest request =
    *       ListHyperparameterTuningJobsRequest.newBuilder()
@@ -1678,7 +1804,7 @@ public final ListHyperparameterTuningJobsPagedResponse listHyperparameterTuningJ
    *   while (true) {
    *     ListHyperparameterTuningJobsResponse response =
    *         jobServiceClient.listHyperparameterTuningJobsCallable().call(request);
-   *     for (HyperparameterTuningJob element : response.getResponsesList()) {
+   *     for (HyperparameterTuningJob element : response.getHyperparameterTuningJobsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -1704,6 +1830,8 @@ public final ListHyperparameterTuningJobsPagedResponse listHyperparameterTuningJ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   HyperparameterTuningJobName name =
    *       HyperparameterTuningJobName.of("[PROJECT]", "[LOCATION]", "[HYPERPARAMETER_TUNING_JOB]");
@@ -1731,6 +1859,8 @@ public final OperationFuture deleteHyperparamete
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name =
    *       HyperparameterTuningJobName.of("[PROJECT]", "[LOCATION]", "[HYPERPARAMETER_TUNING_JOB]")
@@ -1757,6 +1887,8 @@ public final OperationFuture deleteHyperparamete
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DeleteHyperparameterTuningJobRequest request =
    *       DeleteHyperparameterTuningJobRequest.newBuilder()
@@ -1784,6 +1916,8 @@ public final OperationFuture deleteHyperparamete
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DeleteHyperparameterTuningJobRequest request =
    *       DeleteHyperparameterTuningJobRequest.newBuilder()
@@ -1812,6 +1946,8 @@ public final OperationFuture deleteHyperparamete
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DeleteHyperparameterTuningJobRequest request =
    *       DeleteHyperparameterTuningJobRequest.newBuilder()
@@ -1850,6 +1986,8 @@ public final OperationFuture deleteHyperparamete
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   HyperparameterTuningJobName name =
    *       HyperparameterTuningJobName.of("[PROJECT]", "[LOCATION]", "[HYPERPARAMETER_TUNING_JOB]");
@@ -1887,6 +2025,8 @@ public final void cancelHyperparameterTuningJob(HyperparameterTuningJobName name
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name =
    *       HyperparameterTuningJobName.of("[PROJECT]", "[LOCATION]", "[HYPERPARAMETER_TUNING_JOB]")
@@ -1923,6 +2063,8 @@ public final void cancelHyperparameterTuningJob(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CancelHyperparameterTuningJobRequest request =
    *       CancelHyperparameterTuningJobRequest.newBuilder()
@@ -1960,6 +2102,8 @@ public final void cancelHyperparameterTuningJob(CancelHyperparameterTuningJobReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CancelHyperparameterTuningJobRequest request =
    *       CancelHyperparameterTuningJobRequest.newBuilder()
@@ -1988,6 +2132,8 @@ public final void cancelHyperparameterTuningJob(CancelHyperparameterTuningJobReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   BatchPredictionJob batchPredictionJob = BatchPredictionJob.newBuilder().build();
@@ -2019,6 +2165,8 @@ public final BatchPredictionJob createBatchPredictionJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   BatchPredictionJob batchPredictionJob = BatchPredictionJob.newBuilder().build();
@@ -2050,6 +2198,8 @@ public final BatchPredictionJob createBatchPredictionJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CreateBatchPredictionJobRequest request =
    *       CreateBatchPredictionJobRequest.newBuilder()
@@ -2076,6 +2226,8 @@ public final BatchPredictionJob createBatchPredictionJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CreateBatchPredictionJobRequest request =
    *       CreateBatchPredictionJobRequest.newBuilder()
@@ -2101,6 +2253,8 @@ public final BatchPredictionJob createBatchPredictionJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   BatchPredictionJobName name =
    *       BatchPredictionJobName.of("[PROJECT]", "[LOCATION]", "[BATCH_PREDICTION_JOB]");
@@ -2127,6 +2281,8 @@ public final BatchPredictionJob getBatchPredictionJob(BatchPredictionJobName nam
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name =
    *       BatchPredictionJobName.of("[PROJECT]", "[LOCATION]", "[BATCH_PREDICTION_JOB]").toString();
@@ -2151,6 +2307,8 @@ public final BatchPredictionJob getBatchPredictionJob(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   GetBatchPredictionJobRequest request =
    *       GetBatchPredictionJobRequest.newBuilder()
@@ -2176,6 +2334,8 @@ public final BatchPredictionJob getBatchPredictionJob(GetBatchPredictionJobReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   GetBatchPredictionJobRequest request =
    *       GetBatchPredictionJobRequest.newBuilder()
@@ -2202,6 +2362,8 @@ public final BatchPredictionJob getBatchPredictionJob(GetBatchPredictionJobReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (BatchPredictionJob element :
@@ -2230,6 +2392,8 @@ public final ListBatchPredictionJobsPagedResponse listBatchPredictionJobs(Locati
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (BatchPredictionJob element :
@@ -2256,6 +2420,8 @@ public final ListBatchPredictionJobsPagedResponse listBatchPredictionJobs(String
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ListBatchPredictionJobsRequest request =
    *       ListBatchPredictionJobsRequest.newBuilder()
@@ -2287,6 +2453,8 @@ public final ListBatchPredictionJobsPagedResponse listBatchPredictionJobs(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ListBatchPredictionJobsRequest request =
    *       ListBatchPredictionJobsRequest.newBuilder()
@@ -2317,6 +2485,8 @@ public final ListBatchPredictionJobsPagedResponse listBatchPredictionJobs(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ListBatchPredictionJobsRequest request =
    *       ListBatchPredictionJobsRequest.newBuilder()
@@ -2329,7 +2499,7 @@ public final ListBatchPredictionJobsPagedResponse listBatchPredictionJobs(
    *   while (true) {
    *     ListBatchPredictionJobsResponse response =
    *         jobServiceClient.listBatchPredictionJobsCallable().call(request);
-   *     for (BatchPredictionJob element : response.getResponsesList()) {
+   *     for (BatchPredictionJob element : response.getBatchPredictionJobsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -2354,6 +2524,8 @@ public final ListBatchPredictionJobsPagedResponse listBatchPredictionJobs(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   BatchPredictionJobName name =
    *       BatchPredictionJobName.of("[PROJECT]", "[LOCATION]", "[BATCH_PREDICTION_JOB]");
@@ -2381,6 +2553,8 @@ public final OperationFuture deleteBatchPredicti
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name =
    *       BatchPredictionJobName.of("[PROJECT]", "[LOCATION]", "[BATCH_PREDICTION_JOB]").toString();
@@ -2406,6 +2580,8 @@ public final OperationFuture deleteBatchPredicti
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DeleteBatchPredictionJobRequest request =
    *       DeleteBatchPredictionJobRequest.newBuilder()
@@ -2432,6 +2608,8 @@ public final OperationFuture deleteBatchPredicti
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DeleteBatchPredictionJobRequest request =
    *       DeleteBatchPredictionJobRequest.newBuilder()
@@ -2458,6 +2636,8 @@ public final OperationFuture deleteBatchPredicti
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DeleteBatchPredictionJobRequest request =
    *       DeleteBatchPredictionJobRequest.newBuilder()
@@ -2493,6 +2673,8 @@ public final OperationFuture deleteBatchPredicti
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   BatchPredictionJobName name =
    *       BatchPredictionJobName.of("[PROJECT]", "[LOCATION]", "[BATCH_PREDICTION_JOB]");
@@ -2528,6 +2710,8 @@ public final void cancelBatchPredictionJob(BatchPredictionJobName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name =
    *       BatchPredictionJobName.of("[PROJECT]", "[LOCATION]", "[BATCH_PREDICTION_JOB]").toString();
@@ -2561,6 +2745,8 @@ public final void cancelBatchPredictionJob(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CancelBatchPredictionJobRequest request =
    *       CancelBatchPredictionJobRequest.newBuilder()
@@ -2595,6 +2781,8 @@ public final void cancelBatchPredictionJob(CancelBatchPredictionJobRequest reque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CancelBatchPredictionJobRequest request =
    *       CancelBatchPredictionJobRequest.newBuilder()
@@ -2621,6 +2809,8 @@ public final void cancelBatchPredictionJob(CancelBatchPredictionJobRequest reque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   ModelDeploymentMonitoringJob modelDeploymentMonitoringJob =
@@ -2652,6 +2842,8 @@ public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   ModelDeploymentMonitoringJob modelDeploymentMonitoringJob =
@@ -2683,6 +2875,8 @@ public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CreateModelDeploymentMonitoringJobRequest request =
    *       CreateModelDeploymentMonitoringJobRequest.newBuilder()
@@ -2709,6 +2903,8 @@ public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   CreateModelDeploymentMonitoringJobRequest request =
    *       CreateModelDeploymentMonitoringJobRequest.newBuilder()
@@ -2735,6 +2931,8 @@ public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ModelDeploymentMonitoringJobName modelDeploymentMonitoringJob =
    *       ModelDeploymentMonitoringJobName.of(
@@ -2778,6 +2976,8 @@ public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String modelDeploymentMonitoringJob =
    *       ModelDeploymentMonitoringJobName.of(
@@ -2819,6 +3019,8 @@ public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   SearchModelDeploymentMonitoringStatsAnomaliesRequest request =
    *       SearchModelDeploymentMonitoringStatsAnomaliesRequest.newBuilder()
@@ -2860,6 +3062,8 @@ public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   SearchModelDeploymentMonitoringStatsAnomaliesRequest request =
    *       SearchModelDeploymentMonitoringStatsAnomaliesRequest.newBuilder()
@@ -2903,6 +3107,8 @@ public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   SearchModelDeploymentMonitoringStatsAnomaliesRequest request =
    *       SearchModelDeploymentMonitoringStatsAnomaliesRequest.newBuilder()
@@ -2924,7 +3130,7 @@ public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob(
    *   while (true) {
    *     SearchModelDeploymentMonitoringStatsAnomaliesResponse response =
    *         jobServiceClient.searchModelDeploymentMonitoringStatsAnomaliesCallable().call(request);
-   *     for (ModelMonitoringStatsAnomalies element : response.getResponsesList()) {
+   *     for (ModelMonitoringStatsAnomalies element : response.getMonitoringStatsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -2951,6 +3157,8 @@ public final ModelDeploymentMonitoringJob createModelDeploymentMonitoringJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ModelDeploymentMonitoringJobName name =
    *       ModelDeploymentMonitoringJobName.of(
@@ -2980,6 +3188,8 @@ public final ModelDeploymentMonitoringJob getModelDeploymentMonitoringJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name =
    *       ModelDeploymentMonitoringJobName.of(
@@ -3007,6 +3217,8 @@ public final ModelDeploymentMonitoringJob getModelDeploymentMonitoringJob(String
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   GetModelDeploymentMonitoringJobRequest request =
    *       GetModelDeploymentMonitoringJobRequest.newBuilder()
@@ -3035,6 +3247,8 @@ public final ModelDeploymentMonitoringJob getModelDeploymentMonitoringJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   GetModelDeploymentMonitoringJobRequest request =
    *       GetModelDeploymentMonitoringJobRequest.newBuilder()
@@ -3062,6 +3276,8 @@ public final ModelDeploymentMonitoringJob getModelDeploymentMonitoringJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (ModelDeploymentMonitoringJob element :
@@ -3091,6 +3307,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (ModelDeploymentMonitoringJob element :
@@ -3118,6 +3336,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ListModelDeploymentMonitoringJobsRequest request =
    *       ListModelDeploymentMonitoringJobsRequest.newBuilder()
@@ -3149,6 +3369,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ListModelDeploymentMonitoringJobsRequest request =
    *       ListModelDeploymentMonitoringJobsRequest.newBuilder()
@@ -3180,6 +3402,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ListModelDeploymentMonitoringJobsRequest request =
    *       ListModelDeploymentMonitoringJobsRequest.newBuilder()
@@ -3192,7 +3416,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM
    *   while (true) {
    *     ListModelDeploymentMonitoringJobsResponse response =
    *         jobServiceClient.listModelDeploymentMonitoringJobsCallable().call(request);
-   *     for (ModelDeploymentMonitoringJob element : response.getResponsesList()) {
+   *     for (ModelDeploymentMonitoringJob element :
+   *         response.getModelDeploymentMonitoringJobsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -3218,6 +3443,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ModelDeploymentMonitoringJob modelDeploymentMonitoringJob =
    *       ModelDeploymentMonitoringJob.newBuilder().build();
@@ -3269,6 +3496,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   UpdateModelDeploymentMonitoringJobRequest request =
    *       UpdateModelDeploymentMonitoringJobRequest.newBuilder()
@@ -3296,6 +3525,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   UpdateModelDeploymentMonitoringJobRequest request =
    *       UpdateModelDeploymentMonitoringJobRequest.newBuilder()
@@ -3328,6 +3559,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   UpdateModelDeploymentMonitoringJobRequest request =
    *       UpdateModelDeploymentMonitoringJobRequest.newBuilder()
@@ -3353,6 +3586,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ModelDeploymentMonitoringJobName name =
    *       ModelDeploymentMonitoringJobName.of(
@@ -3381,6 +3616,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name =
    *       ModelDeploymentMonitoringJobName.of(
@@ -3408,6 +3645,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DeleteModelDeploymentMonitoringJobRequest request =
    *       DeleteModelDeploymentMonitoringJobRequest.newBuilder()
@@ -3435,6 +3674,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DeleteModelDeploymentMonitoringJobRequest request =
    *       DeleteModelDeploymentMonitoringJobRequest.newBuilder()
@@ -3465,6 +3706,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   DeleteModelDeploymentMonitoringJobRequest request =
    *       DeleteModelDeploymentMonitoringJobRequest.newBuilder()
@@ -3495,6 +3738,8 @@ public final ListModelDeploymentMonitoringJobsPagedResponse listModelDeploymentM
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ModelDeploymentMonitoringJobName name =
    *       ModelDeploymentMonitoringJobName.of(
@@ -3525,6 +3770,8 @@ public final void pauseModelDeploymentMonitoringJob(ModelDeploymentMonitoringJob
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name =
    *       ModelDeploymentMonitoringJobName.of(
@@ -3554,6 +3801,8 @@ public final void pauseModelDeploymentMonitoringJob(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   PauseModelDeploymentMonitoringJobRequest request =
    *       PauseModelDeploymentMonitoringJobRequest.newBuilder()
@@ -3584,6 +3833,8 @@ public final void pauseModelDeploymentMonitoringJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   PauseModelDeploymentMonitoringJobRequest request =
    *       PauseModelDeploymentMonitoringJobRequest.newBuilder()
@@ -3612,6 +3863,8 @@ public final void pauseModelDeploymentMonitoringJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ModelDeploymentMonitoringJobName name =
    *       ModelDeploymentMonitoringJobName.of(
@@ -3640,6 +3893,8 @@ public final void resumeModelDeploymentMonitoringJob(ModelDeploymentMonitoringJo
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   String name =
    *       ModelDeploymentMonitoringJobName.of(
@@ -3667,6 +3922,8 @@ public final void resumeModelDeploymentMonitoringJob(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ResumeModelDeploymentMonitoringJobRequest request =
    *       ResumeModelDeploymentMonitoringJobRequest.newBuilder()
@@ -3695,6 +3952,8 @@ public final void resumeModelDeploymentMonitoringJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
    *   ResumeModelDeploymentMonitoringJobRequest request =
    *       ResumeModelDeploymentMonitoringJobRequest.newBuilder()
@@ -3715,6 +3974,331 @@ public final void resumeModelDeploymentMonitoringJob(
     return stub.resumeModelDeploymentMonitoringJobCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Lists information about the supported locations for this service.
+   *
+   * 

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : jobServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       jobServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response = jobServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = jobServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = jobServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = jobServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = jobServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = jobServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = jobServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = jobServiceClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       jobServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + @Override public final void close() { stub.close(); @@ -4289,4 +4873,80 @@ protected ListModelDeploymentMonitoringJobsFixedSizeCollection createCollection( return new ListModelDeploymentMonitoringJobsFixedSizeCollection(pages, collectionSize); } } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceSettings.java index db8b847a0624..808098026299 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListCustomJobsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListDataLabelingJobsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListHyperparameterTuningJobsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListModelDeploymentMonitoringJobsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse; @@ -36,6 +37,15 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.aiplatform.v1beta1.stub.JobServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -60,6 +70,8 @@ *

For example, to set the total timeout of createCustomJob to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * JobServiceSettings.Builder jobServiceSettingsBuilder = JobServiceSettings.newBuilder();
  * jobServiceSettingsBuilder
  *     .createCustomJobSettings()
@@ -307,6 +319,33 @@ public UnaryCallSettings cancelDataLabeling
         .resumeModelDeploymentMonitoringJobSettings();
   }
 
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return ((JobServiceStubSettings) getStubSettings()).listLocationsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return ((JobServiceStubSettings) getStubSettings()).getLocationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return ((JobServiceStubSettings) getStubSettings()).setIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return ((JobServiceStubSettings) getStubSettings()).getIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return ((JobServiceStubSettings) getStubSettings()).testIamPermissionsSettings();
+  }
+
   public static final JobServiceSettings create(JobServiceStubSettings stub) throws IOException {
     return new JobServiceSettings.Builder(stub.toBuilder()).build();
   }
@@ -643,6 +682,34 @@ public UnaryCallSettings.Builder cancelCustomJobS
       return getStubSettingsBuilder().resumeModelDeploymentMonitoringJobSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return getStubSettingsBuilder().listLocationsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getStubSettingsBuilder().getLocationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return getStubSettingsBuilder().setIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getStubSettingsBuilder().getIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return getStubSettingsBuilder().testIamPermissionsSettings();
+    }
+
     @Override
     public JobServiceSettings build() throws IOException {
       return new JobServiceSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceClient.java
index dfe952c9d068..b2f4f970a863 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -29,7 +29,16 @@
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1beta1.stub.MetadataServiceStub;
 import com.google.cloud.aiplatform.v1beta1.stub.MetadataServiceStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.OperationsClient;
 import com.google.protobuf.Empty;
@@ -47,6 +56,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
  *   MetadataStoreName name = MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
  *   MetadataStore response = metadataServiceClient.getMetadataStore(name);
@@ -83,6 +94,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * MetadataServiceSettings metadataServiceSettings =
  *     MetadataServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -94,6 +107,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * MetadataServiceSettings metadataServiceSettings =
  *     MetadataServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * MetadataServiceClient metadataServiceClient =
@@ -127,7 +142,6 @@ public static final MetadataServiceClient create(MetadataServiceSettings setting
    * Constructs an instance of MetadataServiceClient, using the given stub for making calls. This is
    * for advanced usage - prefer using create(MetadataServiceSettings).
    */
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public static final MetadataServiceClient create(MetadataServiceStub stub) {
     return new MetadataServiceClient(stub);
   }
@@ -143,7 +157,6 @@ protected MetadataServiceClient(MetadataServiceSettings settings) throws IOExcep
     this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected MetadataServiceClient(MetadataServiceStub stub) {
     this.settings = null;
     this.stub = stub;
@@ -154,7 +167,6 @@ public final MetadataServiceSettings getSettings() {
     return settings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public MetadataServiceStub getStub() {
     return stub;
   }
@@ -174,6 +186,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   MetadataStore metadataStore = MetadataStore.newBuilder().build();
@@ -215,6 +229,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   MetadataStore metadataStore = MetadataStore.newBuilder().build();
@@ -255,6 +271,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   CreateMetadataStoreRequest request =
    *       CreateMetadataStoreRequest.newBuilder()
@@ -281,6 +299,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   CreateMetadataStoreRequest request =
    *       CreateMetadataStoreRequest.newBuilder()
@@ -308,6 +328,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   CreateMetadataStoreRequest request =
    *       CreateMetadataStoreRequest.newBuilder()
@@ -333,6 +355,8 @@ public final UnaryCallable createMetadata
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   MetadataStoreName name = MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
    *   MetadataStore response = metadataServiceClient.getMetadataStore(name);
@@ -356,6 +380,8 @@ public final MetadataStore getMetadataStore(MetadataStoreName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String name = MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
    *   MetadataStore response = metadataServiceClient.getMetadataStore(name);
@@ -378,6 +404,8 @@ public final MetadataStore getMetadataStore(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   GetMetadataStoreRequest request =
    *       GetMetadataStoreRequest.newBuilder()
@@ -402,6 +430,8 @@ public final MetadataStore getMetadataStore(GetMetadataStoreRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   GetMetadataStoreRequest request =
    *       GetMetadataStoreRequest.newBuilder()
@@ -426,6 +456,8 @@ public final UnaryCallable getMetadataSt
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (MetadataStore element : metadataServiceClient.listMetadataStores(parent).iterateAll()) {
@@ -453,6 +485,8 @@ public final ListMetadataStoresPagedResponse listMetadataStores(LocationName par
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (MetadataStore element : metadataServiceClient.listMetadataStores(parent).iterateAll()) {
@@ -478,6 +512,8 @@ public final ListMetadataStoresPagedResponse listMetadataStores(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ListMetadataStoresRequest request =
    *       ListMetadataStoresRequest.newBuilder()
@@ -506,6 +542,8 @@ public final ListMetadataStoresPagedResponse listMetadataStores(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ListMetadataStoresRequest request =
    *       ListMetadataStoresRequest.newBuilder()
@@ -534,6 +572,8 @@ public final ListMetadataStoresPagedResponse listMetadataStores(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ListMetadataStoresRequest request =
    *       ListMetadataStoresRequest.newBuilder()
@@ -544,7 +584,7 @@ public final ListMetadataStoresPagedResponse listMetadataStores(
    *   while (true) {
    *     ListMetadataStoresResponse response =
    *         metadataServiceClient.listMetadataStoresCallable().call(request);
-   *     for (MetadataStore element : response.getResponsesList()) {
+   *     for (MetadataStore element : response.getMetadataStoresList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -570,6 +610,8 @@ public final ListMetadataStoresPagedResponse listMetadataStores(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   MetadataStoreName name = MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
    *   metadataServiceClient.deleteMetadataStoreAsync(name).get();
@@ -597,6 +639,8 @@ public final ListMetadataStoresPagedResponse listMetadataStores(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String name = MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
    *   metadataServiceClient.deleteMetadataStoreAsync(name).get();
@@ -622,6 +666,8 @@ public final ListMetadataStoresPagedResponse listMetadataStores(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   DeleteMetadataStoreRequest request =
    *       DeleteMetadataStoreRequest.newBuilder()
@@ -649,6 +695,8 @@ public final ListMetadataStoresPagedResponse listMetadataStores(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   DeleteMetadataStoreRequest request =
    *       DeleteMetadataStoreRequest.newBuilder()
@@ -677,6 +725,8 @@ public final ListMetadataStoresPagedResponse listMetadataStores(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   DeleteMetadataStoreRequest request =
    *       DeleteMetadataStoreRequest.newBuilder()
@@ -702,6 +752,8 @@ public final UnaryCallable deleteMetadata
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   MetadataStoreName parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
@@ -740,6 +792,8 @@ public final Artifact createArtifact(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
@@ -777,6 +831,8 @@ public final Artifact createArtifact(String parent, Artifact artifact, String ar
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   CreateArtifactRequest request =
    *       CreateArtifactRequest.newBuilder()
@@ -803,6 +859,8 @@ public final Artifact createArtifact(CreateArtifactRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   CreateArtifactRequest request =
    *       CreateArtifactRequest.newBuilder()
@@ -829,6 +887,8 @@ public final UnaryCallable createArtifactCallab
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ArtifactName name =
    *       ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]");
@@ -853,6 +913,8 @@ public final Artifact getArtifact(ArtifactName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String name =
    *       ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]").toString();
@@ -876,6 +938,8 @@ public final Artifact getArtifact(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   GetArtifactRequest request =
    *       GetArtifactRequest.newBuilder()
@@ -901,6 +965,8 @@ public final Artifact getArtifact(GetArtifactRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   GetArtifactRequest request =
    *       GetArtifactRequest.newBuilder()
@@ -925,6 +991,8 @@ public final UnaryCallable getArtifactCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   MetadataStoreName parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
@@ -953,6 +1021,8 @@ public final ListArtifactsPagedResponse listArtifacts(MetadataStoreName parent)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
@@ -978,6 +1048,8 @@ public final ListArtifactsPagedResponse listArtifacts(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ListArtifactsRequest request =
    *       ListArtifactsRequest.newBuilder()
@@ -1007,6 +1079,8 @@ public final ListArtifactsPagedResponse listArtifacts(ListArtifactsRequest reque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ListArtifactsRequest request =
    *       ListArtifactsRequest.newBuilder()
@@ -1037,6 +1111,8 @@ public final ListArtifactsPagedResponse listArtifacts(ListArtifactsRequest reque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ListArtifactsRequest request =
    *       ListArtifactsRequest.newBuilder()
@@ -1049,7 +1125,7 @@ public final ListArtifactsPagedResponse listArtifacts(ListArtifactsRequest reque
    *   while (true) {
    *     ListArtifactsResponse response =
    *         metadataServiceClient.listArtifactsCallable().call(request);
-   *     for (Artifact element : response.getResponsesList()) {
+   *     for (Artifact element : response.getArtifactsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -1073,6 +1149,8 @@ public final UnaryCallable listArti
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   Artifact artifact = Artifact.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1101,6 +1179,8 @@ public final Artifact updateArtifact(Artifact artifact, FieldMask updateMask) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   UpdateArtifactRequest request =
    *       UpdateArtifactRequest.newBuilder()
@@ -1126,6 +1206,8 @@ public final Artifact updateArtifact(UpdateArtifactRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   UpdateArtifactRequest request =
    *       UpdateArtifactRequest.newBuilder()
@@ -1151,6 +1233,8 @@ public final UnaryCallable updateArtifactCallab
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ArtifactName name =
    *       ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]");
@@ -1176,6 +1260,8 @@ public final OperationFuture deleteArtifactAsync
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String name =
    *       ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]").toString();
@@ -1199,6 +1285,8 @@ public final OperationFuture deleteArtifactAsync
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   DeleteArtifactRequest request =
    *       DeleteArtifactRequest.newBuilder()
@@ -1226,6 +1314,8 @@ public final OperationFuture deleteArtifactAsync
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   DeleteArtifactRequest request =
    *       DeleteArtifactRequest.newBuilder()
@@ -1253,6 +1343,8 @@ public final OperationFuture deleteArtifactAsync
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   DeleteArtifactRequest request =
    *       DeleteArtifactRequest.newBuilder()
@@ -1279,6 +1371,8 @@ public final UnaryCallable deleteArtifactCalla
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   MetadataStoreName parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
@@ -1306,6 +1400,8 @@ public final OperationFuture pur
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
@@ -1330,6 +1426,8 @@ public final OperationFuture pur
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   PurgeArtifactsRequest request =
    *       PurgeArtifactsRequest.newBuilder()
@@ -1357,6 +1455,8 @@ public final OperationFuture pur
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   PurgeArtifactsRequest request =
    *       PurgeArtifactsRequest.newBuilder()
@@ -1385,6 +1485,8 @@ public final OperationFuture pur
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   PurgeArtifactsRequest request =
    *       PurgeArtifactsRequest.newBuilder()
@@ -1411,6 +1513,8 @@ public final UnaryCallable purgeArtifactsCalla
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   MetadataStoreName parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
@@ -1448,6 +1552,8 @@ public final Context createContext(MetadataStoreName parent, Context context, St
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
@@ -1485,6 +1591,8 @@ public final Context createContext(String parent, Context context, String contex
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   CreateContextRequest request =
    *       CreateContextRequest.newBuilder()
@@ -1511,6 +1619,8 @@ public final Context createContext(CreateContextRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   CreateContextRequest request =
    *       CreateContextRequest.newBuilder()
@@ -1536,6 +1646,8 @@ public final UnaryCallable createContextCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ContextName name = ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]");
    *   Context response = metadataServiceClient.getContext(name);
@@ -1559,6 +1671,8 @@ public final Context getContext(ContextName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String name =
    *       ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]").toString();
@@ -1582,6 +1696,8 @@ public final Context getContext(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   GetContextRequest request =
    *       GetContextRequest.newBuilder()
@@ -1607,6 +1723,8 @@ public final Context getContext(GetContextRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   GetContextRequest request =
    *       GetContextRequest.newBuilder()
@@ -1631,6 +1749,8 @@ public final UnaryCallable getContextCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   MetadataStoreName parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
@@ -1659,6 +1779,8 @@ public final ListContextsPagedResponse listContexts(MetadataStoreName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
@@ -1684,6 +1806,8 @@ public final ListContextsPagedResponse listContexts(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ListContextsRequest request =
    *       ListContextsRequest.newBuilder()
@@ -1713,6 +1837,8 @@ public final ListContextsPagedResponse listContexts(ListContextsRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ListContextsRequest request =
    *       ListContextsRequest.newBuilder()
@@ -1743,6 +1869,8 @@ public final ListContextsPagedResponse listContexts(ListContextsRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ListContextsRequest request =
    *       ListContextsRequest.newBuilder()
@@ -1754,7 +1882,7 @@ public final ListContextsPagedResponse listContexts(ListContextsRequest request)
    *           .build();
    *   while (true) {
    *     ListContextsResponse response = metadataServiceClient.listContextsCallable().call(request);
-   *     for (Context element : response.getResponsesList()) {
+   *     for (Context element : response.getContextsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -1778,6 +1906,8 @@ public final UnaryCallable listContex
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   Context context = Context.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1806,6 +1936,8 @@ public final Context updateContext(Context context, FieldMask updateMask) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   UpdateContextRequest request =
    *       UpdateContextRequest.newBuilder()
@@ -1831,6 +1963,8 @@ public final Context updateContext(UpdateContextRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   UpdateContextRequest request =
    *       UpdateContextRequest.newBuilder()
@@ -1855,6 +1989,8 @@ public final UnaryCallable updateContextCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ContextName name = ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]");
    *   metadataServiceClient.deleteContextAsync(name).get();
@@ -1879,6 +2015,8 @@ public final OperationFuture deleteContextAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String name =
    *       ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]").toString();
@@ -1902,6 +2040,8 @@ public final OperationFuture deleteContextAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   DeleteContextRequest request =
    *       DeleteContextRequest.newBuilder()
@@ -1930,6 +2070,8 @@ public final OperationFuture deleteContextAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   DeleteContextRequest request =
    *       DeleteContextRequest.newBuilder()
@@ -1958,6 +2100,8 @@ public final OperationFuture deleteContextAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   DeleteContextRequest request =
    *       DeleteContextRequest.newBuilder()
@@ -1985,6 +2129,8 @@ public final UnaryCallable deleteContextCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   MetadataStoreName parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
@@ -2012,6 +2158,8 @@ public final OperationFuture purge
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
@@ -2036,6 +2184,8 @@ public final OperationFuture purge
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   PurgeContextsRequest request =
    *       PurgeContextsRequest.newBuilder()
@@ -2063,6 +2213,8 @@ public final OperationFuture purge
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   PurgeContextsRequest request =
    *       PurgeContextsRequest.newBuilder()
@@ -2090,6 +2242,8 @@ public final OperationFuture purge
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   PurgeContextsRequest request =
    *       PurgeContextsRequest.newBuilder()
@@ -2117,6 +2271,8 @@ public final UnaryCallable purgeContextsCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ContextName context =
    *       ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]");
@@ -2157,6 +2313,8 @@ public final AddContextArtifactsAndExecutionsResponse addContextArtifactsAndExec
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String context =
    *       ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]").toString();
@@ -2197,6 +2355,8 @@ public final AddContextArtifactsAndExecutionsResponse addContextArtifactsAndExec
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   AddContextArtifactsAndExecutionsRequest request =
    *       AddContextArtifactsAndExecutionsRequest.newBuilder()
@@ -2227,6 +2387,8 @@ public final AddContextArtifactsAndExecutionsResponse addContextArtifactsAndExec
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   AddContextArtifactsAndExecutionsRequest request =
    *       AddContextArtifactsAndExecutionsRequest.newBuilder()
@@ -2259,6 +2421,8 @@ public final AddContextArtifactsAndExecutionsResponse addContextArtifactsAndExec
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ContextName context =
    *       ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]");
@@ -2294,6 +2458,8 @@ public final AddContextChildrenResponse addContextChildren(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String context =
    *       ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]").toString();
@@ -2329,6 +2495,8 @@ public final AddContextChildrenResponse addContextChildren(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   AddContextChildrenRequest request =
    *       AddContextChildrenRequest.newBuilder()
@@ -2358,6 +2526,8 @@ public final AddContextChildrenResponse addContextChildren(AddContextChildrenReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   AddContextChildrenRequest request =
    *       AddContextChildrenRequest.newBuilder()
@@ -2386,6 +2556,8 @@ public final AddContextChildrenResponse addContextChildren(AddContextChildrenReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ContextName context =
    *       ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]");
@@ -2416,6 +2588,8 @@ public final LineageSubgraph queryContextLineageSubgraph(ContextName context) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String context =
    *       ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]").toString();
@@ -2444,6 +2618,8 @@ public final LineageSubgraph queryContextLineageSubgraph(String context) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   QueryContextLineageSubgraphRequest request =
    *       QueryContextLineageSubgraphRequest.newBuilder()
@@ -2471,6 +2647,8 @@ public final LineageSubgraph queryContextLineageSubgraph(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   QueryContextLineageSubgraphRequest request =
    *       QueryContextLineageSubgraphRequest.newBuilder()
@@ -2497,6 +2675,8 @@ public final LineageSubgraph queryContextLineageSubgraph(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   MetadataStoreName parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
@@ -2535,6 +2715,8 @@ public final Execution createExecution(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
@@ -2572,6 +2754,8 @@ public final Execution createExecution(String parent, Execution execution, Strin
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   CreateExecutionRequest request =
    *       CreateExecutionRequest.newBuilder()
@@ -2598,6 +2782,8 @@ public final Execution createExecution(CreateExecutionRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   CreateExecutionRequest request =
    *       CreateExecutionRequest.newBuilder()
@@ -2624,6 +2810,8 @@ public final UnaryCallable createExecutionCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ExecutionName name =
    *       ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]");
@@ -2648,6 +2836,8 @@ public final Execution getExecution(ExecutionName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String name =
    *       ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]").toString();
@@ -2671,6 +2861,8 @@ public final Execution getExecution(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   GetExecutionRequest request =
    *       GetExecutionRequest.newBuilder()
@@ -2696,6 +2888,8 @@ public final Execution getExecution(GetExecutionRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   GetExecutionRequest request =
    *       GetExecutionRequest.newBuilder()
@@ -2721,6 +2915,8 @@ public final UnaryCallable getExecutionCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   MetadataStoreName parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
@@ -2749,6 +2945,8 @@ public final ListExecutionsPagedResponse listExecutions(MetadataStoreName parent
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
@@ -2774,6 +2972,8 @@ public final ListExecutionsPagedResponse listExecutions(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ListExecutionsRequest request =
    *       ListExecutionsRequest.newBuilder()
@@ -2803,6 +3003,8 @@ public final ListExecutionsPagedResponse listExecutions(ListExecutionsRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ListExecutionsRequest request =
    *       ListExecutionsRequest.newBuilder()
@@ -2833,6 +3035,8 @@ public final ListExecutionsPagedResponse listExecutions(ListExecutionsRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ListExecutionsRequest request =
    *       ListExecutionsRequest.newBuilder()
@@ -2845,7 +3049,7 @@ public final ListExecutionsPagedResponse listExecutions(ListExecutionsRequest re
    *   while (true) {
    *     ListExecutionsResponse response =
    *         metadataServiceClient.listExecutionsCallable().call(request);
-   *     for (Execution element : response.getResponsesList()) {
+   *     for (Execution element : response.getExecutionsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -2870,6 +3074,8 @@ public final ListExecutionsPagedResponse listExecutions(ListExecutionsRequest re
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   Execution execution = Execution.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -2901,6 +3107,8 @@ public final Execution updateExecution(Execution execution, FieldMask updateMask
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   UpdateExecutionRequest request =
    *       UpdateExecutionRequest.newBuilder()
@@ -2926,6 +3134,8 @@ public final Execution updateExecution(UpdateExecutionRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   UpdateExecutionRequest request =
    *       UpdateExecutionRequest.newBuilder()
@@ -2951,6 +3161,8 @@ public final UnaryCallable updateExecutionCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ExecutionName name =
    *       ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]");
@@ -2976,6 +3188,8 @@ public final OperationFuture deleteExecutionAsyn
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String name =
    *       ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]").toString();
@@ -2999,6 +3213,8 @@ public final OperationFuture deleteExecutionAsyn
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   DeleteExecutionRequest request =
    *       DeleteExecutionRequest.newBuilder()
@@ -3026,6 +3242,8 @@ public final OperationFuture deleteExecutionAsyn
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   DeleteExecutionRequest request =
    *       DeleteExecutionRequest.newBuilder()
@@ -3053,6 +3271,8 @@ public final OperationFuture deleteExecutionAsyn
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   DeleteExecutionRequest request =
    *       DeleteExecutionRequest.newBuilder()
@@ -3079,6 +3299,8 @@ public final UnaryCallable deleteExecutionCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   MetadataStoreName parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
@@ -3106,6 +3328,8 @@ public final UnaryCallable deleteExecutionCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
@@ -3130,6 +3354,8 @@ public final UnaryCallable deleteExecutionCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   PurgeExecutionsRequest request =
    *       PurgeExecutionsRequest.newBuilder()
@@ -3157,6 +3383,8 @@ public final UnaryCallable deleteExecutionCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   PurgeExecutionsRequest request =
    *       PurgeExecutionsRequest.newBuilder()
@@ -3185,6 +3413,8 @@ public final UnaryCallable deleteExecutionCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   PurgeExecutionsRequest request =
    *       PurgeExecutionsRequest.newBuilder()
@@ -3213,6 +3443,8 @@ public final UnaryCallable purgeExecutionsCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ExecutionName execution =
    *       ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]");
@@ -3247,6 +3479,8 @@ public final AddExecutionEventsResponse addExecutionEvents(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String execution =
    *       ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]").toString();
@@ -3277,6 +3511,8 @@ public final AddExecutionEventsResponse addExecutionEvents(String execution, Lis
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   AddExecutionEventsRequest request =
    *       AddExecutionEventsRequest.newBuilder()
@@ -3305,6 +3541,8 @@ public final AddExecutionEventsResponse addExecutionEvents(AddExecutionEventsReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   AddExecutionEventsRequest request =
    *       AddExecutionEventsRequest.newBuilder()
@@ -3333,6 +3571,8 @@ public final AddExecutionEventsResponse addExecutionEvents(AddExecutionEventsReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ExecutionName execution =
    *       ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]");
@@ -3361,6 +3601,8 @@ public final LineageSubgraph queryExecutionInputsAndOutputs(ExecutionName execut
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String execution =
    *       ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]").toString();
@@ -3387,6 +3629,8 @@ public final LineageSubgraph queryExecutionInputsAndOutputs(String execution) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   QueryExecutionInputsAndOutputsRequest request =
    *       QueryExecutionInputsAndOutputsRequest.newBuilder()
@@ -3414,6 +3658,8 @@ public final LineageSubgraph queryExecutionInputsAndOutputs(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   QueryExecutionInputsAndOutputsRequest request =
    *       QueryExecutionInputsAndOutputsRequest.newBuilder()
@@ -3440,6 +3686,8 @@ public final LineageSubgraph queryExecutionInputsAndOutputs(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   MetadataStoreName parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
@@ -3481,6 +3729,8 @@ public final MetadataSchema createMetadataSchema(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
@@ -3522,6 +3772,8 @@ public final MetadataSchema createMetadataSchema(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   CreateMetadataSchemaRequest request =
    *       CreateMetadataSchemaRequest.newBuilder()
@@ -3548,6 +3800,8 @@ public final MetadataSchema createMetadataSchema(CreateMetadataSchemaRequest req
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   CreateMetadataSchemaRequest request =
    *       CreateMetadataSchemaRequest.newBuilder()
@@ -3575,6 +3829,8 @@ public final MetadataSchema createMetadataSchema(CreateMetadataSchemaRequest req
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   MetadataSchemaName name =
    *       MetadataSchemaName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[METADATA_SCHEMA]");
@@ -3601,6 +3857,8 @@ public final MetadataSchema getMetadataSchema(MetadataSchemaName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String name =
    *       MetadataSchemaName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[METADATA_SCHEMA]")
@@ -3625,6 +3883,8 @@ public final MetadataSchema getMetadataSchema(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   GetMetadataSchemaRequest request =
    *       GetMetadataSchemaRequest.newBuilder()
@@ -3651,6 +3911,8 @@ public final MetadataSchema getMetadataSchema(GetMetadataSchemaRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   GetMetadataSchemaRequest request =
    *       GetMetadataSchemaRequest.newBuilder()
@@ -3677,6 +3939,8 @@ public final UnaryCallable getMetadata
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   MetadataStoreName parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
@@ -3706,6 +3970,8 @@ public final ListMetadataSchemasPagedResponse listMetadataSchemas(MetadataStoreN
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String parent =
    *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]").toString();
@@ -3733,6 +3999,8 @@ public final ListMetadataSchemasPagedResponse listMetadataSchemas(String parent)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ListMetadataSchemasRequest request =
    *       ListMetadataSchemasRequest.newBuilder()
@@ -3764,6 +4032,8 @@ public final ListMetadataSchemasPagedResponse listMetadataSchemas(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ListMetadataSchemasRequest request =
    *       ListMetadataSchemasRequest.newBuilder()
@@ -3794,6 +4064,8 @@ public final ListMetadataSchemasPagedResponse listMetadataSchemas(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ListMetadataSchemasRequest request =
    *       ListMetadataSchemasRequest.newBuilder()
@@ -3806,7 +4078,7 @@ public final ListMetadataSchemasPagedResponse listMetadataSchemas(
    *   while (true) {
    *     ListMetadataSchemasResponse response =
    *         metadataServiceClient.listMetadataSchemasCallable().call(request);
-   *     for (MetadataSchema element : response.getResponsesList()) {
+   *     for (MetadataSchema element : response.getMetadataSchemasList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -3832,6 +4104,8 @@ public final ListMetadataSchemasPagedResponse listMetadataSchemas(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   ArtifactName artifact =
    *       ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]");
@@ -3862,6 +4136,8 @@ public final LineageSubgraph queryArtifactLineageSubgraph(ArtifactName artifact)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   String artifact =
    *       ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]").toString();
@@ -3890,6 +4166,8 @@ public final LineageSubgraph queryArtifactLineageSubgraph(String artifact) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   QueryArtifactLineageSubgraphRequest request =
    *       QueryArtifactLineageSubgraphRequest.newBuilder()
@@ -3919,6 +4197,8 @@ public final LineageSubgraph queryArtifactLineageSubgraph(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
    *   QueryArtifactLineageSubgraphRequest request =
    *       QueryArtifactLineageSubgraphRequest.newBuilder()
@@ -3940,6 +4220,332 @@ public final LineageSubgraph queryArtifactLineageSubgraph(
     return stub.queryArtifactLineageSubgraphCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Lists information about the supported locations for this service.
+   *
+   * 

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : metadataServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       metadataServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         metadataServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = metadataServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = metadataServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = metadataServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = metadataServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = metadataServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = metadataServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = metadataServiceClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       metadataServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + @Override public final void close() { stub.close(); @@ -4360,4 +4966,80 @@ protected ListMetadataSchemasFixedSizeCollection createCollection( return new ListMetadataSchemasFixedSizeCollection(pages, collectionSize); } } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceSettings.java index dac0e5985e72..05c7c05f851f 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,6 +19,7 @@ import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListArtifactsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListContextsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListExecutionsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListMetadataSchemasPagedResponse; import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListMetadataStoresPagedResponse; @@ -35,6 +36,15 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.aiplatform.v1beta1.stub.MetadataServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -59,6 +69,8 @@ *

For example, to set the total timeout of getMetadataStore to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * MetadataServiceSettings.Builder metadataServiceSettingsBuilder =
  *     MetadataServiceSettings.newBuilder();
  * metadataServiceSettingsBuilder
@@ -302,6 +314,33 @@ public UnaryCallSettings getMetadataSc
     return ((MetadataServiceStubSettings) getStubSettings()).queryArtifactLineageSubgraphSettings();
   }
 
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return ((MetadataServiceStubSettings) getStubSettings()).listLocationsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return ((MetadataServiceStubSettings) getStubSettings()).getLocationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return ((MetadataServiceStubSettings) getStubSettings()).setIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return ((MetadataServiceStubSettings) getStubSettings()).getIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return ((MetadataServiceStubSettings) getStubSettings()).testIamPermissionsSettings();
+  }
+
   public static final MetadataServiceSettings create(MetadataServiceStubSettings stub)
       throws IOException {
     return new MetadataServiceSettings.Builder(stub.toBuilder()).build();
@@ -631,6 +670,34 @@ public UnaryCallSettings.Builder purgeExecuti
       return getStubSettingsBuilder().queryArtifactLineageSubgraphSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return getStubSettingsBuilder().listLocationsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getStubSettingsBuilder().getLocationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return getStubSettingsBuilder().setIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getStubSettingsBuilder().getIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return getStubSettingsBuilder().testIamPermissionsSettings();
+    }
+
     @Override
     public MetadataServiceSettings build() throws IOException {
       return new MetadataServiceSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceClient.java
index 4f2d554822ab..796848eb18da 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -29,7 +29,16 @@
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1beta1.stub.MigrationServiceStub;
 import com.google.cloud.aiplatform.v1beta1.stub.MigrationServiceStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.OperationsClient;
 import java.io.IOException;
@@ -46,12 +55,11 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
- *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- *   for (MigratableResource element :
- *       migrationServiceClient.searchMigratableResources(parent).iterateAll()) {
- *     // doThingsWith(element);
- *   }
+ *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ *   Location response = migrationServiceClient.getLocation(request);
  * }
  * }
* @@ -85,6 +93,8 @@ *

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * MigrationServiceSettings migrationServiceSettings =
  *     MigrationServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -96,6 +106,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * MigrationServiceSettings migrationServiceSettings =
  *     MigrationServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * MigrationServiceClient migrationServiceClient =
@@ -129,7 +141,6 @@ public static final MigrationServiceClient create(MigrationServiceSettings setti
    * Constructs an instance of MigrationServiceClient, using the given stub for making calls. This
    * is for advanced usage - prefer using create(MigrationServiceSettings).
    */
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public static final MigrationServiceClient create(MigrationServiceStub stub) {
     return new MigrationServiceClient(stub);
   }
@@ -145,7 +156,6 @@ protected MigrationServiceClient(MigrationServiceSettings settings) throws IOExc
     this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected MigrationServiceClient(MigrationServiceStub stub) {
     this.settings = null;
     this.stub = stub;
@@ -156,7 +166,6 @@ public final MigrationServiceSettings getSettings() {
     return settings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public MigrationServiceStub getStub() {
     return stub;
   }
@@ -177,6 +186,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (MigratableResource element :
@@ -208,6 +219,8 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (MigratableResource element :
@@ -236,6 +249,8 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(St
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
    *   SearchMigratableResourcesRequest request =
    *       SearchMigratableResourcesRequest.newBuilder()
@@ -267,6 +282,8 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
    *   SearchMigratableResourcesRequest request =
    *       SearchMigratableResourcesRequest.newBuilder()
@@ -298,6 +315,8 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
    *   SearchMigratableResourcesRequest request =
    *       SearchMigratableResourcesRequest.newBuilder()
@@ -309,7 +328,7 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
    *   while (true) {
    *     SearchMigratableResourcesResponse response =
    *         migrationServiceClient.searchMigratableResourcesCallable().call(request);
-   *     for (MigratableResource element : response.getResponsesList()) {
+   *     for (MigratableResource element : response.getMigratableResourcesList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -335,6 +354,8 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   List migrateResourceRequests = new ArrayList<>();
@@ -370,6 +391,8 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   List migrateResourceRequests = new ArrayList<>();
@@ -405,6 +428,8 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
    *   BatchMigrateResourcesRequest request =
    *       BatchMigrateResourcesRequest.newBuilder()
@@ -433,6 +458,8 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
    *   BatchMigrateResourcesRequest request =
    *       BatchMigrateResourcesRequest.newBuilder()
@@ -463,6 +490,8 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
    *   BatchMigrateResourcesRequest request =
    *       BatchMigrateResourcesRequest.newBuilder()
@@ -481,6 +510,332 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
     return stub.batchMigrateResourcesCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Lists information about the supported locations for this service.
+   *
+   * 

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : migrationServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       migrationServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         migrationServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = migrationServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = migrationServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = migrationServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = migrationServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = migrationServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = migrationServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = migrationServiceClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       migrationServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + @Override public final void close() { stub.close(); @@ -606,4 +961,80 @@ protected SearchMigratableResourcesFixedSizeCollection createCollection( return new SearchMigratableResourcesFixedSizeCollection(pages, collectionSize); } } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceSettings.java index 96edbe20d0ef..b7481032c786 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ package com.google.cloud.aiplatform.v1beta1; +import static com.google.cloud.aiplatform.v1beta1.MigrationServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.MigrationServiceClient.SearchMigratableResourcesPagedResponse; import com.google.api.core.ApiFunction; @@ -31,6 +32,15 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.aiplatform.v1beta1.stub.MigrationServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import java.io.IOException; import java.util.List; @@ -51,16 +61,18 @@ *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. * - *

For example, to set the total timeout of searchMigratableResources to 30 seconds: + *

For example, to set the total timeout of getLocation to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * MigrationServiceSettings.Builder migrationServiceSettingsBuilder =
  *     MigrationServiceSettings.newBuilder();
  * migrationServiceSettingsBuilder
- *     .searchMigratableResourcesSettings()
+ *     .getLocationSettings()
  *     .setRetrySettings(
  *         migrationServiceSettingsBuilder
- *             .searchMigratableResourcesSettings()
+ *             .getLocationSettings()
  *             .getRetrySettings()
  *             .toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
@@ -97,6 +109,33 @@ public class MigrationServiceSettings extends ClientSettings
+      listLocationsSettings() {
+    return ((MigrationServiceStubSettings) getStubSettings()).listLocationsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return ((MigrationServiceStubSettings) getStubSettings()).getLocationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return ((MigrationServiceStubSettings) getStubSettings()).setIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return ((MigrationServiceStubSettings) getStubSettings()).getIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return ((MigrationServiceStubSettings) getStubSettings()).testIamPermissionsSettings();
+  }
+
   public static final MigrationServiceSettings create(MigrationServiceStubSettings stub)
       throws IOException {
     return new MigrationServiceSettings.Builder(stub.toBuilder()).build();
@@ -218,6 +257,34 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().batchMigrateResourcesOperationSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return getStubSettingsBuilder().listLocationsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getStubSettingsBuilder().getLocationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return getStubSettingsBuilder().setIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getStubSettingsBuilder().getIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return getStubSettingsBuilder().testIamPermissionsSettings();
+    }
+
     @Override
     public MigrationServiceSettings build() throws IOException {
       return new MigrationServiceSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClient.java
index 5be91961e908..f173b892f2ed 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -29,7 +29,16 @@
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1beta1.stub.ModelServiceStub;
 import com.google.cloud.aiplatform.v1beta1.stub.ModelServiceStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.OperationsClient;
 import com.google.protobuf.Empty;
@@ -47,6 +56,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
  *   ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
  *   Model response = modelServiceClient.getModel(name);
@@ -82,6 +93,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * ModelServiceSettings modelServiceSettings =
  *     ModelServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -92,6 +105,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * ModelServiceSettings modelServiceSettings =
  *     ModelServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * ModelServiceClient modelServiceClient = ModelServiceClient.create(modelServiceSettings);
@@ -123,7 +138,6 @@ public static final ModelServiceClient create(ModelServiceSettings settings) thr
    * Constructs an instance of ModelServiceClient, using the given stub for making calls. This is
    * for advanced usage - prefer using create(ModelServiceSettings).
    */
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public static final ModelServiceClient create(ModelServiceStub stub) {
     return new ModelServiceClient(stub);
   }
@@ -139,7 +153,6 @@ protected ModelServiceClient(ModelServiceSettings settings) throws IOException {
     this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected ModelServiceClient(ModelServiceStub stub) {
     this.settings = null;
     this.stub = stub;
@@ -150,7 +163,6 @@ public final ModelServiceSettings getSettings() {
     return settings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public ModelServiceStub getStub() {
     return stub;
   }
@@ -170,6 +182,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Model model = Model.newBuilder().build();
@@ -199,6 +213,8 @@ public final OperationFuture
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Model model = Model.newBuilder().build();
@@ -225,6 +241,8 @@ public final OperationFuture
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   UploadModelRequest request =
    *       UploadModelRequest.newBuilder()
@@ -252,6 +270,8 @@ public final OperationFuture
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   UploadModelRequest request =
    *       UploadModelRequest.newBuilder()
@@ -280,6 +300,8 @@ public final OperationFuture
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   UploadModelRequest request =
    *       UploadModelRequest.newBuilder()
@@ -305,6 +327,8 @@ public final UnaryCallable uploadModelCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
    *   Model response = modelServiceClient.getModel(name);
@@ -313,6 +337,13 @@ public final UnaryCallable uploadModelCallable()
    *
    * @param name Required. The name of the Model resource. Format:
    *     `projects/{project}/locations/{location}/models/{model}`
+   *     

In order to retrieve a specific version of the model, also provide the version ID or + * version alias. Example: + * `projects/{project}/locations/{location}/models/{model}{@literal @}2` or + * `projects/{project}/locations/{location}/models/{model}{@literal @}golden` If no version ID + * or alias is specified, the "default" version will be returned. The "default" version alias + * is created for the first version of the model, and can be moved to other versions later on. + * There will be exactly one default version. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Model getModel(ModelName name) { @@ -328,6 +359,8 @@ public final Model getModel(ModelName name) { *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   String name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString();
    *   Model response = modelServiceClient.getModel(name);
@@ -336,6 +369,13 @@ public final Model getModel(ModelName name) {
    *
    * @param name Required. The name of the Model resource. Format:
    *     `projects/{project}/locations/{location}/models/{model}`
+   *     

In order to retrieve a specific version of the model, also provide the version ID or + * version alias. Example: + * `projects/{project}/locations/{location}/models/{model}{@literal @}2` or + * `projects/{project}/locations/{location}/models/{model}{@literal @}golden` If no version ID + * or alias is specified, the "default" version will be returned. The "default" version alias + * is created for the first version of the model, and can be moved to other versions later on. + * There will be exactly one default version. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Model getModel(String name) { @@ -350,6 +390,8 @@ public final Model getModel(String name) { *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   GetModelRequest request =
    *       GetModelRequest.newBuilder()
@@ -373,6 +415,8 @@ public final Model getModel(GetModelRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   GetModelRequest request =
    *       GetModelRequest.newBuilder()
@@ -395,6 +439,8 @@ public final UnaryCallable getModelCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Model element : modelServiceClient.listModels(parent).iterateAll()) {
@@ -420,6 +466,8 @@ public final ListModelsPagedResponse listModels(LocationName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Model element : modelServiceClient.listModels(parent).iterateAll()) {
@@ -444,6 +492,8 @@ public final ListModelsPagedResponse listModels(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ListModelsRequest request =
    *       ListModelsRequest.newBuilder()
@@ -473,6 +523,8 @@ public final ListModelsPagedResponse listModels(ListModelsRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ListModelsRequest request =
    *       ListModelsRequest.newBuilder()
@@ -501,6 +553,8 @@ public final UnaryCallable listModel
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ListModelsRequest request =
    *       ListModelsRequest.newBuilder()
@@ -512,7 +566,7 @@ public final UnaryCallable listModel
    *           .build();
    *   while (true) {
    *     ListModelsResponse response = modelServiceClient.listModelsCallable().call(request);
-   *     for (Model element : response.getResponsesList()) {
+   *     for (Model element : response.getModelsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -536,6 +590,8 @@ public final UnaryCallable listModelsCall
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
    *   for (Model element : modelServiceClient.listModelVersions(name).iterateAll()) {
@@ -562,6 +618,8 @@ public final ListModelVersionsPagedResponse listModelVersions(ModelName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   String name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString();
    *   for (Model element : modelServiceClient.listModelVersions(name).iterateAll()) {
@@ -585,6 +643,8 @@ public final ListModelVersionsPagedResponse listModelVersions(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ListModelVersionsRequest request =
    *       ListModelVersionsRequest.newBuilder()
@@ -614,6 +674,8 @@ public final ListModelVersionsPagedResponse listModelVersions(ListModelVersionsR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ListModelVersionsRequest request =
    *       ListModelVersionsRequest.newBuilder()
@@ -644,6 +706,8 @@ public final ListModelVersionsPagedResponse listModelVersions(ListModelVersionsR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ListModelVersionsRequest request =
    *       ListModelVersionsRequest.newBuilder()
@@ -656,7 +720,7 @@ public final ListModelVersionsPagedResponse listModelVersions(ListModelVersionsR
    *   while (true) {
    *     ListModelVersionsResponse response =
    *         modelServiceClient.listModelVersionsCallable().call(request);
-   *     for (Model element : response.getResponsesList()) {
+   *     for (Model element : response.getModelsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -681,6 +745,8 @@ public final ListModelVersionsPagedResponse listModelVersions(ListModelVersionsR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   Model model = Model.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -717,6 +783,8 @@ public final Model updateModel(Model model, FieldMask updateMask) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   UpdateModelRequest request =
    *       UpdateModelRequest.newBuilder()
@@ -741,6 +809,8 @@ public final Model updateModel(UpdateModelRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   UpdateModelRequest request =
    *       UpdateModelRequest.newBuilder()
@@ -757,6 +827,151 @@ public final UnaryCallable updateModelCallable() {
     return stub.updateModelCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Incrementally update the dataset used for an examples model.
+   *
+   * 

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ModelName model = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
+   *   UpdateExplanationDatasetResponse response =
+   *       modelServiceClient.updateExplanationDatasetAsync(model).get();
+   * }
+   * }
+ * + * @param model Required. The resource name of the Model to update. Format: + * `projects/{project}/locations/{location}/models/{model}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture< + UpdateExplanationDatasetResponse, UpdateExplanationDatasetOperationMetadata> + updateExplanationDatasetAsync(ModelName model) { + UpdateExplanationDatasetRequest request = + UpdateExplanationDatasetRequest.newBuilder() + .setModel(model == null ? null : model.toString()) + .build(); + return updateExplanationDatasetAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Incrementally update the dataset used for an examples model. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   String model = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString();
+   *   UpdateExplanationDatasetResponse response =
+   *       modelServiceClient.updateExplanationDatasetAsync(model).get();
+   * }
+   * }
+ * + * @param model Required. The resource name of the Model to update. Format: + * `projects/{project}/locations/{location}/models/{model}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture< + UpdateExplanationDatasetResponse, UpdateExplanationDatasetOperationMetadata> + updateExplanationDatasetAsync(String model) { + UpdateExplanationDatasetRequest request = + UpdateExplanationDatasetRequest.newBuilder().setModel(model).build(); + return updateExplanationDatasetAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Incrementally update the dataset used for an examples model. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   UpdateExplanationDatasetRequest request =
+   *       UpdateExplanationDatasetRequest.newBuilder()
+   *           .setModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+   *           .setExamples(Examples.newBuilder().build())
+   *           .build();
+   *   UpdateExplanationDatasetResponse response =
+   *       modelServiceClient.updateExplanationDatasetAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture< + UpdateExplanationDatasetResponse, UpdateExplanationDatasetOperationMetadata> + updateExplanationDatasetAsync(UpdateExplanationDatasetRequest request) { + return updateExplanationDatasetOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Incrementally update the dataset used for an examples model. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   UpdateExplanationDatasetRequest request =
+   *       UpdateExplanationDatasetRequest.newBuilder()
+   *           .setModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+   *           .setExamples(Examples.newBuilder().build())
+   *           .build();
+   *   OperationFuture
+   *       future =
+   *           modelServiceClient.updateExplanationDatasetOperationCallable().futureCall(request);
+   *   // Do something.
+   *   UpdateExplanationDatasetResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + UpdateExplanationDatasetRequest, + UpdateExplanationDatasetResponse, + UpdateExplanationDatasetOperationMetadata> + updateExplanationDatasetOperationCallable() { + return stub.updateExplanationDatasetOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Incrementally update the dataset used for an examples model. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   UpdateExplanationDatasetRequest request =
+   *       UpdateExplanationDatasetRequest.newBuilder()
+   *           .setModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+   *           .setExamples(Examples.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       modelServiceClient.updateExplanationDatasetCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateExplanationDatasetCallable() { + return stub.updateExplanationDatasetCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a Model. @@ -768,6 +983,8 @@ public final UnaryCallable updateModelCallable() { *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
    *   modelServiceClient.deleteModelAsync(name).get();
@@ -795,6 +1012,8 @@ public final OperationFuture deleteModelAsync(Mo
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   String name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString();
    *   modelServiceClient.deleteModelAsync(name).get();
@@ -821,6 +1040,8 @@ public final OperationFuture deleteModelAsync(St
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   DeleteModelRequest request =
    *       DeleteModelRequest.newBuilder()
@@ -849,6 +1070,8 @@ public final OperationFuture deleteModelAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   DeleteModelRequest request =
    *       DeleteModelRequest.newBuilder()
@@ -877,6 +1100,8 @@ public final OperationFuture deleteModelAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   DeleteModelRequest request =
    *       DeleteModelRequest.newBuilder()
@@ -904,6 +1129,8 @@ public final UnaryCallable deleteModelCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
    *   modelServiceClient.deleteModelVersionAsync(name).get();
@@ -936,6 +1163,8 @@ public final OperationFuture deleteModelVersionA
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   String name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString();
    *   modelServiceClient.deleteModelVersionAsync(name).get();
@@ -966,6 +1195,8 @@ public final OperationFuture deleteModelVersionA
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   DeleteModelVersionRequest request =
    *       DeleteModelVersionRequest.newBuilder()
@@ -995,6 +1226,8 @@ public final OperationFuture deleteModelVersionA
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   DeleteModelVersionRequest request =
    *       DeleteModelVersionRequest.newBuilder()
@@ -1024,6 +1257,8 @@ public final OperationFuture deleteModelVersionA
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   DeleteModelVersionRequest request =
    *       DeleteModelVersionRequest.newBuilder()
@@ -1047,6 +1282,8 @@ public final UnaryCallable deleteModelVers
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
    *   List versionAliases = new ArrayList<>();
@@ -1083,6 +1320,8 @@ public final Model mergeVersionAliases(ModelName name, List versionAlias
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   String name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString();
    *   List versionAliases = new ArrayList<>();
@@ -1119,6 +1358,8 @@ public final Model mergeVersionAliases(String name, List versionAliases)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   MergeVersionAliasesRequest request =
    *       MergeVersionAliasesRequest.newBuilder()
@@ -1143,6 +1384,8 @@ public final Model mergeVersionAliases(MergeVersionAliasesRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   MergeVersionAliasesRequest request =
    *       MergeVersionAliasesRequest.newBuilder()
@@ -1169,6 +1412,8 @@ public final UnaryCallable mergeVersionAliase
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
    *   ExportModelRequest.OutputConfig outputConfig =
@@ -1177,7 +1422,9 @@ public final UnaryCallable mergeVersionAliase
    * }
    * }
* - * @param name Required. The resource name of the Model to export. + * @param name Required. The resource name of the Model to export. The resource name may contain + * version id or version alias to specify the version, if no version is specified, the default + * version will be exported. * @param outputConfig Required. The desired output location and configuration. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1200,6 +1447,8 @@ public final OperationFuture *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   String name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString();
    *   ExportModelRequest.OutputConfig outputConfig =
@@ -1208,7 +1457,9 @@ public final OperationFuture
    * }
    * }
* - * @param name Required. The resource name of the Model to export. + * @param name Required. The resource name of the Model to export. The resource name may contain + * version id or version alias to specify the version, if no version is specified, the default + * version will be exported. * @param outputConfig Required. The desired output location and configuration. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1228,6 +1479,8 @@ public final OperationFuture *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ExportModelRequest request =
    *       ExportModelRequest.newBuilder()
@@ -1255,6 +1508,8 @@ public final OperationFuture
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ExportModelRequest request =
    *       ExportModelRequest.newBuilder()
@@ -1283,6 +1538,8 @@ public final OperationFuture
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ExportModelRequest request =
    *       ExportModelRequest.newBuilder()
@@ -1306,6 +1563,8 @@ public final UnaryCallable exportModelCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ModelName parent = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
    *   ModelEvaluation modelEvaluation = ModelEvaluation.newBuilder().build();
@@ -1335,6 +1594,8 @@ public final ModelEvaluation importModelEvaluation(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   String parent = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString();
    *   ModelEvaluation modelEvaluation = ModelEvaluation.newBuilder().build();
@@ -1364,6 +1625,8 @@ public final ModelEvaluation importModelEvaluation(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ImportModelEvaluationRequest request =
    *       ImportModelEvaluationRequest.newBuilder()
@@ -1388,6 +1651,8 @@ public final ModelEvaluation importModelEvaluation(ImportModelEvaluationRequest
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ImportModelEvaluationRequest request =
    *       ImportModelEvaluationRequest.newBuilder()
@@ -1413,6 +1678,8 @@ public final ModelEvaluation importModelEvaluation(ImportModelEvaluationRequest
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ModelEvaluationName name =
    *       ModelEvaluationName.of("[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]");
@@ -1439,6 +1706,8 @@ public final ModelEvaluation getModelEvaluation(ModelEvaluationName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   String name =
    *       ModelEvaluationName.of("[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]").toString();
@@ -1463,6 +1732,8 @@ public final ModelEvaluation getModelEvaluation(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   GetModelEvaluationRequest request =
    *       GetModelEvaluationRequest.newBuilder()
@@ -1488,6 +1759,8 @@ public final ModelEvaluation getModelEvaluation(GetModelEvaluationRequest reques
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   GetModelEvaluationRequest request =
    *       GetModelEvaluationRequest.newBuilder()
@@ -1514,6 +1787,8 @@ public final ModelEvaluation getModelEvaluation(GetModelEvaluationRequest reques
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ModelName parent = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
    *   for (ModelEvaluation element : modelServiceClient.listModelEvaluations(parent).iterateAll()) {
@@ -1541,6 +1816,8 @@ public final ListModelEvaluationsPagedResponse listModelEvaluations(ModelName pa
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   String parent = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString();
    *   for (ModelEvaluation element : modelServiceClient.listModelEvaluations(parent).iterateAll()) {
@@ -1566,6 +1843,8 @@ public final ListModelEvaluationsPagedResponse listModelEvaluations(String paren
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ListModelEvaluationsRequest request =
    *       ListModelEvaluationsRequest.newBuilder()
@@ -1597,6 +1876,8 @@ public final ListModelEvaluationsPagedResponse listModelEvaluations(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ListModelEvaluationsRequest request =
    *       ListModelEvaluationsRequest.newBuilder()
@@ -1627,6 +1908,8 @@ public final ListModelEvaluationsPagedResponse listModelEvaluations(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ListModelEvaluationsRequest request =
    *       ListModelEvaluationsRequest.newBuilder()
@@ -1639,7 +1922,7 @@ public final ListModelEvaluationsPagedResponse listModelEvaluations(
    *   while (true) {
    *     ListModelEvaluationsResponse response =
    *         modelServiceClient.listModelEvaluationsCallable().call(request);
-   *     for (ModelEvaluation element : response.getResponsesList()) {
+   *     for (ModelEvaluation element : response.getModelEvaluationsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -1664,6 +1947,8 @@ public final ListModelEvaluationsPagedResponse listModelEvaluations(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ModelEvaluationSliceName name =
    *       ModelEvaluationSliceName.of(
@@ -1691,6 +1976,8 @@ public final ModelEvaluationSlice getModelEvaluationSlice(ModelEvaluationSliceNa
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   String name =
    *       ModelEvaluationSliceName.of(
@@ -1717,6 +2004,8 @@ public final ModelEvaluationSlice getModelEvaluationSlice(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   GetModelEvaluationSliceRequest request =
    *       GetModelEvaluationSliceRequest.newBuilder()
@@ -1744,6 +2033,8 @@ public final ModelEvaluationSlice getModelEvaluationSlice(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   GetModelEvaluationSliceRequest request =
    *       GetModelEvaluationSliceRequest.newBuilder()
@@ -1771,6 +2062,8 @@ public final ModelEvaluationSlice getModelEvaluationSlice(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ModelEvaluationName parent =
    *       ModelEvaluationName.of("[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]");
@@ -1802,6 +2095,8 @@ public final ListModelEvaluationSlicesPagedResponse listModelEvaluationSlices(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   String parent =
    *       ModelEvaluationName.of("[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]").toString();
@@ -1830,6 +2125,8 @@ public final ListModelEvaluationSlicesPagedResponse listModelEvaluationSlices(St
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ListModelEvaluationSlicesRequest request =
    *       ListModelEvaluationSlicesRequest.newBuilder()
@@ -1863,6 +2160,8 @@ public final ListModelEvaluationSlicesPagedResponse listModelEvaluationSlices(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ListModelEvaluationSlicesRequest request =
    *       ListModelEvaluationSlicesRequest.newBuilder()
@@ -1896,6 +2195,8 @@ public final ListModelEvaluationSlicesPagedResponse listModelEvaluationSlices(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
    *   ListModelEvaluationSlicesRequest request =
    *       ListModelEvaluationSlicesRequest.newBuilder()
@@ -1910,7 +2211,7 @@ public final ListModelEvaluationSlicesPagedResponse listModelEvaluationSlices(
    *   while (true) {
    *     ListModelEvaluationSlicesResponse response =
    *         modelServiceClient.listModelEvaluationSlicesCallable().call(request);
-   *     for (ModelEvaluationSlice element : response.getResponsesList()) {
+   *     for (ModelEvaluationSlice element : response.getModelEvaluationSlicesList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -1928,6 +2229,331 @@ public final ListModelEvaluationSlicesPagedResponse listModelEvaluationSlices(
     return stub.listModelEvaluationSlicesCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Lists information about the supported locations for this service.
+   *
+   * 

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : modelServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       modelServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response = modelServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = modelServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = modelServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = modelServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = modelServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = modelServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = modelServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = modelServiceClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       modelServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + @Override public final void close() { stub.close(); @@ -2287,4 +2913,80 @@ protected ListModelEvaluationSlicesFixedSizeCollection createCollection( return new ListModelEvaluationSlicesFixedSizeCollection(pages, collectionSize); } } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceSettings.java index db763fa10dc0..b06af4b83ade 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ package com.google.cloud.aiplatform.v1beta1; +import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationSlicesPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelVersionsPagedResponse; @@ -34,6 +35,15 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.aiplatform.v1beta1.stub.ModelServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -58,6 +68,8 @@ *

For example, to set the total timeout of getModel to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * ModelServiceSettings.Builder modelServiceSettingsBuilder = ModelServiceSettings.newBuilder();
  * modelServiceSettingsBuilder
  *     .getModelSettings()
@@ -110,6 +122,22 @@ public UnaryCallSettings updateModelSettings() {
     return ((ModelServiceStubSettings) getStubSettings()).updateModelSettings();
   }
 
+  /** Returns the object with the settings used for calls to updateExplanationDataset. */
+  public UnaryCallSettings
+      updateExplanationDatasetSettings() {
+    return ((ModelServiceStubSettings) getStubSettings()).updateExplanationDatasetSettings();
+  }
+
+  /** Returns the object with the settings used for calls to updateExplanationDataset. */
+  public OperationCallSettings<
+          UpdateExplanationDatasetRequest,
+          UpdateExplanationDatasetResponse,
+          UpdateExplanationDatasetOperationMetadata>
+      updateExplanationDatasetOperationSettings() {
+    return ((ModelServiceStubSettings) getStubSettings())
+        .updateExplanationDatasetOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to deleteModel. */
   public UnaryCallSettings deleteModelSettings() {
     return ((ModelServiceStubSettings) getStubSettings()).deleteModelSettings();
@@ -185,6 +213,33 @@ public UnaryCallSettings exportModelSettings() {
     return ((ModelServiceStubSettings) getStubSettings()).listModelEvaluationSlicesSettings();
   }
 
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return ((ModelServiceStubSettings) getStubSettings()).listLocationsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return ((ModelServiceStubSettings) getStubSettings()).getLocationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return ((ModelServiceStubSettings) getStubSettings()).setIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return ((ModelServiceStubSettings) getStubSettings()).getIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return ((ModelServiceStubSettings) getStubSettings()).testIamPermissionsSettings();
+  }
+
   public static final ModelServiceSettings create(ModelServiceStubSettings stub)
       throws IOException {
     return new ModelServiceSettings.Builder(stub.toBuilder()).build();
@@ -317,6 +372,21 @@ public UnaryCallSettings.Builder updateModelSettings(
       return getStubSettingsBuilder().updateModelSettings();
     }
 
+    /** Returns the builder for the settings used for calls to updateExplanationDataset. */
+    public UnaryCallSettings.Builder
+        updateExplanationDatasetSettings() {
+      return getStubSettingsBuilder().updateExplanationDatasetSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to updateExplanationDataset. */
+    public OperationCallSettings.Builder<
+            UpdateExplanationDatasetRequest,
+            UpdateExplanationDatasetResponse,
+            UpdateExplanationDatasetOperationMetadata>
+        updateExplanationDatasetOperationSettings() {
+      return getStubSettingsBuilder().updateExplanationDatasetOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to deleteModel. */
     public UnaryCallSettings.Builder deleteModelSettings() {
       return getStubSettingsBuilder().deleteModelSettings();
@@ -394,6 +464,34 @@ public UnaryCallSettings.Builder exportModelSetti
       return getStubSettingsBuilder().listModelEvaluationSlicesSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return getStubSettingsBuilder().listLocationsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getStubSettingsBuilder().getLocationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return getStubSettingsBuilder().setIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getStubSettingsBuilder().getIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return getStubSettingsBuilder().testIamPermissionsSettings();
+    }
+
     @Override
     public ModelServiceSettings build() throws IOException {
       return new ModelServiceSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClient.java
index 1073862e5134..797d3a67e303 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -29,7 +29,16 @@
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1beta1.stub.PipelineServiceStub;
 import com.google.cloud.aiplatform.v1beta1.stub.PipelineServiceStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.OperationsClient;
 import com.google.protobuf.Empty;
@@ -48,6 +57,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
  *   TrainingPipeline trainingPipeline = TrainingPipeline.newBuilder().build();
@@ -86,6 +97,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * PipelineServiceSettings pipelineServiceSettings =
  *     PipelineServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -97,6 +110,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * PipelineServiceSettings pipelineServiceSettings =
  *     PipelineServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * PipelineServiceClient pipelineServiceClient =
@@ -130,7 +145,6 @@ public static final PipelineServiceClient create(PipelineServiceSettings setting
    * Constructs an instance of PipelineServiceClient, using the given stub for making calls. This is
    * for advanced usage - prefer using create(PipelineServiceSettings).
    */
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public static final PipelineServiceClient create(PipelineServiceStub stub) {
     return new PipelineServiceClient(stub);
   }
@@ -146,7 +160,6 @@ protected PipelineServiceClient(PipelineServiceSettings settings) throws IOExcep
     this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected PipelineServiceClient(PipelineServiceStub stub) {
     this.settings = null;
     this.stub = stub;
@@ -157,7 +170,6 @@ public final PipelineServiceSettings getSettings() {
     return settings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public PipelineServiceStub getStub() {
     return stub;
   }
@@ -177,6 +189,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   TrainingPipeline trainingPipeline = TrainingPipeline.newBuilder().build();
@@ -207,6 +221,8 @@ public final TrainingPipeline createTrainingPipeline(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   TrainingPipeline trainingPipeline = TrainingPipeline.newBuilder().build();
@@ -237,6 +253,8 @@ public final TrainingPipeline createTrainingPipeline(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   CreateTrainingPipelineRequest request =
    *       CreateTrainingPipelineRequest.newBuilder()
@@ -261,6 +279,8 @@ public final TrainingPipeline createTrainingPipeline(CreateTrainingPipelineReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   CreateTrainingPipelineRequest request =
    *       CreateTrainingPipelineRequest.newBuilder()
@@ -286,6 +306,8 @@ public final TrainingPipeline createTrainingPipeline(CreateTrainingPipelineReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   TrainingPipelineName name =
    *       TrainingPipelineName.of("[PROJECT]", "[LOCATION]", "[TRAINING_PIPELINE]");
@@ -312,6 +334,8 @@ public final TrainingPipeline getTrainingPipeline(TrainingPipelineName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   String name =
    *       TrainingPipelineName.of("[PROJECT]", "[LOCATION]", "[TRAINING_PIPELINE]").toString();
@@ -336,6 +360,8 @@ public final TrainingPipeline getTrainingPipeline(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   GetTrainingPipelineRequest request =
    *       GetTrainingPipelineRequest.newBuilder()
@@ -361,6 +387,8 @@ public final TrainingPipeline getTrainingPipeline(GetTrainingPipelineRequest req
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   GetTrainingPipelineRequest request =
    *       GetTrainingPipelineRequest.newBuilder()
@@ -387,6 +415,8 @@ public final TrainingPipeline getTrainingPipeline(GetTrainingPipelineRequest req
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (TrainingPipeline element :
@@ -415,6 +445,8 @@ public final ListTrainingPipelinesPagedResponse listTrainingPipelines(LocationNa
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (TrainingPipeline element :
@@ -441,6 +473,8 @@ public final ListTrainingPipelinesPagedResponse listTrainingPipelines(String par
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   ListTrainingPipelinesRequest request =
    *       ListTrainingPipelinesRequest.newBuilder()
@@ -472,6 +506,8 @@ public final ListTrainingPipelinesPagedResponse listTrainingPipelines(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   ListTrainingPipelinesRequest request =
    *       ListTrainingPipelinesRequest.newBuilder()
@@ -502,6 +538,8 @@ public final ListTrainingPipelinesPagedResponse listTrainingPipelines(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   ListTrainingPipelinesRequest request =
    *       ListTrainingPipelinesRequest.newBuilder()
@@ -514,7 +552,7 @@ public final ListTrainingPipelinesPagedResponse listTrainingPipelines(
    *   while (true) {
    *     ListTrainingPipelinesResponse response =
    *         pipelineServiceClient.listTrainingPipelinesCallable().call(request);
-   *     for (TrainingPipeline element : response.getResponsesList()) {
+   *     for (TrainingPipeline element : response.getTrainingPipelinesList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -539,6 +577,8 @@ public final ListTrainingPipelinesPagedResponse listTrainingPipelines(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   TrainingPipelineName name =
    *       TrainingPipelineName.of("[PROJECT]", "[LOCATION]", "[TRAINING_PIPELINE]");
@@ -566,6 +606,8 @@ public final OperationFuture deleteTrainingPipel
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   String name =
    *       TrainingPipelineName.of("[PROJECT]", "[LOCATION]", "[TRAINING_PIPELINE]").toString();
@@ -591,6 +633,8 @@ public final OperationFuture deleteTrainingPipel
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   DeleteTrainingPipelineRequest request =
    *       DeleteTrainingPipelineRequest.newBuilder()
@@ -617,6 +661,8 @@ public final OperationFuture deleteTrainingPipel
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   DeleteTrainingPipelineRequest request =
    *       DeleteTrainingPipelineRequest.newBuilder()
@@ -643,6 +689,8 @@ public final OperationFuture deleteTrainingPipel
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   DeleteTrainingPipelineRequest request =
    *       DeleteTrainingPipelineRequest.newBuilder()
@@ -679,6 +727,8 @@ public final OperationFuture deleteTrainingPipel
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   TrainingPipelineName name =
    *       TrainingPipelineName.of("[PROJECT]", "[LOCATION]", "[TRAINING_PIPELINE]");
@@ -715,6 +765,8 @@ public final void cancelTrainingPipeline(TrainingPipelineName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   String name =
    *       TrainingPipelineName.of("[PROJECT]", "[LOCATION]", "[TRAINING_PIPELINE]").toString();
@@ -749,6 +801,8 @@ public final void cancelTrainingPipeline(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   CancelTrainingPipelineRequest request =
    *       CancelTrainingPipelineRequest.newBuilder()
@@ -784,6 +838,8 @@ public final void cancelTrainingPipeline(CancelTrainingPipelineRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   CancelTrainingPipelineRequest request =
    *       CancelTrainingPipelineRequest.newBuilder()
@@ -810,6 +866,8 @@ public final void cancelTrainingPipeline(CancelTrainingPipelineRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   PipelineJob pipelineJob = PipelineJob.newBuilder().build();
@@ -845,6 +903,8 @@ public final PipelineJob createPipelineJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   PipelineJob pipelineJob = PipelineJob.newBuilder().build();
@@ -880,6 +940,8 @@ public final PipelineJob createPipelineJob(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   CreatePipelineJobRequest request =
    *       CreatePipelineJobRequest.newBuilder()
@@ -905,6 +967,8 @@ public final PipelineJob createPipelineJob(CreatePipelineJobRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   CreatePipelineJobRequest request =
    *       CreatePipelineJobRequest.newBuilder()
@@ -930,6 +994,8 @@ public final UnaryCallable createPipeline
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   PipelineJobName name = PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]");
    *   PipelineJob response = pipelineServiceClient.getPipelineJob(name);
@@ -953,6 +1019,8 @@ public final PipelineJob getPipelineJob(PipelineJobName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   String name = PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]").toString();
    *   PipelineJob response = pipelineServiceClient.getPipelineJob(name);
@@ -975,6 +1043,8 @@ public final PipelineJob getPipelineJob(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   GetPipelineJobRequest request =
    *       GetPipelineJobRequest.newBuilder()
@@ -998,6 +1068,8 @@ public final PipelineJob getPipelineJob(GetPipelineJobRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   GetPipelineJobRequest request =
    *       GetPipelineJobRequest.newBuilder()
@@ -1021,6 +1093,8 @@ public final UnaryCallable getPipelineJobCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (PipelineJob element : pipelineServiceClient.listPipelineJobs(parent).iterateAll()) {
@@ -1048,6 +1122,8 @@ public final ListPipelineJobsPagedResponse listPipelineJobs(LocationName parent)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (PipelineJob element : pipelineServiceClient.listPipelineJobs(parent).iterateAll()) {
@@ -1073,6 +1149,8 @@ public final ListPipelineJobsPagedResponse listPipelineJobs(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   ListPipelineJobsRequest request =
    *       ListPipelineJobsRequest.newBuilder()
@@ -1102,6 +1180,8 @@ public final ListPipelineJobsPagedResponse listPipelineJobs(ListPipelineJobsRequ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   ListPipelineJobsRequest request =
    *       ListPipelineJobsRequest.newBuilder()
@@ -1132,6 +1212,8 @@ public final ListPipelineJobsPagedResponse listPipelineJobs(ListPipelineJobsRequ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   ListPipelineJobsRequest request =
    *       ListPipelineJobsRequest.newBuilder()
@@ -1144,7 +1226,7 @@ public final ListPipelineJobsPagedResponse listPipelineJobs(ListPipelineJobsRequ
    *   while (true) {
    *     ListPipelineJobsResponse response =
    *         pipelineServiceClient.listPipelineJobsCallable().call(request);
-   *     for (PipelineJob element : response.getResponsesList()) {
+   *     for (PipelineJob element : response.getPipelineJobsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -1169,6 +1251,8 @@ public final ListPipelineJobsPagedResponse listPipelineJobs(ListPipelineJobsRequ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   PipelineJobName name = PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]");
    *   pipelineServiceClient.deletePipelineJobAsync(name).get();
@@ -1195,6 +1279,8 @@ public final OperationFuture deletePipelineJobAs
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   String name = PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]").toString();
    *   pipelineServiceClient.deletePipelineJobAsync(name).get();
@@ -1217,6 +1303,8 @@ public final OperationFuture deletePipelineJobAs
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   DeletePipelineJobRequest request =
    *       DeletePipelineJobRequest.newBuilder()
@@ -1241,6 +1329,8 @@ public final OperationFuture deletePipelineJobAs
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   DeletePipelineJobRequest request =
    *       DeletePipelineJobRequest.newBuilder()
@@ -1265,6 +1355,8 @@ public final OperationFuture deletePipelineJobAs
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   DeletePipelineJobRequest request =
    *       DeletePipelineJobRequest.newBuilder()
@@ -1296,6 +1388,8 @@ public final UnaryCallable deletePipelineJo
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   PipelineJobName name = PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]");
    *   pipelineServiceClient.cancelPipelineJob(name);
@@ -1329,6 +1423,8 @@ public final void cancelPipelineJob(PipelineJobName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   String name = PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]").toString();
    *   pipelineServiceClient.cancelPipelineJob(name);
@@ -1359,6 +1455,8 @@ public final void cancelPipelineJob(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   CancelPipelineJobRequest request =
    *       CancelPipelineJobRequest.newBuilder()
@@ -1390,6 +1488,8 @@ public final void cancelPipelineJob(CancelPipelineJobRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
    *   CancelPipelineJobRequest request =
    *       CancelPipelineJobRequest.newBuilder()
@@ -1406,6 +1506,332 @@ public final UnaryCallable cancelPipelineJobCal
     return stub.cancelPipelineJobCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Lists information about the supported locations for this service.
+   *
+   * 

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : pipelineServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       pipelineServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         pipelineServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = pipelineServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = pipelineServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = pipelineServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = pipelineServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = pipelineServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = pipelineServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = pipelineServiceClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       pipelineServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + @Override public final void close() { stub.close(); @@ -1596,4 +2022,80 @@ protected ListPipelineJobsFixedSizeCollection createCollection( return new ListPipelineJobsFixedSizeCollection(pages, collectionSize); } } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceSettings.java index 8579c5b78727..76b92512d0f9 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ package com.google.cloud.aiplatform.v1beta1; +import static com.google.cloud.aiplatform.v1beta1.PipelineServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.PipelineServiceClient.ListPipelineJobsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.PipelineServiceClient.ListTrainingPipelinesPagedResponse; @@ -32,6 +33,15 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.aiplatform.v1beta1.stub.PipelineServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -56,6 +66,8 @@ *

For example, to set the total timeout of createTrainingPipeline to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * PipelineServiceSettings.Builder pipelineServiceSettingsBuilder =
  *     PipelineServiceSettings.newBuilder();
  * pipelineServiceSettingsBuilder
@@ -146,6 +158,33 @@ public UnaryCallSettings cancelPipelineJobSetti
     return ((PipelineServiceStubSettings) getStubSettings()).cancelPipelineJobSettings();
   }
 
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return ((PipelineServiceStubSettings) getStubSettings()).listLocationsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return ((PipelineServiceStubSettings) getStubSettings()).getLocationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return ((PipelineServiceStubSettings) getStubSettings()).setIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return ((PipelineServiceStubSettings) getStubSettings()).getIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return ((PipelineServiceStubSettings) getStubSettings()).testIamPermissionsSettings();
+  }
+
   public static final PipelineServiceSettings create(PipelineServiceStubSettings stub)
       throws IOException {
     return new PipelineServiceSettings.Builder(stub.toBuilder()).build();
@@ -318,6 +357,34 @@ public UnaryCallSettings.Builder cancelPipeline
       return getStubSettingsBuilder().cancelPipelineJobSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return getStubSettingsBuilder().listLocationsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getStubSettingsBuilder().getLocationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return getStubSettingsBuilder().setIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getStubSettingsBuilder().getIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return getStubSettingsBuilder().testIamPermissionsSettings();
+    }
+
     @Override
     public PipelineServiceSettings build() throws IOException {
       return new PipelineServiceSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClient.java
index eddcf805fc9c..fce7d7f1394c 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,11 +17,27 @@
 package com.google.cloud.aiplatform.v1beta1;
 
 import com.google.api.HttpBody;
+import com.google.api.core.ApiFuture;
+import com.google.api.core.ApiFutures;
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.paging.AbstractFixedSizeCollection;
+import com.google.api.gax.paging.AbstractPage;
+import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1beta1.stub.PredictionServiceStub;
 import com.google.cloud.aiplatform.v1beta1.stub.PredictionServiceStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.protobuf.Value;
 import java.io.IOException;
 import java.util.List;
@@ -36,10 +52,12 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
  *   EndpointName endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
  *   List instances = new ArrayList<>();
- *   Value parameters = Value.newBuilder().build();
+ *   Value parameters = Value.newBuilder().setBoolValue(true).build();
  *   PredictResponse response = predictionServiceClient.predict(endpoint, instances, parameters);
  * }
  * }
@@ -74,6 +92,8 @@ *

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * PredictionServiceSettings predictionServiceSettings =
  *     PredictionServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -85,6 +105,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * PredictionServiceSettings predictionServiceSettings =
  *     PredictionServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * PredictionServiceClient predictionServiceClient =
@@ -117,7 +139,6 @@ public static final PredictionServiceClient create(PredictionServiceSettings set
    * Constructs an instance of PredictionServiceClient, using the given stub for making calls. This
    * is for advanced usage - prefer using create(PredictionServiceSettings).
    */
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public static final PredictionServiceClient create(PredictionServiceStub stub) {
     return new PredictionServiceClient(stub);
   }
@@ -132,7 +153,6 @@ protected PredictionServiceClient(PredictionServiceSettings settings) throws IOE
     this.stub = ((PredictionServiceStubSettings) settings.getStubSettings()).createStub();
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected PredictionServiceClient(PredictionServiceStub stub) {
     this.settings = null;
     this.stub = stub;
@@ -142,7 +162,6 @@ public final PredictionServiceSettings getSettings() {
     return settings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public PredictionServiceStub getStub() {
     return stub;
   }
@@ -154,10 +173,12 @@ public PredictionServiceStub getStub() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    *   EndpointName endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
    *   List instances = new ArrayList<>();
-   *   Value parameters = Value.newBuilder().build();
+   *   Value parameters = Value.newBuilder().setBoolValue(true).build();
    *   PredictResponse response = predictionServiceClient.predict(endpoint, instances, parameters);
    * }
    * }
@@ -197,10 +218,12 @@ public final PredictResponse predict( *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    *   String endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString();
    *   List instances = new ArrayList<>();
-   *   Value parameters = Value.newBuilder().build();
+   *   Value parameters = Value.newBuilder().setBoolValue(true).build();
    *   PredictResponse response = predictionServiceClient.predict(endpoint, instances, parameters);
    * }
    * }
@@ -239,12 +262,14 @@ public final PredictResponse predict(String endpoint, List instances, Val *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    *   PredictRequest request =
    *       PredictRequest.newBuilder()
    *           .setEndpoint(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString())
    *           .addAllInstances(new ArrayList())
-   *           .setParameters(Value.newBuilder().build())
+   *           .setParameters(Value.newBuilder().setBoolValue(true).build())
    *           .build();
    *   PredictResponse response = predictionServiceClient.predict(request);
    * }
@@ -264,12 +289,14 @@ public final PredictResponse predict(PredictRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    *   PredictRequest request =
    *       PredictRequest.newBuilder()
    *           .setEndpoint(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString())
    *           .addAllInstances(new ArrayList())
-   *           .setParameters(Value.newBuilder().build())
+   *           .setParameters(Value.newBuilder().setBoolValue(true).build())
    *           .build();
    *   ApiFuture future =
    *       predictionServiceClient.predictCallable().futureCall(request);
@@ -302,6 +329,8 @@ public final UnaryCallable predictCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    *   EndpointName endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
    *   HttpBody httpBody = HttpBody.newBuilder().build();
@@ -354,6 +383,8 @@ public final HttpBody rawPredict(EndpointName endpoint, HttpBody httpBody) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    *   String endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString();
    *   HttpBody httpBody = HttpBody.newBuilder().build();
@@ -403,6 +434,8 @@ public final HttpBody rawPredict(String endpoint, HttpBody httpBody) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    *   RawPredictRequest request =
    *       RawPredictRequest.newBuilder()
@@ -440,6 +473,8 @@ public final HttpBody rawPredict(RawPredictRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    *   RawPredictRequest request =
    *       RawPredictRequest.newBuilder()
@@ -471,10 +506,12 @@ public final UnaryCallable rawPredictCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    *   EndpointName endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
    *   List instances = new ArrayList<>();
-   *   Value parameters = Value.newBuilder().build();
+   *   Value parameters = Value.newBuilder().setBoolValue(true).build();
    *   String deployedModelId = "deployedModelId-1817547906";
    *   ExplainResponse response =
    *       predictionServiceClient.explain(endpoint, instances, parameters, deployedModelId);
@@ -528,10 +565,12 @@ public final ExplainResponse explain(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    *   String endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString();
    *   List instances = new ArrayList<>();
-   *   Value parameters = Value.newBuilder().build();
+   *   Value parameters = Value.newBuilder().setBoolValue(true).build();
    *   String deployedModelId = "deployedModelId-1817547906";
    *   ExplainResponse response =
    *       predictionServiceClient.explain(endpoint, instances, parameters, deployedModelId);
@@ -585,12 +624,14 @@ public final ExplainResponse explain(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    *   ExplainRequest request =
    *       ExplainRequest.newBuilder()
    *           .setEndpoint(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString())
    *           .addAllInstances(new ArrayList())
-   *           .setParameters(Value.newBuilder().build())
+   *           .setParameters(Value.newBuilder().setBoolValue(true).build())
    *           .setExplanationSpecOverride(ExplanationSpecOverride.newBuilder().build())
    *           .setDeployedModelId("deployedModelId-1817547906")
    *           .build();
@@ -620,12 +661,14 @@ public final ExplainResponse explain(ExplainRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
    *   ExplainRequest request =
    *       ExplainRequest.newBuilder()
    *           .setEndpoint(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString())
    *           .addAllInstances(new ArrayList())
-   *           .setParameters(Value.newBuilder().build())
+   *           .setParameters(Value.newBuilder().setBoolValue(true).build())
    *           .setExplanationSpecOverride(ExplanationSpecOverride.newBuilder().build())
    *           .setDeployedModelId("deployedModelId-1817547906")
    *           .build();
@@ -640,6 +683,333 @@ public final UnaryCallable explainCallable() {
     return stub.explainCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Lists information about the supported locations for this service.
+   *
+   * 

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : predictionServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       predictionServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         predictionServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = predictionServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       predictionServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = predictionServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = predictionServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = predictionServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = predictionServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = predictionServiceClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       predictionServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + @Override public final void close() { stub.close(); @@ -669,4 +1039,80 @@ public void shutdownNow() { public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { return stub.awaitTermination(duration, unit); } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceSettings.java index 051c67260cf1..4fe54e6530b9 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,8 @@ package com.google.cloud.aiplatform.v1beta1; +import static com.google.cloud.aiplatform.v1beta1.PredictionServiceClient.ListLocationsPagedResponse; + import com.google.api.HttpBody; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -25,9 +27,19 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.aiplatform.v1beta1.stub.PredictionServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import java.io.IOException; import java.util.List; import javax.annotation.Generated; @@ -50,6 +62,8 @@ *

For example, to set the total timeout of predict to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * PredictionServiceSettings.Builder predictionServiceSettingsBuilder =
  *     PredictionServiceSettings.newBuilder();
  * predictionServiceSettingsBuilder
@@ -83,6 +97,33 @@ public UnaryCallSettings explainSettings() {
     return ((PredictionServiceStubSettings) getStubSettings()).explainSettings();
   }
 
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return ((PredictionServiceStubSettings) getStubSettings()).listLocationsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return ((PredictionServiceStubSettings) getStubSettings()).getLocationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return ((PredictionServiceStubSettings) getStubSettings()).setIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return ((PredictionServiceStubSettings) getStubSettings()).getIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return ((PredictionServiceStubSettings) getStubSettings()).testIamPermissionsSettings();
+  }
+
   public static final PredictionServiceSettings create(PredictionServiceStubSettings stub)
       throws IOException {
     return new PredictionServiceSettings.Builder(stub.toBuilder()).build();
@@ -195,6 +236,34 @@ public UnaryCallSettings.Builder explainSetting
       return getStubSettingsBuilder().explainSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return getStubSettingsBuilder().listLocationsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getStubSettingsBuilder().getLocationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return getStubSettingsBuilder().setIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getStubSettingsBuilder().getIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return getStubSettingsBuilder().testIamPermissionsSettings();
+    }
+
     @Override
     public PredictionServiceSettings build() throws IOException {
       return new PredictionServiceSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceClient.java
index f6aa95f022d0..fb246dcdd6b0 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -29,7 +29,16 @@
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1beta1.stub.SpecialistPoolServiceStub;
 import com.google.cloud.aiplatform.v1beta1.stub.SpecialistPoolServiceStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.OperationsClient;
 import com.google.protobuf.Empty;
@@ -51,6 +60,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (SpecialistPoolServiceClient specialistPoolServiceClient =
  *     SpecialistPoolServiceClient.create()) {
  *   SpecialistPoolName name =
@@ -89,6 +100,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SpecialistPoolServiceSettings specialistPoolServiceSettings =
  *     SpecialistPoolServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -100,6 +113,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SpecialistPoolServiceSettings specialistPoolServiceSettings =
  *     SpecialistPoolServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * SpecialistPoolServiceClient specialistPoolServiceClient =
@@ -133,7 +148,6 @@ public static final SpecialistPoolServiceClient create(SpecialistPoolServiceSett
    * Constructs an instance of SpecialistPoolServiceClient, using the given stub for making calls.
    * This is for advanced usage - prefer using create(SpecialistPoolServiceSettings).
    */
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public static final SpecialistPoolServiceClient create(SpecialistPoolServiceStub stub) {
     return new SpecialistPoolServiceClient(stub);
   }
@@ -149,7 +163,6 @@ protected SpecialistPoolServiceClient(SpecialistPoolServiceSettings settings) th
     this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected SpecialistPoolServiceClient(SpecialistPoolServiceStub stub) {
     this.settings = null;
     this.stub = stub;
@@ -160,7 +173,6 @@ public final SpecialistPoolServiceSettings getSettings() {
     return settings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public SpecialistPoolServiceStub getStub() {
     return stub;
   }
@@ -180,6 +192,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -211,6 +225,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
@@ -242,6 +258,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   CreateSpecialistPoolRequest request =
@@ -269,6 +287,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   CreateSpecialistPoolRequest request =
@@ -296,6 +316,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   CreateSpecialistPoolRequest request =
@@ -322,6 +344,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   SpecialistPoolName name =
@@ -349,6 +373,8 @@ public final SpecialistPool getSpecialistPool(SpecialistPoolName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   String name =
@@ -373,6 +399,8 @@ public final SpecialistPool getSpecialistPool(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   GetSpecialistPoolRequest request =
@@ -398,6 +426,8 @@ public final SpecialistPool getSpecialistPool(GetSpecialistPoolRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   GetSpecialistPoolRequest request =
@@ -423,6 +453,8 @@ public final UnaryCallable getSpeciali
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -452,6 +484,8 @@ public final ListSpecialistPoolsPagedResponse listSpecialistPools(LocationName p
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
@@ -479,6 +513,8 @@ public final ListSpecialistPoolsPagedResponse listSpecialistPools(String parent)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   ListSpecialistPoolsRequest request =
@@ -510,6 +546,8 @@ public final ListSpecialistPoolsPagedResponse listSpecialistPools(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   ListSpecialistPoolsRequest request =
@@ -540,6 +578,8 @@ public final ListSpecialistPoolsPagedResponse listSpecialistPools(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   ListSpecialistPoolsRequest request =
@@ -552,7 +592,7 @@ public final ListSpecialistPoolsPagedResponse listSpecialistPools(
    *   while (true) {
    *     ListSpecialistPoolsResponse response =
    *         specialistPoolServiceClient.listSpecialistPoolsCallable().call(request);
-   *     for (SpecialistPool element : response.getResponsesList()) {
+   *     for (SpecialistPool element : response.getSpecialistPoolsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -577,6 +617,8 @@ public final ListSpecialistPoolsPagedResponse listSpecialistPools(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   SpecialistPoolName name =
@@ -605,6 +647,8 @@ public final OperationFuture deleteSpecialistPoo
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   String name =
@@ -631,6 +675,8 @@ public final OperationFuture deleteSpecialistPoo
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   DeleteSpecialistPoolRequest request =
@@ -658,6 +704,8 @@ public final OperationFuture deleteSpecialistPoo
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   DeleteSpecialistPoolRequest request =
@@ -685,6 +733,8 @@ public final OperationFuture deleteSpecialistPoo
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   DeleteSpecialistPoolRequest request =
@@ -712,6 +762,8 @@ public final OperationFuture deleteSpecialistPoo
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   SpecialistPool specialistPool = SpecialistPool.newBuilder().build();
@@ -742,6 +794,8 @@ public final OperationFuture deleteSpecialistPoo
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   UpdateSpecialistPoolRequest request =
@@ -769,6 +823,8 @@ public final OperationFuture deleteSpecialistPoo
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   UpdateSpecialistPoolRequest request =
@@ -796,6 +852,8 @@ public final OperationFuture deleteSpecialistPoo
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SpecialistPoolServiceClient specialistPoolServiceClient =
    *     SpecialistPoolServiceClient.create()) {
    *   UpdateSpecialistPoolRequest request =
@@ -815,6 +873,346 @@ public final OperationFuture deleteSpecialistPoo
     return stub.updateSpecialistPoolCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Lists information about the supported locations for this service.
+   *
+   * 

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (SpecialistPoolServiceClient specialistPoolServiceClient =
+   *     SpecialistPoolServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : specialistPoolServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (SpecialistPoolServiceClient specialistPoolServiceClient =
+   *     SpecialistPoolServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       specialistPoolServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (SpecialistPoolServiceClient specialistPoolServiceClient =
+   *     SpecialistPoolServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         specialistPoolServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (SpecialistPoolServiceClient specialistPoolServiceClient =
+   *     SpecialistPoolServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = specialistPoolServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (SpecialistPoolServiceClient specialistPoolServiceClient =
+   *     SpecialistPoolServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       specialistPoolServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (SpecialistPoolServiceClient specialistPoolServiceClient =
+   *     SpecialistPoolServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = specialistPoolServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (SpecialistPoolServiceClient specialistPoolServiceClient =
+   *     SpecialistPoolServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       specialistPoolServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (SpecialistPoolServiceClient specialistPoolServiceClient =
+   *     SpecialistPoolServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = specialistPoolServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (SpecialistPoolServiceClient specialistPoolServiceClient =
+   *     SpecialistPoolServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       specialistPoolServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (SpecialistPoolServiceClient specialistPoolServiceClient =
+   *     SpecialistPoolServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = specialistPoolServiceClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (SpecialistPoolServiceClient specialistPoolServiceClient =
+   *     SpecialistPoolServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       specialistPoolServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + @Override public final void close() { stub.close(); @@ -928,4 +1326,80 @@ protected ListSpecialistPoolsFixedSizeCollection createCollection( return new ListSpecialistPoolsFixedSizeCollection(pages, collectionSize); } } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceSettings.java index a540e87c3991..2d71b695f9fe 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ package com.google.cloud.aiplatform.v1beta1; +import static com.google.cloud.aiplatform.v1beta1.SpecialistPoolServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.SpecialistPoolServiceClient.ListSpecialistPoolsPagedResponse; import com.google.api.core.ApiFunction; @@ -31,6 +32,15 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.aiplatform.v1beta1.stub.SpecialistPoolServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -55,6 +65,8 @@ *

For example, to set the total timeout of getSpecialistPool to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SpecialistPoolServiceSettings.Builder specialistPoolServiceSettingsBuilder =
  *     SpecialistPoolServiceSettings.newBuilder();
  * specialistPoolServiceSettingsBuilder
@@ -124,6 +136,33 @@ public UnaryCallSettings updateSpecialis
         .updateSpecialistPoolOperationSettings();
   }
 
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return ((SpecialistPoolServiceStubSettings) getStubSettings()).listLocationsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return ((SpecialistPoolServiceStubSettings) getStubSettings()).getLocationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return ((SpecialistPoolServiceStubSettings) getStubSettings()).setIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return ((SpecialistPoolServiceStubSettings) getStubSettings()).getIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return ((SpecialistPoolServiceStubSettings) getStubSettings()).testIamPermissionsSettings();
+  }
+
   public static final SpecialistPoolServiceSettings create(SpecialistPoolServiceStubSettings stub)
       throws IOException {
     return new SpecialistPoolServiceSettings.Builder(stub.toBuilder()).build();
@@ -276,6 +315,34 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().updateSpecialistPoolOperationSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return getStubSettingsBuilder().listLocationsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getStubSettingsBuilder().getLocationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return getStubSettingsBuilder().setIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getStubSettingsBuilder().getIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return getStubSettingsBuilder().testIamPermissionsSettings();
+    }
+
     @Override
     public SpecialistPoolServiceSettings build() throws IOException {
       return new SpecialistPoolServiceSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceClient.java
index 70dcd27ae110..1005a9987093 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -30,7 +30,16 @@
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1beta1.stub.TensorboardServiceStub;
 import com.google.cloud.aiplatform.v1beta1.stub.TensorboardServiceStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.OperationsClient;
 import com.google.protobuf.Empty;
@@ -48,6 +57,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
  *   TensorboardName name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
  *   Tensorboard response = tensorboardServiceClient.getTensorboard(name);
@@ -84,6 +95,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * TensorboardServiceSettings tensorboardServiceSettings =
  *     TensorboardServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -95,6 +108,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * TensorboardServiceSettings tensorboardServiceSettings =
  *     TensorboardServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * TensorboardServiceClient tensorboardServiceClient =
@@ -128,7 +143,6 @@ public static final TensorboardServiceClient create(TensorboardServiceSettings s
    * Constructs an instance of TensorboardServiceClient, using the given stub for making calls. This
    * is for advanced usage - prefer using create(TensorboardServiceSettings).
    */
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public static final TensorboardServiceClient create(TensorboardServiceStub stub) {
     return new TensorboardServiceClient(stub);
   }
@@ -144,7 +158,6 @@ protected TensorboardServiceClient(TensorboardServiceSettings settings) throws I
     this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected TensorboardServiceClient(TensorboardServiceStub stub) {
     this.settings = null;
     this.stub = stub;
@@ -155,7 +168,6 @@ public final TensorboardServiceSettings getSettings() {
     return settings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public TensorboardServiceStub getStub() {
     return stub;
   }
@@ -175,6 +187,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardName parent = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
    *   Tensorboard tensorboard = Tensorboard.newBuilder().build();
@@ -205,6 +219,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String parent = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString();
    *   Tensorboard tensorboard = Tensorboard.newBuilder().build();
@@ -232,6 +248,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   CreateTensorboardRequest request =
    *       CreateTensorboardRequest.newBuilder()
@@ -257,6 +275,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   CreateTensorboardRequest request =
    *       CreateTensorboardRequest.newBuilder()
@@ -283,6 +303,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   CreateTensorboardRequest request =
    *       CreateTensorboardRequest.newBuilder()
@@ -307,6 +329,8 @@ public final UnaryCallable createTensorboar
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardName name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
    *   Tensorboard response = tensorboardServiceClient.getTensorboard(name);
@@ -330,6 +354,8 @@ public final Tensorboard getTensorboard(TensorboardName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString();
    *   Tensorboard response = tensorboardServiceClient.getTensorboard(name);
@@ -352,6 +378,8 @@ public final Tensorboard getTensorboard(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   GetTensorboardRequest request =
    *       GetTensorboardRequest.newBuilder()
@@ -375,6 +403,8 @@ public final Tensorboard getTensorboard(GetTensorboardRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   GetTensorboardRequest request =
    *       GetTensorboardRequest.newBuilder()
@@ -398,6 +428,8 @@ public final UnaryCallable getTensorboardCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   Tensorboard tensorboard = Tensorboard.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -432,6 +464,8 @@ public final UnaryCallable getTensorboardCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   UpdateTensorboardRequest request =
    *       UpdateTensorboardRequest.newBuilder()
@@ -457,6 +491,8 @@ public final UnaryCallable getTensorboardCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   UpdateTensorboardRequest request =
    *       UpdateTensorboardRequest.newBuilder()
@@ -483,6 +519,8 @@ public final UnaryCallable getTensorboardCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   UpdateTensorboardRequest request =
    *       UpdateTensorboardRequest.newBuilder()
@@ -507,6 +545,8 @@ public final UnaryCallable updateTensorboar
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Tensorboard element : tensorboardServiceClient.listTensorboards(parent).iterateAll()) {
@@ -534,6 +574,8 @@ public final ListTensorboardsPagedResponse listTensorboards(LocationName parent)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Tensorboard element : tensorboardServiceClient.listTensorboards(parent).iterateAll()) {
@@ -559,6 +601,8 @@ public final ListTensorboardsPagedResponse listTensorboards(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ListTensorboardsRequest request =
    *       ListTensorboardsRequest.newBuilder()
@@ -589,6 +633,8 @@ public final ListTensorboardsPagedResponse listTensorboards(ListTensorboardsRequ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ListTensorboardsRequest request =
    *       ListTensorboardsRequest.newBuilder()
@@ -620,6 +666,8 @@ public final ListTensorboardsPagedResponse listTensorboards(ListTensorboardsRequ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ListTensorboardsRequest request =
    *       ListTensorboardsRequest.newBuilder()
@@ -633,7 +681,7 @@ public final ListTensorboardsPagedResponse listTensorboards(ListTensorboardsRequ
    *   while (true) {
    *     ListTensorboardsResponse response =
    *         tensorboardServiceClient.listTensorboardsCallable().call(request);
-   *     for (Tensorboard element : response.getResponsesList()) {
+   *     for (Tensorboard element : response.getTensorboardsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -658,6 +706,8 @@ public final ListTensorboardsPagedResponse listTensorboards(ListTensorboardsRequ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardName name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
    *   tensorboardServiceClient.deleteTensorboardAsync(name).get();
@@ -684,6 +734,8 @@ public final OperationFuture deleteTensorboardAs
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString();
    *   tensorboardServiceClient.deleteTensorboardAsync(name).get();
@@ -706,6 +758,8 @@ public final OperationFuture deleteTensorboardAs
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   DeleteTensorboardRequest request =
    *       DeleteTensorboardRequest.newBuilder()
@@ -730,6 +784,8 @@ public final OperationFuture deleteTensorboardAs
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   DeleteTensorboardRequest request =
    *       DeleteTensorboardRequest.newBuilder()
@@ -754,6 +810,8 @@ public final OperationFuture deleteTensorboardAs
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   DeleteTensorboardRequest request =
    *       DeleteTensorboardRequest.newBuilder()
@@ -777,6 +835,8 @@ public final UnaryCallable deleteTensorboar
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardExperimentName parent =
    *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
@@ -817,6 +877,8 @@ public final TensorboardExperiment createTensorboardExperiment(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String parent =
    *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
@@ -856,6 +918,8 @@ public final TensorboardExperiment createTensorboardExperiment(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   CreateTensorboardExperimentRequest request =
    *       CreateTensorboardExperimentRequest.newBuilder()
@@ -886,6 +950,8 @@ public final TensorboardExperiment createTensorboardExperiment(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   CreateTensorboardExperimentRequest request =
    *       CreateTensorboardExperimentRequest.newBuilder()
@@ -915,6 +981,8 @@ public final TensorboardExperiment createTensorboardExperiment(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardExperimentName name =
    *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
@@ -941,6 +1009,8 @@ public final TensorboardExperiment getTensorboardExperiment(TensorboardExperimen
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String name =
    *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
@@ -966,6 +1036,8 @@ public final TensorboardExperiment getTensorboardExperiment(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   GetTensorboardExperimentRequest request =
    *       GetTensorboardExperimentRequest.newBuilder()
@@ -993,6 +1065,8 @@ public final TensorboardExperiment getTensorboardExperiment(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   GetTensorboardExperimentRequest request =
    *       GetTensorboardExperimentRequest.newBuilder()
@@ -1020,6 +1094,8 @@ public final TensorboardExperiment getTensorboardExperiment(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardExperiment tensorboardExperiment = TensorboardExperiment.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1055,6 +1131,8 @@ public final TensorboardExperiment updateTensorboardExperiment(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   UpdateTensorboardExperimentRequest request =
    *       UpdateTensorboardExperimentRequest.newBuilder()
@@ -1081,6 +1159,8 @@ public final TensorboardExperiment updateTensorboardExperiment(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   UpdateTensorboardExperimentRequest request =
    *       UpdateTensorboardExperimentRequest.newBuilder()
@@ -1106,6 +1186,8 @@ public final TensorboardExperiment updateTensorboardExperiment(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardName parent = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
    *   for (TensorboardExperiment element :
@@ -1135,6 +1217,8 @@ public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String parent = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString();
    *   for (TensorboardExperiment element :
@@ -1161,6 +1245,8 @@ public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ListTensorboardExperimentsRequest request =
    *       ListTensorboardExperimentsRequest.newBuilder()
@@ -1193,6 +1279,8 @@ public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ListTensorboardExperimentsRequest request =
    *       ListTensorboardExperimentsRequest.newBuilder()
@@ -1225,6 +1313,8 @@ public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ListTensorboardExperimentsRequest request =
    *       ListTensorboardExperimentsRequest.newBuilder()
@@ -1238,7 +1328,7 @@ public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments(
    *   while (true) {
    *     ListTensorboardExperimentsResponse response =
    *         tensorboardServiceClient.listTensorboardExperimentsCallable().call(request);
-   *     for (TensorboardExperiment element : response.getResponsesList()) {
+   *     for (TensorboardExperiment element : response.getTensorboardExperimentsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -1263,6 +1353,8 @@ public final ListTensorboardExperimentsPagedResponse listTensorboardExperiments(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardExperimentName name =
    *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
@@ -1290,6 +1382,8 @@ public final OperationFuture deleteTensorboardEx
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String name =
    *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
@@ -1316,6 +1410,8 @@ public final OperationFuture deleteTensorboardEx
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   DeleteTensorboardExperimentRequest request =
    *       DeleteTensorboardExperimentRequest.newBuilder()
@@ -1343,6 +1439,8 @@ public final OperationFuture deleteTensorboardEx
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   DeleteTensorboardExperimentRequest request =
    *       DeleteTensorboardExperimentRequest.newBuilder()
@@ -1372,6 +1470,8 @@ public final OperationFuture deleteTensorboardEx
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   DeleteTensorboardExperimentRequest request =
    *       DeleteTensorboardExperimentRequest.newBuilder()
@@ -1399,6 +1499,8 @@ public final OperationFuture deleteTensorboardEx
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardRunName parent =
    *       TensorboardRunName.of(
@@ -1437,6 +1539,8 @@ public final TensorboardRun createTensorboardRun(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String parent =
    *       TensorboardRunName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
@@ -1475,6 +1579,8 @@ public final TensorboardRun createTensorboardRun(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   CreateTensorboardRunRequest request =
    *       CreateTensorboardRunRequest.newBuilder()
@@ -1503,6 +1609,8 @@ public final TensorboardRun createTensorboardRun(CreateTensorboardRunRequest req
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   CreateTensorboardRunRequest request =
    *       CreateTensorboardRunRequest.newBuilder()
@@ -1532,6 +1640,8 @@ public final TensorboardRun createTensorboardRun(CreateTensorboardRunRequest req
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardExperimentName parent =
    *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
@@ -1566,6 +1676,8 @@ public final BatchCreateTensorboardRunsResponse batchCreateTensorboardRuns(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String parent =
    *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
@@ -1601,6 +1713,8 @@ public final BatchCreateTensorboardRunsResponse batchCreateTensorboardRuns(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   BatchCreateTensorboardRunsRequest request =
    *       BatchCreateTensorboardRunsRequest.newBuilder()
@@ -1630,6 +1744,8 @@ public final BatchCreateTensorboardRunsResponse batchCreateTensorboardRuns(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   BatchCreateTensorboardRunsRequest request =
    *       BatchCreateTensorboardRunsRequest.newBuilder()
@@ -1658,6 +1774,8 @@ public final BatchCreateTensorboardRunsResponse batchCreateTensorboardRuns(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardRunName name =
    *       TensorboardRunName.of(
@@ -1685,6 +1803,8 @@ public final TensorboardRun getTensorboardRun(TensorboardRunName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String name =
    *       TensorboardRunName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
@@ -1709,6 +1829,8 @@ public final TensorboardRun getTensorboardRun(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   GetTensorboardRunRequest request =
    *       GetTensorboardRunRequest.newBuilder()
@@ -1735,6 +1857,8 @@ public final TensorboardRun getTensorboardRun(GetTensorboardRunRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   GetTensorboardRunRequest request =
    *       GetTensorboardRunRequest.newBuilder()
@@ -1761,6 +1885,8 @@ public final UnaryCallable getTensorbo
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardRun tensorboardRun = TensorboardRun.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1796,6 +1922,8 @@ public final TensorboardRun updateTensorboardRun(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   UpdateTensorboardRunRequest request =
    *       UpdateTensorboardRunRequest.newBuilder()
@@ -1820,6 +1948,8 @@ public final TensorboardRun updateTensorboardRun(UpdateTensorboardRunRequest req
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   UpdateTensorboardRunRequest request =
    *       UpdateTensorboardRunRequest.newBuilder()
@@ -1845,6 +1975,8 @@ public final TensorboardRun updateTensorboardRun(UpdateTensorboardRunRequest req
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardExperimentName parent =
    *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
@@ -1876,6 +2008,8 @@ public final ListTensorboardRunsPagedResponse listTensorboardRuns(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String parent =
    *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
@@ -1905,6 +2039,8 @@ public final ListTensorboardRunsPagedResponse listTensorboardRuns(String parent)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ListTensorboardRunsRequest request =
    *       ListTensorboardRunsRequest.newBuilder()
@@ -1940,6 +2076,8 @@ public final ListTensorboardRunsPagedResponse listTensorboardRuns(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ListTensorboardRunsRequest request =
    *       ListTensorboardRunsRequest.newBuilder()
@@ -1974,6 +2112,8 @@ public final ListTensorboardRunsPagedResponse listTensorboardRuns(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ListTensorboardRunsRequest request =
    *       ListTensorboardRunsRequest.newBuilder()
@@ -1990,7 +2130,7 @@ public final ListTensorboardRunsPagedResponse listTensorboardRuns(
    *   while (true) {
    *     ListTensorboardRunsResponse response =
    *         tensorboardServiceClient.listTensorboardRunsCallable().call(request);
-   *     for (TensorboardRun element : response.getResponsesList()) {
+   *     for (TensorboardRun element : response.getTensorboardRunsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -2015,6 +2155,8 @@ public final ListTensorboardRunsPagedResponse listTensorboardRuns(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardRunName name =
    *       TensorboardRunName.of(
@@ -2043,6 +2185,8 @@ public final OperationFuture deleteTensorboardRu
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String name =
    *       TensorboardRunName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
@@ -2069,6 +2213,8 @@ public final OperationFuture deleteTensorboardRu
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   DeleteTensorboardRunRequest request =
    *       DeleteTensorboardRunRequest.newBuilder()
@@ -2096,6 +2242,8 @@ public final OperationFuture deleteTensorboardRu
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   DeleteTensorboardRunRequest request =
    *       DeleteTensorboardRunRequest.newBuilder()
@@ -2123,6 +2271,8 @@ public final OperationFuture deleteTensorboardRu
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   DeleteTensorboardRunRequest request =
    *       DeleteTensorboardRunRequest.newBuilder()
@@ -2150,6 +2300,8 @@ public final OperationFuture deleteTensorboardRu
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardExperimentName parent =
    *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
@@ -2186,6 +2338,8 @@ public final BatchCreateTensorboardTimeSeriesResponse batchCreateTensorboardTime
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String parent =
    *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
@@ -2223,6 +2377,8 @@ public final BatchCreateTensorboardTimeSeriesResponse batchCreateTensorboardTime
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   BatchCreateTensorboardTimeSeriesRequest request =
    *       BatchCreateTensorboardTimeSeriesRequest.newBuilder()
@@ -2252,6 +2408,8 @@ public final BatchCreateTensorboardTimeSeriesResponse batchCreateTensorboardTime
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   BatchCreateTensorboardTimeSeriesRequest request =
    *       BatchCreateTensorboardTimeSeriesRequest.newBuilder()
@@ -2281,6 +2439,8 @@ public final BatchCreateTensorboardTimeSeriesResponse batchCreateTensorboardTime
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardTimeSeriesName parent =
    *       TensorboardTimeSeriesName.of(
@@ -2314,6 +2474,8 @@ public final TensorboardTimeSeries createTensorboardTimeSeries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String parent =
    *       TensorboardTimeSeriesName.of(
@@ -2353,6 +2515,8 @@ public final TensorboardTimeSeries createTensorboardTimeSeries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   CreateTensorboardTimeSeriesRequest request =
    *       CreateTensorboardTimeSeriesRequest.newBuilder()
@@ -2388,6 +2552,8 @@ public final TensorboardTimeSeries createTensorboardTimeSeries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   CreateTensorboardTimeSeriesRequest request =
    *       CreateTensorboardTimeSeriesRequest.newBuilder()
@@ -2422,6 +2588,8 @@ public final TensorboardTimeSeries createTensorboardTimeSeries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardTimeSeriesName name =
    *       TensorboardTimeSeriesName.of(
@@ -2449,6 +2617,8 @@ public final TensorboardTimeSeries getTensorboardTimeSeries(TensorboardTimeSerie
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String name =
    *       TensorboardTimeSeriesName.of(
@@ -2480,6 +2650,8 @@ public final TensorboardTimeSeries getTensorboardTimeSeries(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   GetTensorboardTimeSeriesRequest request =
    *       GetTensorboardTimeSeriesRequest.newBuilder()
@@ -2512,6 +2684,8 @@ public final TensorboardTimeSeries getTensorboardTimeSeries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   GetTensorboardTimeSeriesRequest request =
    *       GetTensorboardTimeSeriesRequest.newBuilder()
@@ -2544,6 +2718,8 @@ public final TensorboardTimeSeries getTensorboardTimeSeries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardTimeSeries tensorboardTimeSeries = TensorboardTimeSeries.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -2579,6 +2755,8 @@ public final TensorboardTimeSeries updateTensorboardTimeSeries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   UpdateTensorboardTimeSeriesRequest request =
    *       UpdateTensorboardTimeSeriesRequest.newBuilder()
@@ -2605,6 +2783,8 @@ public final TensorboardTimeSeries updateTensorboardTimeSeries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   UpdateTensorboardTimeSeriesRequest request =
    *       UpdateTensorboardTimeSeriesRequest.newBuilder()
@@ -2630,6 +2810,8 @@ public final TensorboardTimeSeries updateTensorboardTimeSeries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardRunName parent =
    *       TensorboardRunName.of(
@@ -2662,6 +2844,8 @@ public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String parent =
    *       TensorboardRunName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
@@ -2691,6 +2875,8 @@ public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries(St
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ListTensorboardTimeSeriesRequest request =
    *       ListTensorboardTimeSeriesRequest.newBuilder()
@@ -2726,6 +2912,8 @@ public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ListTensorboardTimeSeriesRequest request =
    *       ListTensorboardTimeSeriesRequest.newBuilder()
@@ -2761,6 +2949,8 @@ public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ListTensorboardTimeSeriesRequest request =
    *       ListTensorboardTimeSeriesRequest.newBuilder()
@@ -2777,7 +2967,7 @@ public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries(
    *   while (true) {
    *     ListTensorboardTimeSeriesResponse response =
    *         tensorboardServiceClient.listTensorboardTimeSeriesCallable().call(request);
-   *     for (TensorboardTimeSeries element : response.getResponsesList()) {
+   *     for (TensorboardTimeSeries element : response.getTensorboardTimeSeriesList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -2802,6 +2992,8 @@ public final ListTensorboardTimeSeriesPagedResponse listTensorboardTimeSeries(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardTimeSeriesName name =
    *       TensorboardTimeSeriesName.of(
@@ -2830,6 +3022,8 @@ public final OperationFuture deleteTensorboardTi
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String name =
    *       TensorboardTimeSeriesName.of(
@@ -2862,6 +3056,8 @@ public final OperationFuture deleteTensorboardTi
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   DeleteTensorboardTimeSeriesRequest request =
    *       DeleteTensorboardTimeSeriesRequest.newBuilder()
@@ -2894,6 +3090,8 @@ public final OperationFuture deleteTensorboardTi
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   DeleteTensorboardTimeSeriesRequest request =
    *       DeleteTensorboardTimeSeriesRequest.newBuilder()
@@ -2928,6 +3126,8 @@ public final OperationFuture deleteTensorboardTi
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   DeleteTensorboardTimeSeriesRequest request =
    *       DeleteTensorboardTimeSeriesRequest.newBuilder()
@@ -2963,6 +3163,8 @@ public final OperationFuture deleteTensorboardTi
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardName tensorboard = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
    *   BatchReadTensorboardTimeSeriesDataResponse response =
@@ -2997,6 +3199,8 @@ public final BatchReadTensorboardTimeSeriesDataResponse batchReadTensorboardTime
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String tensorboard =
    *       TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString();
@@ -3030,6 +3234,8 @@ public final BatchReadTensorboardTimeSeriesDataResponse batchReadTensorboardTime
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   BatchReadTensorboardTimeSeriesDataRequest request =
    *       BatchReadTensorboardTimeSeriesDataRequest.newBuilder()
@@ -3060,6 +3266,8 @@ public final BatchReadTensorboardTimeSeriesDataResponse batchReadTensorboardTime
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   BatchReadTensorboardTimeSeriesDataRequest request =
    *       BatchReadTensorboardTimeSeriesDataRequest.newBuilder()
@@ -3090,6 +3298,8 @@ public final BatchReadTensorboardTimeSeriesDataResponse batchReadTensorboardTime
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardTimeSeriesName tensorboardTimeSeries =
    *       TensorboardTimeSeriesName.of(
@@ -3124,6 +3334,8 @@ public final ReadTensorboardTimeSeriesDataResponse readTensorboardTimeSeriesData
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String tensorboardTimeSeries =
    *       TensorboardTimeSeriesName.of(
@@ -3163,6 +3375,8 @@ public final ReadTensorboardTimeSeriesDataResponse readTensorboardTimeSeriesData
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ReadTensorboardTimeSeriesDataRequest request =
    *       ReadTensorboardTimeSeriesDataRequest.newBuilder()
@@ -3201,6 +3415,8 @@ public final ReadTensorboardTimeSeriesDataResponse readTensorboardTimeSeriesData
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ReadTensorboardTimeSeriesDataRequest request =
    *       ReadTensorboardTimeSeriesDataRequest.newBuilder()
@@ -3237,6 +3453,8 @@ public final ReadTensorboardTimeSeriesDataResponse readTensorboardTimeSeriesData
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ReadTensorboardBlobDataRequest request =
    *       ReadTensorboardBlobDataRequest.newBuilder()
@@ -3273,6 +3491,8 @@ public final ReadTensorboardTimeSeriesDataResponse readTensorboardTimeSeriesData
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardExperimentName tensorboardExperiment =
    *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]");
@@ -3310,6 +3530,8 @@ public final WriteTensorboardExperimentDataResponse writeTensorboardExperimentDa
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String tensorboardExperiment =
    *       TensorboardExperimentName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]")
@@ -3346,6 +3568,8 @@ public final WriteTensorboardExperimentDataResponse writeTensorboardExperimentDa
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   WriteTensorboardExperimentDataRequest request =
    *       WriteTensorboardExperimentDataRequest.newBuilder()
@@ -3376,6 +3600,8 @@ public final WriteTensorboardExperimentDataResponse writeTensorboardExperimentDa
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   WriteTensorboardExperimentDataRequest request =
    *       WriteTensorboardExperimentDataRequest.newBuilder()
@@ -3406,6 +3632,8 @@ public final WriteTensorboardExperimentDataResponse writeTensorboardExperimentDa
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardRunName tensorboardRun =
    *       TensorboardRunName.of(
@@ -3442,6 +3670,8 @@ public final WriteTensorboardRunDataResponse writeTensorboardRunData(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String tensorboardRun =
    *       TensorboardRunName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]", "[EXPERIMENT]", "[RUN]")
@@ -3478,6 +3708,8 @@ public final WriteTensorboardRunDataResponse writeTensorboardRunData(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   WriteTensorboardRunDataRequest request =
    *       WriteTensorboardRunDataRequest.newBuilder()
@@ -3508,6 +3740,8 @@ public final WriteTensorboardRunDataResponse writeTensorboardRunData(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   WriteTensorboardRunDataRequest request =
    *       WriteTensorboardRunDataRequest.newBuilder()
@@ -3536,6 +3770,8 @@ public final WriteTensorboardRunDataResponse writeTensorboardRunData(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   TensorboardTimeSeriesName tensorboardTimeSeries =
    *       TensorboardTimeSeriesName.of(
@@ -3571,6 +3807,8 @@ public final ExportTensorboardTimeSeriesDataPagedResponse exportTensorboardTimeS
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   String tensorboardTimeSeries =
    *       TensorboardTimeSeriesName.of(
@@ -3611,6 +3849,8 @@ public final ExportTensorboardTimeSeriesDataPagedResponse exportTensorboardTimeS
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ExportTensorboardTimeSeriesDataRequest request =
    *       ExportTensorboardTimeSeriesDataRequest.newBuilder()
@@ -3650,6 +3890,8 @@ public final ExportTensorboardTimeSeriesDataPagedResponse exportTensorboardTimeS
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ExportTensorboardTimeSeriesDataRequest request =
    *       ExportTensorboardTimeSeriesDataRequest.newBuilder()
@@ -3691,6 +3933,8 @@ public final ExportTensorboardTimeSeriesDataPagedResponse exportTensorboardTimeS
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
    *   ExportTensorboardTimeSeriesDataRequest request =
    *       ExportTensorboardTimeSeriesDataRequest.newBuilder()
@@ -3711,7 +3955,7 @@ public final ExportTensorboardTimeSeriesDataPagedResponse exportTensorboardTimeS
    *   while (true) {
    *     ExportTensorboardTimeSeriesDataResponse response =
    *         tensorboardServiceClient.exportTensorboardTimeSeriesDataCallable().call(request);
-   *     for (TimeSeriesDataPoint element : response.getResponsesList()) {
+   *     for (TimeSeriesDataPoint element : response.getTimeSeriesDataPointsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -3730,6 +3974,335 @@ public final ExportTensorboardTimeSeriesDataPagedResponse exportTensorboardTimeS
     return stub.exportTensorboardTimeSeriesDataCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Lists information about the supported locations for this service.
+   *
+   * 

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : tensorboardServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         tensorboardServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = tensorboardServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = tensorboardServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = tensorboardServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = tensorboardServiceClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + @Override public final void close() { stub.close(); @@ -4209,4 +4782,80 @@ protected ExportTensorboardTimeSeriesDataFixedSizeCollection createCollection( return new ExportTensorboardTimeSeriesDataFixedSizeCollection(pages, collectionSize); } } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceSettings.java index f95e178f7167..bdd29e9a7f4b 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ package com.google.cloud.aiplatform.v1beta1; import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardExperimentsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardRunsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardTimeSeriesPagedResponse; @@ -36,6 +37,15 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.aiplatform.v1beta1.stub.TensorboardServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -60,6 +70,8 @@ *

For example, to set the total timeout of getTensorboard to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * TensorboardServiceSettings.Builder tensorboardServiceSettingsBuilder =
  *     TensorboardServiceSettings.newBuilder();
  * tensorboardServiceSettingsBuilder
@@ -314,6 +326,33 @@ public UnaryCallSettings deleteTensorboa
         .exportTensorboardTimeSeriesDataSettings();
   }
 
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return ((TensorboardServiceStubSettings) getStubSettings()).listLocationsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return ((TensorboardServiceStubSettings) getStubSettings()).getLocationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return ((TensorboardServiceStubSettings) getStubSettings()).setIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return ((TensorboardServiceStubSettings) getStubSettings()).getIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return ((TensorboardServiceStubSettings) getStubSettings()).testIamPermissionsSettings();
+  }
+
   public static final TensorboardServiceSettings create(TensorboardServiceStubSettings stub)
       throws IOException {
     return new TensorboardServiceSettings.Builder(stub.toBuilder()).build();
@@ -641,6 +680,34 @@ public UnaryCallSettings.Builder getTensorbo
       return getStubSettingsBuilder().exportTensorboardTimeSeriesDataSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return getStubSettingsBuilder().listLocationsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getStubSettingsBuilder().getLocationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return getStubSettingsBuilder().setIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getStubSettingsBuilder().getIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return getStubSettingsBuilder().testIamPermissionsSettings();
+    }
+
     @Override
     public TensorboardServiceSettings build() throws IOException {
       return new TensorboardServiceSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceClient.java
index db5e8afc795f..fb42f19eb87a 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -29,7 +29,16 @@
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1beta1.stub.VizierServiceStub;
 import com.google.cloud.aiplatform.v1beta1.stub.VizierServiceStubSettings;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.OperationsClient;
 import com.google.protobuf.Empty;
@@ -49,6 +58,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
  *   Study study = Study.newBuilder().build();
@@ -85,6 +96,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * VizierServiceSettings vizierServiceSettings =
  *     VizierServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -95,6 +108,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * VizierServiceSettings vizierServiceSettings =
  *     VizierServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * VizierServiceClient vizierServiceClient = VizierServiceClient.create(vizierServiceSettings);
@@ -127,7 +142,6 @@ public static final VizierServiceClient create(VizierServiceSettings settings)
    * Constructs an instance of VizierServiceClient, using the given stub for making calls. This is
    * for advanced usage - prefer using create(VizierServiceSettings).
    */
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public static final VizierServiceClient create(VizierServiceStub stub) {
     return new VizierServiceClient(stub);
   }
@@ -143,7 +157,6 @@ protected VizierServiceClient(VizierServiceSettings settings) throws IOException
     this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected VizierServiceClient(VizierServiceStub stub) {
     this.settings = null;
     this.stub = stub;
@@ -154,7 +167,6 @@ public final VizierServiceSettings getSettings() {
     return settings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public VizierServiceStub getStub() {
     return stub;
   }
@@ -174,6 +186,8 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Study study = Study.newBuilder().build();
@@ -202,6 +216,8 @@ public final Study createStudy(LocationName parent, Study study) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Study study = Study.newBuilder().build();
@@ -227,6 +243,8 @@ public final Study createStudy(String parent, Study study) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   CreateStudyRequest request =
    *       CreateStudyRequest.newBuilder()
@@ -251,6 +269,8 @@ public final Study createStudy(CreateStudyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   CreateStudyRequest request =
    *       CreateStudyRequest.newBuilder()
@@ -274,6 +294,8 @@ public final UnaryCallable createStudyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   StudyName name = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]");
    *   Study response = vizierServiceClient.getStudy(name);
@@ -297,6 +319,8 @@ public final Study getStudy(StudyName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   String name = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString();
    *   Study response = vizierServiceClient.getStudy(name);
@@ -319,6 +343,8 @@ public final Study getStudy(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   GetStudyRequest request =
    *       GetStudyRequest.newBuilder()
@@ -342,6 +368,8 @@ public final Study getStudy(GetStudyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   GetStudyRequest request =
    *       GetStudyRequest.newBuilder()
@@ -364,6 +392,8 @@ public final UnaryCallable getStudyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Study element : vizierServiceClient.listStudies(parent).iterateAll()) {
@@ -391,6 +421,8 @@ public final ListStudiesPagedResponse listStudies(LocationName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Study element : vizierServiceClient.listStudies(parent).iterateAll()) {
@@ -415,6 +447,8 @@ public final ListStudiesPagedResponse listStudies(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   ListStudiesRequest request =
    *       ListStudiesRequest.newBuilder()
@@ -442,6 +476,8 @@ public final ListStudiesPagedResponse listStudies(ListStudiesRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   ListStudiesRequest request =
    *       ListStudiesRequest.newBuilder()
@@ -469,6 +505,8 @@ public final ListStudiesPagedResponse listStudies(ListStudiesRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   ListStudiesRequest request =
    *       ListStudiesRequest.newBuilder()
@@ -478,7 +516,7 @@ public final ListStudiesPagedResponse listStudies(ListStudiesRequest request) {
    *           .build();
    *   while (true) {
    *     ListStudiesResponse response = vizierServiceClient.listStudiesCallable().call(request);
-   *     for (Study element : response.getResponsesList()) {
+   *     for (Study element : response.getStudiesList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -502,6 +540,8 @@ public final UnaryCallable listStudiesC
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   StudyName name = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]");
    *   vizierServiceClient.deleteStudy(name);
@@ -525,6 +565,8 @@ public final void deleteStudy(StudyName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   String name = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString();
    *   vizierServiceClient.deleteStudy(name);
@@ -547,6 +589,8 @@ public final void deleteStudy(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   DeleteStudyRequest request =
    *       DeleteStudyRequest.newBuilder()
@@ -570,6 +614,8 @@ public final void deleteStudy(DeleteStudyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   DeleteStudyRequest request =
    *       DeleteStudyRequest.newBuilder()
@@ -593,6 +639,8 @@ public final UnaryCallable deleteStudyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Study response = vizierServiceClient.lookupStudy(parent);
@@ -619,6 +667,8 @@ public final Study lookupStudy(LocationName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Study response = vizierServiceClient.lookupStudy(parent);
@@ -642,6 +692,8 @@ public final Study lookupStudy(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   LookupStudyRequest request =
    *       LookupStudyRequest.newBuilder()
@@ -667,6 +719,8 @@ public final Study lookupStudy(LookupStudyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   LookupStudyRequest request =
    *       LookupStudyRequest.newBuilder()
@@ -693,6 +747,8 @@ public final UnaryCallable lookupStudyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   SuggestTrialsRequest request =
    *       SuggestTrialsRequest.newBuilder()
@@ -722,6 +778,8 @@ public final OperationFuture sugge
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   SuggestTrialsRequest request =
    *       SuggestTrialsRequest.newBuilder()
@@ -751,6 +809,8 @@ public final OperationFuture sugge
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   SuggestTrialsRequest request =
    *       SuggestTrialsRequest.newBuilder()
@@ -775,6 +835,8 @@ public final UnaryCallable suggestTrialsCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   StudyName parent = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]");
    *   Trial trial = Trial.newBuilder().build();
@@ -803,6 +865,8 @@ public final Trial createTrial(StudyName parent, Trial trial) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   String parent = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString();
    *   Trial trial = Trial.newBuilder().build();
@@ -828,6 +892,8 @@ public final Trial createTrial(String parent, Trial trial) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   CreateTrialRequest request =
    *       CreateTrialRequest.newBuilder()
@@ -852,6 +918,8 @@ public final Trial createTrial(CreateTrialRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   CreateTrialRequest request =
    *       CreateTrialRequest.newBuilder()
@@ -875,6 +943,8 @@ public final UnaryCallable createTrialCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   TrialName name = TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]");
    *   Trial response = vizierServiceClient.getTrial(name);
@@ -898,6 +968,8 @@ public final Trial getTrial(TrialName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   String name = TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString();
    *   Trial response = vizierServiceClient.getTrial(name);
@@ -920,6 +992,8 @@ public final Trial getTrial(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   GetTrialRequest request =
    *       GetTrialRequest.newBuilder()
@@ -943,6 +1017,8 @@ public final Trial getTrial(GetTrialRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   GetTrialRequest request =
    *       GetTrialRequest.newBuilder()
@@ -965,6 +1041,8 @@ public final UnaryCallable getTrialCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   StudyName parent = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]");
    *   for (Trial element : vizierServiceClient.listTrials(parent).iterateAll()) {
@@ -990,6 +1068,8 @@ public final ListTrialsPagedResponse listTrials(StudyName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   String parent = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString();
    *   for (Trial element : vizierServiceClient.listTrials(parent).iterateAll()) {
@@ -1014,6 +1094,8 @@ public final ListTrialsPagedResponse listTrials(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   ListTrialsRequest request =
    *       ListTrialsRequest.newBuilder()
@@ -1041,6 +1123,8 @@ public final ListTrialsPagedResponse listTrials(ListTrialsRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   ListTrialsRequest request =
    *       ListTrialsRequest.newBuilder()
@@ -1067,6 +1151,8 @@ public final UnaryCallable listTrial
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   ListTrialsRequest request =
    *       ListTrialsRequest.newBuilder()
@@ -1076,7 +1162,7 @@ public final UnaryCallable listTrial
    *           .build();
    *   while (true) {
    *     ListTrialsResponse response = vizierServiceClient.listTrialsCallable().call(request);
-   *     for (Trial element : response.getResponsesList()) {
+   *     for (Trial element : response.getTrialsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -1101,6 +1187,8 @@ public final UnaryCallable listTrialsCall
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   AddTrialMeasurementRequest request =
    *       AddTrialMeasurementRequest.newBuilder()
@@ -1127,6 +1215,8 @@ public final Trial addTrialMeasurement(AddTrialMeasurementRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   AddTrialMeasurementRequest request =
    *       AddTrialMeasurementRequest.newBuilder()
@@ -1152,6 +1242,8 @@ public final UnaryCallable addTrialMeasuremen
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   CompleteTrialRequest request =
    *       CompleteTrialRequest.newBuilder()
@@ -1178,6 +1270,8 @@ public final Trial completeTrial(CompleteTrialRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   CompleteTrialRequest request =
    *       CompleteTrialRequest.newBuilder()
@@ -1203,6 +1297,8 @@ public final UnaryCallable completeTrialCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   TrialName name = TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]");
    *   vizierServiceClient.deleteTrial(name);
@@ -1226,6 +1322,8 @@ public final void deleteTrial(TrialName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   String name = TrialName.of("[PROJECT]", "[LOCATION]", "[STUDY]", "[TRIAL]").toString();
    *   vizierServiceClient.deleteTrial(name);
@@ -1248,6 +1346,8 @@ public final void deleteTrial(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   DeleteTrialRequest request =
    *       DeleteTrialRequest.newBuilder()
@@ -1271,6 +1371,8 @@ public final void deleteTrial(DeleteTrialRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   DeleteTrialRequest request =
    *       DeleteTrialRequest.newBuilder()
@@ -1295,6 +1397,8 @@ public final UnaryCallable deleteTrialCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   CheckTrialEarlyStoppingStateRequest request =
    *       CheckTrialEarlyStoppingStateRequest.newBuilder()
@@ -1324,6 +1428,8 @@ public final UnaryCallable deleteTrialCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   CheckTrialEarlyStoppingStateRequest request =
    *       CheckTrialEarlyStoppingStateRequest.newBuilder()
@@ -1357,6 +1463,8 @@ public final UnaryCallable deleteTrialCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   CheckTrialEarlyStoppingStateRequest request =
    *       CheckTrialEarlyStoppingStateRequest.newBuilder()
@@ -1382,6 +1490,8 @@ public final UnaryCallable deleteTrialCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   StopTrialRequest request =
    *       StopTrialRequest.newBuilder()
@@ -1405,6 +1515,8 @@ public final Trial stopTrial(StopTrialRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   StopTrialRequest request =
    *       StopTrialRequest.newBuilder()
@@ -1429,6 +1541,8 @@ public final UnaryCallable stopTrialCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   StudyName parent = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]");
    *   ListOptimalTrialsResponse response = vizierServiceClient.listOptimalTrials(parent);
@@ -1455,6 +1569,8 @@ public final ListOptimalTrialsResponse listOptimalTrials(StudyName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   String parent = StudyName.of("[PROJECT]", "[LOCATION]", "[STUDY]").toString();
    *   ListOptimalTrialsResponse response = vizierServiceClient.listOptimalTrials(parent);
@@ -1479,6 +1595,8 @@ public final ListOptimalTrialsResponse listOptimalTrials(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   ListOptimalTrialsRequest request =
    *       ListOptimalTrialsRequest.newBuilder()
@@ -1504,6 +1622,8 @@ public final ListOptimalTrialsResponse listOptimalTrials(ListOptimalTrialsReques
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
    *   ListOptimalTrialsRequest request =
    *       ListOptimalTrialsRequest.newBuilder()
@@ -1521,6 +1641,331 @@ public final ListOptimalTrialsResponse listOptimalTrials(ListOptimalTrialsReques
     return stub.listOptimalTrialsCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Lists information about the supported locations for this service.
+   *
+   * 

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : vizierServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       vizierServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response = vizierServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = vizierServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = vizierServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = vizierServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = vizierServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = vizierServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = vizierServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = vizierServiceClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       vizierServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + @Override public final void close() { stub.close(); @@ -1696,4 +2141,80 @@ protected ListTrialsFixedSizeCollection createCollection( return new ListTrialsFixedSizeCollection(pages, collectionSize); } } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceSettings.java index a1289d6ae437..ebb85e534997 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ package com.google.cloud.aiplatform.v1beta1; +import static com.google.cloud.aiplatform.v1beta1.VizierServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.VizierServiceClient.ListStudiesPagedResponse; import static com.google.cloud.aiplatform.v1beta1.VizierServiceClient.ListTrialsPagedResponse; @@ -32,6 +33,15 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.aiplatform.v1beta1.stub.VizierServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -56,6 +66,8 @@ *

For example, to set the total timeout of createStudy to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * VizierServiceSettings.Builder vizierServiceSettingsBuilder = VizierServiceSettings.newBuilder();
  * vizierServiceSettingsBuilder
  *     .createStudySettings()
@@ -168,6 +180,33 @@ public UnaryCallSettings stopTrialSettings() {
     return ((VizierServiceStubSettings) getStubSettings()).listOptimalTrialsSettings();
   }
 
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return ((VizierServiceStubSettings) getStubSettings()).listLocationsSettings();
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return ((VizierServiceStubSettings) getStubSettings()).getLocationSettings();
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return ((VizierServiceStubSettings) getStubSettings()).setIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return ((VizierServiceStubSettings) getStubSettings()).getIamPolicySettings();
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return ((VizierServiceStubSettings) getStubSettings()).testIamPermissionsSettings();
+  }
+
   public static final VizierServiceSettings create(VizierServiceStubSettings stub)
       throws IOException {
     return new VizierServiceSettings.Builder(stub.toBuilder()).build();
@@ -362,6 +401,34 @@ public UnaryCallSettings.Builder stopTrialSettings() {
       return getStubSettingsBuilder().listOptimalTrialsSettings();
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return getStubSettingsBuilder().listLocationsSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getStubSettingsBuilder().getLocationSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return getStubSettingsBuilder().setIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getStubSettingsBuilder().getIamPolicySettings();
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return getStubSettingsBuilder().testIamPermissionsSettings();
+    }
+
     @Override
     public VizierServiceSettings build() throws IOException {
       return new VizierServiceSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json
index e3c1619b53ba..bf49669c463e 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json
@@ -25,6 +25,12 @@
             "GetDataset": {
               "methods": ["getDataset", "getDataset", "getDataset", "getDatasetCallable"]
             },
+            "GetIamPolicy": {
+              "methods": ["getIamPolicy", "getIamPolicyCallable"]
+            },
+            "GetLocation": {
+              "methods": ["getLocation", "getLocationCallable"]
+            },
             "ImportData": {
               "methods": ["importDataAsync", "importDataAsync", "importDataAsync", "importDataOperationCallable", "importDataCallable"]
             },
@@ -37,6 +43,15 @@
             "ListDatasets": {
               "methods": ["listDatasets", "listDatasets", "listDatasets", "listDatasetsPagedCallable", "listDatasetsCallable"]
             },
+            "ListLocations": {
+              "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
+            },
+            "SetIamPolicy": {
+              "methods": ["setIamPolicy", "setIamPolicyCallable"]
+            },
+            "TestIamPermissions": {
+              "methods": ["testIamPermissions", "testIamPermissionsCallable"]
+            },
             "UpdateDataset": {
               "methods": ["updateDataset", "updateDataset", "updateDatasetCallable"]
             }
@@ -61,9 +76,24 @@
             "GetEndpoint": {
               "methods": ["getEndpoint", "getEndpoint", "getEndpoint", "getEndpointCallable"]
             },
+            "GetIamPolicy": {
+              "methods": ["getIamPolicy", "getIamPolicyCallable"]
+            },
+            "GetLocation": {
+              "methods": ["getLocation", "getLocationCallable"]
+            },
             "ListEndpoints": {
               "methods": ["listEndpoints", "listEndpoints", "listEndpoints", "listEndpointsPagedCallable", "listEndpointsCallable"]
             },
+            "ListLocations": {
+              "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
+            },
+            "SetIamPolicy": {
+              "methods": ["setIamPolicy", "setIamPolicyCallable"]
+            },
+            "TestIamPermissions": {
+              "methods": ["testIamPermissions", "testIamPermissionsCallable"]
+            },
             "UndeployModel": {
               "methods": ["undeployModelAsync", "undeployModelAsync", "undeployModelAsync", "undeployModelOperationCallable", "undeployModelCallable"]
             },
@@ -79,11 +109,26 @@
         "grpc": {
           "libraryClient": "FeaturestoreOnlineServingServiceClient",
           "rpcs": {
+            "GetIamPolicy": {
+              "methods": ["getIamPolicy", "getIamPolicyCallable"]
+            },
+            "GetLocation": {
+              "methods": ["getLocation", "getLocationCallable"]
+            },
+            "ListLocations": {
+              "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
+            },
             "ReadFeatureValues": {
               "methods": ["readFeatureValues", "readFeatureValues", "readFeatureValues", "readFeatureValuesCallable"]
             },
+            "SetIamPolicy": {
+              "methods": ["setIamPolicy", "setIamPolicyCallable"]
+            },
             "StreamingReadFeatureValues": {
               "methods": ["streamingReadFeatureValuesCallable"]
+            },
+            "TestIamPermissions": {
+              "methods": ["testIamPermissions", "testIamPermissionsCallable"]
             }
           }
         }
@@ -130,6 +175,12 @@
             "GetFeaturestore": {
               "methods": ["getFeaturestore", "getFeaturestore", "getFeaturestore", "getFeaturestoreCallable"]
             },
+            "GetIamPolicy": {
+              "methods": ["getIamPolicy", "getIamPolicyCallable"]
+            },
+            "GetLocation": {
+              "methods": ["getLocation", "getLocationCallable"]
+            },
             "ImportFeatureValues": {
               "methods": ["importFeatureValuesAsync", "importFeatureValuesAsync", "importFeatureValuesAsync", "importFeatureValuesOperationCallable", "importFeatureValuesCallable"]
             },
@@ -142,9 +193,18 @@
             "ListFeaturestores": {
               "methods": ["listFeaturestores", "listFeaturestores", "listFeaturestores", "listFeaturestoresPagedCallable", "listFeaturestoresCallable"]
             },
+            "ListLocations": {
+              "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
+            },
             "SearchFeatures": {
               "methods": ["searchFeatures", "searchFeatures", "searchFeatures", "searchFeatures", "searchFeatures", "searchFeaturesPagedCallable", "searchFeaturesCallable"]
             },
+            "SetIamPolicy": {
+              "methods": ["setIamPolicy", "setIamPolicyCallable"]
+            },
+            "TestIamPermissions": {
+              "methods": ["testIamPermissions", "testIamPermissionsCallable"]
+            },
             "UpdateEntityType": {
               "methods": ["updateEntityType", "updateEntityType", "updateEntityTypeCallable"]
             },
@@ -172,15 +232,30 @@
             "DeployIndex": {
               "methods": ["deployIndexAsync", "deployIndexAsync", "deployIndexAsync", "deployIndexOperationCallable", "deployIndexCallable"]
             },
+            "GetIamPolicy": {
+              "methods": ["getIamPolicy", "getIamPolicyCallable"]
+            },
             "GetIndexEndpoint": {
               "methods": ["getIndexEndpoint", "getIndexEndpoint", "getIndexEndpoint", "getIndexEndpointCallable"]
             },
+            "GetLocation": {
+              "methods": ["getLocation", "getLocationCallable"]
+            },
             "ListIndexEndpoints": {
               "methods": ["listIndexEndpoints", "listIndexEndpoints", "listIndexEndpoints", "listIndexEndpointsPagedCallable", "listIndexEndpointsCallable"]
             },
+            "ListLocations": {
+              "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
+            },
             "MutateDeployedIndex": {
               "methods": ["mutateDeployedIndexAsync", "mutateDeployedIndexAsync", "mutateDeployedIndexAsync", "mutateDeployedIndexOperationCallable", "mutateDeployedIndexCallable"]
             },
+            "SetIamPolicy": {
+              "methods": ["setIamPolicy", "setIamPolicyCallable"]
+            },
+            "TestIamPermissions": {
+              "methods": ["testIamPermissions", "testIamPermissionsCallable"]
+            },
             "UndeployIndex": {
               "methods": ["undeployIndexAsync", "undeployIndexAsync", "undeployIndexAsync", "undeployIndexOperationCallable", "undeployIndexCallable"]
             },
@@ -202,12 +277,27 @@
             "DeleteIndex": {
               "methods": ["deleteIndexAsync", "deleteIndexAsync", "deleteIndexAsync", "deleteIndexOperationCallable", "deleteIndexCallable"]
             },
+            "GetIamPolicy": {
+              "methods": ["getIamPolicy", "getIamPolicyCallable"]
+            },
             "GetIndex": {
               "methods": ["getIndex", "getIndex", "getIndex", "getIndexCallable"]
             },
+            "GetLocation": {
+              "methods": ["getLocation", "getLocationCallable"]
+            },
             "ListIndexes": {
               "methods": ["listIndexes", "listIndexes", "listIndexes", "listIndexesPagedCallable", "listIndexesCallable"]
             },
+            "ListLocations": {
+              "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
+            },
+            "SetIamPolicy": {
+              "methods": ["setIamPolicy", "setIamPolicyCallable"]
+            },
+            "TestIamPermissions": {
+              "methods": ["testIamPermissions", "testIamPermissionsCallable"]
+            },
             "UpdateIndex": {
               "methods": ["updateIndexAsync", "updateIndexAsync", "updateIndexOperationCallable", "updateIndexCallable"]
             }
@@ -274,6 +364,12 @@
             "GetHyperparameterTuningJob": {
               "methods": ["getHyperparameterTuningJob", "getHyperparameterTuningJob", "getHyperparameterTuningJob", "getHyperparameterTuningJobCallable"]
             },
+            "GetIamPolicy": {
+              "methods": ["getIamPolicy", "getIamPolicyCallable"]
+            },
+            "GetLocation": {
+              "methods": ["getLocation", "getLocationCallable"]
+            },
             "GetModelDeploymentMonitoringJob": {
               "methods": ["getModelDeploymentMonitoringJob", "getModelDeploymentMonitoringJob", "getModelDeploymentMonitoringJob", "getModelDeploymentMonitoringJobCallable"]
             },
@@ -289,6 +385,9 @@
             "ListHyperparameterTuningJobs": {
               "methods": ["listHyperparameterTuningJobs", "listHyperparameterTuningJobs", "listHyperparameterTuningJobs", "listHyperparameterTuningJobsPagedCallable", "listHyperparameterTuningJobsCallable"]
             },
+            "ListLocations": {
+              "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
+            },
             "ListModelDeploymentMonitoringJobs": {
               "methods": ["listModelDeploymentMonitoringJobs", "listModelDeploymentMonitoringJobs", "listModelDeploymentMonitoringJobs", "listModelDeploymentMonitoringJobsPagedCallable", "listModelDeploymentMonitoringJobsCallable"]
             },
@@ -301,6 +400,12 @@
             "SearchModelDeploymentMonitoringStatsAnomalies": {
               "methods": ["searchModelDeploymentMonitoringStatsAnomalies", "searchModelDeploymentMonitoringStatsAnomalies", "searchModelDeploymentMonitoringStatsAnomalies", "searchModelDeploymentMonitoringStatsAnomaliesPagedCallable", "searchModelDeploymentMonitoringStatsAnomaliesCallable"]
             },
+            "SetIamPolicy": {
+              "methods": ["setIamPolicy", "setIamPolicyCallable"]
+            },
+            "TestIamPermissions": {
+              "methods": ["testIamPermissions", "testIamPermissionsCallable"]
+            },
             "UpdateModelDeploymentMonitoringJob": {
               "methods": ["updateModelDeploymentMonitoringJobAsync", "updateModelDeploymentMonitoringJobAsync", "updateModelDeploymentMonitoringJobOperationCallable", "updateModelDeploymentMonitoringJobCallable"]
             }
@@ -358,6 +463,12 @@
             "GetExecution": {
               "methods": ["getExecution", "getExecution", "getExecution", "getExecutionCallable"]
             },
+            "GetIamPolicy": {
+              "methods": ["getIamPolicy", "getIamPolicyCallable"]
+            },
+            "GetLocation": {
+              "methods": ["getLocation", "getLocationCallable"]
+            },
             "GetMetadataSchema": {
               "methods": ["getMetadataSchema", "getMetadataSchema", "getMetadataSchema", "getMetadataSchemaCallable"]
             },
@@ -373,6 +484,9 @@
             "ListExecutions": {
               "methods": ["listExecutions", "listExecutions", "listExecutions", "listExecutionsPagedCallable", "listExecutionsCallable"]
             },
+            "ListLocations": {
+              "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
+            },
             "ListMetadataSchemas": {
               "methods": ["listMetadataSchemas", "listMetadataSchemas", "listMetadataSchemas", "listMetadataSchemasPagedCallable", "listMetadataSchemasCallable"]
             },
@@ -397,6 +511,12 @@
             "QueryExecutionInputsAndOutputs": {
               "methods": ["queryExecutionInputsAndOutputs", "queryExecutionInputsAndOutputs", "queryExecutionInputsAndOutputs", "queryExecutionInputsAndOutputsCallable"]
             },
+            "SetIamPolicy": {
+              "methods": ["setIamPolicy", "setIamPolicyCallable"]
+            },
+            "TestIamPermissions": {
+              "methods": ["testIamPermissions", "testIamPermissionsCallable"]
+            },
             "UpdateArtifact": {
               "methods": ["updateArtifact", "updateArtifact", "updateArtifactCallable"]
             },
@@ -418,8 +538,23 @@
             "BatchMigrateResources": {
               "methods": ["batchMigrateResourcesAsync", "batchMigrateResourcesAsync", "batchMigrateResourcesAsync", "batchMigrateResourcesOperationCallable", "batchMigrateResourcesCallable"]
             },
+            "GetIamPolicy": {
+              "methods": ["getIamPolicy", "getIamPolicyCallable"]
+            },
+            "GetLocation": {
+              "methods": ["getLocation", "getLocationCallable"]
+            },
+            "ListLocations": {
+              "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
+            },
             "SearchMigratableResources": {
               "methods": ["searchMigratableResources", "searchMigratableResources", "searchMigratableResources", "searchMigratableResourcesPagedCallable", "searchMigratableResourcesCallable"]
+            },
+            "SetIamPolicy": {
+              "methods": ["setIamPolicy", "setIamPolicyCallable"]
+            },
+            "TestIamPermissions": {
+              "methods": ["testIamPermissions", "testIamPermissionsCallable"]
             }
           }
         }
@@ -439,6 +574,12 @@
             "ExportModel": {
               "methods": ["exportModelAsync", "exportModelAsync", "exportModelAsync", "exportModelOperationCallable", "exportModelCallable"]
             },
+            "GetIamPolicy": {
+              "methods": ["getIamPolicy", "getIamPolicyCallable"]
+            },
+            "GetLocation": {
+              "methods": ["getLocation", "getLocationCallable"]
+            },
             "GetModel": {
               "methods": ["getModel", "getModel", "getModel", "getModelCallable"]
             },
@@ -451,6 +592,9 @@
             "ImportModelEvaluation": {
               "methods": ["importModelEvaluation", "importModelEvaluation", "importModelEvaluation", "importModelEvaluationCallable"]
             },
+            "ListLocations": {
+              "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
+            },
             "ListModelEvaluationSlices": {
               "methods": ["listModelEvaluationSlices", "listModelEvaluationSlices", "listModelEvaluationSlices", "listModelEvaluationSlicesPagedCallable", "listModelEvaluationSlicesCallable"]
             },
@@ -466,6 +610,15 @@
             "MergeVersionAliases": {
               "methods": ["mergeVersionAliases", "mergeVersionAliases", "mergeVersionAliases", "mergeVersionAliasesCallable"]
             },
+            "SetIamPolicy": {
+              "methods": ["setIamPolicy", "setIamPolicyCallable"]
+            },
+            "TestIamPermissions": {
+              "methods": ["testIamPermissions", "testIamPermissionsCallable"]
+            },
+            "UpdateExplanationDataset": {
+              "methods": ["updateExplanationDatasetAsync", "updateExplanationDatasetAsync", "updateExplanationDatasetAsync", "updateExplanationDatasetOperationCallable", "updateExplanationDatasetCallable"]
+            },
             "UpdateModel": {
               "methods": ["updateModel", "updateModel", "updateModelCallable"]
             },
@@ -499,17 +652,32 @@
             "DeleteTrainingPipeline": {
               "methods": ["deleteTrainingPipelineAsync", "deleteTrainingPipelineAsync", "deleteTrainingPipelineAsync", "deleteTrainingPipelineOperationCallable", "deleteTrainingPipelineCallable"]
             },
+            "GetIamPolicy": {
+              "methods": ["getIamPolicy", "getIamPolicyCallable"]
+            },
+            "GetLocation": {
+              "methods": ["getLocation", "getLocationCallable"]
+            },
             "GetPipelineJob": {
               "methods": ["getPipelineJob", "getPipelineJob", "getPipelineJob", "getPipelineJobCallable"]
             },
             "GetTrainingPipeline": {
               "methods": ["getTrainingPipeline", "getTrainingPipeline", "getTrainingPipeline", "getTrainingPipelineCallable"]
             },
+            "ListLocations": {
+              "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
+            },
             "ListPipelineJobs": {
               "methods": ["listPipelineJobs", "listPipelineJobs", "listPipelineJobs", "listPipelineJobsPagedCallable", "listPipelineJobsCallable"]
             },
             "ListTrainingPipelines": {
               "methods": ["listTrainingPipelines", "listTrainingPipelines", "listTrainingPipelines", "listTrainingPipelinesPagedCallable", "listTrainingPipelinesCallable"]
+            },
+            "SetIamPolicy": {
+              "methods": ["setIamPolicy", "setIamPolicyCallable"]
+            },
+            "TestIamPermissions": {
+              "methods": ["testIamPermissions", "testIamPermissionsCallable"]
             }
           }
         }
@@ -523,11 +691,26 @@
             "Explain": {
               "methods": ["explain", "explain", "explain", "explainCallable"]
             },
+            "GetIamPolicy": {
+              "methods": ["getIamPolicy", "getIamPolicyCallable"]
+            },
+            "GetLocation": {
+              "methods": ["getLocation", "getLocationCallable"]
+            },
+            "ListLocations": {
+              "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
+            },
             "Predict": {
               "methods": ["predict", "predict", "predict", "predictCallable"]
             },
             "RawPredict": {
               "methods": ["rawPredict", "rawPredict", "rawPredict", "rawPredictCallable"]
+            },
+            "SetIamPolicy": {
+              "methods": ["setIamPolicy", "setIamPolicyCallable"]
+            },
+            "TestIamPermissions": {
+              "methods": ["testIamPermissions", "testIamPermissionsCallable"]
             }
           }
         }
@@ -544,12 +727,27 @@
             "DeleteSpecialistPool": {
               "methods": ["deleteSpecialistPoolAsync", "deleteSpecialistPoolAsync", "deleteSpecialistPoolAsync", "deleteSpecialistPoolOperationCallable", "deleteSpecialistPoolCallable"]
             },
+            "GetIamPolicy": {
+              "methods": ["getIamPolicy", "getIamPolicyCallable"]
+            },
+            "GetLocation": {
+              "methods": ["getLocation", "getLocationCallable"]
+            },
             "GetSpecialistPool": {
               "methods": ["getSpecialistPool", "getSpecialistPool", "getSpecialistPool", "getSpecialistPoolCallable"]
             },
+            "ListLocations": {
+              "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
+            },
             "ListSpecialistPools": {
               "methods": ["listSpecialistPools", "listSpecialistPools", "listSpecialistPools", "listSpecialistPoolsPagedCallable", "listSpecialistPoolsCallable"]
             },
+            "SetIamPolicy": {
+              "methods": ["setIamPolicy", "setIamPolicyCallable"]
+            },
+            "TestIamPermissions": {
+              "methods": ["testIamPermissions", "testIamPermissionsCallable"]
+            },
             "UpdateSpecialistPool": {
               "methods": ["updateSpecialistPoolAsync", "updateSpecialistPoolAsync", "updateSpecialistPoolOperationCallable", "updateSpecialistPoolCallable"]
             }
@@ -598,6 +796,12 @@
             "ExportTensorboardTimeSeriesData": {
               "methods": ["exportTensorboardTimeSeriesData", "exportTensorboardTimeSeriesData", "exportTensorboardTimeSeriesData", "exportTensorboardTimeSeriesDataPagedCallable", "exportTensorboardTimeSeriesDataCallable"]
             },
+            "GetIamPolicy": {
+              "methods": ["getIamPolicy", "getIamPolicyCallable"]
+            },
+            "GetLocation": {
+              "methods": ["getLocation", "getLocationCallable"]
+            },
             "GetTensorboard": {
               "methods": ["getTensorboard", "getTensorboard", "getTensorboard", "getTensorboardCallable"]
             },
@@ -610,6 +814,9 @@
             "GetTensorboardTimeSeries": {
               "methods": ["getTensorboardTimeSeries", "getTensorboardTimeSeries", "getTensorboardTimeSeries", "getTensorboardTimeSeriesCallable"]
             },
+            "ListLocations": {
+              "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
+            },
             "ListTensorboardExperiments": {
               "methods": ["listTensorboardExperiments", "listTensorboardExperiments", "listTensorboardExperiments", "listTensorboardExperimentsPagedCallable", "listTensorboardExperimentsCallable"]
             },
@@ -628,6 +835,12 @@
             "ReadTensorboardTimeSeriesData": {
               "methods": ["readTensorboardTimeSeriesData", "readTensorboardTimeSeriesData", "readTensorboardTimeSeriesData", "readTensorboardTimeSeriesDataCallable"]
             },
+            "SetIamPolicy": {
+              "methods": ["setIamPolicy", "setIamPolicyCallable"]
+            },
+            "TestIamPermissions": {
+              "methods": ["testIamPermissions", "testIamPermissionsCallable"]
+            },
             "UpdateTensorboard": {
               "methods": ["updateTensorboardAsync", "updateTensorboardAsync", "updateTensorboardOperationCallable", "updateTensorboardCallable"]
             },
@@ -676,12 +889,21 @@
             "DeleteTrial": {
               "methods": ["deleteTrial", "deleteTrial", "deleteTrial", "deleteTrialCallable"]
             },
+            "GetIamPolicy": {
+              "methods": ["getIamPolicy", "getIamPolicyCallable"]
+            },
+            "GetLocation": {
+              "methods": ["getLocation", "getLocationCallable"]
+            },
             "GetStudy": {
               "methods": ["getStudy", "getStudy", "getStudy", "getStudyCallable"]
             },
             "GetTrial": {
               "methods": ["getTrial", "getTrial", "getTrial", "getTrialCallable"]
             },
+            "ListLocations": {
+              "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
+            },
             "ListOptimalTrials": {
               "methods": ["listOptimalTrials", "listOptimalTrials", "listOptimalTrials", "listOptimalTrialsCallable"]
             },
@@ -694,11 +916,17 @@
             "LookupStudy": {
               "methods": ["lookupStudy", "lookupStudy", "lookupStudy", "lookupStudyCallable"]
             },
+            "SetIamPolicy": {
+              "methods": ["setIamPolicy", "setIamPolicyCallable"]
+            },
             "StopTrial": {
               "methods": ["stopTrial", "stopTrialCallable"]
             },
             "SuggestTrials": {
               "methods": ["suggestTrialsAsync", "suggestTrialsOperationCallable", "suggestTrialsCallable"]
+            },
+            "TestIamPermissions": {
+              "methods": ["testIamPermissions", "testIamPermissionsCallable"]
             }
           }
         }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/package-info.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/package-info.java
index af4cb8f927d7..63c457babf5e 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/package-info.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/package-info.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -15,7 +15,9 @@
  */
 
 /**
- * The interfaces provided are listed below, along with usage samples.
+ * A client to Vertex AI API
+ *
+ * 

The interfaces provided are listed below, along with usage samples. * *

======================= DatasetServiceClient ======================= * @@ -25,6 +27,8 @@ *

Sample for DatasetServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
  *   DatasetName name = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]");
  *   Dataset response = datasetServiceClient.getDataset(name);
@@ -38,6 +42,8 @@
  * 

Sample for EndpointServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
  *   EndpointName name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
  *   Endpoint response = endpointServiceClient.getEndpoint(name);
@@ -51,6 +57,8 @@
  * 

Sample for FeaturestoreOnlineServingServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
  *     FeaturestoreOnlineServingServiceClient.create()) {
  *   EntityTypeName entityType =
@@ -67,6 +75,8 @@
  * 

Sample for FeaturestoreServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
  *   FeaturestoreName name = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
  *   Featurestore response = featurestoreServiceClient.getFeaturestore(name);
@@ -80,6 +90,8 @@
  * 

Sample for IndexEndpointServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (IndexEndpointServiceClient indexEndpointServiceClient =
  *     IndexEndpointServiceClient.create()) {
  *   IndexEndpointName name = IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]");
@@ -94,6 +106,8 @@
  * 

Sample for IndexServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
  *   IndexName name = IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]");
  *   Index response = indexServiceClient.getIndex(name);
@@ -107,6 +121,8 @@
  * 

Sample for JobServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
  *   CustomJob customJob = CustomJob.newBuilder().build();
@@ -121,6 +137,8 @@
  * 

Sample for MetadataServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
  *   MetadataStoreName name = MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
  *   MetadataStore response = metadataServiceClient.getMetadataStore(name);
@@ -135,12 +153,11 @@
  * 

Sample for MigrationServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
- *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- *   for (MigratableResource element :
- *       migrationServiceClient.searchMigratableResources(parent).iterateAll()) {
- *     // doThingsWith(element);
- *   }
+ *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ *   Location response = migrationServiceClient.getLocation(request);
  * }
  * }
* @@ -151,6 +168,8 @@ *

Sample for ModelServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
  *   ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
  *   Model response = modelServiceClient.getModel(name);
@@ -166,6 +185,8 @@
  * 

Sample for PipelineServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
  *   TrainingPipeline trainingPipeline = TrainingPipeline.newBuilder().build();
@@ -181,10 +202,12 @@
  * 

Sample for PredictionServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
  *   EndpointName endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
  *   List instances = new ArrayList<>();
- *   Value parameters = Value.newBuilder().build();
+ *   Value parameters = Value.newBuilder().setBoolValue(true).build();
  *   PredictResponse response = predictionServiceClient.predict(endpoint, instances, parameters);
  * }
  * }
@@ -200,6 +223,8 @@ *

Sample for SpecialistPoolServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (SpecialistPoolServiceClient specialistPoolServiceClient =
  *     SpecialistPoolServiceClient.create()) {
  *   SpecialistPoolName name =
@@ -215,6 +240,8 @@
  * 

Sample for TensorboardServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
  *   TensorboardName name = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
  *   Tensorboard response = tensorboardServiceClient.getTensorboard(name);
@@ -231,6 +258,8 @@
  * 

Sample for VizierServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (VizierServiceClient vizierServiceClient = VizierServiceClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
  *   Study study = Study.newBuilder().build();
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStub.java
index 3760bc11df84..7b3109e285b9 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
 import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListAnnotationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDataItemsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDatasetsPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
@@ -45,6 +46,15 @@
 import com.google.cloud.aiplatform.v1beta1.ListDatasetsRequest;
 import com.google.cloud.aiplatform.v1beta1.ListDatasetsResponse;
 import com.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.OperationsStub;
 import com.google.protobuf.Empty;
@@ -138,6 +148,32 @@ public UnaryCallable listAnnota
     throw new UnsupportedOperationException("Not implemented: listAnnotationsCallable()");
   }
 
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
+  }
+
+  public UnaryCallable listLocationsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
+  }
+
+  public UnaryCallable getLocationCallable() {
+    throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
+  }
+
+  public UnaryCallable setIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
+  }
+
+  public UnaryCallable getIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
+  }
+
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStubSettings.java
index 317a6bb3f1b5..804ff46f08f0 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
 import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListAnnotationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDataItemsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDatasetsPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.core.ApiFunction;
 import com.google.api.core.ApiFuture;
@@ -69,10 +70,19 @@
 import com.google.cloud.aiplatform.v1beta1.ListDatasetsRequest;
 import com.google.cloud.aiplatform.v1beta1.ListDatasetsResponse;
 import com.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.Empty;
 import java.io.IOException;
@@ -98,6 +108,8 @@
  * 

For example, to set the total timeout of getDataset to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * DatasetServiceStubSettings.Builder datasetServiceSettingsBuilder =
  *     DatasetServiceStubSettings.newBuilder();
  * datasetServiceSettingsBuilder
@@ -146,6 +158,14 @@ public class DatasetServiceStubSettings extends StubSettings
       listAnnotationsSettings;
+  private final PagedCallSettings<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      listLocationsSettings;
+  private final UnaryCallSettings getLocationSettings;
+  private final UnaryCallSettings setIamPolicySettings;
+  private final UnaryCallSettings getIamPolicySettings;
+  private final UnaryCallSettings
+      testIamPermissionsSettings;
 
   private static final PagedListDescriptor
       LIST_DATASETS_PAGE_STR_DESC =
@@ -258,6 +278,42 @@ public Iterable extractResources(ListAnnotationsResponse payload) {
             }
           };
 
+  private static final PagedListDescriptor
+      LIST_LOCATIONS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) {
+              return ListLocationsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) {
+              return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListLocationsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListLocationsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListLocationsResponse payload) {
+              return payload.getLocationsList() == null
+                  ? ImmutableList.of()
+                  : payload.getLocationsList();
+            }
+          };
+
   private static final PagedListResponseFactory<
           ListDatasetsRequest, ListDatasetsResponse, ListDatasetsPagedResponse>
       LIST_DATASETS_PAGE_STR_FACT =
@@ -309,6 +365,23 @@ public ApiFuture getFuturePagedResponse(
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      LIST_LOCATIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListLocationsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context);
+              return ListLocationsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
   /** Returns the object with the settings used for calls to createDataset. */
   public UnaryCallSettings createDatasetSettings() {
     return createDatasetSettings;
@@ -387,7 +460,33 @@ public UnaryCallSettings getAnnotation
     return listAnnotationsSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return listLocationsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return getLocationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return setIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return getIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return testIamPermissionsSettings;
+  }
+
   public DatasetServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -477,6 +576,11 @@ protected DatasetServiceStubSettings(Builder settingsBuilder) throws IOException
     listDataItemsSettings = settingsBuilder.listDataItemsSettings().build();
     getAnnotationSpecSettings = settingsBuilder.getAnnotationSpecSettings().build();
     listAnnotationsSettings = settingsBuilder.listAnnotationsSettings().build();
+    listLocationsSettings = settingsBuilder.listLocationsSettings().build();
+    getLocationSettings = settingsBuilder.getLocationSettings().build();
+    setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
+    getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
+    testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
   }
 
   /** Builder for DatasetServiceStubSettings. */
@@ -511,6 +615,14 @@ public static class Builder extends StubSettings.Builder
         listAnnotationsSettings;
+    private final PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings;
+    private final UnaryCallSettings.Builder getLocationSettings;
+    private final UnaryCallSettings.Builder setIamPolicySettings;
+    private final UnaryCallSettings.Builder getIamPolicySettings;
+    private final UnaryCallSettings.Builder
+        testIamPermissionsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -519,6 +631,7 @@ public static class Builder extends StubSettings.BuildernewArrayList()));
+      definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList()));
       RETRYABLE_CODE_DEFINITIONS = definitions.build();
     }
 
@@ -535,6 +648,8 @@ public static class Builder extends StubSettings.Builder>of(
@@ -571,7 +691,12 @@ protected Builder(ClientContext clientContext) {
               exportDataSettings,
               listDataItemsSettings,
               getAnnotationSpecSettings,
-              listAnnotationsSettings);
+              listAnnotationsSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
       initDefaults(this);
     }
 
@@ -592,6 +717,11 @@ protected Builder(DatasetServiceStubSettings settings) {
       listDataItemsSettings = settings.listDataItemsSettings.toBuilder();
       getAnnotationSpecSettings = settings.getAnnotationSpecSettings.toBuilder();
       listAnnotationsSettings = settings.listAnnotationsSettings.toBuilder();
+      listLocationsSettings = settings.listLocationsSettings.toBuilder();
+      getLocationSettings = settings.getLocationSettings.toBuilder();
+      setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
+      getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
+      testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -604,7 +734,12 @@ protected Builder(DatasetServiceStubSettings settings) {
               exportDataSettings,
               listDataItemsSettings,
               getAnnotationSpecSettings,
-              listAnnotationsSettings);
+              listAnnotationsSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
     }
 
     private static Builder createDefault() {
@@ -671,6 +806,31 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
 
+      builder
+          .listLocationsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getLocationSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .setIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .testIamPermissionsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .createDatasetOperationSettings()
           .setInitialCallSettings(
@@ -878,6 +1038,34 @@ public UnaryCallSettings.Builder exportDataSetting
       return listAnnotationsSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return listLocationsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getLocationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return setIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return testIamPermissionsSettings;
+    }
+
     @Override
     public DatasetServiceStubSettings build() throws IOException {
       return new DatasetServiceStubSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStub.java
index 5ef5121034a2..74070b87458e 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1beta1.stub;
 
 import static com.google.cloud.aiplatform.v1beta1.EndpointServiceClient.ListEndpointsPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.EndpointServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
@@ -37,6 +38,15 @@
 import com.google.cloud.aiplatform.v1beta1.UndeployModelRequest;
 import com.google.cloud.aiplatform.v1beta1.UndeployModelResponse;
 import com.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.OperationsStub;
 import com.google.protobuf.Empty;
@@ -110,6 +120,32 @@ public UnaryCallable undeployModelCallable() {
     throw new UnsupportedOperationException("Not implemented: undeployModelCallable()");
   }
 
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
+  }
+
+  public UnaryCallable listLocationsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
+  }
+
+  public UnaryCallable getLocationCallable() {
+    throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
+  }
+
+  public UnaryCallable setIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
+  }
+
+  public UnaryCallable getIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
+  }
+
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStubSettings.java
index 0fa7881749fb..70ddb50e2df1 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1beta1.stub;
 
 import static com.google.cloud.aiplatform.v1beta1.EndpointServiceClient.ListEndpointsPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.EndpointServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.core.ApiFunction;
 import com.google.api.core.ApiFuture;
@@ -59,10 +60,19 @@
 import com.google.cloud.aiplatform.v1beta1.UndeployModelRequest;
 import com.google.cloud.aiplatform.v1beta1.UndeployModelResponse;
 import com.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.Empty;
 import java.io.IOException;
@@ -88,6 +98,8 @@
  * 

For example, to set the total timeout of getEndpoint to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * EndpointServiceStubSettings.Builder endpointServiceSettingsBuilder =
  *     EndpointServiceStubSettings.newBuilder();
  * endpointServiceSettingsBuilder
@@ -129,6 +141,14 @@ public class EndpointServiceStubSettings extends StubSettings
       undeployModelOperationSettings;
+  private final PagedCallSettings<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      listLocationsSettings;
+  private final UnaryCallSettings getLocationSettings;
+  private final UnaryCallSettings setIamPolicySettings;
+  private final UnaryCallSettings getIamPolicySettings;
+  private final UnaryCallSettings
+      testIamPermissionsSettings;
 
   private static final PagedListDescriptor
       LIST_ENDPOINTS_PAGE_STR_DESC =
@@ -166,6 +186,42 @@ public Iterable extractResources(ListEndpointsResponse payload) {
             }
           };
 
+  private static final PagedListDescriptor
+      LIST_LOCATIONS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) {
+              return ListLocationsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) {
+              return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListLocationsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListLocationsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListLocationsResponse payload) {
+              return payload.getLocationsList() == null
+                  ? ImmutableList.of()
+                  : payload.getLocationsList();
+            }
+          };
+
   private static final PagedListResponseFactory<
           ListEndpointsRequest, ListEndpointsResponse, ListEndpointsPagedResponse>
       LIST_ENDPOINTS_PAGE_STR_FACT =
@@ -183,6 +239,23 @@ public ApiFuture getFuturePagedResponse(
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      LIST_LOCATIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListLocationsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context);
+              return ListLocationsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
   /** Returns the object with the settings used for calls to createEndpoint. */
   public UnaryCallSettings createEndpointSettings() {
     return createEndpointSettings;
@@ -245,7 +318,33 @@ public UnaryCallSettings undeployModelSettings(
     return undeployModelOperationSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return listLocationsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return getLocationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return setIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return getIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return testIamPermissionsSettings;
+  }
+
   public EndpointServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -332,6 +431,11 @@ protected EndpointServiceStubSettings(Builder settingsBuilder) throws IOExceptio
     deployModelOperationSettings = settingsBuilder.deployModelOperationSettings().build();
     undeployModelSettings = settingsBuilder.undeployModelSettings().build();
     undeployModelOperationSettings = settingsBuilder.undeployModelOperationSettings().build();
+    listLocationsSettings = settingsBuilder.listLocationsSettings().build();
+    getLocationSettings = settingsBuilder.getLocationSettings().build();
+    setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
+    getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
+    testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
   }
 
   /** Builder for EndpointServiceStubSettings. */
@@ -360,6 +464,14 @@ public static class Builder extends StubSettings.Builder
         undeployModelOperationSettings;
+    private final PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings;
+    private final UnaryCallSettings.Builder getLocationSettings;
+    private final UnaryCallSettings.Builder setIamPolicySettings;
+    private final UnaryCallSettings.Builder getIamPolicySettings;
+    private final UnaryCallSettings.Builder
+        testIamPermissionsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -368,6 +480,7 @@ public static class Builder extends StubSettings.BuildernewArrayList()));
+      definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList()));
       RETRYABLE_CODE_DEFINITIONS = definitions.build();
     }
 
@@ -384,6 +497,8 @@ public static class Builder extends StubSettings.Builder>of(
@@ -414,7 +534,12 @@ protected Builder(ClientContext clientContext) {
               updateEndpointSettings,
               deleteEndpointSettings,
               deployModelSettings,
-              undeployModelSettings);
+              undeployModelSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
       initDefaults(this);
     }
 
@@ -432,6 +557,11 @@ protected Builder(EndpointServiceStubSettings settings) {
       deployModelOperationSettings = settings.deployModelOperationSettings.toBuilder();
       undeployModelSettings = settings.undeployModelSettings.toBuilder();
       undeployModelOperationSettings = settings.undeployModelOperationSettings.toBuilder();
+      listLocationsSettings = settings.listLocationsSettings.toBuilder();
+      getLocationSettings = settings.getLocationSettings.toBuilder();
+      setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
+      getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
+      testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -441,7 +571,12 @@ protected Builder(EndpointServiceStubSettings settings) {
               updateEndpointSettings,
               deleteEndpointSettings,
               deployModelSettings,
-              undeployModelSettings);
+              undeployModelSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
     }
 
     private static Builder createDefault() {
@@ -493,6 +628,31 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
 
+      builder
+          .listLocationsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getLocationSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .setIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .testIamPermissionsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .createEndpointOperationSettings()
           .setInitialCallSettings(
@@ -681,6 +841,34 @@ public UnaryCallSettings.Builder undeployModelS
       return undeployModelOperationSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return listLocationsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getLocationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return setIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return testIamPermissionsSettings;
+    }
+
     @Override
     public EndpointServiceStubSettings build() throws IOException {
       return new EndpointServiceStubSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreOnlineServingServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreOnlineServingServiceStub.java
index d09d09c11bd9..b23bedfb9dad 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreOnlineServingServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreOnlineServingServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,8 @@
 
 package com.google.cloud.aiplatform.v1beta1.stub;
 
+import static com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingServiceClient.ListLocationsPagedResponse;
+
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
 import com.google.api.gax.rpc.ServerStreamingCallable;
@@ -23,6 +25,15 @@
 import com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest;
 import com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse;
 import com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS.
@@ -46,6 +57,32 @@ public abstract class FeaturestoreOnlineServingServiceStub implements Background
         "Not implemented: streamingReadFeatureValuesCallable()");
   }
 
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
+  }
+
+  public UnaryCallable listLocationsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
+  }
+
+  public UnaryCallable getLocationCallable() {
+    throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
+  }
+
+  public UnaryCallable setIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
+  }
+
+  public UnaryCallable getIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
+  }
+
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreOnlineServingServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreOnlineServingServiceStubSettings.java
index c1469f01997a..3e43a116463e 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreOnlineServingServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreOnlineServingServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,7 +16,10 @@
 
 package com.google.cloud.aiplatform.v1beta1.stub;
 
+import static com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingServiceClient.ListLocationsPagedResponse;
+
 import com.google.api.core.ApiFunction;
+import com.google.api.core.ApiFuture;
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
@@ -25,20 +28,35 @@
 import com.google.api.gax.grpc.GrpcTransportChannel;
 import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
 import com.google.api.gax.retrying.RetrySettings;
+import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.PageContext;
+import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.PagedListDescriptor;
+import com.google.api.gax.rpc.PagedListResponseFactory;
 import com.google.api.gax.rpc.ServerStreamingCallSettings;
 import com.google.api.gax.rpc.StatusCode;
 import com.google.api.gax.rpc.StubSettings;
 import com.google.api.gax.rpc.TransportChannelProvider;
 import com.google.api.gax.rpc.UnaryCallSettings;
+import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest;
 import com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse;
 import com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import java.io.IOException;
 import java.util.List;
 import javax.annotation.Generated;
@@ -62,6 +80,8 @@
  * 

For example, to set the total timeout of readFeatureValues to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * FeaturestoreOnlineServingServiceStubSettings.Builder
  *     featurestoreOnlineServingServiceSettingsBuilder =
  *         FeaturestoreOnlineServingServiceStubSettings.newBuilder();
@@ -91,6 +111,67 @@ public class FeaturestoreOnlineServingServiceStubSettings
   private final ServerStreamingCallSettings<
           StreamingReadFeatureValuesRequest, ReadFeatureValuesResponse>
       streamingReadFeatureValuesSettings;
+  private final PagedCallSettings<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      listLocationsSettings;
+  private final UnaryCallSettings getLocationSettings;
+  private final UnaryCallSettings setIamPolicySettings;
+  private final UnaryCallSettings getIamPolicySettings;
+  private final UnaryCallSettings
+      testIamPermissionsSettings;
+
+  private static final PagedListDescriptor
+      LIST_LOCATIONS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) {
+              return ListLocationsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) {
+              return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListLocationsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListLocationsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListLocationsResponse payload) {
+              return payload.getLocationsList() == null
+                  ? ImmutableList.of()
+                  : payload.getLocationsList();
+            }
+          };
+
+  private static final PagedListResponseFactory<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      LIST_LOCATIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListLocationsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context);
+              return ListLocationsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
 
   /** Returns the object with the settings used for calls to readFeatureValues. */
   public UnaryCallSettings
@@ -104,7 +185,33 @@ public class FeaturestoreOnlineServingServiceStubSettings
     return streamingReadFeatureValuesSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return listLocationsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return getLocationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return setIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return getIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return testIamPermissionsSettings;
+  }
+
   public FeaturestoreOnlineServingServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -185,6 +292,11 @@ protected FeaturestoreOnlineServingServiceStubSettings(Builder settingsBuilder)
     readFeatureValuesSettings = settingsBuilder.readFeatureValuesSettings().build();
     streamingReadFeatureValuesSettings =
         settingsBuilder.streamingReadFeatureValuesSettings().build();
+    listLocationsSettings = settingsBuilder.listLocationsSettings().build();
+    getLocationSettings = settingsBuilder.getLocationSettings().build();
+    setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
+    getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
+    testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
   }
 
   /** Builder for FeaturestoreOnlineServingServiceStubSettings. */
@@ -196,6 +308,14 @@ public static class Builder
     private final ServerStreamingCallSettings.Builder<
             StreamingReadFeatureValuesRequest, ReadFeatureValuesResponse>
         streamingReadFeatureValuesSettings;
+    private final PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings;
+    private final UnaryCallSettings.Builder getLocationSettings;
+    private final UnaryCallSettings.Builder setIamPolicySettings;
+    private final UnaryCallSettings.Builder getIamPolicySettings;
+    private final UnaryCallSettings.Builder
+        testIamPermissionsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -204,6 +324,7 @@ public static class Builder
           ImmutableMap.builder();
       definitions.put(
           "no_retry_13_codes", ImmutableSet.copyOf(Lists.newArrayList()));
+      definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList()));
       RETRYABLE_CODE_DEFINITIONS = definitions.build();
     }
 
@@ -220,6 +341,8 @@ public static class Builder
               .setTotalTimeout(Duration.ofMillis(5000L))
               .build();
       definitions.put("no_retry_13_params", settings);
+      settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build();
+      definitions.put("no_retry_params", settings);
       RETRY_PARAM_DEFINITIONS = definitions.build();
     }
 
@@ -232,9 +355,20 @@ protected Builder(ClientContext clientContext) {
 
       readFeatureValuesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       streamingReadFeatureValuesSettings = ServerStreamingCallSettings.newBuilder();
+      listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
+      getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
-          ImmutableList.>of(readFeatureValuesSettings);
+          ImmutableList.>of(
+              readFeatureValuesSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
       initDefaults(this);
     }
 
@@ -243,9 +377,20 @@ protected Builder(FeaturestoreOnlineServingServiceStubSettings settings) {
 
       readFeatureValuesSettings = settings.readFeatureValuesSettings.toBuilder();
       streamingReadFeatureValuesSettings = settings.streamingReadFeatureValuesSettings.toBuilder();
+      listLocationsSettings = settings.listLocationsSettings.toBuilder();
+      getLocationSettings = settings.getLocationSettings.toBuilder();
+      setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
+      getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
+      testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
-          ImmutableList.>of(readFeatureValuesSettings);
+          ImmutableList.>of(
+              readFeatureValuesSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
     }
 
     private static Builder createDefault() {
@@ -272,6 +417,31 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_13_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_13_params"));
 
+      builder
+          .listLocationsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getLocationSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .setIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .testIamPermissionsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       return builder;
     }
 
@@ -303,6 +473,34 @@ public Builder applyToAllUnaryMethods(
       return streamingReadFeatureValuesSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return listLocationsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getLocationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return setIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return testIamPermissionsSettings;
+    }
+
     @Override
     public FeaturestoreOnlineServingServiceStubSettings build() throws IOException {
       return new FeaturestoreOnlineServingServiceStubSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStub.java
index e08b8601e49a..c9069eae6f83 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
 import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListEntityTypesPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListFeaturesPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListFeaturestoresPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.SearchFeaturesPagedResponse;
 
 import com.google.api.core.BetaApi;
@@ -65,6 +66,15 @@
 import com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest;
 import com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata;
 import com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.OperationsStub;
 import com.google.protobuf.Empty;
@@ -260,6 +270,32 @@ public UnaryCallable searchFeatur
     throw new UnsupportedOperationException("Not implemented: searchFeaturesCallable()");
   }
 
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
+  }
+
+  public UnaryCallable listLocationsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
+  }
+
+  public UnaryCallable getLocationCallable() {
+    throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
+  }
+
+  public UnaryCallable setIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
+  }
+
+  public UnaryCallable getIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
+  }
+
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStubSettings.java
index 9ff11d3791ce..65156a591463 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
 import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListEntityTypesPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListFeaturesPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListFeaturestoresPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.SearchFeaturesPagedResponse;
 
 import com.google.api.core.ApiFunction;
@@ -87,10 +88,19 @@
 import com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest;
 import com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata;
 import com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.Empty;
 import java.io.IOException;
@@ -116,6 +126,8 @@
  * 

For example, to set the total timeout of getFeaturestore to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * FeaturestoreServiceStubSettings.Builder featurestoreServiceSettingsBuilder =
  *     FeaturestoreServiceStubSettings.newBuilder();
  * featurestoreServiceSettingsBuilder
@@ -207,6 +219,14 @@ public class FeaturestoreServiceStubSettings extends StubSettings
       searchFeaturesSettings;
+  private final PagedCallSettings<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      listLocationsSettings;
+  private final UnaryCallSettings getLocationSettings;
+  private final UnaryCallSettings setIamPolicySettings;
+  private final UnaryCallSettings getIamPolicySettings;
+  private final UnaryCallSettings
+      testIamPermissionsSettings;
 
   private static final PagedListDescriptor<
           ListFeaturestoresRequest, ListFeaturestoresResponse, Featurestore>
@@ -360,6 +380,42 @@ public Iterable extractResources(SearchFeaturesResponse payload) {
             }
           };
 
+  private static final PagedListDescriptor
+      LIST_LOCATIONS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) {
+              return ListLocationsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) {
+              return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListLocationsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListLocationsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListLocationsResponse payload) {
+              return payload.getLocationsList() == null
+                  ? ImmutableList.of()
+                  : payload.getLocationsList();
+            }
+          };
+
   private static final PagedListResponseFactory<
           ListFeaturestoresRequest, ListFeaturestoresResponse, ListFeaturestoresPagedResponse>
       LIST_FEATURESTORES_PAGE_STR_FACT =
@@ -432,6 +488,23 @@ public ApiFuture getFuturePagedResponse(
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      LIST_LOCATIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListLocationsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context);
+              return ListLocationsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
   /** Returns the object with the settings used for calls to createFeaturestore. */
   public UnaryCallSettings createFeaturestoreSettings() {
     return createFeaturestoreSettings;
@@ -621,7 +694,33 @@ public UnaryCallSettings exportFeatureVal
     return searchFeaturesSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return listLocationsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return getLocationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return setIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return getIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return testIamPermissionsSettings;
+  }
+
   public FeaturestoreServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -735,6 +834,11 @@ protected FeaturestoreServiceStubSettings(Builder settingsBuilder) throws IOExce
     exportFeatureValuesOperationSettings =
         settingsBuilder.exportFeatureValuesOperationSettings().build();
     searchFeaturesSettings = settingsBuilder.searchFeaturesSettings().build();
+    listLocationsSettings = settingsBuilder.listLocationsSettings().build();
+    getLocationSettings = settingsBuilder.getLocationSettings().build();
+    setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
+    getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
+    testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
   }
 
   /** Builder for FeaturestoreServiceStubSettings. */
@@ -821,6 +925,14 @@ public static class Builder
     private final PagedCallSettings.Builder<
             SearchFeaturesRequest, SearchFeaturesResponse, SearchFeaturesPagedResponse>
         searchFeaturesSettings;
+    private final PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings;
+    private final UnaryCallSettings.Builder getLocationSettings;
+    private final UnaryCallSettings.Builder setIamPolicySettings;
+    private final UnaryCallSettings.Builder getIamPolicySettings;
+    private final UnaryCallSettings.Builder
+        testIamPermissionsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -889,6 +1001,11 @@ protected Builder(ClientContext clientContext) {
       exportFeatureValuesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       exportFeatureValuesOperationSettings = OperationCallSettings.newBuilder();
       searchFeaturesSettings = PagedCallSettings.newBuilder(SEARCH_FEATURES_PAGE_STR_FACT);
+      listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
+      getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -911,7 +1028,12 @@ protected Builder(ClientContext clientContext) {
               importFeatureValuesSettings,
               batchReadFeatureValuesSettings,
               exportFeatureValuesSettings,
-              searchFeaturesSettings);
+              searchFeaturesSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
       initDefaults(this);
     }
 
@@ -956,6 +1078,11 @@ protected Builder(FeaturestoreServiceStubSettings settings) {
       exportFeatureValuesOperationSettings =
           settings.exportFeatureValuesOperationSettings.toBuilder();
       searchFeaturesSettings = settings.searchFeaturesSettings.toBuilder();
+      listLocationsSettings = settings.listLocationsSettings.toBuilder();
+      getLocationSettings = settings.getLocationSettings.toBuilder();
+      setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
+      getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
+      testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -978,7 +1105,12 @@ protected Builder(FeaturestoreServiceStubSettings settings) {
               importFeatureValuesSettings,
               batchReadFeatureValuesSettings,
               exportFeatureValuesSettings,
-              searchFeaturesSettings);
+              searchFeaturesSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
     }
 
     private static Builder createDefault() {
@@ -1095,6 +1227,31 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_12_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_12_params"));
 
+      builder
+          .listLocationsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getLocationSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .setIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .testIamPermissionsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .createFeaturestoreOperationSettings()
           .setInitialCallSettings(
@@ -1612,6 +1769,34 @@ public UnaryCallSettings.Builder deleteFeatureS
       return searchFeaturesSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return listLocationsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getLocationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return setIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return testIamPermissionsSettings;
+    }
+
     @Override
     public FeaturestoreServiceStubSettings build() throws IOException {
       return new FeaturestoreServiceStubSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDatasetServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDatasetServiceCallableFactory.java
index 9124c6939e21..bddfdaa01834 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDatasetServiceCallableFactory.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDatasetServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDatasetServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDatasetServiceStub.java
index 2a9883376463..c0e6847fc966 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDatasetServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDatasetServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
 import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListAnnotationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDataItemsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDatasetsPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
@@ -49,7 +50,16 @@
 import com.google.cloud.aiplatform.v1beta1.ListDatasetsRequest;
 import com.google.cloud.aiplatform.v1beta1.ListDatasetsResponse;
 import com.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableMap;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.GrpcOperationsStub;
 import com.google.protobuf.Empty;
@@ -164,6 +174,52 @@ public class GrpcDatasetServiceStub extends DatasetServiceStub {
                   ProtoUtils.marshaller(ListAnnotationsResponse.getDefaultInstance()))
               .build();
 
+  private static final MethodDescriptor
+      listLocationsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.location.Locations/ListLocations")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor getLocationMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.location.Locations/GetLocation")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor setIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor getIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor
+      testIamPermissionsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
+              .build();
+
   private final UnaryCallable createDatasetCallable;
   private final OperationCallable
       createDatasetOperationCallable;
@@ -191,6 +247,14 @@ public class GrpcDatasetServiceStub extends DatasetServiceStub {
       listAnnotationsCallable;
   private final UnaryCallable
       listAnnotationsPagedCallable;
+  private final UnaryCallable listLocationsCallable;
+  private final UnaryCallable
+      listLocationsPagedCallable;
+  private final UnaryCallable getLocationCallable;
+  private final UnaryCallable setIamPolicyCallable;
+  private final UnaryCallable getIamPolicyCallable;
+  private final UnaryCallable
+      testIamPermissionsCallable;
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -337,6 +401,57 @@ protected GrpcDatasetServiceStub(
                       return params.build();
                     })
                 .build();
+    GrpcCallSettings listLocationsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listLocationsMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getLocationTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getLocationMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings setIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(setIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings
+        testIamPermissionsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(testIamPermissionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("resource", String.valueOf(request.getResource()));
+                      return params.build();
+                    })
+                .build();
 
     this.createDatasetCallable =
         callableFactory.createUnaryCallable(
@@ -403,6 +518,26 @@ protected GrpcDatasetServiceStub(
     this.listAnnotationsPagedCallable =
         callableFactory.createPagedCallable(
             listAnnotationsTransportSettings, settings.listAnnotationsSettings(), clientContext);
+    this.listLocationsCallable =
+        callableFactory.createUnaryCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.listLocationsPagedCallable =
+        callableFactory.createPagedCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.getLocationCallable =
+        callableFactory.createUnaryCallable(
+            getLocationTransportSettings, settings.getLocationSettings(), clientContext);
+    this.setIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
+    this.getIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
+    this.testIamPermissionsCallable =
+        callableFactory.createUnaryCallable(
+            testIamPermissionsTransportSettings,
+            settings.testIamPermissionsSettings(),
+            clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -503,6 +638,38 @@ public UnaryCallable listAnnota
     return listAnnotationsPagedCallable;
   }
 
+  @Override
+  public UnaryCallable listLocationsCallable() {
+    return listLocationsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    return listLocationsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable getLocationCallable() {
+    return getLocationCallable;
+  }
+
+  @Override
+  public UnaryCallable setIamPolicyCallable() {
+    return setIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable getIamPolicyCallable() {
+    return getIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    return testIamPermissionsCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcEndpointServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcEndpointServiceCallableFactory.java
index 24ec335a0cd8..042af807342a 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcEndpointServiceCallableFactory.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcEndpointServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcEndpointServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcEndpointServiceStub.java
index b75ceba03e4d..9a6c1d975a30 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcEndpointServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcEndpointServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1beta1.stub;
 
 import static com.google.cloud.aiplatform.v1beta1.EndpointServiceClient.ListEndpointsPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.EndpointServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
@@ -41,7 +42,16 @@
 import com.google.cloud.aiplatform.v1beta1.UndeployModelRequest;
 import com.google.cloud.aiplatform.v1beta1.UndeployModelResponse;
 import com.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableMap;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.GrpcOperationsStub;
 import com.google.protobuf.Empty;
@@ -127,6 +137,52 @@ public class GrpcEndpointServiceStub extends EndpointServiceStub {
               .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
               .build();
 
+  private static final MethodDescriptor
+      listLocationsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.location.Locations/ListLocations")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor getLocationMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.location.Locations/GetLocation")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor setIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor getIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor
+      testIamPermissionsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
+              .build();
+
   private final UnaryCallable createEndpointCallable;
   private final OperationCallable
       createEndpointOperationCallable;
@@ -146,6 +202,14 @@ public class GrpcEndpointServiceStub extends EndpointServiceStub {
   private final OperationCallable<
           UndeployModelRequest, UndeployModelResponse, UndeployModelOperationMetadata>
       undeployModelOperationCallable;
+  private final UnaryCallable listLocationsCallable;
+  private final UnaryCallable
+      listLocationsPagedCallable;
+  private final UnaryCallable getLocationCallable;
+  private final UnaryCallable setIamPolicyCallable;
+  private final UnaryCallable getIamPolicyCallable;
+  private final UnaryCallable
+      testIamPermissionsCallable;
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -261,6 +325,57 @@ protected GrpcEndpointServiceStub(
                   return params.build();
                 })
             .build();
+    GrpcCallSettings listLocationsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listLocationsMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getLocationTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getLocationMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings setIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(setIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings
+        testIamPermissionsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(testIamPermissionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("resource", String.valueOf(request.getResource()));
+                      return params.build();
+                    })
+                .build();
 
     this.createEndpointCallable =
         callableFactory.createUnaryCallable(
@@ -310,6 +425,26 @@ protected GrpcEndpointServiceStub(
             settings.undeployModelOperationSettings(),
             clientContext,
             operationsStub);
+    this.listLocationsCallable =
+        callableFactory.createUnaryCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.listLocationsPagedCallable =
+        callableFactory.createPagedCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.getLocationCallable =
+        callableFactory.createUnaryCallable(
+            getLocationTransportSettings, settings.getLocationSettings(), clientContext);
+    this.setIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
+    this.getIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
+    this.testIamPermissionsCallable =
+        callableFactory.createUnaryCallable(
+            testIamPermissionsTransportSettings,
+            settings.testIamPermissionsSettings(),
+            clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -385,6 +520,38 @@ public UnaryCallable undeployModelCallable() {
     return undeployModelOperationCallable;
   }
 
+  @Override
+  public UnaryCallable listLocationsCallable() {
+    return listLocationsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    return listLocationsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable getLocationCallable() {
+    return getLocationCallable;
+  }
+
+  @Override
+  public UnaryCallable setIamPolicyCallable() {
+    return setIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable getIamPolicyCallable() {
+    return getIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    return testIamPermissionsCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreOnlineServingServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreOnlineServingServiceCallableFactory.java
index c79df64da2e2..7486b0cdbdea 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreOnlineServingServiceCallableFactory.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreOnlineServingServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreOnlineServingServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreOnlineServingServiceStub.java
index de5c69ac1867..a54e18972e59 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreOnlineServingServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreOnlineServingServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,8 @@
 
 package com.google.cloud.aiplatform.v1beta1.stub;
 
+import static com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingServiceClient.ListLocationsPagedResponse;
+
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
 import com.google.api.gax.core.BackgroundResourceAggregation;
@@ -27,7 +29,16 @@
 import com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest;
 import com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse;
 import com.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableMap;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.stub.GrpcOperationsStub;
 import io.grpc.MethodDescriptor;
 import io.grpc.protobuf.ProtoUtils;
@@ -70,11 +81,65 @@ public class GrpcFeaturestoreOnlineServingServiceStub extends FeaturestoreOnline
                   ProtoUtils.marshaller(ReadFeatureValuesResponse.getDefaultInstance()))
               .build();
 
+  private static final MethodDescriptor
+      listLocationsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.location.Locations/ListLocations")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor getLocationMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.location.Locations/GetLocation")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor setIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor getIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor
+      testIamPermissionsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
+              .build();
+
   private final UnaryCallable
       readFeatureValuesCallable;
   private final ServerStreamingCallable<
           StreamingReadFeatureValuesRequest, ReadFeatureValuesResponse>
       streamingReadFeatureValuesCallable;
+  private final UnaryCallable listLocationsCallable;
+  private final UnaryCallable
+      listLocationsPagedCallable;
+  private final UnaryCallable getLocationCallable;
+  private final UnaryCallable setIamPolicyCallable;
+  private final UnaryCallable getIamPolicyCallable;
+  private final UnaryCallable
+      testIamPermissionsCallable;
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -146,6 +211,57 @@ protected GrpcFeaturestoreOnlineServingServiceStub(
                       return params.build();
                     })
                 .build();
+    GrpcCallSettings listLocationsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listLocationsMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getLocationTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getLocationMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings setIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(setIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings
+        testIamPermissionsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(testIamPermissionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("resource", String.valueOf(request.getResource()));
+                      return params.build();
+                    })
+                .build();
 
     this.readFeatureValuesCallable =
         callableFactory.createUnaryCallable(
@@ -157,6 +273,26 @@ protected GrpcFeaturestoreOnlineServingServiceStub(
             streamingReadFeatureValuesTransportSettings,
             settings.streamingReadFeatureValuesSettings(),
             clientContext);
+    this.listLocationsCallable =
+        callableFactory.createUnaryCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.listLocationsPagedCallable =
+        callableFactory.createPagedCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.getLocationCallable =
+        callableFactory.createUnaryCallable(
+            getLocationTransportSettings, settings.getLocationSettings(), clientContext);
+    this.setIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
+    this.getIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
+    this.testIamPermissionsCallable =
+        callableFactory.createUnaryCallable(
+            testIamPermissionsTransportSettings,
+            settings.testIamPermissionsSettings(),
+            clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -178,6 +314,38 @@ public GrpcOperationsStub getOperationsStub() {
     return streamingReadFeatureValuesCallable;
   }
 
+  @Override
+  public UnaryCallable listLocationsCallable() {
+    return listLocationsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    return listLocationsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable getLocationCallable() {
+    return getLocationCallable;
+  }
+
+  @Override
+  public UnaryCallable setIamPolicyCallable() {
+    return setIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable getIamPolicyCallable() {
+    return getIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    return testIamPermissionsCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreServiceCallableFactory.java
index fafc3a3bbd0b..5576a57b3620 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreServiceCallableFactory.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreServiceStub.java
index 962ab053e3aa..0a15e6dca952 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
 import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListEntityTypesPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListFeaturesPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListFeaturestoresPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.SearchFeaturesPagedResponse;
 
 import com.google.api.core.BetaApi;
@@ -69,7 +70,16 @@
 import com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest;
 import com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata;
 import com.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableMap;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.GrpcOperationsStub;
 import com.google.protobuf.Empty;
@@ -307,6 +317,52 @@ public class GrpcFeaturestoreServiceStub extends FeaturestoreServiceStub {
                   ProtoUtils.marshaller(SearchFeaturesResponse.getDefaultInstance()))
               .build();
 
+  private static final MethodDescriptor
+      listLocationsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.location.Locations/ListLocations")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor getLocationMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.location.Locations/GetLocation")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor setIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor getIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor
+      testIamPermissionsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
+              .build();
+
   private final UnaryCallable createFeaturestoreCallable;
   private final OperationCallable<
           CreateFeaturestoreRequest, Featurestore, CreateFeaturestoreOperationMetadata>
@@ -375,6 +431,14 @@ public class GrpcFeaturestoreServiceStub extends FeaturestoreServiceStub {
   private final UnaryCallable searchFeaturesCallable;
   private final UnaryCallable
       searchFeaturesPagedCallable;
+  private final UnaryCallable listLocationsCallable;
+  private final UnaryCallable
+      listLocationsPagedCallable;
+  private final UnaryCallable getLocationCallable;
+  private final UnaryCallable setIamPolicyCallable;
+  private final UnaryCallable getIamPolicyCallable;
+  private final UnaryCallable
+      testIamPermissionsCallable;
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -625,6 +689,57 @@ protected GrpcFeaturestoreServiceStub(
                       return params.build();
                     })
                 .build();
+    GrpcCallSettings listLocationsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listLocationsMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getLocationTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getLocationMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings setIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(setIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings
+        testIamPermissionsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(testIamPermissionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("resource", String.valueOf(request.getResource()));
+                      return params.build();
+                    })
+                .build();
 
     this.createFeaturestoreCallable =
         callableFactory.createUnaryCallable(
@@ -782,6 +897,26 @@ protected GrpcFeaturestoreServiceStub(
     this.searchFeaturesPagedCallable =
         callableFactory.createPagedCallable(
             searchFeaturesTransportSettings, settings.searchFeaturesSettings(), clientContext);
+    this.listLocationsCallable =
+        callableFactory.createUnaryCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.listLocationsPagedCallable =
+        callableFactory.createPagedCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.getLocationCallable =
+        callableFactory.createUnaryCallable(
+            getLocationTransportSettings, settings.getLocationSettings(), clientContext);
+    this.setIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
+    this.getIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
+    this.testIamPermissionsCallable =
+        callableFactory.createUnaryCallable(
+            testIamPermissionsTransportSettings,
+            settings.testIamPermissionsSettings(),
+            clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -995,6 +1130,38 @@ public UnaryCallable searchFeatur
     return searchFeaturesPagedCallable;
   }
 
+  @Override
+  public UnaryCallable listLocationsCallable() {
+    return listLocationsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    return listLocationsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable getLocationCallable() {
+    return getLocationCallable;
+  }
+
+  @Override
+  public UnaryCallable setIamPolicyCallable() {
+    return setIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable getIamPolicyCallable() {
+    return getIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    return testIamPermissionsCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexEndpointServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexEndpointServiceCallableFactory.java
index b8c0b074c4e8..a68c17d0060b 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexEndpointServiceCallableFactory.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexEndpointServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexEndpointServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexEndpointServiceStub.java
index c9bf1368e059..ca0e59dadb4b 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexEndpointServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexEndpointServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1beta1.stub;
 
 import static com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceClient.ListIndexEndpointsPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
@@ -44,7 +45,16 @@
 import com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest;
 import com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse;
 import com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableMap;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.GrpcOperationsStub;
 import com.google.protobuf.Empty;
@@ -149,6 +159,52 @@ public class GrpcIndexEndpointServiceStub extends IndexEndpointServiceStub {
               .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
               .build();
 
+  private static final MethodDescriptor
+      listLocationsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.location.Locations/ListLocations")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor getLocationMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.location.Locations/GetLocation")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor setIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor getIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor
+      testIamPermissionsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
+              .build();
+
   private final UnaryCallable createIndexEndpointCallable;
   private final OperationCallable<
           CreateIndexEndpointRequest, IndexEndpoint, CreateIndexEndpointOperationMetadata>
@@ -177,6 +233,14 @@ public class GrpcIndexEndpointServiceStub extends IndexEndpointServiceStub {
           MutateDeployedIndexResponse,
           MutateDeployedIndexOperationMetadata>
       mutateDeployedIndexOperationCallable;
+  private final UnaryCallable listLocationsCallable;
+  private final UnaryCallable
+      listLocationsPagedCallable;
+  private final UnaryCallable getLocationCallable;
+  private final UnaryCallable setIamPolicyCallable;
+  private final UnaryCallable getIamPolicyCallable;
+  private final UnaryCallable
+      testIamPermissionsCallable;
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -306,6 +370,57 @@ protected GrpcIndexEndpointServiceStub(
                   return params.build();
                 })
             .build();
+    GrpcCallSettings listLocationsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listLocationsMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getLocationTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getLocationMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings setIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(setIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings
+        testIamPermissionsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(testIamPermissionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("resource", String.valueOf(request.getResource()));
+                      return params.build();
+                    })
+                .build();
 
     this.createIndexEndpointCallable =
         callableFactory.createUnaryCallable(
@@ -376,6 +491,26 @@ protected GrpcIndexEndpointServiceStub(
             settings.mutateDeployedIndexOperationSettings(),
             clientContext,
             operationsStub);
+    this.listLocationsCallable =
+        callableFactory.createUnaryCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.listLocationsPagedCallable =
+        callableFactory.createPagedCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.getLocationCallable =
+        callableFactory.createUnaryCallable(
+            getLocationTransportSettings, settings.getLocationSettings(), clientContext);
+    this.setIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
+    this.getIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
+    this.testIamPermissionsCallable =
+        callableFactory.createUnaryCallable(
+            testIamPermissionsTransportSettings,
+            settings.testIamPermissionsSettings(),
+            clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -467,6 +602,38 @@ public UnaryCallable mutateDeployedIndexC
     return mutateDeployedIndexOperationCallable;
   }
 
+  @Override
+  public UnaryCallable listLocationsCallable() {
+    return listLocationsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    return listLocationsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable getLocationCallable() {
+    return getLocationCallable;
+  }
+
+  @Override
+  public UnaryCallable setIamPolicyCallable() {
+    return setIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable getIamPolicyCallable() {
+    return getIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    return testIamPermissionsCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexServiceCallableFactory.java
index 0d7070e1dda6..dc71931a8b26 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexServiceCallableFactory.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexServiceStub.java
index 93cea26d7890..006a16018881 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1beta1.stub;
 
 import static com.google.cloud.aiplatform.v1beta1.IndexServiceClient.ListIndexesPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.IndexServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
@@ -36,7 +37,16 @@
 import com.google.cloud.aiplatform.v1beta1.ListIndexesResponse;
 import com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata;
 import com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableMap;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.GrpcOperationsStub;
 import com.google.protobuf.Empty;
@@ -97,6 +107,52 @@ public class GrpcIndexServiceStub extends IndexServiceStub {
           .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
           .build();
 
+  private static final MethodDescriptor
+      listLocationsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.location.Locations/ListLocations")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor getLocationMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.location.Locations/GetLocation")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor setIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor getIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor
+      testIamPermissionsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
+              .build();
+
   private final UnaryCallable createIndexCallable;
   private final OperationCallable
       createIndexOperationCallable;
@@ -110,6 +166,14 @@ public class GrpcIndexServiceStub extends IndexServiceStub {
   private final UnaryCallable deleteIndexCallable;
   private final OperationCallable
       deleteIndexOperationCallable;
+  private final UnaryCallable listLocationsCallable;
+  private final UnaryCallable
+      listLocationsPagedCallable;
+  private final UnaryCallable getLocationCallable;
+  private final UnaryCallable setIamPolicyCallable;
+  private final UnaryCallable getIamPolicyCallable;
+  private final UnaryCallable
+      testIamPermissionsCallable;
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -203,6 +267,57 @@ protected GrpcIndexServiceStub(
                   return params.build();
                 })
             .build();
+    GrpcCallSettings listLocationsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listLocationsMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getLocationTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getLocationMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings setIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(setIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings
+        testIamPermissionsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(testIamPermissionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("resource", String.valueOf(request.getResource()));
+                      return params.build();
+                    })
+                .build();
 
     this.createIndexCallable =
         callableFactory.createUnaryCallable(
@@ -240,6 +355,26 @@ protected GrpcIndexServiceStub(
             settings.deleteIndexOperationSettings(),
             clientContext,
             operationsStub);
+    this.listLocationsCallable =
+        callableFactory.createUnaryCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.listLocationsPagedCallable =
+        callableFactory.createPagedCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.getLocationCallable =
+        callableFactory.createUnaryCallable(
+            getLocationTransportSettings, settings.getLocationSettings(), clientContext);
+    this.setIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
+    this.getIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
+    this.testIamPermissionsCallable =
+        callableFactory.createUnaryCallable(
+            testIamPermissionsTransportSettings,
+            settings.testIamPermissionsSettings(),
+            clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -297,6 +432,38 @@ public UnaryCallable deleteIndexCallable() {
     return deleteIndexOperationCallable;
   }
 
+  @Override
+  public UnaryCallable listLocationsCallable() {
+    return listLocationsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    return listLocationsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable getLocationCallable() {
+    return getLocationCallable;
+  }
+
+  @Override
+  public UnaryCallable setIamPolicyCallable() {
+    return setIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable getIamPolicyCallable() {
+    return getIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    return testIamPermissionsCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcJobServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcJobServiceCallableFactory.java
index 6ffaa7d11c1e..160964c2ecaf 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcJobServiceCallableFactory.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcJobServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcJobServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcJobServiceStub.java
index 07fc8ee95081..fd5bd7a24def 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcJobServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcJobServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -20,6 +20,7 @@
 import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListCustomJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListDataLabelingJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListHyperparameterTuningJobsPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListModelDeploymentMonitoringJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse;
 
@@ -72,7 +73,16 @@
 import com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse;
 import com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata;
 import com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableMap;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.GrpcOperationsStub;
 import com.google.protobuf.Empty;
@@ -426,6 +436,52 @@ public class GrpcJobServiceStub extends JobServiceStub {
               .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
               .build();
 
+  private static final MethodDescriptor
+      listLocationsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.location.Locations/ListLocations")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor getLocationMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.location.Locations/GetLocation")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor setIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor getIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor
+      testIamPermissionsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
+              .build();
+
   private final UnaryCallable createCustomJobCallable;
   private final UnaryCallable getCustomJobCallable;
   private final UnaryCallable listCustomJobsCallable;
@@ -514,6 +570,14 @@ public class GrpcJobServiceStub extends JobServiceStub {
       pauseModelDeploymentMonitoringJobCallable;
   private final UnaryCallable
       resumeModelDeploymentMonitoringJobCallable;
+  private final UnaryCallable listLocationsCallable;
+  private final UnaryCallable
+      listLocationsPagedCallable;
+  private final UnaryCallable getLocationCallable;
+  private final UnaryCallable setIamPolicyCallable;
+  private final UnaryCallable getIamPolicyCallable;
+  private final UnaryCallable
+      testIamPermissionsCallable;
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -881,6 +945,57 @@ protected GrpcJobServiceStub(
                       return params.build();
                     })
                 .build();
+    GrpcCallSettings listLocationsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listLocationsMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getLocationTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getLocationMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings setIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(setIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings
+        testIamPermissionsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(testIamPermissionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("resource", String.valueOf(request.getResource()));
+                      return params.build();
+                    })
+                .build();
 
     this.createCustomJobCallable =
         callableFactory.createUnaryCallable(
@@ -1076,6 +1191,26 @@ protected GrpcJobServiceStub(
             resumeModelDeploymentMonitoringJobTransportSettings,
             settings.resumeModelDeploymentMonitoringJobSettings(),
             clientContext);
+    this.listLocationsCallable =
+        callableFactory.createUnaryCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.listLocationsPagedCallable =
+        callableFactory.createPagedCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.getLocationCallable =
+        callableFactory.createUnaryCallable(
+            getLocationTransportSettings, settings.getLocationSettings(), clientContext);
+    this.setIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
+    this.getIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
+    this.testIamPermissionsCallable =
+        callableFactory.createUnaryCallable(
+            testIamPermissionsTransportSettings,
+            settings.testIamPermissionsSettings(),
+            clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -1327,6 +1462,38 @@ public UnaryCallable cancelBatchPredicti
     return resumeModelDeploymentMonitoringJobCallable;
   }
 
+  @Override
+  public UnaryCallable listLocationsCallable() {
+    return listLocationsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    return listLocationsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable getLocationCallable() {
+    return getLocationCallable;
+  }
+
+  @Override
+  public UnaryCallable setIamPolicyCallable() {
+    return setIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable getIamPolicyCallable() {
+    return getIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    return testIamPermissionsCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMetadataServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMetadataServiceCallableFactory.java
index 8dcb6aa4ac27..84a6710f87c9 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMetadataServiceCallableFactory.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMetadataServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMetadataServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMetadataServiceStub.java
index 7d1ec2cc9941..39de5710517c 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMetadataServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMetadataServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
 import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListArtifactsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListContextsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListExecutionsPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListMetadataSchemasPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListMetadataStoresPagedResponse;
 
@@ -84,7 +85,16 @@
 import com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest;
 import com.google.cloud.aiplatform.v1beta1.UpdateContextRequest;
 import com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableMap;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.GrpcOperationsStub;
 import com.google.protobuf.Empty;
@@ -432,6 +442,52 @@ public class GrpcMetadataServiceStub extends MetadataServiceStub {
               .setResponseMarshaller(ProtoUtils.marshaller(LineageSubgraph.getDefaultInstance()))
               .build();
 
+  private static final MethodDescriptor
+      listLocationsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.location.Locations/ListLocations")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor getLocationMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.location.Locations/GetLocation")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor setIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor getIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor
+      testIamPermissionsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
+              .build();
+
   private final UnaryCallable createMetadataStoreCallable;
   private final OperationCallable<
           CreateMetadataStoreRequest, MetadataStore, CreateMetadataStoreOperationMetadata>
@@ -504,6 +560,14 @@ public class GrpcMetadataServiceStub extends MetadataServiceStub {
       listMetadataSchemasPagedCallable;
   private final UnaryCallable
       queryArtifactLineageSubgraphCallable;
+  private final UnaryCallable listLocationsCallable;
+  private final UnaryCallable
+      listLocationsPagedCallable;
+  private final UnaryCallable getLocationCallable;
+  private final UnaryCallable setIamPolicyCallable;
+  private final UnaryCallable getIamPolicyCallable;
+  private final UnaryCallable
+      testIamPermissionsCallable;
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -872,6 +936,57 @@ protected GrpcMetadataServiceStub(
                       return params.build();
                     })
                 .build();
+    GrpcCallSettings listLocationsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listLocationsMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getLocationTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getLocationMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings setIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(setIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings
+        testIamPermissionsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(testIamPermissionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("resource", String.valueOf(request.getResource()));
+                      return params.build();
+                    })
+                .build();
 
     this.createMetadataStoreCallable =
         callableFactory.createUnaryCallable(
@@ -1057,6 +1172,26 @@ protected GrpcMetadataServiceStub(
             queryArtifactLineageSubgraphTransportSettings,
             settings.queryArtifactLineageSubgraphSettings(),
             clientContext);
+    this.listLocationsCallable =
+        callableFactory.createUnaryCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.listLocationsPagedCallable =
+        callableFactory.createPagedCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.getLocationCallable =
+        callableFactory.createUnaryCallable(
+            getLocationTransportSettings, settings.getLocationSettings(), clientContext);
+    this.setIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
+    this.getIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
+    this.testIamPermissionsCallable =
+        callableFactory.createUnaryCallable(
+            testIamPermissionsTransportSettings,
+            settings.testIamPermissionsSettings(),
+            clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -1308,6 +1443,38 @@ public UnaryCallable getMetadataSchema
     return queryArtifactLineageSubgraphCallable;
   }
 
+  @Override
+  public UnaryCallable listLocationsCallable() {
+    return listLocationsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    return listLocationsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable getLocationCallable() {
+    return getLocationCallable;
+  }
+
+  @Override
+  public UnaryCallable setIamPolicyCallable() {
+    return setIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable getIamPolicyCallable() {
+    return getIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    return testIamPermissionsCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMigrationServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMigrationServiceCallableFactory.java
index 18c08664d139..121c21dbe962 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMigrationServiceCallableFactory.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMigrationServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMigrationServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMigrationServiceStub.java
index e749226fbda7..e2270248623d 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMigrationServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMigrationServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1beta1.stub;
 
+import static com.google.cloud.aiplatform.v1beta1.MigrationServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.MigrationServiceClient.SearchMigratableResourcesPagedResponse;
 
 import com.google.api.core.BetaApi;
@@ -31,7 +32,16 @@
 import com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse;
 import com.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest;
 import com.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableMap;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.GrpcOperationsStub;
 import io.grpc.MethodDescriptor;
@@ -74,6 +84,52 @@ public class GrpcMigrationServiceStub extends MigrationServiceStub {
               .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
               .build();
 
+  private static final MethodDescriptor
+      listLocationsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.location.Locations/ListLocations")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor getLocationMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.location.Locations/GetLocation")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor setIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor getIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor
+      testIamPermissionsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
+              .build();
+
   private final UnaryCallable
       searchMigratableResourcesCallable;
   private final UnaryCallable<
@@ -86,6 +142,14 @@ public class GrpcMigrationServiceStub extends MigrationServiceStub {
           BatchMigrateResourcesResponse,
           BatchMigrateResourcesOperationMetadata>
       batchMigrateResourcesOperationCallable;
+  private final UnaryCallable listLocationsCallable;
+  private final UnaryCallable
+      listLocationsPagedCallable;
+  private final UnaryCallable getLocationCallable;
+  private final UnaryCallable setIamPolicyCallable;
+  private final UnaryCallable getIamPolicyCallable;
+  private final UnaryCallable
+      testIamPermissionsCallable;
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -154,6 +218,57 @@ protected GrpcMigrationServiceStub(
                       return params.build();
                     })
                 .build();
+    GrpcCallSettings listLocationsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listLocationsMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getLocationTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getLocationMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings setIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(setIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings
+        testIamPermissionsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(testIamPermissionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("resource", String.valueOf(request.getResource()));
+                      return params.build();
+                    })
+                .build();
 
     this.searchMigratableResourcesCallable =
         callableFactory.createUnaryCallable(
@@ -176,6 +291,26 @@ protected GrpcMigrationServiceStub(
             settings.batchMigrateResourcesOperationSettings(),
             clientContext,
             operationsStub);
+    this.listLocationsCallable =
+        callableFactory.createUnaryCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.listLocationsPagedCallable =
+        callableFactory.createPagedCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.getLocationCallable =
+        callableFactory.createUnaryCallable(
+            getLocationTransportSettings, settings.getLocationSettings(), clientContext);
+    this.setIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
+    this.getIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
+    this.testIamPermissionsCallable =
+        callableFactory.createUnaryCallable(
+            testIamPermissionsTransportSettings,
+            settings.testIamPermissionsSettings(),
+            clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -211,6 +346,38 @@ public UnaryCallable batchMigrateResour
     return batchMigrateResourcesOperationCallable;
   }
 
+  @Override
+  public UnaryCallable listLocationsCallable() {
+    return listLocationsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    return listLocationsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable getLocationCallable() {
+    return getLocationCallable;
+  }
+
+  @Override
+  public UnaryCallable setIamPolicyCallable() {
+    return setIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable getIamPolicyCallable() {
+    return getIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    return testIamPermissionsCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcModelServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcModelServiceCallableFactory.java
index 907e0f5f79ec..e10691f69a3a 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcModelServiceCallableFactory.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcModelServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcModelServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcModelServiceStub.java
index 0a302edd99a7..297560f51cf7 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcModelServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcModelServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1beta1.stub;
 
+import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationSlicesPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelVersionsPagedResponse;
@@ -51,11 +52,23 @@
 import com.google.cloud.aiplatform.v1beta1.Model;
 import com.google.cloud.aiplatform.v1beta1.ModelEvaluation;
 import com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice;
+import com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata;
+import com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest;
+import com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse;
 import com.google.cloud.aiplatform.v1beta1.UpdateModelRequest;
 import com.google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata;
 import com.google.cloud.aiplatform.v1beta1.UploadModelRequest;
 import com.google.cloud.aiplatform.v1beta1.UploadModelResponse;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableMap;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.GrpcOperationsStub;
 import com.google.protobuf.Empty;
@@ -118,6 +131,17 @@ public class GrpcModelServiceStub extends ModelServiceStub {
           .setResponseMarshaller(ProtoUtils.marshaller(Model.getDefaultInstance()))
           .build();
 
+  private static final MethodDescriptor
+      updateExplanationDatasetMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(
+                  "google.cloud.aiplatform.v1beta1.ModelService/UpdateExplanationDataset")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(UpdateExplanationDatasetRequest.getDefaultInstance()))
+              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+              .build();
+
   private static final MethodDescriptor deleteModelMethodDescriptor =
       MethodDescriptor.newBuilder()
           .setType(MethodDescriptor.MethodType.UNARY)
@@ -213,6 +237,52 @@ public class GrpcModelServiceStub extends ModelServiceStub {
                   ProtoUtils.marshaller(ListModelEvaluationSlicesResponse.getDefaultInstance()))
               .build();
 
+  private static final MethodDescriptor
+      listLocationsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.location.Locations/ListLocations")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor getLocationMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.location.Locations/GetLocation")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor setIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor getIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor
+      testIamPermissionsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
+              .build();
+
   private final UnaryCallable uploadModelCallable;
   private final OperationCallable<
           UploadModelRequest, UploadModelResponse, UploadModelOperationMetadata>
@@ -225,6 +295,13 @@ public class GrpcModelServiceStub extends ModelServiceStub {
   private final UnaryCallable
       listModelVersionsPagedCallable;
   private final UnaryCallable updateModelCallable;
+  private final UnaryCallable
+      updateExplanationDatasetCallable;
+  private final OperationCallable<
+          UpdateExplanationDatasetRequest,
+          UpdateExplanationDatasetResponse,
+          UpdateExplanationDatasetOperationMetadata>
+      updateExplanationDatasetOperationCallable;
   private final UnaryCallable deleteModelCallable;
   private final OperationCallable
       deleteModelOperationCallable;
@@ -251,6 +328,14 @@ public class GrpcModelServiceStub extends ModelServiceStub {
   private final UnaryCallable<
           ListModelEvaluationSlicesRequest, ListModelEvaluationSlicesPagedResponse>
       listModelEvaluationSlicesPagedCallable;
+  private final UnaryCallable listLocationsCallable;
+  private final UnaryCallable
+      listLocationsPagedCallable;
+  private final UnaryCallable getLocationCallable;
+  private final UnaryCallable setIamPolicyCallable;
+  private final UnaryCallable getIamPolicyCallable;
+  private final UnaryCallable
+      testIamPermissionsCallable;
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -345,6 +430,17 @@ protected GrpcModelServiceStub(
                   return params.build();
                 })
             .build();
+    GrpcCallSettings
+        updateExplanationDatasetTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(updateExplanationDatasetMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("model", String.valueOf(request.getModel()));
+                      return params.build();
+                    })
+                .build();
     GrpcCallSettings deleteModelTransportSettings =
         GrpcCallSettings.newBuilder()
             .setMethodDescriptor(deleteModelMethodDescriptor)
@@ -441,6 +537,57 @@ protected GrpcModelServiceStub(
                       return params.build();
                     })
                 .build();
+    GrpcCallSettings listLocationsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listLocationsMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getLocationTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getLocationMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings setIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(setIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings
+        testIamPermissionsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(testIamPermissionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("resource", String.valueOf(request.getResource()));
+                      return params.build();
+                    })
+                .build();
 
     this.uploadModelCallable =
         callableFactory.createUnaryCallable(
@@ -473,6 +620,17 @@ protected GrpcModelServiceStub(
     this.updateModelCallable =
         callableFactory.createUnaryCallable(
             updateModelTransportSettings, settings.updateModelSettings(), clientContext);
+    this.updateExplanationDatasetCallable =
+        callableFactory.createUnaryCallable(
+            updateExplanationDatasetTransportSettings,
+            settings.updateExplanationDatasetSettings(),
+            clientContext);
+    this.updateExplanationDatasetOperationCallable =
+        callableFactory.createOperationCallable(
+            updateExplanationDatasetTransportSettings,
+            settings.updateExplanationDatasetOperationSettings(),
+            clientContext,
+            operationsStub);
     this.deleteModelCallable =
         callableFactory.createUnaryCallable(
             deleteModelTransportSettings, settings.deleteModelSettings(), clientContext);
@@ -542,6 +700,26 @@ protected GrpcModelServiceStub(
             listModelEvaluationSlicesTransportSettings,
             settings.listModelEvaluationSlicesSettings(),
             clientContext);
+    this.listLocationsCallable =
+        callableFactory.createUnaryCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.listLocationsPagedCallable =
+        callableFactory.createPagedCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.getLocationCallable =
+        callableFactory.createUnaryCallable(
+            getLocationTransportSettings, settings.getLocationSettings(), clientContext);
+    this.setIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
+    this.getIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
+    this.testIamPermissionsCallable =
+        callableFactory.createUnaryCallable(
+            testIamPermissionsTransportSettings,
+            settings.testIamPermissionsSettings(),
+            clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -594,6 +772,21 @@ public UnaryCallable updateModelCallable() {
     return updateModelCallable;
   }
 
+  @Override
+  public UnaryCallable
+      updateExplanationDatasetCallable() {
+    return updateExplanationDatasetCallable;
+  }
+
+  @Override
+  public OperationCallable<
+          UpdateExplanationDatasetRequest,
+          UpdateExplanationDatasetResponse,
+          UpdateExplanationDatasetOperationMetadata>
+      updateExplanationDatasetOperationCallable() {
+    return updateExplanationDatasetOperationCallable;
+  }
+
   @Override
   public UnaryCallable deleteModelCallable() {
     return deleteModelCallable;
@@ -673,6 +866,38 @@ public UnaryCallable getModelEvaluat
     return listModelEvaluationSlicesPagedCallable;
   }
 
+  @Override
+  public UnaryCallable listLocationsCallable() {
+    return listLocationsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    return listLocationsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable getLocationCallable() {
+    return getLocationCallable;
+  }
+
+  @Override
+  public UnaryCallable setIamPolicyCallable() {
+    return setIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable getIamPolicyCallable() {
+    return getIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    return testIamPermissionsCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPipelineServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPipelineServiceCallableFactory.java
index 65c42af4c25b..1197ad09f6d3 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPipelineServiceCallableFactory.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPipelineServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPipelineServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPipelineServiceStub.java
index e1476b3b50db..041d606cbff2 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPipelineServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPipelineServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1beta1.stub;
 
+import static com.google.cloud.aiplatform.v1beta1.PipelineServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.PipelineServiceClient.ListPipelineJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.PipelineServiceClient.ListTrainingPipelinesPagedResponse;
 
@@ -42,7 +43,16 @@
 import com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse;
 import com.google.cloud.aiplatform.v1beta1.PipelineJob;
 import com.google.cloud.aiplatform.v1beta1.TrainingPipeline;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableMap;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.GrpcOperationsStub;
 import com.google.protobuf.Empty;
@@ -171,6 +181,52 @@ public class GrpcPipelineServiceStub extends PipelineServiceStub {
               .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
               .build();
 
+  private static final MethodDescriptor
+      listLocationsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.location.Locations/ListLocations")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor getLocationMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.location.Locations/GetLocation")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor setIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor getIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor
+      testIamPermissionsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
+              .build();
+
   private final UnaryCallable
       createTrainingPipelineCallable;
   private final UnaryCallable
@@ -194,6 +250,14 @@ public class GrpcPipelineServiceStub extends PipelineServiceStub {
   private final OperationCallable
       deletePipelineJobOperationCallable;
   private final UnaryCallable cancelPipelineJobCallable;
+  private final UnaryCallable listLocationsCallable;
+  private final UnaryCallable
+      listLocationsPagedCallable;
+  private final UnaryCallable getLocationCallable;
+  private final UnaryCallable setIamPolicyCallable;
+  private final UnaryCallable getIamPolicyCallable;
+  private final UnaryCallable
+      testIamPermissionsCallable;
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -345,6 +409,57 @@ protected GrpcPipelineServiceStub(
                   return params.build();
                 })
             .build();
+    GrpcCallSettings listLocationsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listLocationsMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getLocationTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getLocationMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings setIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(setIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings
+        testIamPermissionsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(testIamPermissionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("resource", String.valueOf(request.getResource()));
+                      return params.build();
+                    })
+                .build();
 
     this.createTrainingPipelineCallable =
         callableFactory.createUnaryCallable(
@@ -412,6 +527,26 @@ protected GrpcPipelineServiceStub(
             cancelPipelineJobTransportSettings,
             settings.cancelPipelineJobSettings(),
             clientContext);
+    this.listLocationsCallable =
+        callableFactory.createUnaryCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.listLocationsPagedCallable =
+        callableFactory.createPagedCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.getLocationCallable =
+        callableFactory.createUnaryCallable(
+            getLocationTransportSettings, settings.getLocationSettings(), clientContext);
+    this.setIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
+    this.getIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
+    this.testIamPermissionsCallable =
+        callableFactory.createUnaryCallable(
+            testIamPermissionsTransportSettings,
+            settings.testIamPermissionsSettings(),
+            clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -498,6 +633,38 @@ public UnaryCallable cancelPipelineJobCallable(
     return cancelPipelineJobCallable;
   }
 
+  @Override
+  public UnaryCallable listLocationsCallable() {
+    return listLocationsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    return listLocationsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable getLocationCallable() {
+    return getLocationCallable;
+  }
+
+  @Override
+  public UnaryCallable setIamPolicyCallable() {
+    return setIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable getIamPolicyCallable() {
+    return getIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    return testIamPermissionsCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPredictionServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPredictionServiceCallableFactory.java
index 501e6eefe584..953f46802143 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPredictionServiceCallableFactory.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPredictionServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPredictionServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPredictionServiceStub.java
index c03b545c1ab3..bf0f30856d83 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPredictionServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPredictionServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,8 @@
 
 package com.google.cloud.aiplatform.v1beta1.stub;
 
+import static com.google.cloud.aiplatform.v1beta1.PredictionServiceClient.ListLocationsPagedResponse;
+
 import com.google.api.HttpBody;
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
@@ -29,7 +31,16 @@
 import com.google.cloud.aiplatform.v1beta1.PredictRequest;
 import com.google.cloud.aiplatform.v1beta1.PredictResponse;
 import com.google.cloud.aiplatform.v1beta1.RawPredictRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableMap;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.stub.GrpcOperationsStub;
 import io.grpc.MethodDescriptor;
 import io.grpc.protobuf.ProtoUtils;
@@ -70,9 +81,63 @@ public class GrpcPredictionServiceStub extends PredictionServiceStub {
           .setResponseMarshaller(ProtoUtils.marshaller(ExplainResponse.getDefaultInstance()))
           .build();
 
+  private static final MethodDescriptor
+      listLocationsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.location.Locations/ListLocations")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor getLocationMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.location.Locations/GetLocation")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor setIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor getIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor
+      testIamPermissionsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
+              .build();
+
   private final UnaryCallable predictCallable;
   private final UnaryCallable rawPredictCallable;
   private final UnaryCallable explainCallable;
+  private final UnaryCallable listLocationsCallable;
+  private final UnaryCallable
+      listLocationsPagedCallable;
+  private final UnaryCallable getLocationCallable;
+  private final UnaryCallable setIamPolicyCallable;
+  private final UnaryCallable getIamPolicyCallable;
+  private final UnaryCallable
+      testIamPermissionsCallable;
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -148,6 +213,57 @@ protected GrpcPredictionServiceStub(
                   return params.build();
                 })
             .build();
+    GrpcCallSettings listLocationsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listLocationsMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getLocationTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getLocationMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings setIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(setIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings
+        testIamPermissionsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(testIamPermissionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("resource", String.valueOf(request.getResource()));
+                      return params.build();
+                    })
+                .build();
 
     this.predictCallable =
         callableFactory.createUnaryCallable(
@@ -158,6 +274,26 @@ protected GrpcPredictionServiceStub(
     this.explainCallable =
         callableFactory.createUnaryCallable(
             explainTransportSettings, settings.explainSettings(), clientContext);
+    this.listLocationsCallable =
+        callableFactory.createUnaryCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.listLocationsPagedCallable =
+        callableFactory.createPagedCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.getLocationCallable =
+        callableFactory.createUnaryCallable(
+            getLocationTransportSettings, settings.getLocationSettings(), clientContext);
+    this.setIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
+    this.getIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
+    this.testIamPermissionsCallable =
+        callableFactory.createUnaryCallable(
+            testIamPermissionsTransportSettings,
+            settings.testIamPermissionsSettings(),
+            clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -182,6 +318,38 @@ public UnaryCallable explainCallable() {
     return explainCallable;
   }
 
+  @Override
+  public UnaryCallable listLocationsCallable() {
+    return listLocationsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    return listLocationsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable getLocationCallable() {
+    return getLocationCallable;
+  }
+
+  @Override
+  public UnaryCallable setIamPolicyCallable() {
+    return setIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable getIamPolicyCallable() {
+    return getIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    return testIamPermissionsCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcSpecialistPoolServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcSpecialistPoolServiceCallableFactory.java
index b845f34ac32c..89b0984d58ad 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcSpecialistPoolServiceCallableFactory.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcSpecialistPoolServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcSpecialistPoolServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcSpecialistPoolServiceStub.java
index 7d6ec3c2a4a7..0a350598d9bd 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcSpecialistPoolServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcSpecialistPoolServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1beta1.stub;
 
+import static com.google.cloud.aiplatform.v1beta1.SpecialistPoolServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.SpecialistPoolServiceClient.ListSpecialistPoolsPagedResponse;
 
 import com.google.api.core.BetaApi;
@@ -36,7 +37,16 @@
 import com.google.cloud.aiplatform.v1beta1.SpecialistPool;
 import com.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata;
 import com.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableMap;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.GrpcOperationsStub;
 import com.google.protobuf.Empty;
@@ -111,6 +121,52 @@ public class GrpcSpecialistPoolServiceStub extends SpecialistPoolServiceStub {
               .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
               .build();
 
+  private static final MethodDescriptor
+      listLocationsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.location.Locations/ListLocations")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor getLocationMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.location.Locations/GetLocation")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor setIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor getIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor
+      testIamPermissionsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
+              .build();
+
   private final UnaryCallable createSpecialistPoolCallable;
   private final OperationCallable<
           CreateSpecialistPoolRequest, SpecialistPool, CreateSpecialistPoolOperationMetadata>
@@ -127,6 +183,14 @@ public class GrpcSpecialistPoolServiceStub extends SpecialistPoolServiceStub {
   private final OperationCallable<
           UpdateSpecialistPoolRequest, SpecialistPool, UpdateSpecialistPoolOperationMetadata>
       updateSpecialistPoolOperationCallable;
+  private final UnaryCallable listLocationsCallable;
+  private final UnaryCallable
+      listLocationsPagedCallable;
+  private final UnaryCallable getLocationCallable;
+  private final UnaryCallable setIamPolicyCallable;
+  private final UnaryCallable getIamPolicyCallable;
+  private final UnaryCallable
+      testIamPermissionsCallable;
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -225,6 +289,57 @@ protected GrpcSpecialistPoolServiceStub(
                   return params.build();
                 })
             .build();
+    GrpcCallSettings listLocationsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listLocationsMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getLocationTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getLocationMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings setIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(setIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings
+        testIamPermissionsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(testIamPermissionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("resource", String.valueOf(request.getResource()));
+                      return params.build();
+                    })
+                .build();
 
     this.createSpecialistPoolCallable =
         callableFactory.createUnaryCallable(
@@ -274,6 +389,26 @@ protected GrpcSpecialistPoolServiceStub(
             settings.updateSpecialistPoolOperationSettings(),
             clientContext,
             operationsStub);
+    this.listLocationsCallable =
+        callableFactory.createUnaryCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.listLocationsPagedCallable =
+        callableFactory.createPagedCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.getLocationCallable =
+        callableFactory.createUnaryCallable(
+            getLocationTransportSettings, settings.getLocationSettings(), clientContext);
+    this.setIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
+    this.getIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
+    this.testIamPermissionsCallable =
+        callableFactory.createUnaryCallable(
+            testIamPermissionsTransportSettings,
+            settings.testIamPermissionsSettings(),
+            clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -335,6 +470,38 @@ public UnaryCallable updateSpecialistPoo
     return updateSpecialistPoolOperationCallable;
   }
 
+  @Override
+  public UnaryCallable listLocationsCallable() {
+    return listLocationsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    return listLocationsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable getLocationCallable() {
+    return getLocationCallable;
+  }
+
+  @Override
+  public UnaryCallable setIamPolicyCallable() {
+    return setIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable getIamPolicyCallable() {
+    return getIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    return testIamPermissionsCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcTensorboardServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcTensorboardServiceCallableFactory.java
index 85fb33e81483..b74cbc121388 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcTensorboardServiceCallableFactory.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcTensorboardServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcTensorboardServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcTensorboardServiceStub.java
index da7a2d266a67..24397346c4aa 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcTensorboardServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcTensorboardServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1beta1.stub;
 
 import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardExperimentsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardRunsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardTimeSeriesPagedResponse;
@@ -78,7 +79,16 @@
 import com.google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataResponse;
 import com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest;
 import com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableMap;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.GrpcOperationsStub;
 import com.google.protobuf.Empty;
@@ -456,6 +466,52 @@ public class GrpcTensorboardServiceStub extends TensorboardServiceStub {
                       ExportTensorboardTimeSeriesDataResponse.getDefaultInstance()))
               .build();
 
+  private static final MethodDescriptor
+      listLocationsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.location.Locations/ListLocations")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor getLocationMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.location.Locations/GetLocation")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor setIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor getIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor
+      testIamPermissionsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
+              .build();
+
   private final UnaryCallable createTensorboardCallable;
   private final OperationCallable<
           CreateTensorboardRequest, Tensorboard, CreateTensorboardOperationMetadata>
@@ -541,6 +597,14 @@ public class GrpcTensorboardServiceStub extends TensorboardServiceStub {
   private final UnaryCallable<
           ExportTensorboardTimeSeriesDataRequest, ExportTensorboardTimeSeriesDataPagedResponse>
       exportTensorboardTimeSeriesDataPagedCallable;
+  private final UnaryCallable listLocationsCallable;
+  private final UnaryCallable
+      listLocationsPagedCallable;
+  private final UnaryCallable getLocationCallable;
+  private final UnaryCallable setIamPolicyCallable;
+  private final UnaryCallable getIamPolicyCallable;
+  private final UnaryCallable
+      testIamPermissionsCallable;
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -920,6 +984,57 @@ protected GrpcTensorboardServiceStub(
                       return params.build();
                     })
                 .build();
+    GrpcCallSettings listLocationsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listLocationsMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getLocationTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getLocationMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings setIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(setIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings
+        testIamPermissionsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(testIamPermissionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("resource", String.valueOf(request.getResource()));
+                      return params.build();
+                    })
+                .build();
 
     this.createTensorboardCallable =
         callableFactory.createUnaryCallable(
@@ -1116,6 +1231,26 @@ protected GrpcTensorboardServiceStub(
             exportTensorboardTimeSeriesDataTransportSettings,
             settings.exportTensorboardTimeSeriesDataSettings(),
             clientContext);
+    this.listLocationsCallable =
+        callableFactory.createUnaryCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.listLocationsPagedCallable =
+        callableFactory.createPagedCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.getLocationCallable =
+        callableFactory.createUnaryCallable(
+            getLocationTransportSettings, settings.getLocationSettings(), clientContext);
+    this.setIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
+    this.getIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
+    this.testIamPermissionsCallable =
+        callableFactory.createUnaryCallable(
+            testIamPermissionsTransportSettings,
+            settings.testIamPermissionsSettings(),
+            clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -1358,6 +1493,38 @@ public UnaryCallable deleteTensorboardRu
     return exportTensorboardTimeSeriesDataPagedCallable;
   }
 
+  @Override
+  public UnaryCallable listLocationsCallable() {
+    return listLocationsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    return listLocationsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable getLocationCallable() {
+    return getLocationCallable;
+  }
+
+  @Override
+  public UnaryCallable setIamPolicyCallable() {
+    return setIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable getIamPolicyCallable() {
+    return getIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    return testIamPermissionsCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcVizierServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcVizierServiceCallableFactory.java
index d6b12eb5fbb5..cce76dbd5cfc 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcVizierServiceCallableFactory.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcVizierServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcVizierServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcVizierServiceStub.java
index 587bcee4adc3..e0d4ad251e16 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcVizierServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcVizierServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1beta1.stub;
 
+import static com.google.cloud.aiplatform.v1beta1.VizierServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.VizierServiceClient.ListStudiesPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.VizierServiceClient.ListTrialsPagedResponse;
 
@@ -51,7 +52,16 @@
 import com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest;
 import com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse;
 import com.google.cloud.aiplatform.v1beta1.Trial;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableMap;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.GrpcOperationsStub;
 import com.google.protobuf.Empty;
@@ -204,6 +214,52 @@ public class GrpcVizierServiceStub extends VizierServiceStub {
                   ProtoUtils.marshaller(ListOptimalTrialsResponse.getDefaultInstance()))
               .build();
 
+  private static final MethodDescriptor
+      listLocationsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.location.Locations/ListLocations")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
+              .build();
+
+  private static final MethodDescriptor getLocationMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.location.Locations/GetLocation")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor setIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor getIamPolicyMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy")
+          .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance()))
+          .build();
+
+  private static final MethodDescriptor
+      testIamPermissionsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance()))
+              .build();
+
   private final UnaryCallable createStudyCallable;
   private final UnaryCallable getStudyCallable;
   private final UnaryCallable listStudiesCallable;
@@ -232,6 +288,14 @@ public class GrpcVizierServiceStub extends VizierServiceStub {
   private final UnaryCallable stopTrialCallable;
   private final UnaryCallable
       listOptimalTrialsCallable;
+  private final UnaryCallable listLocationsCallable;
+  private final UnaryCallable
+      listLocationsPagedCallable;
+  private final UnaryCallable getLocationCallable;
+  private final UnaryCallable setIamPolicyCallable;
+  private final UnaryCallable getIamPolicyCallable;
+  private final UnaryCallable
+      testIamPermissionsCallable;
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -427,6 +491,57 @@ protected GrpcVizierServiceStub(
                       return params.build();
                     })
                 .build();
+    GrpcCallSettings listLocationsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listLocationsMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getLocationTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getLocationMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("name", String.valueOf(request.getName()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings setIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(setIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings getIamPolicyTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getIamPolicyMethodDescriptor)
+            .setParamsExtractor(
+                request -> {
+                  ImmutableMap.Builder params = ImmutableMap.builder();
+                  params.put("resource", String.valueOf(request.getResource()));
+                  return params.build();
+                })
+            .build();
+    GrpcCallSettings
+        testIamPermissionsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(testIamPermissionsMethodDescriptor)
+                .setParamsExtractor(
+                    request -> {
+                      ImmutableMap.Builder params = ImmutableMap.builder();
+                      params.put("resource", String.valueOf(request.getResource()));
+                      return params.build();
+                    })
+                .build();
 
     this.createStudyCallable =
         callableFactory.createUnaryCallable(
@@ -497,6 +612,26 @@ protected GrpcVizierServiceStub(
             listOptimalTrialsTransportSettings,
             settings.listOptimalTrialsSettings(),
             clientContext);
+    this.listLocationsCallable =
+        callableFactory.createUnaryCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.listLocationsPagedCallable =
+        callableFactory.createPagedCallable(
+            listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
+    this.getLocationCallable =
+        callableFactory.createUnaryCallable(
+            getLocationTransportSettings, settings.getLocationSettings(), clientContext);
+    this.setIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext);
+    this.getIamPolicyCallable =
+        callableFactory.createUnaryCallable(
+            getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext);
+    this.testIamPermissionsCallable =
+        callableFactory.createUnaryCallable(
+            testIamPermissionsTransportSettings,
+            settings.testIamPermissionsSettings(),
+            clientContext);
 
     this.backgroundResources =
         new BackgroundResourceAggregation(clientContext.getBackgroundResources());
@@ -608,6 +743,38 @@ public UnaryCallable stopTrialCallable() {
     return listOptimalTrialsCallable;
   }
 
+  @Override
+  public UnaryCallable listLocationsCallable() {
+    return listLocationsCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    return listLocationsPagedCallable;
+  }
+
+  @Override
+  public UnaryCallable getLocationCallable() {
+    return getLocationCallable;
+  }
+
+  @Override
+  public UnaryCallable setIamPolicyCallable() {
+    return setIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable getIamPolicyCallable() {
+    return getIamPolicyCallable;
+  }
+
+  @Override
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    return testIamPermissionsCallable;
+  }
+
   @Override
   public final void close() {
     try {
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexEndpointServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexEndpointServiceStub.java
index 39fbff109ca5..9ea857bd91e6 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexEndpointServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexEndpointServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1beta1.stub;
 
 import static com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceClient.ListIndexEndpointsPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
@@ -40,6 +41,15 @@
 import com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest;
 import com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse;
 import com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.OperationsStub;
 import com.google.protobuf.Empty;
@@ -130,6 +140,32 @@ public UnaryCallable mutateDeployedIndexC
     throw new UnsupportedOperationException("Not implemented: mutateDeployedIndexCallable()");
   }
 
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
+  }
+
+  public UnaryCallable listLocationsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
+  }
+
+  public UnaryCallable getLocationCallable() {
+    throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
+  }
+
+  public UnaryCallable setIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
+  }
+
+  public UnaryCallable getIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
+  }
+
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexEndpointServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexEndpointServiceStubSettings.java
index 15b93d1f45fa..250b81834eb5 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexEndpointServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexEndpointServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1beta1.stub;
 
 import static com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceClient.ListIndexEndpointsPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.core.ApiFunction;
 import com.google.api.core.ApiFuture;
@@ -62,10 +63,19 @@
 import com.google.cloud.aiplatform.v1beta1.UndeployIndexRequest;
 import com.google.cloud.aiplatform.v1beta1.UndeployIndexResponse;
 import com.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.Empty;
 import java.io.IOException;
@@ -91,6 +101,8 @@
  * 

For example, to set the total timeout of getIndexEndpoint to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IndexEndpointServiceStubSettings.Builder indexEndpointServiceSettingsBuilder =
  *     IndexEndpointServiceStubSettings.newBuilder();
  * indexEndpointServiceSettingsBuilder
@@ -144,6 +156,14 @@ public class IndexEndpointServiceStubSettings
           MutateDeployedIndexResponse,
           MutateDeployedIndexOperationMetadata>
       mutateDeployedIndexOperationSettings;
+  private final PagedCallSettings<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      listLocationsSettings;
+  private final UnaryCallSettings getLocationSettings;
+  private final UnaryCallSettings setIamPolicySettings;
+  private final UnaryCallSettings getIamPolicySettings;
+  private final UnaryCallSettings
+      testIamPermissionsSettings;
 
   private static final PagedListDescriptor<
           ListIndexEndpointsRequest, ListIndexEndpointsResponse, IndexEndpoint>
@@ -185,6 +205,42 @@ public Iterable extractResources(ListIndexEndpointsResponse paylo
             }
           };
 
+  private static final PagedListDescriptor
+      LIST_LOCATIONS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) {
+              return ListLocationsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) {
+              return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListLocationsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListLocationsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListLocationsResponse payload) {
+              return payload.getLocationsList() == null
+                  ? ImmutableList.of()
+                  : payload.getLocationsList();
+            }
+          };
+
   private static final PagedListResponseFactory<
           ListIndexEndpointsRequest, ListIndexEndpointsResponse, ListIndexEndpointsPagedResponse>
       LIST_INDEX_ENDPOINTS_PAGE_STR_FACT =
@@ -206,6 +262,23 @@ public ApiFuture getFuturePagedResponse(
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      LIST_LOCATIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListLocationsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context);
+              return ListLocationsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
   /** Returns the object with the settings used for calls to createIndexEndpoint. */
   public UnaryCallSettings createIndexEndpointSettings() {
     return createIndexEndpointSettings;
@@ -285,7 +358,33 @@ public UnaryCallSettings mutateDeployedIn
     return mutateDeployedIndexOperationSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return listLocationsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return getLocationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return setIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return getIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return testIamPermissionsSettings;
+  }
+
   public IndexEndpointServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -377,6 +476,11 @@ protected IndexEndpointServiceStubSettings(Builder settingsBuilder) throws IOExc
     mutateDeployedIndexSettings = settingsBuilder.mutateDeployedIndexSettings().build();
     mutateDeployedIndexOperationSettings =
         settingsBuilder.mutateDeployedIndexOperationSettings().build();
+    listLocationsSettings = settingsBuilder.listLocationsSettings().build();
+    getLocationSettings = settingsBuilder.getLocationSettings().build();
+    setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
+    getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
+    testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
   }
 
   /** Builder for IndexEndpointServiceStubSettings. */
@@ -415,6 +519,14 @@ public static class Builder
             MutateDeployedIndexResponse,
             MutateDeployedIndexOperationMetadata>
         mutateDeployedIndexOperationSettings;
+    private final PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings;
+    private final UnaryCallSettings.Builder getLocationSettings;
+    private final UnaryCallSettings.Builder setIamPolicySettings;
+    private final UnaryCallSettings.Builder getIamPolicySettings;
+    private final UnaryCallSettings.Builder
+        testIamPermissionsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -465,6 +577,11 @@ protected Builder(ClientContext clientContext) {
       undeployIndexOperationSettings = OperationCallSettings.newBuilder();
       mutateDeployedIndexSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       mutateDeployedIndexOperationSettings = OperationCallSettings.newBuilder();
+      listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
+      getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -475,7 +592,12 @@ protected Builder(ClientContext clientContext) {
               deleteIndexEndpointSettings,
               deployIndexSettings,
               undeployIndexSettings,
-              mutateDeployedIndexSettings);
+              mutateDeployedIndexSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
       initDefaults(this);
     }
 
@@ -498,6 +620,11 @@ protected Builder(IndexEndpointServiceStubSettings settings) {
       mutateDeployedIndexSettings = settings.mutateDeployedIndexSettings.toBuilder();
       mutateDeployedIndexOperationSettings =
           settings.mutateDeployedIndexOperationSettings.toBuilder();
+      listLocationsSettings = settings.listLocationsSettings.toBuilder();
+      getLocationSettings = settings.getLocationSettings.toBuilder();
+      setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
+      getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
+      testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -508,7 +635,12 @@ protected Builder(IndexEndpointServiceStubSettings settings) {
               deleteIndexEndpointSettings,
               deployIndexSettings,
               undeployIndexSettings,
-              mutateDeployedIndexSettings);
+              mutateDeployedIndexSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
     }
 
     private static Builder createDefault() {
@@ -565,6 +697,31 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
 
+      builder
+          .listLocationsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getLocationSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .setIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .testIamPermissionsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .createIndexEndpointOperationSettings()
           .setInitialCallSettings(
@@ -800,6 +957,34 @@ public UnaryCallSettings.Builder undeployIndexS
       return mutateDeployedIndexOperationSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return listLocationsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getLocationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return setIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return testIamPermissionsSettings;
+    }
+
     @Override
     public IndexEndpointServiceStubSettings build() throws IOException {
       return new IndexEndpointServiceStubSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexServiceStub.java
index 081f22024128..47bdbdb76347 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1beta1.stub;
 
 import static com.google.cloud.aiplatform.v1beta1.IndexServiceClient.ListIndexesPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.IndexServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
@@ -32,6 +33,15 @@
 import com.google.cloud.aiplatform.v1beta1.ListIndexesResponse;
 import com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata;
 import com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.OperationsStub;
 import com.google.protobuf.Empty;
@@ -90,6 +100,32 @@ public UnaryCallable deleteIndexCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteIndexCallable()");
   }
 
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
+  }
+
+  public UnaryCallable listLocationsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
+  }
+
+  public UnaryCallable getLocationCallable() {
+    throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
+  }
+
+  public UnaryCallable setIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
+  }
+
+  public UnaryCallable getIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
+  }
+
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexServiceStubSettings.java
index 0b43fc3d4acf..d778d0476ecd 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1beta1.stub;
 
 import static com.google.cloud.aiplatform.v1beta1.IndexServiceClient.ListIndexesPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.IndexServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.core.ApiFunction;
 import com.google.api.core.ApiFuture;
@@ -54,10 +55,19 @@
 import com.google.cloud.aiplatform.v1beta1.ListIndexesResponse;
 import com.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata;
 import com.google.cloud.aiplatform.v1beta1.UpdateIndexRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.Empty;
 import java.io.IOException;
@@ -83,6 +93,8 @@
  * 

For example, to set the total timeout of getIndex to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * IndexServiceStubSettings.Builder indexServiceSettingsBuilder =
  *     IndexServiceStubSettings.newBuilder();
  * indexServiceSettingsBuilder
@@ -116,6 +128,14 @@ public class IndexServiceStubSettings extends StubSettings deleteIndexSettings;
   private final OperationCallSettings
       deleteIndexOperationSettings;
+  private final PagedCallSettings<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      listLocationsSettings;
+  private final UnaryCallSettings getLocationSettings;
+  private final UnaryCallSettings setIamPolicySettings;
+  private final UnaryCallSettings getIamPolicySettings;
+  private final UnaryCallSettings
+      testIamPermissionsSettings;
 
   private static final PagedListDescriptor
       LIST_INDEXES_PAGE_STR_DESC =
@@ -153,6 +173,42 @@ public Iterable extractResources(ListIndexesResponse payload) {
             }
           };
 
+  private static final PagedListDescriptor
+      LIST_LOCATIONS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) {
+              return ListLocationsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) {
+              return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListLocationsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListLocationsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListLocationsResponse payload) {
+              return payload.getLocationsList() == null
+                  ? ImmutableList.of()
+                  : payload.getLocationsList();
+            }
+          };
+
   private static final PagedListResponseFactory<
           ListIndexesRequest, ListIndexesResponse, ListIndexesPagedResponse>
       LIST_INDEXES_PAGE_STR_FACT =
@@ -170,6 +226,23 @@ public ApiFuture getFuturePagedResponse(
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      LIST_LOCATIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListLocationsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context);
+              return ListLocationsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
   /** Returns the object with the settings used for calls to createIndex. */
   public UnaryCallSettings createIndexSettings() {
     return createIndexSettings;
@@ -214,7 +287,33 @@ public UnaryCallSettings deleteIndexSettings() {
     return deleteIndexOperationSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return listLocationsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return getLocationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return setIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return getIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return testIamPermissionsSettings;
+  }
+
   public IndexServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -298,6 +397,11 @@ protected IndexServiceStubSettings(Builder settingsBuilder) throws IOException {
     updateIndexOperationSettings = settingsBuilder.updateIndexOperationSettings().build();
     deleteIndexSettings = settingsBuilder.deleteIndexSettings().build();
     deleteIndexOperationSettings = settingsBuilder.deleteIndexOperationSettings().build();
+    listLocationsSettings = settingsBuilder.listLocationsSettings().build();
+    getLocationSettings = settingsBuilder.getLocationSettings().build();
+    setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
+    getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
+    testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
   }
 
   /** Builder for IndexServiceStubSettings. */
@@ -318,6 +422,14 @@ public static class Builder extends StubSettings.Builder deleteIndexSettings;
     private final OperationCallSettings.Builder
         deleteIndexOperationSettings;
+    private final PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings;
+    private final UnaryCallSettings.Builder getLocationSettings;
+    private final UnaryCallSettings.Builder setIamPolicySettings;
+    private final UnaryCallSettings.Builder getIamPolicySettings;
+    private final UnaryCallSettings.Builder
+        testIamPermissionsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -326,6 +438,7 @@ public static class Builder extends StubSettings.BuildernewArrayList()));
+      definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList()));
       RETRYABLE_CODE_DEFINITIONS = definitions.build();
     }
 
@@ -342,6 +455,8 @@ public static class Builder extends StubSettings.Builder>of(
@@ -367,7 +487,12 @@ protected Builder(ClientContext clientContext) {
               getIndexSettings,
               listIndexesSettings,
               updateIndexSettings,
-              deleteIndexSettings);
+              deleteIndexSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
       initDefaults(this);
     }
 
@@ -382,6 +507,11 @@ protected Builder(IndexServiceStubSettings settings) {
       updateIndexOperationSettings = settings.updateIndexOperationSettings.toBuilder();
       deleteIndexSettings = settings.deleteIndexSettings.toBuilder();
       deleteIndexOperationSettings = settings.deleteIndexOperationSettings.toBuilder();
+      listLocationsSettings = settings.listLocationsSettings.toBuilder();
+      getLocationSettings = settings.getLocationSettings.toBuilder();
+      setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
+      getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
+      testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -389,7 +519,12 @@ protected Builder(IndexServiceStubSettings settings) {
               getIndexSettings,
               listIndexesSettings,
               updateIndexSettings,
-              deleteIndexSettings);
+              deleteIndexSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
     }
 
     private static Builder createDefault() {
@@ -431,6 +566,31 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params"));
 
+      builder
+          .listLocationsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getLocationSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .setIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .testIamPermissionsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .createIndexOperationSettings()
           .setInitialCallSettings(
@@ -571,6 +731,34 @@ public UnaryCallSettings.Builder deleteIndexSetti
       return deleteIndexOperationSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return listLocationsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getLocationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return setIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return testIamPermissionsSettings;
+    }
+
     @Override
     public IndexServiceStubSettings build() throws IOException {
       return new IndexServiceStubSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/JobServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/JobServiceStub.java
index c457a88bd10e..996217ae904e 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/JobServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/JobServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -20,6 +20,7 @@
 import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListCustomJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListDataLabelingJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListHyperparameterTuningJobsPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListModelDeploymentMonitoringJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse;
 
@@ -68,6 +69,15 @@
 import com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse;
 import com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata;
 import com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.OperationsStub;
 import com.google.protobuf.Empty;
@@ -311,6 +321,32 @@ public UnaryCallable cancelBatchPredicti
         "Not implemented: resumeModelDeploymentMonitoringJobCallable()");
   }
 
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
+  }
+
+  public UnaryCallable listLocationsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
+  }
+
+  public UnaryCallable getLocationCallable() {
+    throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
+  }
+
+  public UnaryCallable setIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
+  }
+
+  public UnaryCallable getIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
+  }
+
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/JobServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/JobServiceStubSettings.java
index 0c7a68d09ad6..afddc0ac5a35 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/JobServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/JobServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -20,6 +20,7 @@
 import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListCustomJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListDataLabelingJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListHyperparameterTuningJobsPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListModelDeploymentMonitoringJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse;
 
@@ -91,10 +92,19 @@
 import com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse;
 import com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata;
 import com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.Empty;
 import java.io.IOException;
@@ -120,6 +130,8 @@
  * 

For example, to set the total timeout of createCustomJob to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * JobServiceStubSettings.Builder jobServiceSettingsBuilder = JobServiceStubSettings.newBuilder();
  * jobServiceSettingsBuilder
  *     .createCustomJobSettings()
@@ -228,6 +240,14 @@ public class JobServiceStubSettings extends StubSettings
       pauseModelDeploymentMonitoringJobSettings;
   private final UnaryCallSettings
       resumeModelDeploymentMonitoringJobSettings;
+  private final PagedCallSettings<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      listLocationsSettings;
+  private final UnaryCallSettings getLocationSettings;
+  private final UnaryCallSettings setIamPolicySettings;
+  private final UnaryCallSettings getIamPolicySettings;
+  private final UnaryCallSettings
+      testIamPermissionsSettings;
 
   private static final PagedListDescriptor
       LIST_CUSTOM_JOBS_PAGE_STR_DESC =
@@ -501,6 +521,42 @@ public Iterable extractResources(
             }
           };
 
+  private static final PagedListDescriptor
+      LIST_LOCATIONS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) {
+              return ListLocationsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) {
+              return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListLocationsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListLocationsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListLocationsResponse payload) {
+              return payload.getLocationsList() == null
+                  ? ImmutableList.of()
+                  : payload.getLocationsList();
+            }
+          };
+
   private static final PagedListResponseFactory<
           ListCustomJobsRequest, ListCustomJobsResponse, ListCustomJobsPagedResponse>
       LIST_CUSTOM_JOBS_PAGE_STR_FACT =
@@ -669,6 +725,23 @@ public ApiFuture getFuturePagedR
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      LIST_LOCATIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListLocationsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context);
+              return ListLocationsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
   /** Returns the object with the settings used for calls to createCustomJob. */
   public UnaryCallSettings createCustomJobSettings() {
     return createCustomJobSettings;
@@ -891,7 +964,33 @@ public UnaryCallSettings cancelDataLabeling
     return resumeModelDeploymentMonitoringJobSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return listLocationsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return getLocationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return setIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return getIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return testIamPermissionsSettings;
+  }
+
   public JobServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -1019,6 +1118,11 @@ protected JobServiceStubSettings(Builder settingsBuilder) throws IOException {
         settingsBuilder.pauseModelDeploymentMonitoringJobSettings().build();
     resumeModelDeploymentMonitoringJobSettings =
         settingsBuilder.resumeModelDeploymentMonitoringJobSettings().build();
+    listLocationsSettings = settingsBuilder.listLocationsSettings().build();
+    getLocationSettings = settingsBuilder.getLocationSettings().build();
+    setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
+    getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
+    testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
   }
 
   /** Builder for JobServiceStubSettings. */
@@ -1118,6 +1222,14 @@ public static class Builder extends StubSettings.Builder
         resumeModelDeploymentMonitoringJobSettings;
+    private final PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings;
+    private final UnaryCallSettings.Builder getLocationSettings;
+    private final UnaryCallSettings.Builder setIamPolicySettings;
+    private final UnaryCallSettings.Builder getIamPolicySettings;
+    private final UnaryCallSettings.Builder
+        testIamPermissionsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -1128,6 +1240,7 @@ public static class Builder extends StubSettings.BuildernewArrayList()));
       definitions.put(
           "no_retry_5_codes", ImmutableSet.copyOf(Lists.newArrayList()));
+      definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList()));
       RETRYABLE_CODE_DEFINITIONS = definitions.build();
     }
 
@@ -1152,6 +1265,8 @@ public static class Builder extends StubSettings.Builder>of(
@@ -1232,7 +1352,12 @@ protected Builder(ClientContext clientContext) {
               updateModelDeploymentMonitoringJobSettings,
               deleteModelDeploymentMonitoringJobSettings,
               pauseModelDeploymentMonitoringJobSettings,
-              resumeModelDeploymentMonitoringJobSettings);
+              resumeModelDeploymentMonitoringJobSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
       initDefaults(this);
     }
 
@@ -1290,6 +1415,11 @@ protected Builder(JobServiceStubSettings settings) {
           settings.pauseModelDeploymentMonitoringJobSettings.toBuilder();
       resumeModelDeploymentMonitoringJobSettings =
           settings.resumeModelDeploymentMonitoringJobSettings.toBuilder();
+      listLocationsSettings = settings.listLocationsSettings.toBuilder();
+      getLocationSettings = settings.getLocationSettings.toBuilder();
+      setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
+      getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
+      testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -1320,7 +1450,12 @@ protected Builder(JobServiceStubSettings settings) {
               updateModelDeploymentMonitoringJobSettings,
               deleteModelDeploymentMonitoringJobSettings,
               pauseModelDeploymentMonitoringJobSettings,
-              resumeModelDeploymentMonitoringJobSettings);
+              resumeModelDeploymentMonitoringJobSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
     }
 
     private static Builder createDefault() {
@@ -1477,6 +1612,31 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params"));
 
+      builder
+          .listLocationsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getLocationSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .setIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .testIamPermissionsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .deleteCustomJobOperationSettings()
           .setInitialCallSettings(
@@ -1896,6 +2056,34 @@ public UnaryCallSettings.Builder cancelCustomJobS
       return resumeModelDeploymentMonitoringJobSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return listLocationsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getLocationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return setIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return testIamPermissionsSettings;
+    }
+
     @Override
     public JobServiceStubSettings build() throws IOException {
       return new JobServiceStubSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MetadataServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MetadataServiceStub.java
index b78579bda976..c8fe74e2e5ed 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MetadataServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MetadataServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
 import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListArtifactsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListContextsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListExecutionsPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListMetadataSchemasPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListMetadataStoresPagedResponse;
 
@@ -80,6 +81,15 @@
 import com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest;
 import com.google.cloud.aiplatform.v1beta1.UpdateContextRequest;
 import com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.OperationsStub;
 import com.google.protobuf.Empty;
@@ -303,6 +313,32 @@ public UnaryCallable getMetadataSchema
         "Not implemented: queryArtifactLineageSubgraphCallable()");
   }
 
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
+  }
+
+  public UnaryCallable listLocationsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
+  }
+
+  public UnaryCallable getLocationCallable() {
+    throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
+  }
+
+  public UnaryCallable setIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
+  }
+
+  public UnaryCallable getIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
+  }
+
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MetadataServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MetadataServiceStubSettings.java
index 8ee879117006..10faa84aca70 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MetadataServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MetadataServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
 import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListArtifactsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListContextsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListExecutionsPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListMetadataSchemasPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListMetadataStoresPagedResponse;
 
@@ -102,10 +103,19 @@
 import com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest;
 import com.google.cloud.aiplatform.v1beta1.UpdateContextRequest;
 import com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.Empty;
 import java.io.IOException;
@@ -131,6 +141,8 @@
  * 

For example, to set the total timeout of getMetadataStore to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * MetadataServiceStubSettings.Builder metadataServiceSettingsBuilder =
  *     MetadataServiceStubSettings.newBuilder();
  * metadataServiceSettingsBuilder
@@ -225,6 +237,14 @@ public class MetadataServiceStubSettings extends StubSettings
       queryArtifactLineageSubgraphSettings;
+  private final PagedCallSettings<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      listLocationsSettings;
+  private final UnaryCallSettings getLocationSettings;
+  private final UnaryCallSettings setIamPolicySettings;
+  private final UnaryCallSettings getIamPolicySettings;
+  private final UnaryCallSettings
+      testIamPermissionsSettings;
 
   private static final PagedListDescriptor<
           ListMetadataStoresRequest, ListMetadataStoresResponse, MetadataStore>
@@ -415,6 +435,42 @@ public Iterable extractResources(ListMetadataSchemasResponse pay
             }
           };
 
+  private static final PagedListDescriptor
+      LIST_LOCATIONS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) {
+              return ListLocationsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) {
+              return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListLocationsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListLocationsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListLocationsResponse payload) {
+              return payload.getLocationsList() == null
+                  ? ImmutableList.of()
+                  : payload.getLocationsList();
+            }
+          };
+
   private static final PagedListResponseFactory<
           ListMetadataStoresRequest, ListMetadataStoresResponse, ListMetadataStoresPagedResponse>
       LIST_METADATA_STORES_PAGE_STR_FACT =
@@ -508,6 +564,23 @@ public ApiFuture getFuturePagedResponse(
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      LIST_LOCATIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListLocationsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context);
+              return ListLocationsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
   /** Returns the object with the settings used for calls to createMetadataStore. */
   public UnaryCallSettings createMetadataStoreSettings() {
     return createMetadataStoreSettings;
@@ -731,7 +804,33 @@ public UnaryCallSettings getMetadataSc
     return queryArtifactLineageSubgraphSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return listLocationsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return getLocationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return setIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return getIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return testIamPermissionsSettings;
+  }
+
   public MetadataServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -852,6 +951,11 @@ protected MetadataServiceStubSettings(Builder settingsBuilder) throws IOExceptio
     listMetadataSchemasSettings = settingsBuilder.listMetadataSchemasSettings().build();
     queryArtifactLineageSubgraphSettings =
         settingsBuilder.queryArtifactLineageSubgraphSettings().build();
+    listLocationsSettings = settingsBuilder.listLocationsSettings().build();
+    getLocationSettings = settingsBuilder.getLocationSettings().build();
+    setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
+    getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
+    testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
   }
 
   /** Builder for MetadataServiceStubSettings. */
@@ -942,6 +1046,14 @@ public static class Builder extends StubSettings.Builder
         queryArtifactLineageSubgraphSettings;
+    private final PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings;
+    private final UnaryCallSettings.Builder getLocationSettings;
+    private final UnaryCallSettings.Builder setIamPolicySettings;
+    private final UnaryCallSettings.Builder getIamPolicySettings;
+    private final UnaryCallSettings.Builder
+        testIamPermissionsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -1019,6 +1131,11 @@ protected Builder(ClientContext clientContext) {
       listMetadataSchemasSettings =
           PagedCallSettings.newBuilder(LIST_METADATA_SCHEMAS_PAGE_STR_FACT);
       queryArtifactLineageSubgraphSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
+      getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -1052,7 +1169,12 @@ protected Builder(ClientContext clientContext) {
               createMetadataSchemaSettings,
               getMetadataSchemaSettings,
               listMetadataSchemasSettings,
-              queryArtifactLineageSubgraphSettings);
+              queryArtifactLineageSubgraphSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
       initDefaults(this);
     }
 
@@ -1104,6 +1226,11 @@ protected Builder(MetadataServiceStubSettings settings) {
       listMetadataSchemasSettings = settings.listMetadataSchemasSettings.toBuilder();
       queryArtifactLineageSubgraphSettings =
           settings.queryArtifactLineageSubgraphSettings.toBuilder();
+      listLocationsSettings = settings.listLocationsSettings.toBuilder();
+      getLocationSettings = settings.getLocationSettings.toBuilder();
+      setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
+      getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
+      testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -1137,7 +1264,12 @@ protected Builder(MetadataServiceStubSettings settings) {
               createMetadataSchemaSettings,
               getMetadataSchemaSettings,
               listMetadataSchemasSettings,
-              queryArtifactLineageSubgraphSettings);
+              queryArtifactLineageSubgraphSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
     }
 
     private static Builder createDefault() {
@@ -1309,6 +1441,31 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
 
+      builder
+          .listLocationsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getLocationSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .setIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .testIamPermissionsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .createMetadataStoreOperationSettings()
           .setInitialCallSettings(
@@ -1769,6 +1926,34 @@ public UnaryCallSettings.Builder purgeExecuti
       return queryArtifactLineageSubgraphSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return listLocationsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getLocationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return setIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return testIamPermissionsSettings;
+    }
+
     @Override
     public MetadataServiceStubSettings build() throws IOException {
       return new MetadataServiceStubSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MigrationServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MigrationServiceStub.java
index 2cce89e36192..b8a7cc6741ff 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MigrationServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MigrationServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1beta1.stub;
 
+import static com.google.cloud.aiplatform.v1beta1.MigrationServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.MigrationServiceClient.SearchMigratableResourcesPagedResponse;
 
 import com.google.api.core.BetaApi;
@@ -27,6 +28,15 @@
 import com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse;
 import com.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest;
 import com.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.OperationsStub;
 import javax.annotation.Generated;
@@ -69,6 +79,32 @@ public UnaryCallable batchMigrateResour
     throw new UnsupportedOperationException("Not implemented: batchMigrateResourcesCallable()");
   }
 
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
+  }
+
+  public UnaryCallable listLocationsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
+  }
+
+  public UnaryCallable getLocationCallable() {
+    throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
+  }
+
+  public UnaryCallable setIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
+  }
+
+  public UnaryCallable getIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
+  }
+
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MigrationServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MigrationServiceStubSettings.java
index 9ac81f070bd4..b6aee89bde61 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MigrationServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MigrationServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1beta1.stub;
 
+import static com.google.cloud.aiplatform.v1beta1.MigrationServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.MigrationServiceClient.SearchMigratableResourcesPagedResponse;
 
 import com.google.api.core.ApiFunction;
@@ -50,10 +51,19 @@
 import com.google.cloud.aiplatform.v1beta1.MigratableResource;
 import com.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesRequest;
 import com.google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import java.io.IOException;
 import java.util.List;
@@ -75,16 +85,18 @@
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. * - *

For example, to set the total timeout of searchMigratableResources to 30 seconds: + *

For example, to set the total timeout of getLocation to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * MigrationServiceStubSettings.Builder migrationServiceSettingsBuilder =
  *     MigrationServiceStubSettings.newBuilder();
  * migrationServiceSettingsBuilder
- *     .searchMigratableResourcesSettings()
+ *     .getLocationSettings()
  *     .setRetrySettings(
  *         migrationServiceSettingsBuilder
- *             .searchMigratableResourcesSettings()
+ *             .getLocationSettings()
  *             .getRetrySettings()
  *             .toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
@@ -111,6 +123,14 @@ public class MigrationServiceStubSettings extends StubSettings
       batchMigrateResourcesOperationSettings;
+  private final PagedCallSettings<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      listLocationsSettings;
+  private final UnaryCallSettings getLocationSettings;
+  private final UnaryCallSettings setIamPolicySettings;
+  private final UnaryCallSettings getIamPolicySettings;
+  private final UnaryCallSettings
+      testIamPermissionsSettings;
 
   private static final PagedListDescriptor<
           SearchMigratableResourcesRequest, SearchMigratableResourcesResponse, MigratableResource>
@@ -159,6 +179,42 @@ public Iterable extractResources(
             }
           };
 
+  private static final PagedListDescriptor
+      LIST_LOCATIONS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) {
+              return ListLocationsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) {
+              return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListLocationsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListLocationsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListLocationsResponse payload) {
+              return payload.getLocationsList() == null
+                  ? ImmutableList.of()
+                  : payload.getLocationsList();
+            }
+          };
+
   private static final PagedListResponseFactory<
           SearchMigratableResourcesRequest,
           SearchMigratableResourcesResponse,
@@ -187,6 +243,23 @@ public ApiFuture getFuturePagedResponse(
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      LIST_LOCATIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListLocationsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context);
+              return ListLocationsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
   /** Returns the object with the settings used for calls to searchMigratableResources. */
   public PagedCallSettings<
           SearchMigratableResourcesRequest,
@@ -211,7 +284,33 @@ public ApiFuture getFuturePagedResponse(
     return batchMigrateResourcesOperationSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return listLocationsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return getLocationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return setIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return getIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return testIamPermissionsSettings;
+  }
+
   public MigrationServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -291,6 +390,11 @@ protected MigrationServiceStubSettings(Builder settingsBuilder) throws IOExcepti
     batchMigrateResourcesSettings = settingsBuilder.batchMigrateResourcesSettings().build();
     batchMigrateResourcesOperationSettings =
         settingsBuilder.batchMigrateResourcesOperationSettings().build();
+    listLocationsSettings = settingsBuilder.listLocationsSettings().build();
+    getLocationSettings = settingsBuilder.getLocationSettings().build();
+    setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
+    getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
+    testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
   }
 
   /** Builder for MigrationServiceStubSettings. */
@@ -308,6 +412,14 @@ public static class Builder extends StubSettings.Builder
         batchMigrateResourcesOperationSettings;
+    private final PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings;
+    private final UnaryCallSettings.Builder getLocationSettings;
+    private final UnaryCallSettings.Builder setIamPolicySettings;
+    private final UnaryCallSettings.Builder getIamPolicySettings;
+    private final UnaryCallSettings.Builder
+        testIamPermissionsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -339,10 +451,21 @@ protected Builder(ClientContext clientContext) {
           PagedCallSettings.newBuilder(SEARCH_MIGRATABLE_RESOURCES_PAGE_STR_FACT);
       batchMigrateResourcesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       batchMigrateResourcesOperationSettings = OperationCallSettings.newBuilder();
+      listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
+      getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
-              searchMigratableResourcesSettings, batchMigrateResourcesSettings);
+              searchMigratableResourcesSettings,
+              batchMigrateResourcesSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
       initDefaults(this);
     }
 
@@ -353,10 +476,21 @@ protected Builder(MigrationServiceStubSettings settings) {
       batchMigrateResourcesSettings = settings.batchMigrateResourcesSettings.toBuilder();
       batchMigrateResourcesOperationSettings =
           settings.batchMigrateResourcesOperationSettings.toBuilder();
+      listLocationsSettings = settings.listLocationsSettings.toBuilder();
+      getLocationSettings = settings.getLocationSettings.toBuilder();
+      setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
+      getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
+      testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
-              searchMigratableResourcesSettings, batchMigrateResourcesSettings);
+              searchMigratableResourcesSettings,
+              batchMigrateResourcesSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
     }
 
     private static Builder createDefault() {
@@ -383,6 +517,31 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
 
+      builder
+          .listLocationsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getLocationSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .setIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .testIamPermissionsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .batchMigrateResourcesOperationSettings()
           .setInitialCallSettings(
@@ -453,6 +612,34 @@ public Builder applyToAllUnaryMethods(
       return batchMigrateResourcesOperationSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return listLocationsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getLocationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return setIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return testIamPermissionsSettings;
+    }
+
     @Override
     public MigrationServiceStubSettings build() throws IOException {
       return new MigrationServiceStubSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStub.java
index db2ef0afd1eb..dd424a47cb7b 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1beta1.stub;
 
+import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationSlicesPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelVersionsPagedResponse;
@@ -47,10 +48,22 @@
 import com.google.cloud.aiplatform.v1beta1.Model;
 import com.google.cloud.aiplatform.v1beta1.ModelEvaluation;
 import com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice;
+import com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata;
+import com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest;
+import com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse;
 import com.google.cloud.aiplatform.v1beta1.UpdateModelRequest;
 import com.google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata;
 import com.google.cloud.aiplatform.v1beta1.UploadModelRequest;
 import com.google.cloud.aiplatform.v1beta1.UploadModelResponse;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.OperationsStub;
 import com.google.protobuf.Empty;
@@ -105,6 +118,20 @@ public UnaryCallable updateModelCallable() {
     throw new UnsupportedOperationException("Not implemented: updateModelCallable()");
   }
 
+  public OperationCallable<
+          UpdateExplanationDatasetRequest,
+          UpdateExplanationDatasetResponse,
+          UpdateExplanationDatasetOperationMetadata>
+      updateExplanationDatasetOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: updateExplanationDatasetOperationCallable()");
+  }
+
+  public UnaryCallable
+      updateExplanationDatasetCallable() {
+    throw new UnsupportedOperationException("Not implemented: updateExplanationDatasetCallable()");
+  }
+
   public OperationCallable
       deleteModelOperationCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteModelOperationCallable()");
@@ -172,6 +199,32 @@ public UnaryCallable getModelEvaluat
     throw new UnsupportedOperationException("Not implemented: listModelEvaluationSlicesCallable()");
   }
 
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
+  }
+
+  public UnaryCallable listLocationsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
+  }
+
+  public UnaryCallable getLocationCallable() {
+    throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
+  }
+
+  public UnaryCallable setIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
+  }
+
+  public UnaryCallable getIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
+  }
+
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStubSettings.java
index 4f9509ede578..c5c80d36205b 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1beta1.stub;
 
+import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationSlicesPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelVersionsPagedResponse;
@@ -69,14 +70,26 @@
 import com.google.cloud.aiplatform.v1beta1.Model;
 import com.google.cloud.aiplatform.v1beta1.ModelEvaluation;
 import com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice;
+import com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata;
+import com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest;
+import com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse;
 import com.google.cloud.aiplatform.v1beta1.UpdateModelRequest;
 import com.google.cloud.aiplatform.v1beta1.UploadModelOperationMetadata;
 import com.google.cloud.aiplatform.v1beta1.UploadModelRequest;
 import com.google.cloud.aiplatform.v1beta1.UploadModelResponse;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.Empty;
 import java.io.IOException;
@@ -102,6 +115,8 @@
  * 

For example, to set the total timeout of getModel to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * ModelServiceStubSettings.Builder modelServiceSettingsBuilder =
  *     ModelServiceStubSettings.newBuilder();
  * modelServiceSettingsBuilder
@@ -134,6 +149,13 @@ public class ModelServiceStubSettings extends StubSettings
       listModelVersionsSettings;
   private final UnaryCallSettings updateModelSettings;
+  private final UnaryCallSettings
+      updateExplanationDatasetSettings;
+  private final OperationCallSettings<
+          UpdateExplanationDatasetRequest,
+          UpdateExplanationDatasetResponse,
+          UpdateExplanationDatasetOperationMetadata>
+      updateExplanationDatasetOperationSettings;
   private final UnaryCallSettings deleteModelSettings;
   private final OperationCallSettings
       deleteModelOperationSettings;
@@ -161,6 +183,14 @@ public class ModelServiceStubSettings extends StubSettings
       listModelEvaluationSlicesSettings;
+  private final PagedCallSettings<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      listLocationsSettings;
+  private final UnaryCallSettings getLocationSettings;
+  private final UnaryCallSettings setIamPolicySettings;
+  private final UnaryCallSettings getIamPolicySettings;
+  private final UnaryCallSettings
+      testIamPermissionsSettings;
 
   private static final PagedListDescriptor
       LIST_MODELS_PAGE_STR_DESC =
@@ -325,6 +355,42 @@ public Iterable extractResources(
             }
           };
 
+  private static final PagedListDescriptor
+      LIST_LOCATIONS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) {
+              return ListLocationsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) {
+              return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListLocationsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListLocationsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListLocationsResponse payload) {
+              return payload.getLocationsList() == null
+                  ? ImmutableList.of()
+                  : payload.getLocationsList();
+            }
+          };
+
   private static final PagedListResponseFactory<
           ListModelsRequest, ListModelsResponse, ListModelsPagedResponse>
       LIST_MODELS_PAGE_STR_FACT =
@@ -413,6 +479,23 @@ public ApiFuture getFuturePagedResponse(
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      LIST_LOCATIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListLocationsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context);
+              return ListLocationsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
   /** Returns the object with the settings used for calls to uploadModel. */
   public UnaryCallSettings uploadModelSettings() {
     return uploadModelSettings;
@@ -448,6 +531,21 @@ public UnaryCallSettings updateModelSettings() {
     return updateModelSettings;
   }
 
+  /** Returns the object with the settings used for calls to updateExplanationDataset. */
+  public UnaryCallSettings
+      updateExplanationDatasetSettings() {
+    return updateExplanationDatasetSettings;
+  }
+
+  /** Returns the object with the settings used for calls to updateExplanationDataset. */
+  public OperationCallSettings<
+          UpdateExplanationDatasetRequest,
+          UpdateExplanationDatasetResponse,
+          UpdateExplanationDatasetOperationMetadata>
+      updateExplanationDatasetOperationSettings() {
+    return updateExplanationDatasetOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to deleteModel. */
   public UnaryCallSettings deleteModelSettings() {
     return deleteModelSettings;
@@ -523,7 +621,33 @@ public UnaryCallSettings exportModelSettings() {
     return listModelEvaluationSlicesSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return listLocationsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return getLocationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return setIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return getIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return testIamPermissionsSettings;
+  }
+
   public ModelServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -605,6 +729,9 @@ protected ModelServiceStubSettings(Builder settingsBuilder) throws IOException {
     listModelsSettings = settingsBuilder.listModelsSettings().build();
     listModelVersionsSettings = settingsBuilder.listModelVersionsSettings().build();
     updateModelSettings = settingsBuilder.updateModelSettings().build();
+    updateExplanationDatasetSettings = settingsBuilder.updateExplanationDatasetSettings().build();
+    updateExplanationDatasetOperationSettings =
+        settingsBuilder.updateExplanationDatasetOperationSettings().build();
     deleteModelSettings = settingsBuilder.deleteModelSettings().build();
     deleteModelOperationSettings = settingsBuilder.deleteModelOperationSettings().build();
     deleteModelVersionSettings = settingsBuilder.deleteModelVersionSettings().build();
@@ -618,6 +745,11 @@ protected ModelServiceStubSettings(Builder settingsBuilder) throws IOException {
     listModelEvaluationsSettings = settingsBuilder.listModelEvaluationsSettings().build();
     getModelEvaluationSliceSettings = settingsBuilder.getModelEvaluationSliceSettings().build();
     listModelEvaluationSlicesSettings = settingsBuilder.listModelEvaluationSlicesSettings().build();
+    listLocationsSettings = settingsBuilder.listLocationsSettings().build();
+    getLocationSettings = settingsBuilder.getLocationSettings().build();
+    setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
+    getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
+    testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
   }
 
   /** Builder for ModelServiceStubSettings. */
@@ -635,6 +767,13 @@ public static class Builder extends StubSettings.Builder
         listModelVersionsSettings;
     private final UnaryCallSettings.Builder updateModelSettings;
+    private final UnaryCallSettings.Builder
+        updateExplanationDatasetSettings;
+    private final OperationCallSettings.Builder<
+            UpdateExplanationDatasetRequest,
+            UpdateExplanationDatasetResponse,
+            UpdateExplanationDatasetOperationMetadata>
+        updateExplanationDatasetOperationSettings;
     private final UnaryCallSettings.Builder deleteModelSettings;
     private final OperationCallSettings.Builder
         deleteModelOperationSettings;
@@ -665,6 +804,14 @@ public static class Builder extends StubSettings.Builder
         listModelEvaluationSlicesSettings;
+    private final PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings;
+    private final UnaryCallSettings.Builder getLocationSettings;
+    private final UnaryCallSettings.Builder setIamPolicySettings;
+    private final UnaryCallSettings.Builder getIamPolicySettings;
+    private final UnaryCallSettings.Builder
+        testIamPermissionsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -708,6 +855,8 @@ protected Builder(ClientContext clientContext) {
       listModelsSettings = PagedCallSettings.newBuilder(LIST_MODELS_PAGE_STR_FACT);
       listModelVersionsSettings = PagedCallSettings.newBuilder(LIST_MODEL_VERSIONS_PAGE_STR_FACT);
       updateModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      updateExplanationDatasetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      updateExplanationDatasetOperationSettings = OperationCallSettings.newBuilder();
       deleteModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       deleteModelOperationSettings = OperationCallSettings.newBuilder();
       deleteModelVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
@@ -722,6 +871,11 @@ protected Builder(ClientContext clientContext) {
       getModelEvaluationSliceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       listModelEvaluationSlicesSettings =
           PagedCallSettings.newBuilder(LIST_MODEL_EVALUATION_SLICES_PAGE_STR_FACT);
+      listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
+      getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -730,6 +884,7 @@ protected Builder(ClientContext clientContext) {
               listModelsSettings,
               listModelVersionsSettings,
               updateModelSettings,
+              updateExplanationDatasetSettings,
               deleteModelSettings,
               deleteModelVersionSettings,
               mergeVersionAliasesSettings,
@@ -738,7 +893,12 @@ protected Builder(ClientContext clientContext) {
               getModelEvaluationSettings,
               listModelEvaluationsSettings,
               getModelEvaluationSliceSettings,
-              listModelEvaluationSlicesSettings);
+              listModelEvaluationSlicesSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
       initDefaults(this);
     }
 
@@ -751,6 +911,9 @@ protected Builder(ModelServiceStubSettings settings) {
       listModelsSettings = settings.listModelsSettings.toBuilder();
       listModelVersionsSettings = settings.listModelVersionsSettings.toBuilder();
       updateModelSettings = settings.updateModelSettings.toBuilder();
+      updateExplanationDatasetSettings = settings.updateExplanationDatasetSettings.toBuilder();
+      updateExplanationDatasetOperationSettings =
+          settings.updateExplanationDatasetOperationSettings.toBuilder();
       deleteModelSettings = settings.deleteModelSettings.toBuilder();
       deleteModelOperationSettings = settings.deleteModelOperationSettings.toBuilder();
       deleteModelVersionSettings = settings.deleteModelVersionSettings.toBuilder();
@@ -764,6 +927,11 @@ protected Builder(ModelServiceStubSettings settings) {
       listModelEvaluationsSettings = settings.listModelEvaluationsSettings.toBuilder();
       getModelEvaluationSliceSettings = settings.getModelEvaluationSliceSettings.toBuilder();
       listModelEvaluationSlicesSettings = settings.listModelEvaluationSlicesSettings.toBuilder();
+      listLocationsSettings = settings.listLocationsSettings.toBuilder();
+      getLocationSettings = settings.getLocationSettings.toBuilder();
+      setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
+      getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
+      testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -772,6 +940,7 @@ protected Builder(ModelServiceStubSettings settings) {
               listModelsSettings,
               listModelVersionsSettings,
               updateModelSettings,
+              updateExplanationDatasetSettings,
               deleteModelSettings,
               deleteModelVersionSettings,
               mergeVersionAliasesSettings,
@@ -780,7 +949,12 @@ protected Builder(ModelServiceStubSettings settings) {
               getModelEvaluationSettings,
               listModelEvaluationsSettings,
               getModelEvaluationSliceSettings,
-              listModelEvaluationSlicesSettings);
+              listModelEvaluationSlicesSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
     }
 
     private static Builder createDefault() {
@@ -822,6 +996,11 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params"));
 
+      builder
+          .updateExplanationDatasetSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .deleteModelSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes"))
@@ -867,6 +1046,31 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_7_params"));
 
+      builder
+          .listLocationsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getLocationSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .setIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .testIamPermissionsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .uploadModelOperationSettings()
           .setInitialCallSettings(
@@ -891,6 +1095,32 @@ private static Builder initDefaults(Builder builder) {
                       .setTotalTimeout(Duration.ofMillis(300000L))
                       .build()));
 
+      builder
+          .updateExplanationDatasetOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"))
+                  .build())
+          .setResponseTransformer(
+              ProtoOperationTransformers.ResponseTransformer.create(
+                  UpdateExplanationDatasetResponse.class))
+          .setMetadataTransformer(
+              ProtoOperationTransformers.MetadataTransformer.create(
+                  UpdateExplanationDatasetOperationMetadata.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(5000L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(45000L))
+                      .setInitialRpcTimeout(Duration.ZERO)
+                      .setRpcTimeoutMultiplier(1.0)
+                      .setMaxRpcTimeout(Duration.ZERO)
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+
       builder
           .deleteModelOperationSettings()
           .setInitialCallSettings(
@@ -1017,6 +1247,23 @@ public UnaryCallSettings.Builder updateModelSettings(
       return updateModelSettings;
     }
 
+    /** Returns the builder for the settings used for calls to updateExplanationDataset. */
+    public UnaryCallSettings.Builder
+        updateExplanationDatasetSettings() {
+      return updateExplanationDatasetSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to updateExplanationDataset. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            UpdateExplanationDatasetRequest,
+            UpdateExplanationDatasetResponse,
+            UpdateExplanationDatasetOperationMetadata>
+        updateExplanationDatasetOperationSettings() {
+      return updateExplanationDatasetOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to deleteModel. */
     public UnaryCallSettings.Builder deleteModelSettings() {
       return deleteModelSettings;
@@ -1100,6 +1347,34 @@ public UnaryCallSettings.Builder exportModelSetti
       return listModelEvaluationSlicesSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return listLocationsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getLocationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return setIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return testIamPermissionsSettings;
+    }
+
     @Override
     public ModelServiceStubSettings build() throws IOException {
       return new ModelServiceStubSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PipelineServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PipelineServiceStub.java
index a45c73ec9be9..84029ffae288 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PipelineServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PipelineServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1beta1.stub;
 
+import static com.google.cloud.aiplatform.v1beta1.PipelineServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.PipelineServiceClient.ListPipelineJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.PipelineServiceClient.ListTrainingPipelinesPagedResponse;
 
@@ -38,6 +39,15 @@
 import com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse;
 import com.google.cloud.aiplatform.v1beta1.PipelineJob;
 import com.google.cloud.aiplatform.v1beta1.TrainingPipeline;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.OperationsStub;
 import com.google.protobuf.Empty;
@@ -123,6 +133,32 @@ public UnaryCallable cancelPipelineJobCallable(
     throw new UnsupportedOperationException("Not implemented: cancelPipelineJobCallable()");
   }
 
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
+  }
+
+  public UnaryCallable listLocationsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
+  }
+
+  public UnaryCallable getLocationCallable() {
+    throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
+  }
+
+  public UnaryCallable setIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
+  }
+
+  public UnaryCallable getIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
+  }
+
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PipelineServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PipelineServiceStubSettings.java
index 9edb541e91a9..6e458c3133f4 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PipelineServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PipelineServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1beta1.stub;
 
+import static com.google.cloud.aiplatform.v1beta1.PipelineServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.PipelineServiceClient.ListPipelineJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.PipelineServiceClient.ListTrainingPipelinesPagedResponse;
 
@@ -60,10 +61,19 @@
 import com.google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse;
 import com.google.cloud.aiplatform.v1beta1.PipelineJob;
 import com.google.cloud.aiplatform.v1beta1.TrainingPipeline;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.Empty;
 import java.io.IOException;
@@ -89,6 +99,8 @@
  * 

For example, to set the total timeout of createTrainingPipeline to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * PipelineServiceStubSettings.Builder pipelineServiceSettingsBuilder =
  *     PipelineServiceStubSettings.newBuilder();
  * pipelineServiceSettingsBuilder
@@ -134,6 +146,14 @@ public class PipelineServiceStubSettings extends StubSettings
       deletePipelineJobOperationSettings;
   private final UnaryCallSettings cancelPipelineJobSettings;
+  private final PagedCallSettings<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      listLocationsSettings;
+  private final UnaryCallSettings getLocationSettings;
+  private final UnaryCallSettings setIamPolicySettings;
+  private final UnaryCallSettings getIamPolicySettings;
+  private final UnaryCallSettings
+      testIamPermissionsSettings;
 
   private static final PagedListDescriptor<
           ListTrainingPipelinesRequest, ListTrainingPipelinesResponse, TrainingPipeline>
@@ -216,6 +236,42 @@ public Iterable extractResources(ListPipelineJobsResponse payload)
             }
           };
 
+  private static final PagedListDescriptor
+      LIST_LOCATIONS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) {
+              return ListLocationsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) {
+              return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListLocationsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListLocationsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListLocationsResponse payload) {
+              return payload.getLocationsList() == null
+                  ? ImmutableList.of()
+                  : payload.getLocationsList();
+            }
+          };
+
   private static final PagedListResponseFactory<
           ListTrainingPipelinesRequest,
           ListTrainingPipelinesResponse,
@@ -259,6 +315,23 @@ public ApiFuture getFuturePagedResponse(
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      LIST_LOCATIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListLocationsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context);
+              return ListLocationsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
   /** Returns the object with the settings used for calls to createTrainingPipeline. */
   public UnaryCallSettings
       createTrainingPipelineSettings() {
@@ -330,7 +403,33 @@ public UnaryCallSettings cancelPipelineJobSetti
     return cancelPipelineJobSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return listLocationsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return getLocationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return setIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return getIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return testIamPermissionsSettings;
+  }
+
   public PipelineServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -420,6 +519,11 @@ protected PipelineServiceStubSettings(Builder settingsBuilder) throws IOExceptio
     deletePipelineJobOperationSettings =
         settingsBuilder.deletePipelineJobOperationSettings().build();
     cancelPipelineJobSettings = settingsBuilder.cancelPipelineJobSettings().build();
+    listLocationsSettings = settingsBuilder.listLocationsSettings().build();
+    getLocationSettings = settingsBuilder.getLocationSettings().build();
+    setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
+    getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
+    testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
   }
 
   /** Builder for PipelineServiceStubSettings. */
@@ -455,6 +559,14 @@ public static class Builder extends StubSettings.Builder
         cancelPipelineJobSettings;
+    private final PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings;
+    private final UnaryCallSettings.Builder getLocationSettings;
+    private final UnaryCallSettings.Builder setIamPolicySettings;
+    private final UnaryCallSettings.Builder getIamPolicySettings;
+    private final UnaryCallSettings.Builder
+        testIamPermissionsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -505,6 +617,11 @@ protected Builder(ClientContext clientContext) {
       deletePipelineJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       deletePipelineJobOperationSettings = OperationCallSettings.newBuilder();
       cancelPipelineJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
+      getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -517,7 +634,12 @@ protected Builder(ClientContext clientContext) {
               getPipelineJobSettings,
               listPipelineJobsSettings,
               deletePipelineJobSettings,
-              cancelPipelineJobSettings);
+              cancelPipelineJobSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
       initDefaults(this);
     }
 
@@ -537,6 +659,11 @@ protected Builder(PipelineServiceStubSettings settings) {
       deletePipelineJobSettings = settings.deletePipelineJobSettings.toBuilder();
       deletePipelineJobOperationSettings = settings.deletePipelineJobOperationSettings.toBuilder();
       cancelPipelineJobSettings = settings.cancelPipelineJobSettings.toBuilder();
+      listLocationsSettings = settings.listLocationsSettings.toBuilder();
+      getLocationSettings = settings.getLocationSettings.toBuilder();
+      setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
+      getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
+      testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -549,7 +676,12 @@ protected Builder(PipelineServiceStubSettings settings) {
               getPipelineJobSettings,
               listPipelineJobsSettings,
               deletePipelineJobSettings,
-              cancelPipelineJobSettings);
+              cancelPipelineJobSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
     }
 
     private static Builder createDefault() {
@@ -616,6 +748,31 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
 
+      builder
+          .listLocationsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getLocationSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .setIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .testIamPermissionsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .deleteTrainingPipelineOperationSettings()
           .setInitialCallSettings(
@@ -761,6 +918,34 @@ public UnaryCallSettings.Builder cancelPipeline
       return cancelPipelineJobSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return listLocationsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getLocationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return setIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return testIamPermissionsSettings;
+    }
+
     @Override
     public PipelineServiceStubSettings build() throws IOException {
       return new PipelineServiceStubSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStub.java
index cfa83f7c3344..309f6dff2482 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,8 @@
 
 package com.google.cloud.aiplatform.v1beta1.stub;
 
+import static com.google.cloud.aiplatform.v1beta1.PredictionServiceClient.ListLocationsPagedResponse;
+
 import com.google.api.HttpBody;
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
@@ -25,6 +27,15 @@
 import com.google.cloud.aiplatform.v1beta1.PredictRequest;
 import com.google.cloud.aiplatform.v1beta1.PredictResponse;
 import com.google.cloud.aiplatform.v1beta1.RawPredictRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS.
@@ -49,6 +60,32 @@ public UnaryCallable explainCallable() {
     throw new UnsupportedOperationException("Not implemented: explainCallable()");
   }
 
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
+  }
+
+  public UnaryCallable listLocationsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
+  }
+
+  public UnaryCallable getLocationCallable() {
+    throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
+  }
+
+  public UnaryCallable setIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
+  }
+
+  public UnaryCallable getIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
+  }
+
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStubSettings.java
index 32f1bfb982e0..75453304c909 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,8 +16,11 @@
 
 package com.google.cloud.aiplatform.v1beta1.stub;
 
+import static com.google.cloud.aiplatform.v1beta1.PredictionServiceClient.ListLocationsPagedResponse;
+
 import com.google.api.HttpBody;
 import com.google.api.core.ApiFunction;
+import com.google.api.core.ApiFuture;
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
@@ -26,21 +29,36 @@
 import com.google.api.gax.grpc.GrpcTransportChannel;
 import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
 import com.google.api.gax.retrying.RetrySettings;
+import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.PageContext;
+import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.PagedListDescriptor;
+import com.google.api.gax.rpc.PagedListResponseFactory;
 import com.google.api.gax.rpc.StatusCode;
 import com.google.api.gax.rpc.StubSettings;
 import com.google.api.gax.rpc.TransportChannelProvider;
 import com.google.api.gax.rpc.UnaryCallSettings;
+import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.aiplatform.v1beta1.ExplainRequest;
 import com.google.cloud.aiplatform.v1beta1.ExplainResponse;
 import com.google.cloud.aiplatform.v1beta1.PredictRequest;
 import com.google.cloud.aiplatform.v1beta1.PredictResponse;
 import com.google.cloud.aiplatform.v1beta1.RawPredictRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import java.io.IOException;
 import java.util.List;
 import javax.annotation.Generated;
@@ -64,6 +82,8 @@
  * 

For example, to set the total timeout of predict to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * PredictionServiceStubSettings.Builder predictionServiceSettingsBuilder =
  *     PredictionServiceStubSettings.newBuilder();
  * predictionServiceSettingsBuilder
@@ -89,6 +109,67 @@ public class PredictionServiceStubSettings extends StubSettings predictSettings;
   private final UnaryCallSettings rawPredictSettings;
   private final UnaryCallSettings explainSettings;
+  private final PagedCallSettings<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      listLocationsSettings;
+  private final UnaryCallSettings getLocationSettings;
+  private final UnaryCallSettings setIamPolicySettings;
+  private final UnaryCallSettings getIamPolicySettings;
+  private final UnaryCallSettings
+      testIamPermissionsSettings;
+
+  private static final PagedListDescriptor
+      LIST_LOCATIONS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) {
+              return ListLocationsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) {
+              return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListLocationsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListLocationsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListLocationsResponse payload) {
+              return payload.getLocationsList() == null
+                  ? ImmutableList.of()
+                  : payload.getLocationsList();
+            }
+          };
+
+  private static final PagedListResponseFactory<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      LIST_LOCATIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListLocationsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context);
+              return ListLocationsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
 
   /** Returns the object with the settings used for calls to predict. */
   public UnaryCallSettings predictSettings() {
@@ -105,7 +186,33 @@ public UnaryCallSettings explainSettings() {
     return explainSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return listLocationsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return getLocationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return setIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return getIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return testIamPermissionsSettings;
+  }
+
   public PredictionServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -184,6 +291,11 @@ protected PredictionServiceStubSettings(Builder settingsBuilder) throws IOExcept
     predictSettings = settingsBuilder.predictSettings().build();
     rawPredictSettings = settingsBuilder.rawPredictSettings().build();
     explainSettings = settingsBuilder.explainSettings().build();
+    listLocationsSettings = settingsBuilder.listLocationsSettings().build();
+    getLocationSettings = settingsBuilder.getLocationSettings().build();
+    setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
+    getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
+    testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
   }
 
   /** Builder for PredictionServiceStubSettings. */
@@ -192,6 +304,14 @@ public static class Builder extends StubSettings.Builder predictSettings;
     private final UnaryCallSettings.Builder rawPredictSettings;
     private final UnaryCallSettings.Builder explainSettings;
+    private final PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings;
+    private final UnaryCallSettings.Builder getLocationSettings;
+    private final UnaryCallSettings.Builder setIamPolicySettings;
+    private final UnaryCallSettings.Builder getIamPolicySettings;
+    private final UnaryCallSettings.Builder
+        testIamPermissionsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -232,10 +352,22 @@ protected Builder(ClientContext clientContext) {
       predictSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       rawPredictSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       explainSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
+      getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
-              predictSettings, rawPredictSettings, explainSettings);
+              predictSettings,
+              rawPredictSettings,
+              explainSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
       initDefaults(this);
     }
 
@@ -245,10 +377,22 @@ protected Builder(PredictionServiceStubSettings settings) {
       predictSettings = settings.predictSettings.toBuilder();
       rawPredictSettings = settings.rawPredictSettings.toBuilder();
       explainSettings = settings.explainSettings.toBuilder();
+      listLocationsSettings = settings.listLocationsSettings.toBuilder();
+      getLocationSettings = settings.getLocationSettings.toBuilder();
+      setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
+      getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
+      testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
-              predictSettings, rawPredictSettings, explainSettings);
+              predictSettings,
+              rawPredictSettings,
+              explainSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
     }
 
     private static Builder createDefault() {
@@ -280,6 +424,31 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_9_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_9_params"));
 
+      builder
+          .listLocationsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getLocationSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .setIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .testIamPermissionsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       return builder;
     }
 
@@ -313,6 +482,34 @@ public UnaryCallSettings.Builder explainSetting
       return explainSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return listLocationsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getLocationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return setIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return testIamPermissionsSettings;
+    }
+
     @Override
     public PredictionServiceStubSettings build() throws IOException {
       return new PredictionServiceStubSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SpecialistPoolServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SpecialistPoolServiceStub.java
index 204d16d02ab5..b2f278f1ce10 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SpecialistPoolServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SpecialistPoolServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1beta1.stub;
 
+import static com.google.cloud.aiplatform.v1beta1.SpecialistPoolServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.SpecialistPoolServiceClient.ListSpecialistPoolsPagedResponse;
 
 import com.google.api.core.BetaApi;
@@ -32,6 +33,15 @@
 import com.google.cloud.aiplatform.v1beta1.SpecialistPool;
 import com.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata;
 import com.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.OperationsStub;
 import com.google.protobuf.Empty;
@@ -97,6 +107,32 @@ public UnaryCallable updateSpecialistPoo
     throw new UnsupportedOperationException("Not implemented: updateSpecialistPoolCallable()");
   }
 
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
+  }
+
+  public UnaryCallable listLocationsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
+  }
+
+  public UnaryCallable getLocationCallable() {
+    throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
+  }
+
+  public UnaryCallable setIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
+  }
+
+  public UnaryCallable getIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
+  }
+
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SpecialistPoolServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SpecialistPoolServiceStubSettings.java
index 161d5e87f842..72f37783176b 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SpecialistPoolServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SpecialistPoolServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1beta1.stub;
 
+import static com.google.cloud.aiplatform.v1beta1.SpecialistPoolServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.SpecialistPoolServiceClient.ListSpecialistPoolsPagedResponse;
 
 import com.google.api.core.ApiFunction;
@@ -54,10 +55,19 @@
 import com.google.cloud.aiplatform.v1beta1.SpecialistPool;
 import com.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolOperationMetadata;
 import com.google.cloud.aiplatform.v1beta1.UpdateSpecialistPoolRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.Empty;
 import java.io.IOException;
@@ -83,6 +93,8 @@
  * 

For example, to set the total timeout of getSpecialistPool to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SpecialistPoolServiceStubSettings.Builder specialistPoolServiceSettingsBuilder =
  *     SpecialistPoolServiceStubSettings.newBuilder();
  * specialistPoolServiceSettingsBuilder
@@ -125,6 +137,14 @@ public class SpecialistPoolServiceStubSettings
   private final OperationCallSettings<
           UpdateSpecialistPoolRequest, SpecialistPool, UpdateSpecialistPoolOperationMetadata>
       updateSpecialistPoolOperationSettings;
+  private final PagedCallSettings<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      listLocationsSettings;
+  private final UnaryCallSettings getLocationSettings;
+  private final UnaryCallSettings setIamPolicySettings;
+  private final UnaryCallSettings getIamPolicySettings;
+  private final UnaryCallSettings
+      testIamPermissionsSettings;
 
   private static final PagedListDescriptor<
           ListSpecialistPoolsRequest, ListSpecialistPoolsResponse, SpecialistPool>
@@ -166,6 +186,42 @@ public Iterable extractResources(ListSpecialistPoolsResponse pay
             }
           };
 
+  private static final PagedListDescriptor
+      LIST_LOCATIONS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) {
+              return ListLocationsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) {
+              return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListLocationsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListLocationsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListLocationsResponse payload) {
+              return payload.getLocationsList() == null
+                  ? ImmutableList.of()
+                  : payload.getLocationsList();
+            }
+          };
+
   private static final PagedListResponseFactory<
           ListSpecialistPoolsRequest, ListSpecialistPoolsResponse, ListSpecialistPoolsPagedResponse>
       LIST_SPECIALIST_POOLS_PAGE_STR_FACT =
@@ -187,6 +243,23 @@ public ApiFuture getFuturePagedResponse(
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      LIST_LOCATIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListLocationsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context);
+              return ListLocationsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
   /** Returns the object with the settings used for calls to createSpecialistPool. */
   public UnaryCallSettings createSpecialistPoolSettings() {
     return createSpecialistPoolSettings;
@@ -234,7 +307,33 @@ public UnaryCallSettings updateSpecialis
     return updateSpecialistPoolOperationSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return listLocationsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return getLocationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return setIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return getIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return testIamPermissionsSettings;
+  }
+
   public SpecialistPoolServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -321,6 +420,11 @@ protected SpecialistPoolServiceStubSettings(Builder settingsBuilder) throws IOEx
     updateSpecialistPoolSettings = settingsBuilder.updateSpecialistPoolSettings().build();
     updateSpecialistPoolOperationSettings =
         settingsBuilder.updateSpecialistPoolOperationSettings().build();
+    listLocationsSettings = settingsBuilder.listLocationsSettings().build();
+    getLocationSettings = settingsBuilder.getLocationSettings().build();
+    setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
+    getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
+    testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
   }
 
   /** Builder for SpecialistPoolServiceStubSettings. */
@@ -349,6 +453,14 @@ public static class Builder
     private final OperationCallSettings.Builder<
             UpdateSpecialistPoolRequest, SpecialistPool, UpdateSpecialistPoolOperationMetadata>
         updateSpecialistPoolOperationSettings;
+    private final PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings;
+    private final UnaryCallSettings.Builder getLocationSettings;
+    private final UnaryCallSettings.Builder setIamPolicySettings;
+    private final UnaryCallSettings.Builder getIamPolicySettings;
+    private final UnaryCallSettings.Builder
+        testIamPermissionsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -357,6 +469,7 @@ public static class Builder
           ImmutableMap.builder();
       definitions.put(
           "no_retry_10_codes", ImmutableSet.copyOf(Lists.newArrayList()));
+      definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList()));
       RETRYABLE_CODE_DEFINITIONS = definitions.build();
     }
 
@@ -373,6 +486,8 @@ public static class Builder
               .setTotalTimeout(Duration.ofMillis(5000L))
               .build();
       definitions.put("no_retry_10_params", settings);
+      settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build();
+      definitions.put("no_retry_params", settings);
       RETRY_PARAM_DEFINITIONS = definitions.build();
     }
 
@@ -392,6 +507,11 @@ protected Builder(ClientContext clientContext) {
       deleteSpecialistPoolOperationSettings = OperationCallSettings.newBuilder();
       updateSpecialistPoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       updateSpecialistPoolOperationSettings = OperationCallSettings.newBuilder();
+      listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
+      getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -399,7 +519,12 @@ protected Builder(ClientContext clientContext) {
               getSpecialistPoolSettings,
               listSpecialistPoolsSettings,
               deleteSpecialistPoolSettings,
-              updateSpecialistPoolSettings);
+              updateSpecialistPoolSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
       initDefaults(this);
     }
 
@@ -417,6 +542,11 @@ protected Builder(SpecialistPoolServiceStubSettings settings) {
       updateSpecialistPoolSettings = settings.updateSpecialistPoolSettings.toBuilder();
       updateSpecialistPoolOperationSettings =
           settings.updateSpecialistPoolOperationSettings.toBuilder();
+      listLocationsSettings = settings.listLocationsSettings.toBuilder();
+      getLocationSettings = settings.getLocationSettings.toBuilder();
+      setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
+      getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
+      testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -424,7 +554,12 @@ protected Builder(SpecialistPoolServiceStubSettings settings) {
               getSpecialistPoolSettings,
               listSpecialistPoolsSettings,
               deleteSpecialistPoolSettings,
-              updateSpecialistPoolSettings);
+              updateSpecialistPoolSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
     }
 
     private static Builder createDefault() {
@@ -466,6 +601,31 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_10_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_10_params"));
 
+      builder
+          .listLocationsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getLocationSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .setIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .testIamPermissionsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .createSpecialistPoolOperationSettings()
           .setInitialCallSettings(
@@ -618,6 +778,34 @@ public Builder applyToAllUnaryMethods(
       return updateSpecialistPoolOperationSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return listLocationsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getLocationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return setIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return testIamPermissionsSettings;
+    }
+
     @Override
     public SpecialistPoolServiceStubSettings build() throws IOException {
       return new SpecialistPoolServiceStubSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/TensorboardServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/TensorboardServiceStub.java
index e64119f31b9d..6979cd63b1a5 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/TensorboardServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/TensorboardServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1beta1.stub;
 
 import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardExperimentsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardRunsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardTimeSeriesPagedResponse;
@@ -74,6 +75,15 @@
 import com.google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataResponse;
 import com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest;
 import com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.OperationsStub;
 import com.google.protobuf.Empty;
@@ -309,6 +319,32 @@ public UnaryCallable deleteTensorboardRu
         "Not implemented: exportTensorboardTimeSeriesDataCallable()");
   }
 
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
+  }
+
+  public UnaryCallable listLocationsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
+  }
+
+  public UnaryCallable getLocationCallable() {
+    throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
+  }
+
+  public UnaryCallable setIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
+  }
+
+  public UnaryCallable getIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
+  }
+
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/TensorboardServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/TensorboardServiceStubSettings.java
index da6ebe318487..b1c23fbf263a 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/TensorboardServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/TensorboardServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1beta1.stub;
 
 import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardExperimentsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardRunsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardTimeSeriesPagedResponse;
@@ -97,10 +98,19 @@
 import com.google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataResponse;
 import com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest;
 import com.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.Empty;
 import java.io.IOException;
@@ -126,6 +136,8 @@
  * 

For example, to set the total timeout of getTensorboard to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * TensorboardServiceStubSettings.Builder tensorboardServiceSettingsBuilder =
  *     TensorboardServiceStubSettings.newBuilder();
  * tensorboardServiceSettingsBuilder
@@ -233,6 +245,14 @@ public class TensorboardServiceStubSettings extends StubSettings
       exportTensorboardTimeSeriesDataSettings;
+  private final PagedCallSettings<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      listLocationsSettings;
+  private final UnaryCallSettings getLocationSettings;
+  private final UnaryCallSettings setIamPolicySettings;
+  private final UnaryCallSettings getIamPolicySettings;
+  private final UnaryCallSettings
+      testIamPermissionsSettings;
 
   private static final PagedListDescriptor<
           ListTensorboardsRequest, ListTensorboardsResponse, Tensorboard>
@@ -461,6 +481,42 @@ public Iterable extractResources(
             }
           };
 
+  private static final PagedListDescriptor
+      LIST_LOCATIONS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) {
+              return ListLocationsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) {
+              return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListLocationsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListLocationsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListLocationsResponse payload) {
+              return payload.getLocationsList() == null
+                  ? ImmutableList.of()
+                  : payload.getLocationsList();
+            }
+          };
+
   private static final PagedListResponseFactory<
           ListTensorboardsRequest, ListTensorboardsResponse, ListTensorboardsPagedResponse>
       LIST_TENSORBOARDS_PAGE_STR_FACT =
@@ -590,6 +646,23 @@ public ApiFuture getFuturePagedRes
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      LIST_LOCATIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListLocationsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context);
+              return ListLocationsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
   /** Returns the object with the settings used for calls to createTensorboard. */
   public UnaryCallSettings createTensorboardSettings() {
     return createTensorboardSettings;
@@ -806,7 +879,33 @@ public UnaryCallSettings deleteTensorboa
     return exportTensorboardTimeSeriesDataSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return listLocationsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return getLocationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return setIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return getIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return testIamPermissionsSettings;
+  }
+
   public TensorboardServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -935,6 +1034,11 @@ protected TensorboardServiceStubSettings(Builder settingsBuilder) throws IOExcep
     writeTensorboardRunDataSettings = settingsBuilder.writeTensorboardRunDataSettings().build();
     exportTensorboardTimeSeriesDataSettings =
         settingsBuilder.exportTensorboardTimeSeriesDataSettings().build();
+    listLocationsSettings = settingsBuilder.listLocationsSettings().build();
+    getLocationSettings = settingsBuilder.getLocationSettings().build();
+    setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
+    getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
+    testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
   }
 
   /** Builder for TensorboardServiceStubSettings. */
@@ -1039,6 +1143,14 @@ public static class Builder
             ExportTensorboardTimeSeriesDataResponse,
             ExportTensorboardTimeSeriesDataPagedResponse>
         exportTensorboardTimeSeriesDataSettings;
+    private final PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings;
+    private final UnaryCallSettings.Builder getLocationSettings;
+    private final UnaryCallSettings.Builder setIamPolicySettings;
+    private final UnaryCallSettings.Builder getIamPolicySettings;
+    private final UnaryCallSettings.Builder
+        testIamPermissionsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -1104,6 +1216,11 @@ protected Builder(ClientContext clientContext) {
       writeTensorboardRunDataSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       exportTensorboardTimeSeriesDataSettings =
           PagedCallSettings.newBuilder(EXPORT_TENSORBOARD_TIME_SERIES_DATA_PAGE_STR_FACT);
+      listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
+      getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -1133,7 +1250,12 @@ protected Builder(ClientContext clientContext) {
               readTensorboardTimeSeriesDataSettings,
               writeTensorboardExperimentDataSettings,
               writeTensorboardRunDataSettings,
-              exportTensorboardTimeSeriesDataSettings);
+              exportTensorboardTimeSeriesDataSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
       initDefaults(this);
     }
 
@@ -1188,6 +1310,11 @@ protected Builder(TensorboardServiceStubSettings settings) {
       writeTensorboardRunDataSettings = settings.writeTensorboardRunDataSettings.toBuilder();
       exportTensorboardTimeSeriesDataSettings =
           settings.exportTensorboardTimeSeriesDataSettings.toBuilder();
+      listLocationsSettings = settings.listLocationsSettings.toBuilder();
+      getLocationSettings = settings.getLocationSettings.toBuilder();
+      setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
+      getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
+      testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -1217,7 +1344,12 @@ protected Builder(TensorboardServiceStubSettings settings) {
               readTensorboardTimeSeriesDataSettings,
               writeTensorboardExperimentDataSettings,
               writeTensorboardRunDataSettings,
-              exportTensorboardTimeSeriesDataSettings);
+              exportTensorboardTimeSeriesDataSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
     }
 
     private static Builder createDefault() {
@@ -1374,6 +1506,31 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
 
+      builder
+          .listLocationsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getLocationSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .setIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .testIamPermissionsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .createTensorboardOperationSettings()
           .setInitialCallSettings(
@@ -1782,6 +1939,34 @@ public UnaryCallSettings.Builder getTensorbo
       return exportTensorboardTimeSeriesDataSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return listLocationsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getLocationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return setIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return testIamPermissionsSettings;
+    }
+
     @Override
     public TensorboardServiceStubSettings build() throws IOException {
       return new TensorboardServiceStubSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VizierServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VizierServiceStub.java
index 70db1d170444..7905031a21da 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VizierServiceStub.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VizierServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1beta1.stub;
 
+import static com.google.cloud.aiplatform.v1beta1.VizierServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.VizierServiceClient.ListStudiesPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.VizierServiceClient.ListTrialsPagedResponse;
 
@@ -47,6 +48,15 @@
 import com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest;
 import com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse;
 import com.google.cloud.aiplatform.v1beta1.Trial;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.OperationsStub;
 import com.google.protobuf.Empty;
@@ -151,6 +161,32 @@ public UnaryCallable stopTrialCallable() {
     throw new UnsupportedOperationException("Not implemented: listOptimalTrialsCallable()");
   }
 
+  public UnaryCallable
+      listLocationsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
+  }
+
+  public UnaryCallable listLocationsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
+  }
+
+  public UnaryCallable getLocationCallable() {
+    throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
+  }
+
+  public UnaryCallable setIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
+  }
+
+  public UnaryCallable getIamPolicyCallable() {
+    throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
+  }
+
+  public UnaryCallable
+      testIamPermissionsCallable() {
+    throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VizierServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VizierServiceStubSettings.java
index 6f9b2e12fa6c..d903ecb9e6be 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VizierServiceStubSettings.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VizierServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1beta1.stub;
 
+import static com.google.cloud.aiplatform.v1beta1.VizierServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.VizierServiceClient.ListStudiesPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.VizierServiceClient.ListTrialsPagedResponse;
 
@@ -69,10 +70,19 @@
 import com.google.cloud.aiplatform.v1beta1.SuggestTrialsRequest;
 import com.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse;
 import com.google.cloud.aiplatform.v1beta1.Trial;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.Empty;
 import java.io.IOException;
@@ -98,6 +108,8 @@
  * 

For example, to set the total timeout of createStudy to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * VizierServiceStubSettings.Builder vizierServiceSettingsBuilder =
  *     VizierServiceStubSettings.newBuilder();
  * vizierServiceSettingsBuilder
@@ -146,6 +158,14 @@ public class VizierServiceStubSettings extends StubSettings stopTrialSettings;
   private final UnaryCallSettings
       listOptimalTrialsSettings;
+  private final PagedCallSettings<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      listLocationsSettings;
+  private final UnaryCallSettings getLocationSettings;
+  private final UnaryCallSettings setIamPolicySettings;
+  private final UnaryCallSettings getIamPolicySettings;
+  private final UnaryCallSettings
+      testIamPermissionsSettings;
 
   private static final PagedListDescriptor
       LIST_STUDIES_PAGE_STR_DESC =
@@ -219,6 +239,42 @@ public Iterable extractResources(ListTrialsResponse payload) {
             }
           };
 
+  private static final PagedListDescriptor
+      LIST_LOCATIONS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) {
+              return ListLocationsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) {
+              return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListLocationsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListLocationsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListLocationsResponse payload) {
+              return payload.getLocationsList() == null
+                  ? ImmutableList.of()
+                  : payload.getLocationsList();
+            }
+          };
+
   private static final PagedListResponseFactory<
           ListStudiesRequest, ListStudiesResponse, ListStudiesPagedResponse>
       LIST_STUDIES_PAGE_STR_FACT =
@@ -253,6 +309,23 @@ public ApiFuture getFuturePagedResponse(
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+      LIST_LOCATIONS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListLocationsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context);
+              return ListLocationsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
   /** Returns the object with the settings used for calls to createStudy. */
   public UnaryCallSettings createStudySettings() {
     return createStudySettings;
@@ -347,7 +420,33 @@ public UnaryCallSettings stopTrialSettings() {
     return listOptimalTrialsSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+  /** Returns the object with the settings used for calls to listLocations. */
+  public PagedCallSettings
+      listLocationsSettings() {
+    return listLocationsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getLocation. */
+  public UnaryCallSettings getLocationSettings() {
+    return getLocationSettings;
+  }
+
+  /** Returns the object with the settings used for calls to setIamPolicy. */
+  public UnaryCallSettings setIamPolicySettings() {
+    return setIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to getIamPolicy. */
+  public UnaryCallSettings getIamPolicySettings() {
+    return getIamPolicySettings;
+  }
+
+  /** Returns the object with the settings used for calls to testIamPermissions. */
+  public UnaryCallSettings
+      testIamPermissionsSettings() {
+    return testIamPermissionsSettings;
+  }
+
   public VizierServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
@@ -442,6 +541,11 @@ protected VizierServiceStubSettings(Builder settingsBuilder) throws IOException
         settingsBuilder.checkTrialEarlyStoppingStateOperationSettings().build();
     stopTrialSettings = settingsBuilder.stopTrialSettings().build();
     listOptimalTrialsSettings = settingsBuilder.listOptimalTrialsSettings().build();
+    listLocationsSettings = settingsBuilder.listLocationsSettings().build();
+    getLocationSettings = settingsBuilder.getLocationSettings().build();
+    setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
+    getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
+    testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build();
   }
 
   /** Builder for VizierServiceStubSettings. */
@@ -477,6 +581,14 @@ public static class Builder extends StubSettings.Builder stopTrialSettings;
     private final UnaryCallSettings.Builder
         listOptimalTrialsSettings;
+    private final PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings;
+    private final UnaryCallSettings.Builder getLocationSettings;
+    private final UnaryCallSettings.Builder setIamPolicySettings;
+    private final UnaryCallSettings.Builder getIamPolicySettings;
+    private final UnaryCallSettings.Builder
+        testIamPermissionsSettings;
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
 
@@ -485,6 +597,7 @@ public static class Builder extends StubSettings.BuildernewArrayList()));
+      definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList()));
       RETRYABLE_CODE_DEFINITIONS = definitions.build();
     }
 
@@ -501,6 +614,8 @@ public static class Builder extends StubSettings.Builder>of(
@@ -545,7 +665,12 @@ protected Builder(ClientContext clientContext) {
               deleteTrialSettings,
               checkTrialEarlyStoppingStateSettings,
               stopTrialSettings,
-              listOptimalTrialsSettings);
+              listOptimalTrialsSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
       initDefaults(this);
     }
 
@@ -571,6 +696,11 @@ protected Builder(VizierServiceStubSettings settings) {
           settings.checkTrialEarlyStoppingStateOperationSettings.toBuilder();
       stopTrialSettings = settings.stopTrialSettings.toBuilder();
       listOptimalTrialsSettings = settings.listOptimalTrialsSettings.toBuilder();
+      listLocationsSettings = settings.listLocationsSettings.toBuilder();
+      getLocationSettings = settings.getLocationSettings.toBuilder();
+      setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
+      getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
+      testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -588,7 +718,12 @@ protected Builder(VizierServiceStubSettings settings) {
               deleteTrialSettings,
               checkTrialEarlyStoppingStateSettings,
               stopTrialSettings,
-              listOptimalTrialsSettings);
+              listOptimalTrialsSettings,
+              listLocationsSettings,
+              getLocationSettings,
+              setIamPolicySettings,
+              getIamPolicySettings,
+              testIamPermissionsSettings);
     }
 
     private static Builder createDefault() {
@@ -680,6 +815,31 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_11_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_11_params"));
 
+      builder
+          .listLocationsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getLocationSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .setIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .getIamPolicySettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
+      builder
+          .testIamPermissionsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
+
       builder
           .suggestTrialsOperationSettings()
           .setInitialCallSettings(
@@ -850,6 +1010,34 @@ public UnaryCallSettings.Builder stopTrialSettings() {
       return listOptimalTrialsSettings;
     }
 
+    /** Returns the builder for the settings used for calls to listLocations. */
+    public PagedCallSettings.Builder<
+            ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
+        listLocationsSettings() {
+      return listLocationsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getLocation. */
+    public UnaryCallSettings.Builder getLocationSettings() {
+      return getLocationSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to setIamPolicy. */
+    public UnaryCallSettings.Builder setIamPolicySettings() {
+      return setIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getIamPolicy. */
+    public UnaryCallSettings.Builder getIamPolicySettings() {
+      return getIamPolicySettings;
+    }
+
+    /** Returns the builder for the settings used for calls to testIamPermissions. */
+    public UnaryCallSettings.Builder
+        testIamPermissionsSettings() {
+      return testIamPermissionsSettings;
+    }
+
     @Override
     public VizierServiceStubSettings build() throws IOException {
       return new VizierServiceStubSettings(this);
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/DatasetServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/DatasetServiceClientTest.java
index b15c09b7cd31..f4aa922f5f54 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/DatasetServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/DatasetServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
 import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListAnnotationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDataItemsPagedResponse;
 import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDatasetsPagedResponse;
+import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.grpc.GaxGrpcProperties;
@@ -28,10 +29,23 @@
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.gax.rpc.StatusCode;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
+import com.google.iam.v1.Binding;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.AbstractMessage;
 import com.google.protobuf.Any;
+import com.google.protobuf.ByteString;
 import com.google.protobuf.Empty;
 import com.google.protobuf.FieldMask;
 import com.google.protobuf.Timestamp;
@@ -55,6 +69,8 @@
 @Generated("by gapic-generator-java")
 public class DatasetServiceClientTest {
   private static MockDatasetService mockDatasetService;
+  private static MockIAMPolicy mockIAMPolicy;
+  private static MockLocations mockLocations;
   private static MockServiceHelper mockServiceHelper;
   private LocalChannelProvider channelProvider;
   private DatasetServiceClient client;
@@ -62,9 +78,12 @@ public class DatasetServiceClientTest {
   @BeforeClass
   public static void startStaticServer() {
     mockDatasetService = new MockDatasetService();
+    mockLocations = new MockLocations();
+    mockIAMPolicy = new MockIAMPolicy();
     mockServiceHelper =
         new MockServiceHelper(
-            UUID.randomUUID().toString(), Arrays.asList(mockDatasetService));
+            UUID.randomUUID().toString(),
+            Arrays.asList(mockDatasetService, mockLocations, mockIAMPolicy));
     mockServiceHelper.start();
   }
 
@@ -98,7 +117,7 @@ public void createDatasetTest() throws Exception {
             .setDisplayName("displayName1714148973")
             .setDescription("description-1724546052")
             .setMetadataSchemaUri("metadataSchemaUri781971868")
-            .setMetadata(Value.newBuilder().build())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .setCreateTime(Timestamp.newBuilder().build())
             .setUpdateTime(Timestamp.newBuilder().build())
             .setEtag("etag3123477")
@@ -156,7 +175,7 @@ public void createDatasetTest2() throws Exception {
             .setDisplayName("displayName1714148973")
             .setDescription("description-1724546052")
             .setMetadataSchemaUri("metadataSchemaUri781971868")
-            .setMetadata(Value.newBuilder().build())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .setCreateTime(Timestamp.newBuilder().build())
             .setUpdateTime(Timestamp.newBuilder().build())
             .setEtag("etag3123477")
@@ -214,7 +233,7 @@ public void getDatasetTest() throws Exception {
             .setDisplayName("displayName1714148973")
             .setDescription("description-1724546052")
             .setMetadataSchemaUri("metadataSchemaUri781971868")
-            .setMetadata(Value.newBuilder().build())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .setCreateTime(Timestamp.newBuilder().build())
             .setUpdateTime(Timestamp.newBuilder().build())
             .setEtag("etag3123477")
@@ -261,7 +280,7 @@ public void getDatasetTest2() throws Exception {
             .setDisplayName("displayName1714148973")
             .setDescription("description-1724546052")
             .setMetadataSchemaUri("metadataSchemaUri781971868")
-            .setMetadata(Value.newBuilder().build())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .setCreateTime(Timestamp.newBuilder().build())
             .setUpdateTime(Timestamp.newBuilder().build())
             .setEtag("etag3123477")
@@ -308,7 +327,7 @@ public void updateDatasetTest() throws Exception {
             .setDisplayName("displayName1714148973")
             .setDescription("description-1724546052")
             .setMetadataSchemaUri("metadataSchemaUri781971868")
-            .setMetadata(Value.newBuilder().build())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .setCreateTime(Timestamp.newBuilder().build())
             .setUpdateTime(Timestamp.newBuilder().build())
             .setEtag("etag3123477")
@@ -973,4 +992,265 @@ public void listAnnotationsExceptionTest2() throws Exception {
       // Expected exception.
     }
   }
+
+  @Test
+  public void listLocationsTest() throws Exception {
+    Location responsesElement = Location.newBuilder().build();
+    ListLocationsResponse expectedResponse =
+        ListLocationsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllLocations(Arrays.asList(responsesElement))
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    ListLocationsRequest request =
+        ListLocationsRequest.newBuilder()
+            .setName("name3373707")
+            .setFilter("filter-1274492040")
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .build();
+
+    ListLocationsPagedResponse pagedListResponse = client.listLocations(request);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0));
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+    Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
+    Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listLocationsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      ListLocationsRequest request =
+          ListLocationsRequest.newBuilder()
+              .setName("name3373707")
+              .setFilter("filter-1274492040")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      client.listLocations(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getLocationTest() throws Exception {
+    Location expectedResponse =
+        Location.newBuilder()
+            .setName("name3373707")
+            .setLocationId("locationId1541836720")
+            .setDisplayName("displayName1714148973")
+            .putAllLabels(new HashMap())
+            .setMetadata(Any.newBuilder().build())
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+
+    Location actualResponse = client.getLocation(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getLocationExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+      client.getLocation(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void setIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    SetIamPolicyRequest request =
+        SetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setPolicy(Policy.newBuilder().build())
+            .setUpdateMask(FieldMask.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.setIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy());
+    Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void setIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      client.setIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    GetIamPolicyRequest request =
+        GetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setOptions(GetPolicyOptions.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.getIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getOptions(), actualRequest.getOptions());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      client.getIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void testIamPermissionsTest() throws Exception {
+    TestIamPermissionsResponse expectedResponse =
+        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    TestIamPermissionsRequest request =
+        TestIamPermissionsRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .addAllPermissions(new ArrayList())
+            .build();
+
+    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void testIamPermissionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      client.testIamPermissions(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/EndpointServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/EndpointServiceClientTest.java
index b662a58c17bc..2a95bdc7d840 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/EndpointServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/EndpointServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1;
 
 import static com.google.cloud.aiplatform.v1.EndpointServiceClient.ListEndpointsPagedResponse;
+import static com.google.cloud.aiplatform.v1.EndpointServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.grpc.GaxGrpcProperties;
@@ -26,10 +27,23 @@
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.gax.rpc.StatusCode;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
+import com.google.iam.v1.Binding;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.AbstractMessage;
 import com.google.protobuf.Any;
+import com.google.protobuf.ByteString;
 import com.google.protobuf.Empty;
 import com.google.protobuf.FieldMask;
 import com.google.protobuf.Timestamp;
@@ -53,6 +67,8 @@
 @Generated("by gapic-generator-java")
 public class EndpointServiceClientTest {
   private static MockEndpointService mockEndpointService;
+  private static MockIAMPolicy mockIAMPolicy;
+  private static MockLocations mockLocations;
   private static MockServiceHelper mockServiceHelper;
   private LocalChannelProvider channelProvider;
   private EndpointServiceClient client;
@@ -60,9 +76,12 @@ public class EndpointServiceClientTest {
   @BeforeClass
   public static void startStaticServer() {
     mockEndpointService = new MockEndpointService();
+    mockLocations = new MockLocations();
+    mockIAMPolicy = new MockIAMPolicy();
     mockServiceHelper =
         new MockServiceHelper(
-            UUID.randomUUID().toString(), Arrays.asList(mockEndpointService));
+            UUID.randomUUID().toString(),
+            Arrays.asList(mockEndpointService, mockLocations, mockIAMPolicy));
     mockServiceHelper.start();
   }
 
@@ -903,4 +922,265 @@ public void undeployModelExceptionTest2() throws Exception {
       Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
+
+  @Test
+  public void listLocationsTest() throws Exception {
+    Location responsesElement = Location.newBuilder().build();
+    ListLocationsResponse expectedResponse =
+        ListLocationsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllLocations(Arrays.asList(responsesElement))
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    ListLocationsRequest request =
+        ListLocationsRequest.newBuilder()
+            .setName("name3373707")
+            .setFilter("filter-1274492040")
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .build();
+
+    ListLocationsPagedResponse pagedListResponse = client.listLocations(request);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0));
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+    Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
+    Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listLocationsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      ListLocationsRequest request =
+          ListLocationsRequest.newBuilder()
+              .setName("name3373707")
+              .setFilter("filter-1274492040")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      client.listLocations(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getLocationTest() throws Exception {
+    Location expectedResponse =
+        Location.newBuilder()
+            .setName("name3373707")
+            .setLocationId("locationId1541836720")
+            .setDisplayName("displayName1714148973")
+            .putAllLabels(new HashMap())
+            .setMetadata(Any.newBuilder().build())
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+
+    Location actualResponse = client.getLocation(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getLocationExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+      client.getLocation(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void setIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    SetIamPolicyRequest request =
+        SetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setPolicy(Policy.newBuilder().build())
+            .setUpdateMask(FieldMask.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.setIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy());
+    Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void setIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      client.setIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    GetIamPolicyRequest request =
+        GetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setOptions(GetPolicyOptions.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.getIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getOptions(), actualRequest.getOptions());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      client.getIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void testIamPermissionsTest() throws Exception {
+    TestIamPermissionsResponse expectedResponse =
+        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    TestIamPermissionsRequest request =
+        TestIamPermissionsRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .addAllPermissions(new ArrayList())
+            .build();
+
+    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void testIamPermissionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      client.testIamPermissions(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceClientTest.java
index 1d647881f05b..799cfbb23e7c 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,8 @@
 
 package com.google.cloud.aiplatform.v1;
 
+import static com.google.cloud.aiplatform.v1.FeaturestoreOnlineServingServiceClient.ListLocationsPagedResponse;
+
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.grpc.GaxGrpcProperties;
 import com.google.api.gax.grpc.testing.LocalChannelProvider;
@@ -26,11 +28,28 @@
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.gax.rpc.ServerStreamingCallable;
 import com.google.api.gax.rpc.StatusCode;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
+import com.google.iam.v1.Binding;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.protobuf.AbstractMessage;
+import com.google.protobuf.Any;
+import com.google.protobuf.ByteString;
+import com.google.protobuf.FieldMask;
 import io.grpc.StatusRuntimeException;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Arrays;
+import java.util.HashMap;
 import java.util.List;
 import java.util.UUID;
 import java.util.concurrent.ExecutionException;
@@ -45,6 +64,8 @@
 @Generated("by gapic-generator-java")
 public class FeaturestoreOnlineServingServiceClientTest {
   private static MockFeaturestoreOnlineServingService mockFeaturestoreOnlineServingService;
+  private static MockIAMPolicy mockIAMPolicy;
+  private static MockLocations mockLocations;
   private static MockServiceHelper mockServiceHelper;
   private LocalChannelProvider channelProvider;
   private FeaturestoreOnlineServingServiceClient client;
@@ -52,10 +73,13 @@ public class FeaturestoreOnlineServingServiceClientTest {
   @BeforeClass
   public static void startStaticServer() {
     mockFeaturestoreOnlineServingService = new MockFeaturestoreOnlineServingService();
+    mockLocations = new MockLocations();
+    mockIAMPolicy = new MockIAMPolicy();
     mockServiceHelper =
         new MockServiceHelper(
             UUID.randomUUID().toString(),
-            Arrays.asList(mockFeaturestoreOnlineServingService));
+            Arrays.asList(
+                mockFeaturestoreOnlineServingService, mockLocations, mockIAMPolicy));
     mockServiceHelper.start();
   }
 
@@ -217,4 +241,265 @@ public void streamingReadFeatureValuesExceptionTest() throws Exception {
       Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
+
+  @Test
+  public void listLocationsTest() throws Exception {
+    Location responsesElement = Location.newBuilder().build();
+    ListLocationsResponse expectedResponse =
+        ListLocationsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllLocations(Arrays.asList(responsesElement))
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    ListLocationsRequest request =
+        ListLocationsRequest.newBuilder()
+            .setName("name3373707")
+            .setFilter("filter-1274492040")
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .build();
+
+    ListLocationsPagedResponse pagedListResponse = client.listLocations(request);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0));
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+    Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
+    Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listLocationsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      ListLocationsRequest request =
+          ListLocationsRequest.newBuilder()
+              .setName("name3373707")
+              .setFilter("filter-1274492040")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      client.listLocations(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getLocationTest() throws Exception {
+    Location expectedResponse =
+        Location.newBuilder()
+            .setName("name3373707")
+            .setLocationId("locationId1541836720")
+            .setDisplayName("displayName1714148973")
+            .putAllLabels(new HashMap())
+            .setMetadata(Any.newBuilder().build())
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+
+    Location actualResponse = client.getLocation(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getLocationExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+      client.getLocation(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void setIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    SetIamPolicyRequest request =
+        SetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setPolicy(Policy.newBuilder().build())
+            .setUpdateMask(FieldMask.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.setIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy());
+    Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void setIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      client.setIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    GetIamPolicyRequest request =
+        GetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setOptions(GetPolicyOptions.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.getIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getOptions(), actualRequest.getOptions());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      client.getIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void testIamPermissionsTest() throws Exception {
+    TestIamPermissionsResponse expectedResponse =
+        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    TestIamPermissionsRequest request =
+        TestIamPermissionsRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .addAllPermissions(new ArrayList())
+            .build();
+
+    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void testIamPermissionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      client.testIamPermissions(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceClientTest.java
index df592b6c0cb9..c8963c697162 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
 import static com.google.cloud.aiplatform.v1.FeaturestoreServiceClient.ListEntityTypesPagedResponse;
 import static com.google.cloud.aiplatform.v1.FeaturestoreServiceClient.ListFeaturesPagedResponse;
 import static com.google.cloud.aiplatform.v1.FeaturestoreServiceClient.ListFeaturestoresPagedResponse;
+import static com.google.cloud.aiplatform.v1.FeaturestoreServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.FeaturestoreServiceClient.SearchFeaturesPagedResponse;
 
 import com.google.api.gax.core.NoCredentialsProvider;
@@ -29,10 +30,23 @@
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.gax.rpc.StatusCode;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
+import com.google.iam.v1.Binding;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.AbstractMessage;
 import com.google.protobuf.Any;
+import com.google.protobuf.ByteString;
 import com.google.protobuf.Empty;
 import com.google.protobuf.FieldMask;
 import com.google.protobuf.Timestamp;
@@ -55,6 +69,8 @@
 @Generated("by gapic-generator-java")
 public class FeaturestoreServiceClientTest {
   private static MockFeaturestoreService mockFeaturestoreService;
+  private static MockIAMPolicy mockIAMPolicy;
+  private static MockLocations mockLocations;
   private static MockServiceHelper mockServiceHelper;
   private LocalChannelProvider channelProvider;
   private FeaturestoreServiceClient client;
@@ -62,9 +78,12 @@ public class FeaturestoreServiceClientTest {
   @BeforeClass
   public static void startStaticServer() {
     mockFeaturestoreService = new MockFeaturestoreService();
+    mockLocations = new MockLocations();
+    mockIAMPolicy = new MockIAMPolicy();
     mockServiceHelper =
         new MockServiceHelper(
-            UUID.randomUUID().toString(), Arrays.asList(mockFeaturestoreService));
+            UUID.randomUUID().toString(),
+            Arrays.asList(mockFeaturestoreService, mockLocations, mockIAMPolicy));
     mockServiceHelper.start();
   }
 
@@ -2498,4 +2517,265 @@ public void searchFeaturesExceptionTest4() throws Exception {
       // Expected exception.
     }
   }
+
+  @Test
+  public void listLocationsTest() throws Exception {
+    Location responsesElement = Location.newBuilder().build();
+    ListLocationsResponse expectedResponse =
+        ListLocationsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllLocations(Arrays.asList(responsesElement))
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    ListLocationsRequest request =
+        ListLocationsRequest.newBuilder()
+            .setName("name3373707")
+            .setFilter("filter-1274492040")
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .build();
+
+    ListLocationsPagedResponse pagedListResponse = client.listLocations(request);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0));
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+    Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
+    Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listLocationsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      ListLocationsRequest request =
+          ListLocationsRequest.newBuilder()
+              .setName("name3373707")
+              .setFilter("filter-1274492040")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      client.listLocations(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getLocationTest() throws Exception {
+    Location expectedResponse =
+        Location.newBuilder()
+            .setName("name3373707")
+            .setLocationId("locationId1541836720")
+            .setDisplayName("displayName1714148973")
+            .putAllLabels(new HashMap())
+            .setMetadata(Any.newBuilder().build())
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+
+    Location actualResponse = client.getLocation(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getLocationExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+      client.getLocation(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void setIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    SetIamPolicyRequest request =
+        SetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setPolicy(Policy.newBuilder().build())
+            .setUpdateMask(FieldMask.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.setIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy());
+    Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void setIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      client.setIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    GetIamPolicyRequest request =
+        GetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setOptions(GetPolicyOptions.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.getIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getOptions(), actualRequest.getOptions());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      client.getIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void testIamPermissionsTest() throws Exception {
+    TestIamPermissionsResponse expectedResponse =
+        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    TestIamPermissionsRequest request =
+        TestIamPermissionsRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .addAllPermissions(new ArrayList())
+            .build();
+
+    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void testIamPermissionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      client.testIamPermissions(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/IndexEndpointServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/IndexEndpointServiceClientTest.java
index f2489fbccbc6..1c56d9dcdf60 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/IndexEndpointServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/IndexEndpointServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1;
 
 import static com.google.cloud.aiplatform.v1.IndexEndpointServiceClient.ListIndexEndpointsPagedResponse;
+import static com.google.cloud.aiplatform.v1.IndexEndpointServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.grpc.GaxGrpcProperties;
@@ -26,10 +27,23 @@
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.gax.rpc.StatusCode;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
+import com.google.iam.v1.Binding;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.AbstractMessage;
 import com.google.protobuf.Any;
+import com.google.protobuf.ByteString;
 import com.google.protobuf.Empty;
 import com.google.protobuf.FieldMask;
 import com.google.protobuf.Timestamp;
@@ -51,7 +65,9 @@
 
 @Generated("by gapic-generator-java")
 public class IndexEndpointServiceClientTest {
+  private static MockIAMPolicy mockIAMPolicy;
   private static MockIndexEndpointService mockIndexEndpointService;
+  private static MockLocations mockLocations;
   private static MockServiceHelper mockServiceHelper;
   private LocalChannelProvider channelProvider;
   private IndexEndpointServiceClient client;
@@ -59,9 +75,12 @@ public class IndexEndpointServiceClientTest {
   @BeforeClass
   public static void startStaticServer() {
     mockIndexEndpointService = new MockIndexEndpointService();
+    mockLocations = new MockLocations();
+    mockIAMPolicy = new MockIAMPolicy();
     mockServiceHelper =
         new MockServiceHelper(
-            UUID.randomUUID().toString(), Arrays.asList(mockIndexEndpointService));
+            UUID.randomUUID().toString(),
+            Arrays.asList(mockIndexEndpointService, mockLocations, mockIAMPolicy));
     mockServiceHelper.start();
   }
 
@@ -818,4 +837,265 @@ public void mutateDeployedIndexExceptionTest2() throws Exception {
       Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
+
+  @Test
+  public void listLocationsTest() throws Exception {
+    Location responsesElement = Location.newBuilder().build();
+    ListLocationsResponse expectedResponse =
+        ListLocationsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllLocations(Arrays.asList(responsesElement))
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    ListLocationsRequest request =
+        ListLocationsRequest.newBuilder()
+            .setName("name3373707")
+            .setFilter("filter-1274492040")
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .build();
+
+    ListLocationsPagedResponse pagedListResponse = client.listLocations(request);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0));
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+    Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
+    Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listLocationsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      ListLocationsRequest request =
+          ListLocationsRequest.newBuilder()
+              .setName("name3373707")
+              .setFilter("filter-1274492040")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      client.listLocations(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getLocationTest() throws Exception {
+    Location expectedResponse =
+        Location.newBuilder()
+            .setName("name3373707")
+            .setLocationId("locationId1541836720")
+            .setDisplayName("displayName1714148973")
+            .putAllLabels(new HashMap())
+            .setMetadata(Any.newBuilder().build())
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+
+    Location actualResponse = client.getLocation(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getLocationExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+      client.getLocation(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void setIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    SetIamPolicyRequest request =
+        SetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setPolicy(Policy.newBuilder().build())
+            .setUpdateMask(FieldMask.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.setIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy());
+    Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void setIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      client.setIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    GetIamPolicyRequest request =
+        GetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setOptions(GetPolicyOptions.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.getIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getOptions(), actualRequest.getOptions());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      client.getIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void testIamPermissionsTest() throws Exception {
+    TestIamPermissionsResponse expectedResponse =
+        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    TestIamPermissionsRequest request =
+        TestIamPermissionsRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .addAllPermissions(new ArrayList())
+            .build();
+
+    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void testIamPermissionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      client.testIamPermissions(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/IndexServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/IndexServiceClientTest.java
index 8a43e4ee597b..a472a1171140 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/IndexServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/IndexServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1;
 
 import static com.google.cloud.aiplatform.v1.IndexServiceClient.ListIndexesPagedResponse;
+import static com.google.cloud.aiplatform.v1.IndexServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.grpc.GaxGrpcProperties;
@@ -26,10 +27,23 @@
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.gax.rpc.StatusCode;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
+import com.google.iam.v1.Binding;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.AbstractMessage;
 import com.google.protobuf.Any;
+import com.google.protobuf.ByteString;
 import com.google.protobuf.Empty;
 import com.google.protobuf.FieldMask;
 import com.google.protobuf.Timestamp;
@@ -52,7 +66,9 @@
 
 @Generated("by gapic-generator-java")
 public class IndexServiceClientTest {
+  private static MockIAMPolicy mockIAMPolicy;
   private static MockIndexService mockIndexService;
+  private static MockLocations mockLocations;
   private static MockServiceHelper mockServiceHelper;
   private LocalChannelProvider channelProvider;
   private IndexServiceClient client;
@@ -60,9 +76,12 @@ public class IndexServiceClientTest {
   @BeforeClass
   public static void startStaticServer() {
     mockIndexService = new MockIndexService();
+    mockLocations = new MockLocations();
+    mockIAMPolicy = new MockIAMPolicy();
     mockServiceHelper =
         new MockServiceHelper(
-            UUID.randomUUID().toString(), Arrays.asList(mockIndexService));
+            UUID.randomUUID().toString(),
+            Arrays.asList(mockIndexService, mockLocations, mockIAMPolicy));
     mockServiceHelper.start();
   }
 
@@ -96,7 +115,7 @@ public void createIndexTest() throws Exception {
             .setDisplayName("displayName1714148973")
             .setDescription("description-1724546052")
             .setMetadataSchemaUri("metadataSchemaUri781971868")
-            .setMetadata(Value.newBuilder().build())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .addAllDeployedIndexes(new ArrayList())
             .setEtag("etag3123477")
             .putAllLabels(new HashMap())
@@ -154,7 +173,7 @@ public void createIndexTest2() throws Exception {
             .setDisplayName("displayName1714148973")
             .setDescription("description-1724546052")
             .setMetadataSchemaUri("metadataSchemaUri781971868")
-            .setMetadata(Value.newBuilder().build())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .addAllDeployedIndexes(new ArrayList())
             .setEtag("etag3123477")
             .putAllLabels(new HashMap())
@@ -212,7 +231,7 @@ public void getIndexTest() throws Exception {
             .setDisplayName("displayName1714148973")
             .setDescription("description-1724546052")
             .setMetadataSchemaUri("metadataSchemaUri781971868")
-            .setMetadata(Value.newBuilder().build())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .addAllDeployedIndexes(new ArrayList())
             .setEtag("etag3123477")
             .putAllLabels(new HashMap())
@@ -259,7 +278,7 @@ public void getIndexTest2() throws Exception {
             .setDisplayName("displayName1714148973")
             .setDescription("description-1724546052")
             .setMetadataSchemaUri("metadataSchemaUri781971868")
-            .setMetadata(Value.newBuilder().build())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .addAllDeployedIndexes(new ArrayList())
             .setEtag("etag3123477")
             .putAllLabels(new HashMap())
@@ -394,7 +413,7 @@ public void updateIndexTest() throws Exception {
             .setDisplayName("displayName1714148973")
             .setDescription("description-1724546052")
             .setMetadataSchemaUri("metadataSchemaUri781971868")
-            .setMetadata(Value.newBuilder().build())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .addAllDeployedIndexes(new ArrayList())
             .setEtag("etag3123477")
             .putAllLabels(new HashMap())
@@ -527,4 +546,265 @@ public void deleteIndexExceptionTest2() throws Exception {
       Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
+
+  @Test
+  public void listLocationsTest() throws Exception {
+    Location responsesElement = Location.newBuilder().build();
+    ListLocationsResponse expectedResponse =
+        ListLocationsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllLocations(Arrays.asList(responsesElement))
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    ListLocationsRequest request =
+        ListLocationsRequest.newBuilder()
+            .setName("name3373707")
+            .setFilter("filter-1274492040")
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .build();
+
+    ListLocationsPagedResponse pagedListResponse = client.listLocations(request);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0));
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+    Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
+    Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listLocationsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      ListLocationsRequest request =
+          ListLocationsRequest.newBuilder()
+              .setName("name3373707")
+              .setFilter("filter-1274492040")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      client.listLocations(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getLocationTest() throws Exception {
+    Location expectedResponse =
+        Location.newBuilder()
+            .setName("name3373707")
+            .setLocationId("locationId1541836720")
+            .setDisplayName("displayName1714148973")
+            .putAllLabels(new HashMap())
+            .setMetadata(Any.newBuilder().build())
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+
+    Location actualResponse = client.getLocation(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getLocationExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+      client.getLocation(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void setIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    SetIamPolicyRequest request =
+        SetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setPolicy(Policy.newBuilder().build())
+            .setUpdateMask(FieldMask.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.setIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy());
+    Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void setIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      client.setIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    GetIamPolicyRequest request =
+        GetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setOptions(GetPolicyOptions.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.getIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getOptions(), actualRequest.getOptions());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      client.getIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void testIamPermissionsTest() throws Exception {
+    TestIamPermissionsResponse expectedResponse =
+        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    TestIamPermissionsRequest request =
+        TestIamPermissionsRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .addAllPermissions(new ArrayList())
+            .build();
+
+    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void testIamPermissionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      client.testIamPermissions(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/JobServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/JobServiceClientTest.java
index 8a14c1e09e7a..e9d0f3a44e4a 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/JobServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/JobServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -20,6 +20,7 @@
 import static com.google.cloud.aiplatform.v1.JobServiceClient.ListCustomJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1.JobServiceClient.ListDataLabelingJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1.JobServiceClient.ListHyperparameterTuningJobsPagedResponse;
+import static com.google.cloud.aiplatform.v1.JobServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.JobServiceClient.ListModelDeploymentMonitoringJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1.JobServiceClient.SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse;
 
@@ -31,10 +32,23 @@
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.gax.rpc.StatusCode;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
+import com.google.iam.v1.Binding;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.AbstractMessage;
 import com.google.protobuf.Any;
+import com.google.protobuf.ByteString;
 import com.google.protobuf.Duration;
 import com.google.protobuf.Empty;
 import com.google.protobuf.FieldMask;
@@ -60,7 +74,9 @@
 
 @Generated("by gapic-generator-java")
 public class JobServiceClientTest {
+  private static MockIAMPolicy mockIAMPolicy;
   private static MockJobService mockJobService;
+  private static MockLocations mockLocations;
   private static MockServiceHelper mockServiceHelper;
   private LocalChannelProvider channelProvider;
   private JobServiceClient client;
@@ -68,9 +84,12 @@ public class JobServiceClientTest {
   @BeforeClass
   public static void startStaticServer() {
     mockJobService = new MockJobService();
+    mockLocations = new MockLocations();
+    mockIAMPolicy = new MockIAMPolicy();
     mockServiceHelper =
         new MockServiceHelper(
-            UUID.randomUUID().toString(), Arrays.asList(mockJobService));
+            UUID.randomUUID().toString(),
+            Arrays.asList(mockJobService, mockLocations, mockIAMPolicy));
     mockServiceHelper.start();
   }
 
@@ -550,7 +569,7 @@ public void createDataLabelingJobTest() throws Exception {
             .setLabelerCount(-1457777167)
             .setInstructionUri("instructionUri1989242366")
             .setInputsSchemaUri("inputsSchemaUri1757461538")
-            .setInputs(Value.newBuilder().build())
+            .setInputs(Value.newBuilder().setBoolValue(true).build())
             .setState(JobState.forNumber(0))
             .setLabelingProgress(-685978914)
             .setCurrentSpend(Money.newBuilder().build())
@@ -610,7 +629,7 @@ public void createDataLabelingJobTest2() throws Exception {
             .setLabelerCount(-1457777167)
             .setInstructionUri("instructionUri1989242366")
             .setInputsSchemaUri("inputsSchemaUri1757461538")
-            .setInputs(Value.newBuilder().build())
+            .setInputs(Value.newBuilder().setBoolValue(true).build())
             .setState(JobState.forNumber(0))
             .setLabelingProgress(-685978914)
             .setCurrentSpend(Money.newBuilder().build())
@@ -670,7 +689,7 @@ public void getDataLabelingJobTest() throws Exception {
             .setLabelerCount(-1457777167)
             .setInstructionUri("instructionUri1989242366")
             .setInputsSchemaUri("inputsSchemaUri1757461538")
-            .setInputs(Value.newBuilder().build())
+            .setInputs(Value.newBuilder().setBoolValue(true).build())
             .setState(JobState.forNumber(0))
             .setLabelingProgress(-685978914)
             .setCurrentSpend(Money.newBuilder().build())
@@ -728,7 +747,7 @@ public void getDataLabelingJobTest2() throws Exception {
             .setLabelerCount(-1457777167)
             .setInstructionUri("instructionUri1989242366")
             .setInputsSchemaUri("inputsSchemaUri1757461538")
-            .setInputs(Value.newBuilder().build())
+            .setInputs(Value.newBuilder().setBoolValue(true).build())
             .setState(JobState.forNumber(0))
             .setLabelingProgress(-685978914)
             .setCurrentSpend(Money.newBuilder().build())
@@ -1527,7 +1546,7 @@ public void createBatchPredictionJobTest() throws Exception {
             .setModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
             .setUnmanagedContainerModel(UnmanagedContainerModel.newBuilder().build())
             .setInputConfig(BatchPredictionJob.InputConfig.newBuilder().build())
-            .setModelParameters(Value.newBuilder().build())
+            .setModelParameters(Value.newBuilder().setBoolValue(true).build())
             .setOutputConfig(BatchPredictionJob.OutputConfig.newBuilder().build())
             .setDedicatedResources(BatchDedicatedResources.newBuilder().build())
             .setManualBatchTuningParameters(ManualBatchTuningParameters.newBuilder().build())
@@ -1593,7 +1612,7 @@ public void createBatchPredictionJobTest2() throws Exception {
             .setModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
             .setUnmanagedContainerModel(UnmanagedContainerModel.newBuilder().build())
             .setInputConfig(BatchPredictionJob.InputConfig.newBuilder().build())
-            .setModelParameters(Value.newBuilder().build())
+            .setModelParameters(Value.newBuilder().setBoolValue(true).build())
             .setOutputConfig(BatchPredictionJob.OutputConfig.newBuilder().build())
             .setDedicatedResources(BatchDedicatedResources.newBuilder().build())
             .setManualBatchTuningParameters(ManualBatchTuningParameters.newBuilder().build())
@@ -1659,7 +1678,7 @@ public void getBatchPredictionJobTest() throws Exception {
             .setModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
             .setUnmanagedContainerModel(UnmanagedContainerModel.newBuilder().build())
             .setInputConfig(BatchPredictionJob.InputConfig.newBuilder().build())
-            .setModelParameters(Value.newBuilder().build())
+            .setModelParameters(Value.newBuilder().setBoolValue(true).build())
             .setOutputConfig(BatchPredictionJob.OutputConfig.newBuilder().build())
             .setDedicatedResources(BatchDedicatedResources.newBuilder().build())
             .setManualBatchTuningParameters(ManualBatchTuningParameters.newBuilder().build())
@@ -1724,7 +1743,7 @@ public void getBatchPredictionJobTest2() throws Exception {
             .setModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
             .setUnmanagedContainerModel(UnmanagedContainerModel.newBuilder().build())
             .setInputConfig(BatchPredictionJob.InputConfig.newBuilder().build())
-            .setModelParameters(Value.newBuilder().build())
+            .setModelParameters(Value.newBuilder().setBoolValue(true).build())
             .setOutputConfig(BatchPredictionJob.OutputConfig.newBuilder().build())
             .setDedicatedResources(BatchDedicatedResources.newBuilder().build())
             .setManualBatchTuningParameters(ManualBatchTuningParameters.newBuilder().build())
@@ -2046,7 +2065,7 @@ public void createModelDeploymentMonitoringJobTest() throws Exception {
             .setLoggingSamplingStrategy(SamplingStrategy.newBuilder().build())
             .setModelMonitoringAlertConfig(ModelMonitoringAlertConfig.newBuilder().build())
             .setPredictInstanceSchemaUri("predictInstanceSchemaUri-1702051043")
-            .setSamplePredictInstance(Value.newBuilder().build())
+            .setSamplePredictInstance(Value.newBuilder().setBoolValue(true).build())
             .setAnalysisInstanceSchemaUri("analysisInstanceSchemaUri-1686197382")
             .addAllBigqueryTables(new ArrayList())
             .setLogTtl(Duration.newBuilder().build())
@@ -2119,7 +2138,7 @@ public void createModelDeploymentMonitoringJobTest2() throws Exception {
             .setLoggingSamplingStrategy(SamplingStrategy.newBuilder().build())
             .setModelMonitoringAlertConfig(ModelMonitoringAlertConfig.newBuilder().build())
             .setPredictInstanceSchemaUri("predictInstanceSchemaUri-1702051043")
-            .setSamplePredictInstance(Value.newBuilder().build())
+            .setSamplePredictInstance(Value.newBuilder().setBoolValue(true).build())
             .setAnalysisInstanceSchemaUri("analysisInstanceSchemaUri-1686197382")
             .addAllBigqueryTables(new ArrayList())
             .setLogTtl(Duration.newBuilder().build())
@@ -2304,7 +2323,7 @@ public void getModelDeploymentMonitoringJobTest() throws Exception {
             .setLoggingSamplingStrategy(SamplingStrategy.newBuilder().build())
             .setModelMonitoringAlertConfig(ModelMonitoringAlertConfig.newBuilder().build())
             .setPredictInstanceSchemaUri("predictInstanceSchemaUri-1702051043")
-            .setSamplePredictInstance(Value.newBuilder().build())
+            .setSamplePredictInstance(Value.newBuilder().setBoolValue(true).build())
             .setAnalysisInstanceSchemaUri("analysisInstanceSchemaUri-1686197382")
             .addAllBigqueryTables(new ArrayList())
             .setLogTtl(Duration.newBuilder().build())
@@ -2374,7 +2393,7 @@ public void getModelDeploymentMonitoringJobTest2() throws Exception {
             .setLoggingSamplingStrategy(SamplingStrategy.newBuilder().build())
             .setModelMonitoringAlertConfig(ModelMonitoringAlertConfig.newBuilder().build())
             .setPredictInstanceSchemaUri("predictInstanceSchemaUri-1702051043")
-            .setSamplePredictInstance(Value.newBuilder().build())
+            .setSamplePredictInstance(Value.newBuilder().setBoolValue(true).build())
             .setAnalysisInstanceSchemaUri("analysisInstanceSchemaUri-1686197382")
             .addAllBigqueryTables(new ArrayList())
             .setLogTtl(Duration.newBuilder().build())
@@ -2538,7 +2557,7 @@ public void updateModelDeploymentMonitoringJobTest() throws Exception {
             .setLoggingSamplingStrategy(SamplingStrategy.newBuilder().build())
             .setModelMonitoringAlertConfig(ModelMonitoringAlertConfig.newBuilder().build())
             .setPredictInstanceSchemaUri("predictInstanceSchemaUri-1702051043")
-            .setSamplePredictInstance(Value.newBuilder().build())
+            .setSamplePredictInstance(Value.newBuilder().setBoolValue(true).build())
             .setAnalysisInstanceSchemaUri("analysisInstanceSchemaUri-1686197382")
             .addAllBigqueryTables(new ArrayList())
             .setLogTtl(Duration.newBuilder().build())
@@ -2840,4 +2859,265 @@ public void resumeModelDeploymentMonitoringJobExceptionTest2() throws Exception
       // Expected exception.
     }
   }
+
+  @Test
+  public void listLocationsTest() throws Exception {
+    Location responsesElement = Location.newBuilder().build();
+    ListLocationsResponse expectedResponse =
+        ListLocationsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllLocations(Arrays.asList(responsesElement))
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    ListLocationsRequest request =
+        ListLocationsRequest.newBuilder()
+            .setName("name3373707")
+            .setFilter("filter-1274492040")
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .build();
+
+    ListLocationsPagedResponse pagedListResponse = client.listLocations(request);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0));
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+    Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
+    Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listLocationsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      ListLocationsRequest request =
+          ListLocationsRequest.newBuilder()
+              .setName("name3373707")
+              .setFilter("filter-1274492040")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      client.listLocations(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getLocationTest() throws Exception {
+    Location expectedResponse =
+        Location.newBuilder()
+            .setName("name3373707")
+            .setLocationId("locationId1541836720")
+            .setDisplayName("displayName1714148973")
+            .putAllLabels(new HashMap())
+            .setMetadata(Any.newBuilder().build())
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+
+    Location actualResponse = client.getLocation(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getLocationExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+      client.getLocation(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void setIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    SetIamPolicyRequest request =
+        SetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setPolicy(Policy.newBuilder().build())
+            .setUpdateMask(FieldMask.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.setIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy());
+    Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void setIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      client.setIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    GetIamPolicyRequest request =
+        GetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setOptions(GetPolicyOptions.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.getIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getOptions(), actualRequest.getOptions());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      client.getIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void testIamPermissionsTest() throws Exception {
+    TestIamPermissionsResponse expectedResponse =
+        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    TestIamPermissionsRequest request =
+        TestIamPermissionsRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .addAllPermissions(new ArrayList())
+            .build();
+
+    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void testIamPermissionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      client.testIamPermissions(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MetadataServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MetadataServiceClientTest.java
index 2a1d92a7a9bb..1c39b4db599b 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MetadataServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MetadataServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
 import static com.google.cloud.aiplatform.v1.MetadataServiceClient.ListArtifactsPagedResponse;
 import static com.google.cloud.aiplatform.v1.MetadataServiceClient.ListContextsPagedResponse;
 import static com.google.cloud.aiplatform.v1.MetadataServiceClient.ListExecutionsPagedResponse;
+import static com.google.cloud.aiplatform.v1.MetadataServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.MetadataServiceClient.ListMetadataSchemasPagedResponse;
 import static com.google.cloud.aiplatform.v1.MetadataServiceClient.ListMetadataStoresPagedResponse;
 
@@ -30,10 +31,23 @@
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.gax.rpc.StatusCode;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
+import com.google.iam.v1.Binding;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.AbstractMessage;
 import com.google.protobuf.Any;
+import com.google.protobuf.ByteString;
 import com.google.protobuf.Empty;
 import com.google.protobuf.FieldMask;
 import com.google.protobuf.Struct;
@@ -56,6 +70,8 @@
 
 @Generated("by gapic-generator-java")
 public class MetadataServiceClientTest {
+  private static MockIAMPolicy mockIAMPolicy;
+  private static MockLocations mockLocations;
   private static MockMetadataService mockMetadataService;
   private static MockServiceHelper mockServiceHelper;
   private LocalChannelProvider channelProvider;
@@ -64,9 +80,12 @@ public class MetadataServiceClientTest {
   @BeforeClass
   public static void startStaticServer() {
     mockMetadataService = new MockMetadataService();
+    mockLocations = new MockLocations();
+    mockIAMPolicy = new MockIAMPolicy();
     mockServiceHelper =
         new MockServiceHelper(
-            UUID.randomUUID().toString(), Arrays.asList(mockMetadataService));
+            UUID.randomUUID().toString(),
+            Arrays.asList(mockMetadataService, mockLocations, mockIAMPolicy));
     mockServiceHelper.start();
   }
 
@@ -2856,4 +2875,265 @@ public void queryArtifactLineageSubgraphExceptionTest2() throws Exception {
       // Expected exception.
     }
   }
+
+  @Test
+  public void listLocationsTest() throws Exception {
+    Location responsesElement = Location.newBuilder().build();
+    ListLocationsResponse expectedResponse =
+        ListLocationsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllLocations(Arrays.asList(responsesElement))
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    ListLocationsRequest request =
+        ListLocationsRequest.newBuilder()
+            .setName("name3373707")
+            .setFilter("filter-1274492040")
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .build();
+
+    ListLocationsPagedResponse pagedListResponse = client.listLocations(request);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0));
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+    Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
+    Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listLocationsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      ListLocationsRequest request =
+          ListLocationsRequest.newBuilder()
+              .setName("name3373707")
+              .setFilter("filter-1274492040")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      client.listLocations(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getLocationTest() throws Exception {
+    Location expectedResponse =
+        Location.newBuilder()
+            .setName("name3373707")
+            .setLocationId("locationId1541836720")
+            .setDisplayName("displayName1714148973")
+            .putAllLabels(new HashMap())
+            .setMetadata(Any.newBuilder().build())
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+
+    Location actualResponse = client.getLocation(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getLocationExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+      client.getLocation(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void setIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    SetIamPolicyRequest request =
+        SetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setPolicy(Policy.newBuilder().build())
+            .setUpdateMask(FieldMask.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.setIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy());
+    Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void setIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      client.setIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    GetIamPolicyRequest request =
+        GetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setOptions(GetPolicyOptions.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.getIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getOptions(), actualRequest.getOptions());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      client.getIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void testIamPermissionsTest() throws Exception {
+    TestIamPermissionsResponse expectedResponse =
+        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    TestIamPermissionsRequest request =
+        TestIamPermissionsRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .addAllPermissions(new ArrayList())
+            .build();
+
+    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void testIamPermissionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      client.testIamPermissions(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MigrationServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MigrationServiceClientTest.java
index fdd87fd0dddb..b9766d187211 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MigrationServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MigrationServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1;
 
+import static com.google.cloud.aiplatform.v1.MigrationServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.MigrationServiceClient.SearchMigratableResourcesPagedResponse;
 
 import com.google.api.gax.core.NoCredentialsProvider;
@@ -26,14 +27,29 @@
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.gax.rpc.StatusCode;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
+import com.google.iam.v1.Binding;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.AbstractMessage;
 import com.google.protobuf.Any;
+import com.google.protobuf.ByteString;
+import com.google.protobuf.FieldMask;
 import io.grpc.StatusRuntimeException;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Arrays;
+import java.util.HashMap;
 import java.util.List;
 import java.util.UUID;
 import java.util.concurrent.ExecutionException;
@@ -47,6 +63,8 @@
 
 @Generated("by gapic-generator-java")
 public class MigrationServiceClientTest {
+  private static MockIAMPolicy mockIAMPolicy;
+  private static MockLocations mockLocations;
   private static MockMigrationService mockMigrationService;
   private static MockServiceHelper mockServiceHelper;
   private LocalChannelProvider channelProvider;
@@ -55,9 +73,12 @@ public class MigrationServiceClientTest {
   @BeforeClass
   public static void startStaticServer() {
     mockMigrationService = new MockMigrationService();
+    mockLocations = new MockLocations();
+    mockIAMPolicy = new MockIAMPolicy();
     mockServiceHelper =
         new MockServiceHelper(
-            UUID.randomUUID().toString(), Arrays.asList(mockMigrationService));
+            UUID.randomUUID().toString(),
+            Arrays.asList(mockMigrationService, mockLocations, mockIAMPolicy));
     mockServiceHelper.start();
   }
 
@@ -276,4 +297,265 @@ public void batchMigrateResourcesExceptionTest2() throws Exception {
       Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
+
+  @Test
+  public void listLocationsTest() throws Exception {
+    Location responsesElement = Location.newBuilder().build();
+    ListLocationsResponse expectedResponse =
+        ListLocationsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllLocations(Arrays.asList(responsesElement))
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    ListLocationsRequest request =
+        ListLocationsRequest.newBuilder()
+            .setName("name3373707")
+            .setFilter("filter-1274492040")
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .build();
+
+    ListLocationsPagedResponse pagedListResponse = client.listLocations(request);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0));
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+    Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
+    Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listLocationsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      ListLocationsRequest request =
+          ListLocationsRequest.newBuilder()
+              .setName("name3373707")
+              .setFilter("filter-1274492040")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      client.listLocations(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getLocationTest() throws Exception {
+    Location expectedResponse =
+        Location.newBuilder()
+            .setName("name3373707")
+            .setLocationId("locationId1541836720")
+            .setDisplayName("displayName1714148973")
+            .putAllLabels(new HashMap())
+            .setMetadata(Any.newBuilder().build())
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+
+    Location actualResponse = client.getLocation(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getLocationExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+      client.getLocation(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void setIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    SetIamPolicyRequest request =
+        SetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setPolicy(Policy.newBuilder().build())
+            .setUpdateMask(FieldMask.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.setIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy());
+    Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void setIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      client.setIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    GetIamPolicyRequest request =
+        GetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setOptions(GetPolicyOptions.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.getIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getOptions(), actualRequest.getOptions());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      client.getIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void testIamPermissionsTest() throws Exception {
+    TestIamPermissionsResponse expectedResponse =
+        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    TestIamPermissionsRequest request =
+        TestIamPermissionsRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .addAllPermissions(new ArrayList())
+            .build();
+
+    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void testIamPermissionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      client.testIamPermissions(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockDatasetService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockDatasetService.java
index 5b9897b0175c..a645a3a3e19b 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockDatasetService.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockDatasetService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockDatasetServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockDatasetServiceImpl.java
index 61f9bb6ef639..d9d33b8f1038 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockDatasetServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockDatasetServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockEndpointService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockEndpointService.java
index 706d1bc49757..4106f84302f9 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockEndpointService.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockEndpointService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockEndpointServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockEndpointServiceImpl.java
index 7420ce7acc69..ac07c4ca849b 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockEndpointServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockEndpointServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockFeaturestoreOnlineServingService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockFeaturestoreOnlineServingService.java
index 3c366db1e31b..d4c1dc0a02a7 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockFeaturestoreOnlineServingService.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockFeaturestoreOnlineServingService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockFeaturestoreOnlineServingServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockFeaturestoreOnlineServingServiceImpl.java
index d1a9e06d389e..a6fab90c9673 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockFeaturestoreOnlineServingServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockFeaturestoreOnlineServingServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockFeaturestoreService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockFeaturestoreService.java
index 66b8f406c6c7..f4540020fba7 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockFeaturestoreService.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockFeaturestoreService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockFeaturestoreServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockFeaturestoreServiceImpl.java
index c19665f35cfd..44c05a8df831 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockFeaturestoreServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockFeaturestoreServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockIAMPolicy.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockIAMPolicy.java
new file mode 100644
index 000000000000..b0aff92b5af3
--- /dev/null
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockIAMPolicy.java
@@ -0,0 +1,59 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      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.
+ */
+
+package com.google.cloud.aiplatform.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.grpc.testing.MockGrpcService;
+import com.google.protobuf.AbstractMessage;
+import io.grpc.ServerServiceDefinition;
+import java.util.List;
+import javax.annotation.Generated;
+
+@BetaApi
+@Generated("by gapic-generator-java")
+public class MockIAMPolicy implements MockGrpcService {
+  private final MockIAMPolicyImpl serviceImpl;
+
+  public MockIAMPolicy() {
+    serviceImpl = new MockIAMPolicyImpl();
+  }
+
+  @Override
+  public List getRequests() {
+    return serviceImpl.getRequests();
+  }
+
+  @Override
+  public void addResponse(AbstractMessage response) {
+    serviceImpl.addResponse(response);
+  }
+
+  @Override
+  public void addException(Exception exception) {
+    serviceImpl.addException(exception);
+  }
+
+  @Override
+  public ServerServiceDefinition getServiceDefinition() {
+    return serviceImpl.bindService();
+  }
+
+  @Override
+  public void reset() {
+    serviceImpl.reset();
+  }
+}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockIAMPolicyImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockIAMPolicyImpl.java
new file mode 100644
index 000000000000..e1274c721148
--- /dev/null
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockIAMPolicyImpl.java
@@ -0,0 +1,127 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      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.
+ */
+
+package com.google.cloud.aiplatform.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.IAMPolicyGrpc.IAMPolicyImplBase;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
+import com.google.protobuf.AbstractMessage;
+import io.grpc.stub.StreamObserver;
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Queue;
+import javax.annotation.Generated;
+
+@BetaApi
+@Generated("by gapic-generator-java")
+public class MockIAMPolicyImpl extends IAMPolicyImplBase {
+  private List requests;
+  private Queue responses;
+
+  public MockIAMPolicyImpl() {
+    requests = new ArrayList<>();
+    responses = new LinkedList<>();
+  }
+
+  public List getRequests() {
+    return requests;
+  }
+
+  public void addResponse(AbstractMessage response) {
+    responses.add(response);
+  }
+
+  public void setResponses(List responses) {
+    this.responses = new LinkedList(responses);
+  }
+
+  public void addException(Exception exception) {
+    responses.add(exception);
+  }
+
+  public void reset() {
+    requests = new ArrayList<>();
+    responses = new LinkedList<>();
+  }
+
+  @Override
+  public void testIamPermissions(
+      TestIamPermissionsRequest request,
+      StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof TestIamPermissionsResponse) {
+      requests.add(request);
+      responseObserver.onNext(((TestIamPermissionsResponse) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method TestIamPermissions, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  TestIamPermissionsResponse.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
+
+  @Override
+  public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof Policy) {
+      requests.add(request);
+      responseObserver.onNext(((Policy) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method SetIamPolicy, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  Policy.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
+
+  @Override
+  public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof Policy) {
+      requests.add(request);
+      responseObserver.onNext(((Policy) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method GetIamPolicy, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  Policy.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
+}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockIndexEndpointService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockIndexEndpointService.java
index aca2357435c7..7f3a6d9da9ab 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockIndexEndpointService.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockIndexEndpointService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockIndexEndpointServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockIndexEndpointServiceImpl.java
index b9b7fc020a61..ee535e15b519 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockIndexEndpointServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockIndexEndpointServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockIndexService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockIndexService.java
index 4a4de43ba472..194957b3dd51 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockIndexService.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockIndexService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockIndexServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockIndexServiceImpl.java
index 5c598153dbb8..3261637c648b 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockIndexServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockIndexServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockJobService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockJobService.java
index 10709e0b0250..2d23c885bc65 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockJobService.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockJobService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockJobServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockJobServiceImpl.java
index fd4c98f36073..a0f58d0428ed 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockJobServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockJobServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockLocations.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockLocations.java
new file mode 100644
index 000000000000..e80c6bfd4aed
--- /dev/null
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockLocations.java
@@ -0,0 +1,59 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      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.
+ */
+
+package com.google.cloud.aiplatform.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.grpc.testing.MockGrpcService;
+import com.google.protobuf.AbstractMessage;
+import io.grpc.ServerServiceDefinition;
+import java.util.List;
+import javax.annotation.Generated;
+
+@BetaApi
+@Generated("by gapic-generator-java")
+public class MockLocations implements MockGrpcService {
+  private final MockLocationsImpl serviceImpl;
+
+  public MockLocations() {
+    serviceImpl = new MockLocationsImpl();
+  }
+
+  @Override
+  public List getRequests() {
+    return serviceImpl.getRequests();
+  }
+
+  @Override
+  public void addResponse(AbstractMessage response) {
+    serviceImpl.addResponse(response);
+  }
+
+  @Override
+  public void addException(Exception exception) {
+    serviceImpl.addException(exception);
+  }
+
+  @Override
+  public ServerServiceDefinition getServiceDefinition() {
+    return serviceImpl.bindService();
+  }
+
+  @Override
+  public void reset() {
+    serviceImpl.reset();
+  }
+}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockLocationsImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockLocationsImpl.java
new file mode 100644
index 000000000000..a1e2a6429dd3
--- /dev/null
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockLocationsImpl.java
@@ -0,0 +1,105 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      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.
+ */
+
+package com.google.cloud.aiplatform.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.cloud.location.LocationsGrpc.LocationsImplBase;
+import com.google.protobuf.AbstractMessage;
+import io.grpc.stub.StreamObserver;
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Queue;
+import javax.annotation.Generated;
+
+@BetaApi
+@Generated("by gapic-generator-java")
+public class MockLocationsImpl extends LocationsImplBase {
+  private List requests;
+  private Queue responses;
+
+  public MockLocationsImpl() {
+    requests = new ArrayList<>();
+    responses = new LinkedList<>();
+  }
+
+  public List getRequests() {
+    return requests;
+  }
+
+  public void addResponse(AbstractMessage response) {
+    responses.add(response);
+  }
+
+  public void setResponses(List responses) {
+    this.responses = new LinkedList(responses);
+  }
+
+  public void addException(Exception exception) {
+    responses.add(exception);
+  }
+
+  public void reset() {
+    requests = new ArrayList<>();
+    responses = new LinkedList<>();
+  }
+
+  @Override
+  public void listLocations(
+      ListLocationsRequest request, StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof ListLocationsResponse) {
+      requests.add(request);
+      responseObserver.onNext(((ListLocationsResponse) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method ListLocations, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  ListLocationsResponse.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
+
+  @Override
+  public void getLocation(GetLocationRequest request, StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof Location) {
+      requests.add(request);
+      responseObserver.onNext(((Location) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method GetLocation, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  Location.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
+}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockMetadataService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockMetadataService.java
index e0d6a77c1371..e558f0a9b5ce 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockMetadataService.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockMetadataService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockMetadataServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockMetadataServiceImpl.java
index 73197998e09b..09bae7890836 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockMetadataServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockMetadataServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockMigrationService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockMigrationService.java
index ed3dedf87fa9..052b7d719a7d 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockMigrationService.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockMigrationService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockMigrationServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockMigrationServiceImpl.java
index 88007c9efa73..5e8ec50f2029 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockMigrationServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockMigrationServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockModelService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockModelService.java
index af753627aafa..c3d28b0d1bcc 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockModelService.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockModelService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockModelServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockModelServiceImpl.java
index 632c772def4c..3eebadb789d6 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockModelServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockModelServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -120,6 +120,28 @@ public void listModels(
     }
   }
 
+  @Override
+  public void listModelVersions(
+      ListModelVersionsRequest request,
+      StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof ListModelVersionsResponse) {
+      requests.add(request);
+      responseObserver.onNext(((ListModelVersionsResponse) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method ListModelVersions, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  ListModelVersionsResponse.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
+
   @Override
   public void updateModel(UpdateModelRequest request, StreamObserver responseObserver) {
     Object response = responses.poll();
@@ -160,6 +182,48 @@ public void deleteModel(DeleteModelRequest request, StreamObserver re
     }
   }
 
+  @Override
+  public void deleteModelVersion(
+      DeleteModelVersionRequest request, StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof Operation) {
+      requests.add(request);
+      responseObserver.onNext(((Operation) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method DeleteModelVersion, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  Operation.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
+
+  @Override
+  public void mergeVersionAliases(
+      MergeVersionAliasesRequest request, StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof Model) {
+      requests.add(request);
+      responseObserver.onNext(((Model) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method MergeVersionAliases, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  Model.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
+
   @Override
   public void exportModel(ExportModelRequest request, StreamObserver responseObserver) {
     Object response = responses.poll();
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPipelineService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPipelineService.java
index 0f59d1ac3c7e..f3d9e12b60e1 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPipelineService.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPipelineService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPipelineServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPipelineServiceImpl.java
index b9676e1a0a7a..697a1c9d1b38 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPipelineServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPipelineServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPredictionService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPredictionService.java
index d34baa63d8a7..25e7c7826d3b 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPredictionService.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPredictionService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPredictionServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPredictionServiceImpl.java
index b9d073b414f3..744af7eb3ce7 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPredictionServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPredictionServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockSpecialistPoolService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockSpecialistPoolService.java
index 55399ef33401..c8ede61f63be 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockSpecialistPoolService.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockSpecialistPoolService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockSpecialistPoolServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockSpecialistPoolServiceImpl.java
index 509f9465e2e5..1f170ba071fe 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockSpecialistPoolServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockSpecialistPoolServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockTensorboardService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockTensorboardService.java
index fba3efd9d0e3..7bfcd2f2149c 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockTensorboardService.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockTensorboardService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockTensorboardServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockTensorboardServiceImpl.java
index 3fa520c8fb4f..ed5aa0fbcbf9 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockTensorboardServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockTensorboardServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockVizierService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockVizierService.java
index 496695a41839..427857c2df30 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockVizierService.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockVizierService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockVizierServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockVizierServiceImpl.java
index 2638e3611f45..c7a6d8574b8f 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockVizierServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockVizierServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ModelServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ModelServiceClientTest.java
index 1326fad264d8..ab2e3940acaf 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ModelServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ModelServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,8 +16,10 @@
 
 package com.google.cloud.aiplatform.v1;
 
+import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelEvaluationSlicesPagedResponse;
 import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelEvaluationsPagedResponse;
+import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelVersionsPagedResponse;
 import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelsPagedResponse;
 
 import com.google.api.gax.core.NoCredentialsProvider;
@@ -28,10 +30,23 @@
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.gax.rpc.StatusCode;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
+import com.google.iam.v1.Binding;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.AbstractMessage;
 import com.google.protobuf.Any;
+import com.google.protobuf.ByteString;
 import com.google.protobuf.Empty;
 import com.google.protobuf.FieldMask;
 import com.google.protobuf.Timestamp;
@@ -54,6 +69,8 @@
 
 @Generated("by gapic-generator-java")
 public class ModelServiceClientTest {
+  private static MockIAMPolicy mockIAMPolicy;
+  private static MockLocations mockLocations;
   private static MockModelService mockModelService;
   private static MockServiceHelper mockServiceHelper;
   private LocalChannelProvider channelProvider;
@@ -62,9 +79,12 @@ public class ModelServiceClientTest {
   @BeforeClass
   public static void startStaticServer() {
     mockModelService = new MockModelService();
+    mockLocations = new MockLocations();
+    mockIAMPolicy = new MockIAMPolicy();
     mockServiceHelper =
         new MockServiceHelper(
-            UUID.randomUUID().toString(), Arrays.asList(mockModelService));
+            UUID.randomUUID().toString(),
+            Arrays.asList(mockModelService, mockLocations, mockIAMPolicy));
     mockServiceHelper.start();
   }
 
@@ -95,6 +115,7 @@ public void uploadModelTest() throws Exception {
     UploadModelResponse expectedResponse =
         UploadModelResponse.newBuilder()
             .setModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+            .setModelVersionId("modelVersionId-2006125846")
             .build();
     Operation resultOperation =
         Operation.newBuilder()
@@ -144,6 +165,7 @@ public void uploadModelTest2() throws Exception {
     UploadModelResponse expectedResponse =
         UploadModelResponse.newBuilder()
             .setModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+            .setModelVersionId("modelVersionId-2006125846")
             .build();
     Operation resultOperation =
         Operation.newBuilder()
@@ -193,11 +215,16 @@ public void getModelTest() throws Exception {
     Model expectedResponse =
         Model.newBuilder()
             .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+            .setVersionId("versionId-1407102957")
+            .addAllVersionAliases(new ArrayList())
+            .setVersionCreateTime(Timestamp.newBuilder().build())
+            .setVersionUpdateTime(Timestamp.newBuilder().build())
             .setDisplayName("displayName1714148973")
             .setDescription("description-1724546052")
+            .setVersionDescription("versionDescription-1736173564")
             .setPredictSchemata(PredictSchemata.newBuilder().build())
             .setMetadataSchemaUri("metadataSchemaUri781971868")
-            .setMetadata(Value.newBuilder().build())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .addAllSupportedExportFormats(new ArrayList())
             .setTrainingPipeline(
                 TrainingPipelineName.of("[PROJECT]", "[LOCATION]", "[TRAINING_PIPELINE]")
@@ -252,11 +279,16 @@ public void getModelTest2() throws Exception {
     Model expectedResponse =
         Model.newBuilder()
             .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+            .setVersionId("versionId-1407102957")
+            .addAllVersionAliases(new ArrayList())
+            .setVersionCreateTime(Timestamp.newBuilder().build())
+            .setVersionUpdateTime(Timestamp.newBuilder().build())
             .setDisplayName("displayName1714148973")
             .setDescription("description-1724546052")
+            .setVersionDescription("versionDescription-1736173564")
             .setPredictSchemata(PredictSchemata.newBuilder().build())
             .setMetadataSchemaUri("metadataSchemaUri781971868")
-            .setMetadata(Value.newBuilder().build())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .addAllSupportedExportFormats(new ArrayList())
             .setTrainingPipeline(
                 TrainingPipelineName.of("[PROJECT]", "[LOCATION]", "[TRAINING_PIPELINE]")
@@ -394,16 +426,109 @@ public void listModelsExceptionTest2() throws Exception {
     }
   }
 
+  @Test
+  public void listModelVersionsTest() throws Exception {
+    Model responsesElement = Model.newBuilder().build();
+    ListModelVersionsResponse expectedResponse =
+        ListModelVersionsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllModels(Arrays.asList(responsesElement))
+            .build();
+    mockModelService.addResponse(expectedResponse);
+
+    ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
+
+    ListModelVersionsPagedResponse pagedListResponse = client.listModelVersions(name);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getModelsList().get(0), resources.get(0));
+
+    List actualRequests = mockModelService.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListModelVersionsRequest actualRequest = ((ListModelVersionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(name.toString(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listModelVersionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockModelService.addException(exception);
+
+    try {
+      ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
+      client.listModelVersions(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void listModelVersionsTest2() throws Exception {
+    Model responsesElement = Model.newBuilder().build();
+    ListModelVersionsResponse expectedResponse =
+        ListModelVersionsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllModels(Arrays.asList(responsesElement))
+            .build();
+    mockModelService.addResponse(expectedResponse);
+
+    String name = "name3373707";
+
+    ListModelVersionsPagedResponse pagedListResponse = client.listModelVersions(name);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getModelsList().get(0), resources.get(0));
+
+    List actualRequests = mockModelService.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListModelVersionsRequest actualRequest = ((ListModelVersionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(name, actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listModelVersionsExceptionTest2() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockModelService.addException(exception);
+
+    try {
+      String name = "name3373707";
+      client.listModelVersions(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
   @Test
   public void updateModelTest() throws Exception {
     Model expectedResponse =
         Model.newBuilder()
             .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+            .setVersionId("versionId-1407102957")
+            .addAllVersionAliases(new ArrayList())
+            .setVersionCreateTime(Timestamp.newBuilder().build())
+            .setVersionUpdateTime(Timestamp.newBuilder().build())
             .setDisplayName("displayName1714148973")
             .setDescription("description-1724546052")
+            .setVersionDescription("versionDescription-1736173564")
             .setPredictSchemata(PredictSchemata.newBuilder().build())
             .setMetadataSchemaUri("metadataSchemaUri781971868")
-            .setMetadata(Value.newBuilder().build())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .addAllSupportedExportFormats(new ArrayList())
             .setTrainingPipeline(
                 TrainingPipelineName.of("[PROJECT]", "[LOCATION]", "[TRAINING_PIPELINE]")
@@ -540,6 +665,224 @@ public void deleteModelExceptionTest2() throws Exception {
     }
   }
 
+  @Test
+  public void deleteModelVersionTest() throws Exception {
+    Empty expectedResponse = Empty.newBuilder().build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("deleteModelVersionTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockModelService.addResponse(resultOperation);
+
+    ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
+
+    client.deleteModelVersionAsync(name).get();
+
+    List actualRequests = mockModelService.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    DeleteModelVersionRequest actualRequest = ((DeleteModelVersionRequest) actualRequests.get(0));
+
+    Assert.assertEquals(name.toString(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void deleteModelVersionExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockModelService.addException(exception);
+
+    try {
+      ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
+      client.deleteModelVersionAsync(name).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+      Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
+      InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
+      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+    }
+  }
+
+  @Test
+  public void deleteModelVersionTest2() throws Exception {
+    Empty expectedResponse = Empty.newBuilder().build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("deleteModelVersionTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockModelService.addResponse(resultOperation);
+
+    String name = "name3373707";
+
+    client.deleteModelVersionAsync(name).get();
+
+    List actualRequests = mockModelService.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    DeleteModelVersionRequest actualRequest = ((DeleteModelVersionRequest) actualRequests.get(0));
+
+    Assert.assertEquals(name, actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void deleteModelVersionExceptionTest2() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockModelService.addException(exception);
+
+    try {
+      String name = "name3373707";
+      client.deleteModelVersionAsync(name).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+      Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
+      InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
+      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+    }
+  }
+
+  @Test
+  public void mergeVersionAliasesTest() throws Exception {
+    Model expectedResponse =
+        Model.newBuilder()
+            .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+            .setVersionId("versionId-1407102957")
+            .addAllVersionAliases(new ArrayList())
+            .setVersionCreateTime(Timestamp.newBuilder().build())
+            .setVersionUpdateTime(Timestamp.newBuilder().build())
+            .setDisplayName("displayName1714148973")
+            .setDescription("description-1724546052")
+            .setVersionDescription("versionDescription-1736173564")
+            .setPredictSchemata(PredictSchemata.newBuilder().build())
+            .setMetadataSchemaUri("metadataSchemaUri781971868")
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
+            .addAllSupportedExportFormats(new ArrayList())
+            .setTrainingPipeline(
+                TrainingPipelineName.of("[PROJECT]", "[LOCATION]", "[TRAINING_PIPELINE]")
+                    .toString())
+            .setContainerSpec(ModelContainerSpec.newBuilder().build())
+            .setArtifactUri("artifactUri-1130062278")
+            .addAllSupportedDeploymentResourcesTypes(new ArrayList())
+            .addAllSupportedInputStorageFormats(new ArrayList())
+            .addAllSupportedOutputStorageFormats(new ArrayList())
+            .setCreateTime(Timestamp.newBuilder().build())
+            .setUpdateTime(Timestamp.newBuilder().build())
+            .addAllDeployedModels(new ArrayList())
+            .setExplanationSpec(ExplanationSpec.newBuilder().build())
+            .setEtag("etag3123477")
+            .putAllLabels(new HashMap())
+            .setEncryptionSpec(EncryptionSpec.newBuilder().build())
+            .build();
+    mockModelService.addResponse(expectedResponse);
+
+    ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
+    List versionAliases = new ArrayList<>();
+
+    Model actualResponse = client.mergeVersionAliases(name, versionAliases);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockModelService.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    MergeVersionAliasesRequest actualRequest = ((MergeVersionAliasesRequest) actualRequests.get(0));
+
+    Assert.assertEquals(name.toString(), actualRequest.getName());
+    Assert.assertEquals(versionAliases, actualRequest.getVersionAliasesList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void mergeVersionAliasesExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockModelService.addException(exception);
+
+    try {
+      ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
+      List versionAliases = new ArrayList<>();
+      client.mergeVersionAliases(name, versionAliases);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void mergeVersionAliasesTest2() throws Exception {
+    Model expectedResponse =
+        Model.newBuilder()
+            .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+            .setVersionId("versionId-1407102957")
+            .addAllVersionAliases(new ArrayList())
+            .setVersionCreateTime(Timestamp.newBuilder().build())
+            .setVersionUpdateTime(Timestamp.newBuilder().build())
+            .setDisplayName("displayName1714148973")
+            .setDescription("description-1724546052")
+            .setVersionDescription("versionDescription-1736173564")
+            .setPredictSchemata(PredictSchemata.newBuilder().build())
+            .setMetadataSchemaUri("metadataSchemaUri781971868")
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
+            .addAllSupportedExportFormats(new ArrayList())
+            .setTrainingPipeline(
+                TrainingPipelineName.of("[PROJECT]", "[LOCATION]", "[TRAINING_PIPELINE]")
+                    .toString())
+            .setContainerSpec(ModelContainerSpec.newBuilder().build())
+            .setArtifactUri("artifactUri-1130062278")
+            .addAllSupportedDeploymentResourcesTypes(new ArrayList())
+            .addAllSupportedInputStorageFormats(new ArrayList())
+            .addAllSupportedOutputStorageFormats(new ArrayList())
+            .setCreateTime(Timestamp.newBuilder().build())
+            .setUpdateTime(Timestamp.newBuilder().build())
+            .addAllDeployedModels(new ArrayList())
+            .setExplanationSpec(ExplanationSpec.newBuilder().build())
+            .setEtag("etag3123477")
+            .putAllLabels(new HashMap())
+            .setEncryptionSpec(EncryptionSpec.newBuilder().build())
+            .build();
+    mockModelService.addResponse(expectedResponse);
+
+    String name = "name3373707";
+    List versionAliases = new ArrayList<>();
+
+    Model actualResponse = client.mergeVersionAliases(name, versionAliases);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockModelService.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    MergeVersionAliasesRequest actualRequest = ((MergeVersionAliasesRequest) actualRequests.get(0));
+
+    Assert.assertEquals(name, actualRequest.getName());
+    Assert.assertEquals(versionAliases, actualRequest.getVersionAliasesList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void mergeVersionAliasesExceptionTest2() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockModelService.addException(exception);
+
+    try {
+      String name = "name3373707";
+      List versionAliases = new ArrayList<>();
+      client.mergeVersionAliases(name, versionAliases);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
   @Test
   public void exportModelTest() throws Exception {
     ExportModelResponse expectedResponse = ExportModelResponse.newBuilder().build();
@@ -643,14 +986,16 @@ public void importModelEvaluationTest() throws Exception {
             .setName(
                 ModelEvaluationName.of("[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]")
                     .toString())
+            .setDisplayName("displayName1714148973")
             .setMetricsSchemaUri("metricsSchemaUri-182209912")
-            .setMetrics(Value.newBuilder().build())
+            .setMetrics(Value.newBuilder().setBoolValue(true).build())
             .setCreateTime(Timestamp.newBuilder().build())
             .addAllSliceDimensions(new ArrayList())
             .setDataItemSchemaUri("dataItemSchemaUri-154921298")
             .setAnnotationSchemaUri("annotationSchemaUri1480032668")
             .setModelExplanation(ModelExplanation.newBuilder().build())
             .addAllExplanationSpecs(new ArrayList())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .build();
     mockModelService.addResponse(expectedResponse);
 
@@ -695,14 +1040,16 @@ public void importModelEvaluationTest2() throws Exception {
             .setName(
                 ModelEvaluationName.of("[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]")
                     .toString())
+            .setDisplayName("displayName1714148973")
             .setMetricsSchemaUri("metricsSchemaUri-182209912")
-            .setMetrics(Value.newBuilder().build())
+            .setMetrics(Value.newBuilder().setBoolValue(true).build())
             .setCreateTime(Timestamp.newBuilder().build())
             .addAllSliceDimensions(new ArrayList())
             .setDataItemSchemaUri("dataItemSchemaUri-154921298")
             .setAnnotationSchemaUri("annotationSchemaUri1480032668")
             .setModelExplanation(ModelExplanation.newBuilder().build())
             .addAllExplanationSpecs(new ArrayList())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .build();
     mockModelService.addResponse(expectedResponse);
 
@@ -747,14 +1094,16 @@ public void getModelEvaluationTest() throws Exception {
             .setName(
                 ModelEvaluationName.of("[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]")
                     .toString())
+            .setDisplayName("displayName1714148973")
             .setMetricsSchemaUri("metricsSchemaUri-182209912")
-            .setMetrics(Value.newBuilder().build())
+            .setMetrics(Value.newBuilder().setBoolValue(true).build())
             .setCreateTime(Timestamp.newBuilder().build())
             .addAllSliceDimensions(new ArrayList())
             .setDataItemSchemaUri("dataItemSchemaUri-154921298")
             .setAnnotationSchemaUri("annotationSchemaUri1480032668")
             .setModelExplanation(ModelExplanation.newBuilder().build())
             .addAllExplanationSpecs(new ArrayList())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .build();
     mockModelService.addResponse(expectedResponse);
 
@@ -797,14 +1146,16 @@ public void getModelEvaluationTest2() throws Exception {
             .setName(
                 ModelEvaluationName.of("[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]")
                     .toString())
+            .setDisplayName("displayName1714148973")
             .setMetricsSchemaUri("metricsSchemaUri-182209912")
-            .setMetrics(Value.newBuilder().build())
+            .setMetrics(Value.newBuilder().setBoolValue(true).build())
             .setCreateTime(Timestamp.newBuilder().build())
             .addAllSliceDimensions(new ArrayList())
             .setDataItemSchemaUri("dataItemSchemaUri-154921298")
             .setAnnotationSchemaUri("annotationSchemaUri1480032668")
             .setModelExplanation(ModelExplanation.newBuilder().build())
             .addAllExplanationSpecs(new ArrayList())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .build();
     mockModelService.addResponse(expectedResponse);
 
@@ -938,7 +1289,7 @@ public void getModelEvaluationSliceTest() throws Exception {
                     .toString())
             .setSlice(ModelEvaluationSlice.Slice.newBuilder().build())
             .setMetricsSchemaUri("metricsSchemaUri-182209912")
-            .setMetrics(Value.newBuilder().build())
+            .setMetrics(Value.newBuilder().setBoolValue(true).build())
             .setCreateTime(Timestamp.newBuilder().build())
             .build();
     mockModelService.addResponse(expectedResponse);
@@ -988,7 +1339,7 @@ public void getModelEvaluationSliceTest2() throws Exception {
                     .toString())
             .setSlice(ModelEvaluationSlice.Slice.newBuilder().build())
             .setMetricsSchemaUri("metricsSchemaUri-182209912")
-            .setMetrics(Value.newBuilder().build())
+            .setMetrics(Value.newBuilder().setBoolValue(true).build())
             .setCreateTime(Timestamp.newBuilder().build())
             .build();
     mockModelService.addResponse(expectedResponse);
@@ -1117,4 +1468,265 @@ public void listModelEvaluationSlicesExceptionTest2() throws Exception {
       // Expected exception.
     }
   }
+
+  @Test
+  public void listLocationsTest() throws Exception {
+    Location responsesElement = Location.newBuilder().build();
+    ListLocationsResponse expectedResponse =
+        ListLocationsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllLocations(Arrays.asList(responsesElement))
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    ListLocationsRequest request =
+        ListLocationsRequest.newBuilder()
+            .setName("name3373707")
+            .setFilter("filter-1274492040")
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .build();
+
+    ListLocationsPagedResponse pagedListResponse = client.listLocations(request);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0));
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+    Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
+    Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listLocationsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      ListLocationsRequest request =
+          ListLocationsRequest.newBuilder()
+              .setName("name3373707")
+              .setFilter("filter-1274492040")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      client.listLocations(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getLocationTest() throws Exception {
+    Location expectedResponse =
+        Location.newBuilder()
+            .setName("name3373707")
+            .setLocationId("locationId1541836720")
+            .setDisplayName("displayName1714148973")
+            .putAllLabels(new HashMap())
+            .setMetadata(Any.newBuilder().build())
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+
+    Location actualResponse = client.getLocation(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getLocationExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+      client.getLocation(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void setIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    SetIamPolicyRequest request =
+        SetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setPolicy(Policy.newBuilder().build())
+            .setUpdateMask(FieldMask.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.setIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy());
+    Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void setIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      client.setIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    GetIamPolicyRequest request =
+        GetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setOptions(GetPolicyOptions.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.getIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getOptions(), actualRequest.getOptions());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      client.getIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void testIamPermissionsTest() throws Exception {
+    TestIamPermissionsResponse expectedResponse =
+        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    TestIamPermissionsRequest request =
+        TestIamPermissionsRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .addAllPermissions(new ArrayList())
+            .build();
+
+    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void testIamPermissionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      client.testIamPermissions(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PipelineServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PipelineServiceClientTest.java
index 570411c9686e..32384e643e3b 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PipelineServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PipelineServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1;
 
+import static com.google.cloud.aiplatform.v1.PipelineServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.PipelineServiceClient.ListPipelineJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1.PipelineServiceClient.ListTrainingPipelinesPagedResponse;
 
@@ -27,17 +28,32 @@
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.gax.rpc.StatusCode;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
+import com.google.iam.v1.Binding;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.AbstractMessage;
 import com.google.protobuf.Any;
+import com.google.protobuf.ByteString;
 import com.google.protobuf.Empty;
+import com.google.protobuf.FieldMask;
 import com.google.protobuf.Struct;
 import com.google.protobuf.Timestamp;
 import com.google.protobuf.Value;
 import com.google.rpc.Status;
 import io.grpc.StatusRuntimeException;
 import java.io.IOException;
+import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.HashMap;
 import java.util.List;
@@ -53,6 +69,8 @@
 
 @Generated("by gapic-generator-java")
 public class PipelineServiceClientTest {
+  private static MockIAMPolicy mockIAMPolicy;
+  private static MockLocations mockLocations;
   private static MockPipelineService mockPipelineService;
   private static MockServiceHelper mockServiceHelper;
   private LocalChannelProvider channelProvider;
@@ -61,9 +79,12 @@ public class PipelineServiceClientTest {
   @BeforeClass
   public static void startStaticServer() {
     mockPipelineService = new MockPipelineService();
+    mockLocations = new MockLocations();
+    mockIAMPolicy = new MockIAMPolicy();
     mockServiceHelper =
         new MockServiceHelper(
-            UUID.randomUUID().toString(), Arrays.asList(mockPipelineService));
+            UUID.randomUUID().toString(),
+            Arrays.asList(mockPipelineService, mockLocations, mockIAMPolicy));
     mockServiceHelper.start();
   }
 
@@ -99,9 +120,11 @@ public void createTrainingPipelineTest() throws Exception {
             .setDisplayName("displayName1714148973")
             .setInputDataConfig(InputDataConfig.newBuilder().build())
             .setTrainingTaskDefinition("trainingTaskDefinition-1218104270")
-            .setTrainingTaskInputs(Value.newBuilder().build())
-            .setTrainingTaskMetadata(Value.newBuilder().build())
+            .setTrainingTaskInputs(Value.newBuilder().setBoolValue(true).build())
+            .setTrainingTaskMetadata(Value.newBuilder().setBoolValue(true).build())
             .setModelToUpload(Model.newBuilder().build())
+            .setModelId("modelId1226956324")
+            .setParentModel("parentModel998431903")
             .setState(PipelineState.forNumber(0))
             .setError(Status.newBuilder().build())
             .setCreateTime(Timestamp.newBuilder().build())
@@ -157,9 +180,11 @@ public void createTrainingPipelineTest2() throws Exception {
             .setDisplayName("displayName1714148973")
             .setInputDataConfig(InputDataConfig.newBuilder().build())
             .setTrainingTaskDefinition("trainingTaskDefinition-1218104270")
-            .setTrainingTaskInputs(Value.newBuilder().build())
-            .setTrainingTaskMetadata(Value.newBuilder().build())
+            .setTrainingTaskInputs(Value.newBuilder().setBoolValue(true).build())
+            .setTrainingTaskMetadata(Value.newBuilder().setBoolValue(true).build())
             .setModelToUpload(Model.newBuilder().build())
+            .setModelId("modelId1226956324")
+            .setParentModel("parentModel998431903")
             .setState(PipelineState.forNumber(0))
             .setError(Status.newBuilder().build())
             .setCreateTime(Timestamp.newBuilder().build())
@@ -215,9 +240,11 @@ public void getTrainingPipelineTest() throws Exception {
             .setDisplayName("displayName1714148973")
             .setInputDataConfig(InputDataConfig.newBuilder().build())
             .setTrainingTaskDefinition("trainingTaskDefinition-1218104270")
-            .setTrainingTaskInputs(Value.newBuilder().build())
-            .setTrainingTaskMetadata(Value.newBuilder().build())
+            .setTrainingTaskInputs(Value.newBuilder().setBoolValue(true).build())
+            .setTrainingTaskMetadata(Value.newBuilder().setBoolValue(true).build())
             .setModelToUpload(Model.newBuilder().build())
+            .setModelId("modelId1226956324")
+            .setParentModel("parentModel998431903")
             .setState(PipelineState.forNumber(0))
             .setError(Status.newBuilder().build())
             .setCreateTime(Timestamp.newBuilder().build())
@@ -271,9 +298,11 @@ public void getTrainingPipelineTest2() throws Exception {
             .setDisplayName("displayName1714148973")
             .setInputDataConfig(InputDataConfig.newBuilder().build())
             .setTrainingTaskDefinition("trainingTaskDefinition-1218104270")
-            .setTrainingTaskInputs(Value.newBuilder().build())
-            .setTrainingTaskMetadata(Value.newBuilder().build())
+            .setTrainingTaskInputs(Value.newBuilder().setBoolValue(true).build())
+            .setTrainingTaskMetadata(Value.newBuilder().setBoolValue(true).build())
             .setModelToUpload(Model.newBuilder().build())
+            .setModelId("modelId1226956324")
+            .setParentModel("parentModel998431903")
             .setState(PipelineState.forNumber(0))
             .setError(Status.newBuilder().build())
             .setCreateTime(Timestamp.newBuilder().build())
@@ -584,6 +613,8 @@ public void createPipelineJobTest() throws Exception {
             .setEncryptionSpec(EncryptionSpec.newBuilder().build())
             .setServiceAccount("serviceAccount1079137720")
             .setNetwork("network1843485230")
+            .setTemplateUri("templateUri1769633426")
+            .setTemplateMetadata(PipelineTemplateMetadata.newBuilder().build())
             .build();
     mockPipelineService.addResponse(expectedResponse);
 
@@ -642,6 +673,8 @@ public void createPipelineJobTest2() throws Exception {
             .setEncryptionSpec(EncryptionSpec.newBuilder().build())
             .setServiceAccount("serviceAccount1079137720")
             .setNetwork("network1843485230")
+            .setTemplateUri("templateUri1769633426")
+            .setTemplateMetadata(PipelineTemplateMetadata.newBuilder().build())
             .build();
     mockPipelineService.addResponse(expectedResponse);
 
@@ -700,6 +733,8 @@ public void getPipelineJobTest() throws Exception {
             .setEncryptionSpec(EncryptionSpec.newBuilder().build())
             .setServiceAccount("serviceAccount1079137720")
             .setNetwork("network1843485230")
+            .setTemplateUri("templateUri1769633426")
+            .setTemplateMetadata(PipelineTemplateMetadata.newBuilder().build())
             .build();
     mockPipelineService.addResponse(expectedResponse);
 
@@ -752,6 +787,8 @@ public void getPipelineJobTest2() throws Exception {
             .setEncryptionSpec(EncryptionSpec.newBuilder().build())
             .setServiceAccount("serviceAccount1079137720")
             .setNetwork("network1843485230")
+            .setTemplateUri("templateUri1769633426")
+            .setTemplateMetadata(PipelineTemplateMetadata.newBuilder().build())
             .build();
     mockPipelineService.addResponse(expectedResponse);
 
@@ -1024,4 +1061,265 @@ public void cancelPipelineJobExceptionTest2() throws Exception {
       // Expected exception.
     }
   }
+
+  @Test
+  public void listLocationsTest() throws Exception {
+    Location responsesElement = Location.newBuilder().build();
+    ListLocationsResponse expectedResponse =
+        ListLocationsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllLocations(Arrays.asList(responsesElement))
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    ListLocationsRequest request =
+        ListLocationsRequest.newBuilder()
+            .setName("name3373707")
+            .setFilter("filter-1274492040")
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .build();
+
+    ListLocationsPagedResponse pagedListResponse = client.listLocations(request);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0));
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+    Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
+    Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listLocationsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      ListLocationsRequest request =
+          ListLocationsRequest.newBuilder()
+              .setName("name3373707")
+              .setFilter("filter-1274492040")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      client.listLocations(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getLocationTest() throws Exception {
+    Location expectedResponse =
+        Location.newBuilder()
+            .setName("name3373707")
+            .setLocationId("locationId1541836720")
+            .setDisplayName("displayName1714148973")
+            .putAllLabels(new HashMap())
+            .setMetadata(Any.newBuilder().build())
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+
+    Location actualResponse = client.getLocation(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getLocationExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+      client.getLocation(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void setIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    SetIamPolicyRequest request =
+        SetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setPolicy(Policy.newBuilder().build())
+            .setUpdateMask(FieldMask.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.setIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy());
+    Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void setIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      client.setIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    GetIamPolicyRequest request =
+        GetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setOptions(GetPolicyOptions.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.getIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getOptions(), actualRequest.getOptions());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      client.getIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void testIamPermissionsTest() throws Exception {
+    TestIamPermissionsResponse expectedResponse =
+        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    TestIamPermissionsRequest request =
+        TestIamPermissionsRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .addAllPermissions(new ArrayList())
+            .build();
+
+    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void testIamPermissionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      client.testIamPermissions(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PredictionServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PredictionServiceClientTest.java
index 01ecfb9f17f6..a0dd9694cefe 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PredictionServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PredictionServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,8 @@
 
 package com.google.cloud.aiplatform.v1;
 
+import static com.google.cloud.aiplatform.v1.PredictionServiceClient.ListLocationsPagedResponse;
+
 import com.google.api.HttpBody;
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.grpc.GaxGrpcProperties;
@@ -24,14 +26,29 @@
 import com.google.api.gax.grpc.testing.MockServiceHelper;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.InvalidArgumentException;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
+import com.google.iam.v1.Binding;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.protobuf.AbstractMessage;
 import com.google.protobuf.Any;
 import com.google.protobuf.ByteString;
+import com.google.protobuf.FieldMask;
 import com.google.protobuf.Value;
 import io.grpc.StatusRuntimeException;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Arrays;
+import java.util.HashMap;
 import java.util.List;
 import java.util.UUID;
 import javax.annotation.Generated;
@@ -44,6 +61,8 @@
 
 @Generated("by gapic-generator-java")
 public class PredictionServiceClientTest {
+  private static MockIAMPolicy mockIAMPolicy;
+  private static MockLocations mockLocations;
   private static MockPredictionService mockPredictionService;
   private static MockServiceHelper mockServiceHelper;
   private LocalChannelProvider channelProvider;
@@ -52,9 +71,12 @@ public class PredictionServiceClientTest {
   @BeforeClass
   public static void startStaticServer() {
     mockPredictionService = new MockPredictionService();
+    mockLocations = new MockLocations();
+    mockIAMPolicy = new MockIAMPolicy();
     mockServiceHelper =
         new MockServiceHelper(
-            UUID.randomUUID().toString(), Arrays.asList(mockPredictionService));
+            UUID.randomUUID().toString(),
+            Arrays.asList(mockPredictionService, mockLocations, mockIAMPolicy));
     mockServiceHelper.start();
   }
 
@@ -93,7 +115,7 @@ public void predictTest() throws Exception {
 
     EndpointName endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
     List instances = new ArrayList<>();
-    Value parameters = Value.newBuilder().build();
+    Value parameters = Value.newBuilder().setBoolValue(true).build();
 
     PredictResponse actualResponse = client.predict(endpoint, instances, parameters);
     Assert.assertEquals(expectedResponse, actualResponse);
@@ -119,7 +141,7 @@ public void predictExceptionTest() throws Exception {
     try {
       EndpointName endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
       List instances = new ArrayList<>();
-      Value parameters = Value.newBuilder().build();
+      Value parameters = Value.newBuilder().setBoolValue(true).build();
       client.predict(endpoint, instances, parameters);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
@@ -140,7 +162,7 @@ public void predictTest2() throws Exception {
 
     String endpoint = "endpoint1741102485";
     List instances = new ArrayList<>();
-    Value parameters = Value.newBuilder().build();
+    Value parameters = Value.newBuilder().setBoolValue(true).build();
 
     PredictResponse actualResponse = client.predict(endpoint, instances, parameters);
     Assert.assertEquals(expectedResponse, actualResponse);
@@ -166,7 +188,7 @@ public void predictExceptionTest2() throws Exception {
     try {
       String endpoint = "endpoint1741102485";
       List instances = new ArrayList<>();
-      Value parameters = Value.newBuilder().build();
+      Value parameters = Value.newBuilder().setBoolValue(true).build();
       client.predict(endpoint, instances, parameters);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
@@ -272,7 +294,7 @@ public void explainTest() throws Exception {
 
     EndpointName endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
     List instances = new ArrayList<>();
-    Value parameters = Value.newBuilder().build();
+    Value parameters = Value.newBuilder().setBoolValue(true).build();
     String deployedModelId = "deployedModelId-1817547906";
 
     ExplainResponse actualResponse =
@@ -301,7 +323,7 @@ public void explainExceptionTest() throws Exception {
     try {
       EndpointName endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
       List instances = new ArrayList<>();
-      Value parameters = Value.newBuilder().build();
+      Value parameters = Value.newBuilder().setBoolValue(true).build();
       String deployedModelId = "deployedModelId-1817547906";
       client.explain(endpoint, instances, parameters, deployedModelId);
       Assert.fail("No exception raised");
@@ -322,7 +344,7 @@ public void explainTest2() throws Exception {
 
     String endpoint = "endpoint1741102485";
     List instances = new ArrayList<>();
-    Value parameters = Value.newBuilder().build();
+    Value parameters = Value.newBuilder().setBoolValue(true).build();
     String deployedModelId = "deployedModelId-1817547906";
 
     ExplainResponse actualResponse =
@@ -351,7 +373,7 @@ public void explainExceptionTest2() throws Exception {
     try {
       String endpoint = "endpoint1741102485";
       List instances = new ArrayList<>();
-      Value parameters = Value.newBuilder().build();
+      Value parameters = Value.newBuilder().setBoolValue(true).build();
       String deployedModelId = "deployedModelId-1817547906";
       client.explain(endpoint, instances, parameters, deployedModelId);
       Assert.fail("No exception raised");
@@ -359,4 +381,265 @@ public void explainExceptionTest2() throws Exception {
       // Expected exception.
     }
   }
+
+  @Test
+  public void listLocationsTest() throws Exception {
+    Location responsesElement = Location.newBuilder().build();
+    ListLocationsResponse expectedResponse =
+        ListLocationsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllLocations(Arrays.asList(responsesElement))
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    ListLocationsRequest request =
+        ListLocationsRequest.newBuilder()
+            .setName("name3373707")
+            .setFilter("filter-1274492040")
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .build();
+
+    ListLocationsPagedResponse pagedListResponse = client.listLocations(request);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0));
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+    Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
+    Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listLocationsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      ListLocationsRequest request =
+          ListLocationsRequest.newBuilder()
+              .setName("name3373707")
+              .setFilter("filter-1274492040")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      client.listLocations(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getLocationTest() throws Exception {
+    Location expectedResponse =
+        Location.newBuilder()
+            .setName("name3373707")
+            .setLocationId("locationId1541836720")
+            .setDisplayName("displayName1714148973")
+            .putAllLabels(new HashMap())
+            .setMetadata(Any.newBuilder().build())
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+
+    Location actualResponse = client.getLocation(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getLocationExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+      client.getLocation(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void setIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    SetIamPolicyRequest request =
+        SetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setPolicy(Policy.newBuilder().build())
+            .setUpdateMask(FieldMask.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.setIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy());
+    Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void setIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      client.setIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    GetIamPolicyRequest request =
+        GetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setOptions(GetPolicyOptions.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.getIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getOptions(), actualRequest.getOptions());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      client.getIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void testIamPermissionsTest() throws Exception {
+    TestIamPermissionsResponse expectedResponse =
+        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    TestIamPermissionsRequest request =
+        TestIamPermissionsRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .addAllPermissions(new ArrayList())
+            .build();
+
+    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void testIamPermissionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      client.testIamPermissions(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceClientTest.java
index 8934885ab8af..e581a2ea5046 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1;
 
+import static com.google.cloud.aiplatform.v1.SpecialistPoolServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.SpecialistPoolServiceClient.ListSpecialistPoolsPagedResponse;
 
 import com.google.api.gax.core.NoCredentialsProvider;
@@ -26,16 +27,30 @@
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.gax.rpc.StatusCode;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
+import com.google.iam.v1.Binding;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.AbstractMessage;
 import com.google.protobuf.Any;
+import com.google.protobuf.ByteString;
 import com.google.protobuf.Empty;
 import com.google.protobuf.FieldMask;
 import io.grpc.StatusRuntimeException;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Arrays;
+import java.util.HashMap;
 import java.util.List;
 import java.util.UUID;
 import java.util.concurrent.ExecutionException;
@@ -49,6 +64,8 @@
 
 @Generated("by gapic-generator-java")
 public class SpecialistPoolServiceClientTest {
+  private static MockIAMPolicy mockIAMPolicy;
+  private static MockLocations mockLocations;
   private static MockServiceHelper mockServiceHelper;
   private static MockSpecialistPoolService mockSpecialistPoolService;
   private LocalChannelProvider channelProvider;
@@ -57,10 +74,13 @@ public class SpecialistPoolServiceClientTest {
   @BeforeClass
   public static void startStaticServer() {
     mockSpecialistPoolService = new MockSpecialistPoolService();
+    mockLocations = new MockLocations();
+    mockIAMPolicy = new MockIAMPolicy();
     mockServiceHelper =
         new MockServiceHelper(
             UUID.randomUUID().toString(),
-            Arrays.asList(mockSpecialistPoolService));
+            Arrays.asList(
+                mockSpecialistPoolService, mockLocations, mockIAMPolicy));
     mockServiceHelper.start();
   }
 
@@ -518,4 +538,265 @@ public void updateSpecialistPoolExceptionTest() throws Exception {
       Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
+
+  @Test
+  public void listLocationsTest() throws Exception {
+    Location responsesElement = Location.newBuilder().build();
+    ListLocationsResponse expectedResponse =
+        ListLocationsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllLocations(Arrays.asList(responsesElement))
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    ListLocationsRequest request =
+        ListLocationsRequest.newBuilder()
+            .setName("name3373707")
+            .setFilter("filter-1274492040")
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .build();
+
+    ListLocationsPagedResponse pagedListResponse = client.listLocations(request);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0));
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+    Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
+    Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listLocationsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      ListLocationsRequest request =
+          ListLocationsRequest.newBuilder()
+              .setName("name3373707")
+              .setFilter("filter-1274492040")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      client.listLocations(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getLocationTest() throws Exception {
+    Location expectedResponse =
+        Location.newBuilder()
+            .setName("name3373707")
+            .setLocationId("locationId1541836720")
+            .setDisplayName("displayName1714148973")
+            .putAllLabels(new HashMap())
+            .setMetadata(Any.newBuilder().build())
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+
+    Location actualResponse = client.getLocation(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getLocationExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+      client.getLocation(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void setIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    SetIamPolicyRequest request =
+        SetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setPolicy(Policy.newBuilder().build())
+            .setUpdateMask(FieldMask.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.setIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy());
+    Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void setIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      client.setIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    GetIamPolicyRequest request =
+        GetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setOptions(GetPolicyOptions.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.getIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getOptions(), actualRequest.getOptions());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      client.getIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void testIamPermissionsTest() throws Exception {
+    TestIamPermissionsResponse expectedResponse =
+        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    TestIamPermissionsRequest request =
+        TestIamPermissionsRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .addAllPermissions(new ArrayList())
+            .build();
+
+    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void testIamPermissionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      client.testIamPermissions(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/TensorboardServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/TensorboardServiceClientTest.java
index 3249be734054..7f67cc431a10 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/TensorboardServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/TensorboardServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1;
 
 import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse;
+import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListTensorboardExperimentsPagedResponse;
 import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListTensorboardRunsPagedResponse;
 import static com.google.cloud.aiplatform.v1.TensorboardServiceClient.ListTensorboardTimeSeriesPagedResponse;
@@ -32,7 +33,19 @@
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.gax.rpc.ServerStreamingCallable;
 import com.google.api.gax.rpc.StatusCode;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
+import com.google.iam.v1.Binding;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.AbstractMessage;
 import com.google.protobuf.Any;
@@ -58,6 +71,8 @@
 
 @Generated("by gapic-generator-java")
 public class TensorboardServiceClientTest {
+  private static MockIAMPolicy mockIAMPolicy;
+  private static MockLocations mockLocations;
   private static MockServiceHelper mockServiceHelper;
   private static MockTensorboardService mockTensorboardService;
   private LocalChannelProvider channelProvider;
@@ -66,9 +81,12 @@ public class TensorboardServiceClientTest {
   @BeforeClass
   public static void startStaticServer() {
     mockTensorboardService = new MockTensorboardService();
+    mockLocations = new MockLocations();
+    mockIAMPolicy = new MockIAMPolicy();
     mockServiceHelper =
         new MockServiceHelper(
-            UUID.randomUUID().toString(), Arrays.asList(mockTensorboardService));
+            UUID.randomUUID().toString(),
+            Arrays.asList(mockTensorboardService, mockLocations, mockIAMPolicy));
     mockServiceHelper.start();
   }
 
@@ -2573,4 +2591,265 @@ public void exportTensorboardTimeSeriesDataExceptionTest2() throws Exception {
       // Expected exception.
     }
   }
+
+  @Test
+  public void listLocationsTest() throws Exception {
+    Location responsesElement = Location.newBuilder().build();
+    ListLocationsResponse expectedResponse =
+        ListLocationsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllLocations(Arrays.asList(responsesElement))
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    ListLocationsRequest request =
+        ListLocationsRequest.newBuilder()
+            .setName("name3373707")
+            .setFilter("filter-1274492040")
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .build();
+
+    ListLocationsPagedResponse pagedListResponse = client.listLocations(request);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0));
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+    Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
+    Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listLocationsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      ListLocationsRequest request =
+          ListLocationsRequest.newBuilder()
+              .setName("name3373707")
+              .setFilter("filter-1274492040")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      client.listLocations(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getLocationTest() throws Exception {
+    Location expectedResponse =
+        Location.newBuilder()
+            .setName("name3373707")
+            .setLocationId("locationId1541836720")
+            .setDisplayName("displayName1714148973")
+            .putAllLabels(new HashMap())
+            .setMetadata(Any.newBuilder().build())
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+
+    Location actualResponse = client.getLocation(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getLocationExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+      client.getLocation(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void setIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    SetIamPolicyRequest request =
+        SetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setPolicy(Policy.newBuilder().build())
+            .setUpdateMask(FieldMask.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.setIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy());
+    Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void setIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      client.setIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    GetIamPolicyRequest request =
+        GetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setOptions(GetPolicyOptions.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.getIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getOptions(), actualRequest.getOptions());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      client.getIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void testIamPermissionsTest() throws Exception {
+    TestIamPermissionsResponse expectedResponse =
+        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    TestIamPermissionsRequest request =
+        TestIamPermissionsRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .addAllPermissions(new ArrayList())
+            .build();
+
+    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void testIamPermissionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      client.testIamPermissions(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/VizierServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/VizierServiceClientTest.java
index bde6796d4fb3..ad62cac695de 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/VizierServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/VizierServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1;
 
+import static com.google.cloud.aiplatform.v1.VizierServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1.VizierServiceClient.ListStudiesPagedResponse;
 import static com.google.cloud.aiplatform.v1.VizierServiceClient.ListTrialsPagedResponse;
 
@@ -27,11 +28,25 @@
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.gax.rpc.StatusCode;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
+import com.google.iam.v1.Binding;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.AbstractMessage;
 import com.google.protobuf.Any;
+import com.google.protobuf.ByteString;
 import com.google.protobuf.Empty;
+import com.google.protobuf.FieldMask;
 import com.google.protobuf.Timestamp;
 import io.grpc.StatusRuntimeException;
 import java.io.IOException;
@@ -51,6 +66,8 @@
 
 @Generated("by gapic-generator-java")
 public class VizierServiceClientTest {
+  private static MockIAMPolicy mockIAMPolicy;
+  private static MockLocations mockLocations;
   private static MockServiceHelper mockServiceHelper;
   private static MockVizierService mockVizierService;
   private LocalChannelProvider channelProvider;
@@ -59,9 +76,12 @@ public class VizierServiceClientTest {
   @BeforeClass
   public static void startStaticServer() {
     mockVizierService = new MockVizierService();
+    mockLocations = new MockLocations();
+    mockIAMPolicy = new MockIAMPolicy();
     mockServiceHelper =
         new MockServiceHelper(
-            UUID.randomUUID().toString(), Arrays.asList(mockVizierService));
+            UUID.randomUUID().toString(),
+            Arrays.asList(mockVizierService, mockLocations, mockIAMPolicy));
     mockServiceHelper.start();
   }
 
@@ -1214,4 +1234,265 @@ public void listOptimalTrialsExceptionTest2() throws Exception {
       // Expected exception.
     }
   }
+
+  @Test
+  public void listLocationsTest() throws Exception {
+    Location responsesElement = Location.newBuilder().build();
+    ListLocationsResponse expectedResponse =
+        ListLocationsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllLocations(Arrays.asList(responsesElement))
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    ListLocationsRequest request =
+        ListLocationsRequest.newBuilder()
+            .setName("name3373707")
+            .setFilter("filter-1274492040")
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .build();
+
+    ListLocationsPagedResponse pagedListResponse = client.listLocations(request);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0));
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+    Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
+    Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listLocationsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      ListLocationsRequest request =
+          ListLocationsRequest.newBuilder()
+              .setName("name3373707")
+              .setFilter("filter-1274492040")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      client.listLocations(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getLocationTest() throws Exception {
+    Location expectedResponse =
+        Location.newBuilder()
+            .setName("name3373707")
+            .setLocationId("locationId1541836720")
+            .setDisplayName("displayName1714148973")
+            .putAllLabels(new HashMap())
+            .setMetadata(Any.newBuilder().build())
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+
+    Location actualResponse = client.getLocation(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getLocationExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+      client.getLocation(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void setIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    SetIamPolicyRequest request =
+        SetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setPolicy(Policy.newBuilder().build())
+            .setUpdateMask(FieldMask.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.setIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy());
+    Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void setIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      client.setIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    GetIamPolicyRequest request =
+        GetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setOptions(GetPolicyOptions.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.getIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getOptions(), actualRequest.getOptions());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      client.getIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void testIamPermissionsTest() throws Exception {
+    TestIamPermissionsResponse expectedResponse =
+        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    TestIamPermissionsRequest request =
+        TestIamPermissionsRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .addAllPermissions(new ArrayList())
+            .build();
+
+    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void testIamPermissionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      client.testIamPermissions(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClientTest.java
index ccc258574aef..0f56415848fa 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
 import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListAnnotationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDataItemsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDatasetsPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.grpc.GaxGrpcProperties;
@@ -28,10 +29,25 @@
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.gax.rpc.StatusCode;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.cloud.location.MockLocations;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
+import com.google.iam.v1.Binding;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.MockIAMPolicy;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.AbstractMessage;
 import com.google.protobuf.Any;
+import com.google.protobuf.ByteString;
 import com.google.protobuf.Empty;
 import com.google.protobuf.FieldMask;
 import com.google.protobuf.Timestamp;
@@ -55,6 +71,8 @@
 @Generated("by gapic-generator-java")
 public class DatasetServiceClientTest {
   private static MockDatasetService mockDatasetService;
+  private static MockIAMPolicy mockIAMPolicy;
+  private static MockLocations mockLocations;
   private static MockServiceHelper mockServiceHelper;
   private LocalChannelProvider channelProvider;
   private DatasetServiceClient client;
@@ -62,9 +80,12 @@ public class DatasetServiceClientTest {
   @BeforeClass
   public static void startStaticServer() {
     mockDatasetService = new MockDatasetService();
+    mockLocations = new MockLocations();
+    mockIAMPolicy = new MockIAMPolicy();
     mockServiceHelper =
         new MockServiceHelper(
-            UUID.randomUUID().toString(), Arrays.asList(mockDatasetService));
+            UUID.randomUUID().toString(),
+            Arrays.asList(mockDatasetService, mockLocations, mockIAMPolicy));
     mockServiceHelper.start();
   }
 
@@ -98,7 +119,7 @@ public void createDatasetTest() throws Exception {
             .setDisplayName("displayName1714148973")
             .setDescription("description-1724546052")
             .setMetadataSchemaUri("metadataSchemaUri781971868")
-            .setMetadata(Value.newBuilder().build())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .setCreateTime(Timestamp.newBuilder().build())
             .setUpdateTime(Timestamp.newBuilder().build())
             .setEtag("etag3123477")
@@ -156,7 +177,7 @@ public void createDatasetTest2() throws Exception {
             .setDisplayName("displayName1714148973")
             .setDescription("description-1724546052")
             .setMetadataSchemaUri("metadataSchemaUri781971868")
-            .setMetadata(Value.newBuilder().build())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .setCreateTime(Timestamp.newBuilder().build())
             .setUpdateTime(Timestamp.newBuilder().build())
             .setEtag("etag3123477")
@@ -214,7 +235,7 @@ public void getDatasetTest() throws Exception {
             .setDisplayName("displayName1714148973")
             .setDescription("description-1724546052")
             .setMetadataSchemaUri("metadataSchemaUri781971868")
-            .setMetadata(Value.newBuilder().build())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .setCreateTime(Timestamp.newBuilder().build())
             .setUpdateTime(Timestamp.newBuilder().build())
             .setEtag("etag3123477")
@@ -261,7 +282,7 @@ public void getDatasetTest2() throws Exception {
             .setDisplayName("displayName1714148973")
             .setDescription("description-1724546052")
             .setMetadataSchemaUri("metadataSchemaUri781971868")
-            .setMetadata(Value.newBuilder().build())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .setCreateTime(Timestamp.newBuilder().build())
             .setUpdateTime(Timestamp.newBuilder().build())
             .setEtag("etag3123477")
@@ -308,7 +329,7 @@ public void updateDatasetTest() throws Exception {
             .setDisplayName("displayName1714148973")
             .setDescription("description-1724546052")
             .setMetadataSchemaUri("metadataSchemaUri781971868")
-            .setMetadata(Value.newBuilder().build())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .setCreateTime(Timestamp.newBuilder().build())
             .setUpdateTime(Timestamp.newBuilder().build())
             .setEtag("etag3123477")
@@ -973,4 +994,265 @@ public void listAnnotationsExceptionTest2() throws Exception {
       // Expected exception.
     }
   }
+
+  @Test
+  public void listLocationsTest() throws Exception {
+    Location responsesElement = Location.newBuilder().build();
+    ListLocationsResponse expectedResponse =
+        ListLocationsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllLocations(Arrays.asList(responsesElement))
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    ListLocationsRequest request =
+        ListLocationsRequest.newBuilder()
+            .setName("name3373707")
+            .setFilter("filter-1274492040")
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .build();
+
+    ListLocationsPagedResponse pagedListResponse = client.listLocations(request);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0));
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+    Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
+    Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listLocationsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      ListLocationsRequest request =
+          ListLocationsRequest.newBuilder()
+              .setName("name3373707")
+              .setFilter("filter-1274492040")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      client.listLocations(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getLocationTest() throws Exception {
+    Location expectedResponse =
+        Location.newBuilder()
+            .setName("name3373707")
+            .setLocationId("locationId1541836720")
+            .setDisplayName("displayName1714148973")
+            .putAllLabels(new HashMap())
+            .setMetadata(Any.newBuilder().build())
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+
+    Location actualResponse = client.getLocation(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getLocationExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+      client.getLocation(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void setIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    SetIamPolicyRequest request =
+        SetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setPolicy(Policy.newBuilder().build())
+            .setUpdateMask(FieldMask.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.setIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy());
+    Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void setIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      client.setIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    GetIamPolicyRequest request =
+        GetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setOptions(GetPolicyOptions.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.getIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getOptions(), actualRequest.getOptions());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      client.getIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void testIamPermissionsTest() throws Exception {
+    TestIamPermissionsResponse expectedResponse =
+        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    TestIamPermissionsRequest request =
+        TestIamPermissionsRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .addAllPermissions(new ArrayList())
+            .build();
+
+    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void testIamPermissionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      client.testIamPermissions(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClientTest.java
index ce594ecfcf8f..fa71398e996d 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1beta1;
 
 import static com.google.cloud.aiplatform.v1beta1.EndpointServiceClient.ListEndpointsPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.EndpointServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.grpc.GaxGrpcProperties;
@@ -26,10 +27,25 @@
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.gax.rpc.StatusCode;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.cloud.location.MockLocations;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
+import com.google.iam.v1.Binding;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.MockIAMPolicy;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.AbstractMessage;
 import com.google.protobuf.Any;
+import com.google.protobuf.ByteString;
 import com.google.protobuf.Empty;
 import com.google.protobuf.FieldMask;
 import com.google.protobuf.Timestamp;
@@ -53,6 +69,8 @@
 @Generated("by gapic-generator-java")
 public class EndpointServiceClientTest {
   private static MockEndpointService mockEndpointService;
+  private static MockIAMPolicy mockIAMPolicy;
+  private static MockLocations mockLocations;
   private static MockServiceHelper mockServiceHelper;
   private LocalChannelProvider channelProvider;
   private EndpointServiceClient client;
@@ -60,9 +78,12 @@ public class EndpointServiceClientTest {
   @BeforeClass
   public static void startStaticServer() {
     mockEndpointService = new MockEndpointService();
+    mockLocations = new MockLocations();
+    mockIAMPolicy = new MockIAMPolicy();
     mockServiceHelper =
         new MockServiceHelper(
-            UUID.randomUUID().toString(), Arrays.asList(mockEndpointService));
+            UUID.randomUUID().toString(),
+            Arrays.asList(mockEndpointService, mockLocations, mockIAMPolicy));
     mockServiceHelper.start();
   }
 
@@ -903,4 +924,265 @@ public void undeployModelExceptionTest2() throws Exception {
       Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
+
+  @Test
+  public void listLocationsTest() throws Exception {
+    Location responsesElement = Location.newBuilder().build();
+    ListLocationsResponse expectedResponse =
+        ListLocationsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllLocations(Arrays.asList(responsesElement))
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    ListLocationsRequest request =
+        ListLocationsRequest.newBuilder()
+            .setName("name3373707")
+            .setFilter("filter-1274492040")
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .build();
+
+    ListLocationsPagedResponse pagedListResponse = client.listLocations(request);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0));
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+    Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
+    Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listLocationsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      ListLocationsRequest request =
+          ListLocationsRequest.newBuilder()
+              .setName("name3373707")
+              .setFilter("filter-1274492040")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      client.listLocations(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getLocationTest() throws Exception {
+    Location expectedResponse =
+        Location.newBuilder()
+            .setName("name3373707")
+            .setLocationId("locationId1541836720")
+            .setDisplayName("displayName1714148973")
+            .putAllLabels(new HashMap())
+            .setMetadata(Any.newBuilder().build())
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+
+    Location actualResponse = client.getLocation(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getLocationExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+      client.getLocation(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void setIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    SetIamPolicyRequest request =
+        SetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setPolicy(Policy.newBuilder().build())
+            .setUpdateMask(FieldMask.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.setIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy());
+    Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void setIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      client.setIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    GetIamPolicyRequest request =
+        GetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setOptions(GetPolicyOptions.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.getIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getOptions(), actualRequest.getOptions());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      client.getIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void testIamPermissionsTest() throws Exception {
+    TestIamPermissionsResponse expectedResponse =
+        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    TestIamPermissionsRequest request =
+        TestIamPermissionsRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .addAllPermissions(new ArrayList())
+            .build();
+
+    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void testIamPermissionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      client.testIamPermissions(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceClientTest.java
index f1d2c10d63a7..8123930dc308 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,8 @@
 
 package com.google.cloud.aiplatform.v1beta1;
 
+import static com.google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingServiceClient.ListLocationsPagedResponse;
+
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.grpc.GaxGrpcProperties;
 import com.google.api.gax.grpc.testing.LocalChannelProvider;
@@ -26,11 +28,30 @@
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.gax.rpc.ServerStreamingCallable;
 import com.google.api.gax.rpc.StatusCode;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.cloud.location.MockLocations;
+import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
+import com.google.iam.v1.Binding;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.MockIAMPolicy;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.protobuf.AbstractMessage;
+import com.google.protobuf.Any;
+import com.google.protobuf.ByteString;
+import com.google.protobuf.FieldMask;
 import io.grpc.StatusRuntimeException;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Arrays;
+import java.util.HashMap;
 import java.util.List;
 import java.util.UUID;
 import java.util.concurrent.ExecutionException;
@@ -45,6 +66,8 @@
 @Generated("by gapic-generator-java")
 public class FeaturestoreOnlineServingServiceClientTest {
   private static MockFeaturestoreOnlineServingService mockFeaturestoreOnlineServingService;
+  private static MockIAMPolicy mockIAMPolicy;
+  private static MockLocations mockLocations;
   private static MockServiceHelper mockServiceHelper;
   private LocalChannelProvider channelProvider;
   private FeaturestoreOnlineServingServiceClient client;
@@ -52,10 +75,13 @@ public class FeaturestoreOnlineServingServiceClientTest {
   @BeforeClass
   public static void startStaticServer() {
     mockFeaturestoreOnlineServingService = new MockFeaturestoreOnlineServingService();
+    mockLocations = new MockLocations();
+    mockIAMPolicy = new MockIAMPolicy();
     mockServiceHelper =
         new MockServiceHelper(
             UUID.randomUUID().toString(),
-            Arrays.asList(mockFeaturestoreOnlineServingService));
+            Arrays.asList(
+                mockFeaturestoreOnlineServingService, mockLocations, mockIAMPolicy));
     mockServiceHelper.start();
   }
 
@@ -217,4 +243,265 @@ public void streamingReadFeatureValuesExceptionTest() throws Exception {
       Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
+
+  @Test
+  public void listLocationsTest() throws Exception {
+    Location responsesElement = Location.newBuilder().build();
+    ListLocationsResponse expectedResponse =
+        ListLocationsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllLocations(Arrays.asList(responsesElement))
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    ListLocationsRequest request =
+        ListLocationsRequest.newBuilder()
+            .setName("name3373707")
+            .setFilter("filter-1274492040")
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .build();
+
+    ListLocationsPagedResponse pagedListResponse = client.listLocations(request);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0));
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+    Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
+    Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listLocationsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      ListLocationsRequest request =
+          ListLocationsRequest.newBuilder()
+              .setName("name3373707")
+              .setFilter("filter-1274492040")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      client.listLocations(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getLocationTest() throws Exception {
+    Location expectedResponse =
+        Location.newBuilder()
+            .setName("name3373707")
+            .setLocationId("locationId1541836720")
+            .setDisplayName("displayName1714148973")
+            .putAllLabels(new HashMap())
+            .setMetadata(Any.newBuilder().build())
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+
+    Location actualResponse = client.getLocation(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getLocationExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+      client.getLocation(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void setIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    SetIamPolicyRequest request =
+        SetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setPolicy(Policy.newBuilder().build())
+            .setUpdateMask(FieldMask.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.setIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy());
+    Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void setIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      client.setIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    GetIamPolicyRequest request =
+        GetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setOptions(GetPolicyOptions.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.getIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getOptions(), actualRequest.getOptions());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      client.getIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void testIamPermissionsTest() throws Exception {
+    TestIamPermissionsResponse expectedResponse =
+        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    TestIamPermissionsRequest request =
+        TestIamPermissionsRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .addAllPermissions(new ArrayList())
+            .build();
+
+    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void testIamPermissionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      client.testIamPermissions(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClientTest.java
index 212e1d6b9d7c..13158963dec7 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
 import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListEntityTypesPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListFeaturesPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListFeaturestoresPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient.SearchFeaturesPagedResponse;
 
 import com.google.api.gax.core.NoCredentialsProvider;
@@ -29,10 +30,25 @@
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.gax.rpc.StatusCode;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.cloud.location.MockLocations;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
+import com.google.iam.v1.Binding;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.MockIAMPolicy;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.AbstractMessage;
 import com.google.protobuf.Any;
+import com.google.protobuf.ByteString;
 import com.google.protobuf.Empty;
 import com.google.protobuf.FieldMask;
 import com.google.protobuf.Timestamp;
@@ -55,6 +71,8 @@
 @Generated("by gapic-generator-java")
 public class FeaturestoreServiceClientTest {
   private static MockFeaturestoreService mockFeaturestoreService;
+  private static MockIAMPolicy mockIAMPolicy;
+  private static MockLocations mockLocations;
   private static MockServiceHelper mockServiceHelper;
   private LocalChannelProvider channelProvider;
   private FeaturestoreServiceClient client;
@@ -62,9 +80,12 @@ public class FeaturestoreServiceClientTest {
   @BeforeClass
   public static void startStaticServer() {
     mockFeaturestoreService = new MockFeaturestoreService();
+    mockLocations = new MockLocations();
+    mockIAMPolicy = new MockIAMPolicy();
     mockServiceHelper =
         new MockServiceHelper(
-            UUID.randomUUID().toString(), Arrays.asList(mockFeaturestoreService));
+            UUID.randomUUID().toString(),
+            Arrays.asList(mockFeaturestoreService, mockLocations, mockIAMPolicy));
     mockServiceHelper.start();
   }
 
@@ -2512,4 +2533,265 @@ public void searchFeaturesExceptionTest4() throws Exception {
       // Expected exception.
     }
   }
+
+  @Test
+  public void listLocationsTest() throws Exception {
+    Location responsesElement = Location.newBuilder().build();
+    ListLocationsResponse expectedResponse =
+        ListLocationsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllLocations(Arrays.asList(responsesElement))
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    ListLocationsRequest request =
+        ListLocationsRequest.newBuilder()
+            .setName("name3373707")
+            .setFilter("filter-1274492040")
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .build();
+
+    ListLocationsPagedResponse pagedListResponse = client.listLocations(request);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0));
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+    Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
+    Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listLocationsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      ListLocationsRequest request =
+          ListLocationsRequest.newBuilder()
+              .setName("name3373707")
+              .setFilter("filter-1274492040")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      client.listLocations(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getLocationTest() throws Exception {
+    Location expectedResponse =
+        Location.newBuilder()
+            .setName("name3373707")
+            .setLocationId("locationId1541836720")
+            .setDisplayName("displayName1714148973")
+            .putAllLabels(new HashMap())
+            .setMetadata(Any.newBuilder().build())
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+
+    Location actualResponse = client.getLocation(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getLocationExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+      client.getLocation(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void setIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    SetIamPolicyRequest request =
+        SetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setPolicy(Policy.newBuilder().build())
+            .setUpdateMask(FieldMask.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.setIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy());
+    Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void setIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      client.setIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    GetIamPolicyRequest request =
+        GetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setOptions(GetPolicyOptions.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.getIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getOptions(), actualRequest.getOptions());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      client.getIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void testIamPermissionsTest() throws Exception {
+    TestIamPermissionsResponse expectedResponse =
+        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    TestIamPermissionsRequest request =
+        TestIamPermissionsRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .addAllPermissions(new ArrayList())
+            .build();
+
+    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void testIamPermissionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      client.testIamPermissions(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceClientTest.java
index 1d04be1b9f20..93ee31e90eeb 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1beta1;
 
 import static com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceClient.ListIndexEndpointsPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.IndexEndpointServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.grpc.GaxGrpcProperties;
@@ -26,10 +27,25 @@
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.gax.rpc.StatusCode;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.cloud.location.MockLocations;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
+import com.google.iam.v1.Binding;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.MockIAMPolicy;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.AbstractMessage;
 import com.google.protobuf.Any;
+import com.google.protobuf.ByteString;
 import com.google.protobuf.Empty;
 import com.google.protobuf.FieldMask;
 import com.google.protobuf.Timestamp;
@@ -51,7 +67,9 @@
 
 @Generated("by gapic-generator-java")
 public class IndexEndpointServiceClientTest {
+  private static MockIAMPolicy mockIAMPolicy;
   private static MockIndexEndpointService mockIndexEndpointService;
+  private static MockLocations mockLocations;
   private static MockServiceHelper mockServiceHelper;
   private LocalChannelProvider channelProvider;
   private IndexEndpointServiceClient client;
@@ -59,9 +77,12 @@ public class IndexEndpointServiceClientTest {
   @BeforeClass
   public static void startStaticServer() {
     mockIndexEndpointService = new MockIndexEndpointService();
+    mockLocations = new MockLocations();
+    mockIAMPolicy = new MockIAMPolicy();
     mockServiceHelper =
         new MockServiceHelper(
-            UUID.randomUUID().toString(), Arrays.asList(mockIndexEndpointService));
+            UUID.randomUUID().toString(),
+            Arrays.asList(mockIndexEndpointService, mockLocations, mockIAMPolicy));
     mockServiceHelper.start();
   }
 
@@ -818,4 +839,265 @@ public void mutateDeployedIndexExceptionTest2() throws Exception {
       Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
+
+  @Test
+  public void listLocationsTest() throws Exception {
+    Location responsesElement = Location.newBuilder().build();
+    ListLocationsResponse expectedResponse =
+        ListLocationsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllLocations(Arrays.asList(responsesElement))
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    ListLocationsRequest request =
+        ListLocationsRequest.newBuilder()
+            .setName("name3373707")
+            .setFilter("filter-1274492040")
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .build();
+
+    ListLocationsPagedResponse pagedListResponse = client.listLocations(request);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0));
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+    Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
+    Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listLocationsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      ListLocationsRequest request =
+          ListLocationsRequest.newBuilder()
+              .setName("name3373707")
+              .setFilter("filter-1274492040")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      client.listLocations(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getLocationTest() throws Exception {
+    Location expectedResponse =
+        Location.newBuilder()
+            .setName("name3373707")
+            .setLocationId("locationId1541836720")
+            .setDisplayName("displayName1714148973")
+            .putAllLabels(new HashMap())
+            .setMetadata(Any.newBuilder().build())
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+
+    Location actualResponse = client.getLocation(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getLocationExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+      client.getLocation(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void setIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    SetIamPolicyRequest request =
+        SetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setPolicy(Policy.newBuilder().build())
+            .setUpdateMask(FieldMask.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.setIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy());
+    Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void setIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      client.setIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    GetIamPolicyRequest request =
+        GetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setOptions(GetPolicyOptions.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.getIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getOptions(), actualRequest.getOptions());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      client.getIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void testIamPermissionsTest() throws Exception {
+    TestIamPermissionsResponse expectedResponse =
+        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    TestIamPermissionsRequest request =
+        TestIamPermissionsRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .addAllPermissions(new ArrayList())
+            .build();
+
+    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void testIamPermissionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      client.testIamPermissions(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/IndexServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/IndexServiceClientTest.java
index a5f7814ac09c..20867a964fe3 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/IndexServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/IndexServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1beta1;
 
 import static com.google.cloud.aiplatform.v1beta1.IndexServiceClient.ListIndexesPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.IndexServiceClient.ListLocationsPagedResponse;
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.grpc.GaxGrpcProperties;
@@ -26,10 +27,25 @@
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.gax.rpc.StatusCode;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.cloud.location.MockLocations;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
+import com.google.iam.v1.Binding;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.MockIAMPolicy;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.AbstractMessage;
 import com.google.protobuf.Any;
+import com.google.protobuf.ByteString;
 import com.google.protobuf.Empty;
 import com.google.protobuf.FieldMask;
 import com.google.protobuf.Timestamp;
@@ -52,7 +68,9 @@
 
 @Generated("by gapic-generator-java")
 public class IndexServiceClientTest {
+  private static MockIAMPolicy mockIAMPolicy;
   private static MockIndexService mockIndexService;
+  private static MockLocations mockLocations;
   private static MockServiceHelper mockServiceHelper;
   private LocalChannelProvider channelProvider;
   private IndexServiceClient client;
@@ -60,9 +78,12 @@ public class IndexServiceClientTest {
   @BeforeClass
   public static void startStaticServer() {
     mockIndexService = new MockIndexService();
+    mockLocations = new MockLocations();
+    mockIAMPolicy = new MockIAMPolicy();
     mockServiceHelper =
         new MockServiceHelper(
-            UUID.randomUUID().toString(), Arrays.asList(mockIndexService));
+            UUID.randomUUID().toString(),
+            Arrays.asList(mockIndexService, mockLocations, mockIAMPolicy));
     mockServiceHelper.start();
   }
 
@@ -96,7 +117,7 @@ public void createIndexTest() throws Exception {
             .setDisplayName("displayName1714148973")
             .setDescription("description-1724546052")
             .setMetadataSchemaUri("metadataSchemaUri781971868")
-            .setMetadata(Value.newBuilder().build())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .addAllDeployedIndexes(new ArrayList())
             .setEtag("etag3123477")
             .putAllLabels(new HashMap())
@@ -154,7 +175,7 @@ public void createIndexTest2() throws Exception {
             .setDisplayName("displayName1714148973")
             .setDescription("description-1724546052")
             .setMetadataSchemaUri("metadataSchemaUri781971868")
-            .setMetadata(Value.newBuilder().build())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .addAllDeployedIndexes(new ArrayList())
             .setEtag("etag3123477")
             .putAllLabels(new HashMap())
@@ -212,7 +233,7 @@ public void getIndexTest() throws Exception {
             .setDisplayName("displayName1714148973")
             .setDescription("description-1724546052")
             .setMetadataSchemaUri("metadataSchemaUri781971868")
-            .setMetadata(Value.newBuilder().build())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .addAllDeployedIndexes(new ArrayList())
             .setEtag("etag3123477")
             .putAllLabels(new HashMap())
@@ -259,7 +280,7 @@ public void getIndexTest2() throws Exception {
             .setDisplayName("displayName1714148973")
             .setDescription("description-1724546052")
             .setMetadataSchemaUri("metadataSchemaUri781971868")
-            .setMetadata(Value.newBuilder().build())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .addAllDeployedIndexes(new ArrayList())
             .setEtag("etag3123477")
             .putAllLabels(new HashMap())
@@ -394,7 +415,7 @@ public void updateIndexTest() throws Exception {
             .setDisplayName("displayName1714148973")
             .setDescription("description-1724546052")
             .setMetadataSchemaUri("metadataSchemaUri781971868")
-            .setMetadata(Value.newBuilder().build())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .addAllDeployedIndexes(new ArrayList())
             .setEtag("etag3123477")
             .putAllLabels(new HashMap())
@@ -527,4 +548,265 @@ public void deleteIndexExceptionTest2() throws Exception {
       Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
+
+  @Test
+  public void listLocationsTest() throws Exception {
+    Location responsesElement = Location.newBuilder().build();
+    ListLocationsResponse expectedResponse =
+        ListLocationsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllLocations(Arrays.asList(responsesElement))
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    ListLocationsRequest request =
+        ListLocationsRequest.newBuilder()
+            .setName("name3373707")
+            .setFilter("filter-1274492040")
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .build();
+
+    ListLocationsPagedResponse pagedListResponse = client.listLocations(request);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0));
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+    Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
+    Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listLocationsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      ListLocationsRequest request =
+          ListLocationsRequest.newBuilder()
+              .setName("name3373707")
+              .setFilter("filter-1274492040")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      client.listLocations(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getLocationTest() throws Exception {
+    Location expectedResponse =
+        Location.newBuilder()
+            .setName("name3373707")
+            .setLocationId("locationId1541836720")
+            .setDisplayName("displayName1714148973")
+            .putAllLabels(new HashMap())
+            .setMetadata(Any.newBuilder().build())
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+
+    Location actualResponse = client.getLocation(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getLocationExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+      client.getLocation(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void setIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    SetIamPolicyRequest request =
+        SetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setPolicy(Policy.newBuilder().build())
+            .setUpdateMask(FieldMask.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.setIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy());
+    Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void setIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      client.setIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    GetIamPolicyRequest request =
+        GetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setOptions(GetPolicyOptions.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.getIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getOptions(), actualRequest.getOptions());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      client.getIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void testIamPermissionsTest() throws Exception {
+    TestIamPermissionsResponse expectedResponse =
+        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    TestIamPermissionsRequest request =
+        TestIamPermissionsRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .addAllPermissions(new ArrayList())
+            .build();
+
+    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void testIamPermissionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      client.testIamPermissions(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/JobServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/JobServiceClientTest.java
index cda526d8f9b3..3c8437f2d89b 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/JobServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/JobServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -20,6 +20,7 @@
 import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListCustomJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListDataLabelingJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListHyperparameterTuningJobsPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListModelDeploymentMonitoringJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse;
 
@@ -31,10 +32,25 @@
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.gax.rpc.StatusCode;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.cloud.location.MockLocations;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
+import com.google.iam.v1.Binding;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.MockIAMPolicy;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.AbstractMessage;
 import com.google.protobuf.Any;
+import com.google.protobuf.ByteString;
 import com.google.protobuf.Duration;
 import com.google.protobuf.Empty;
 import com.google.protobuf.FieldMask;
@@ -60,7 +76,9 @@
 
 @Generated("by gapic-generator-java")
 public class JobServiceClientTest {
+  private static MockIAMPolicy mockIAMPolicy;
   private static MockJobService mockJobService;
+  private static MockLocations mockLocations;
   private static MockServiceHelper mockServiceHelper;
   private LocalChannelProvider channelProvider;
   private JobServiceClient client;
@@ -68,9 +86,12 @@ public class JobServiceClientTest {
   @BeforeClass
   public static void startStaticServer() {
     mockJobService = new MockJobService();
+    mockLocations = new MockLocations();
+    mockIAMPolicy = new MockIAMPolicy();
     mockServiceHelper =
         new MockServiceHelper(
-            UUID.randomUUID().toString(), Arrays.asList(mockJobService));
+            UUID.randomUUID().toString(),
+            Arrays.asList(mockJobService, mockLocations, mockIAMPolicy));
     mockServiceHelper.start();
   }
 
@@ -550,7 +571,7 @@ public void createDataLabelingJobTest() throws Exception {
             .setLabelerCount(-1457777167)
             .setInstructionUri("instructionUri1989242366")
             .setInputsSchemaUri("inputsSchemaUri1757461538")
-            .setInputs(Value.newBuilder().build())
+            .setInputs(Value.newBuilder().setBoolValue(true).build())
             .setState(JobState.forNumber(0))
             .setLabelingProgress(-685978914)
             .setCurrentSpend(Money.newBuilder().build())
@@ -610,7 +631,7 @@ public void createDataLabelingJobTest2() throws Exception {
             .setLabelerCount(-1457777167)
             .setInstructionUri("instructionUri1989242366")
             .setInputsSchemaUri("inputsSchemaUri1757461538")
-            .setInputs(Value.newBuilder().build())
+            .setInputs(Value.newBuilder().setBoolValue(true).build())
             .setState(JobState.forNumber(0))
             .setLabelingProgress(-685978914)
             .setCurrentSpend(Money.newBuilder().build())
@@ -670,7 +691,7 @@ public void getDataLabelingJobTest() throws Exception {
             .setLabelerCount(-1457777167)
             .setInstructionUri("instructionUri1989242366")
             .setInputsSchemaUri("inputsSchemaUri1757461538")
-            .setInputs(Value.newBuilder().build())
+            .setInputs(Value.newBuilder().setBoolValue(true).build())
             .setState(JobState.forNumber(0))
             .setLabelingProgress(-685978914)
             .setCurrentSpend(Money.newBuilder().build())
@@ -728,7 +749,7 @@ public void getDataLabelingJobTest2() throws Exception {
             .setLabelerCount(-1457777167)
             .setInstructionUri("instructionUri1989242366")
             .setInputsSchemaUri("inputsSchemaUri1757461538")
-            .setInputs(Value.newBuilder().build())
+            .setInputs(Value.newBuilder().setBoolValue(true).build())
             .setState(JobState.forNumber(0))
             .setLabelingProgress(-685978914)
             .setCurrentSpend(Money.newBuilder().build())
@@ -1528,7 +1549,7 @@ public void createBatchPredictionJobTest() throws Exception {
             .setModelVersionId("modelVersionId-2006125846")
             .setUnmanagedContainerModel(UnmanagedContainerModel.newBuilder().build())
             .setInputConfig(BatchPredictionJob.InputConfig.newBuilder().build())
-            .setModelParameters(Value.newBuilder().build())
+            .setModelParameters(Value.newBuilder().setBoolValue(true).build())
             .setOutputConfig(BatchPredictionJob.OutputConfig.newBuilder().build())
             .setDedicatedResources(BatchDedicatedResources.newBuilder().build())
             .setServiceAccount("serviceAccount1079137720")
@@ -1547,6 +1568,7 @@ public void createBatchPredictionJobTest() throws Exception {
             .setUpdateTime(Timestamp.newBuilder().build())
             .putAllLabels(new HashMap())
             .setEncryptionSpec(EncryptionSpec.newBuilder().build())
+            .setModelMonitoringConfig(ModelMonitoringConfig.newBuilder().build())
             .build();
     mockJobService.addResponse(expectedResponse);
 
@@ -1596,7 +1618,7 @@ public void createBatchPredictionJobTest2() throws Exception {
             .setModelVersionId("modelVersionId-2006125846")
             .setUnmanagedContainerModel(UnmanagedContainerModel.newBuilder().build())
             .setInputConfig(BatchPredictionJob.InputConfig.newBuilder().build())
-            .setModelParameters(Value.newBuilder().build())
+            .setModelParameters(Value.newBuilder().setBoolValue(true).build())
             .setOutputConfig(BatchPredictionJob.OutputConfig.newBuilder().build())
             .setDedicatedResources(BatchDedicatedResources.newBuilder().build())
             .setServiceAccount("serviceAccount1079137720")
@@ -1615,6 +1637,7 @@ public void createBatchPredictionJobTest2() throws Exception {
             .setUpdateTime(Timestamp.newBuilder().build())
             .putAllLabels(new HashMap())
             .setEncryptionSpec(EncryptionSpec.newBuilder().build())
+            .setModelMonitoringConfig(ModelMonitoringConfig.newBuilder().build())
             .build();
     mockJobService.addResponse(expectedResponse);
 
@@ -1664,7 +1687,7 @@ public void getBatchPredictionJobTest() throws Exception {
             .setModelVersionId("modelVersionId-2006125846")
             .setUnmanagedContainerModel(UnmanagedContainerModel.newBuilder().build())
             .setInputConfig(BatchPredictionJob.InputConfig.newBuilder().build())
-            .setModelParameters(Value.newBuilder().build())
+            .setModelParameters(Value.newBuilder().setBoolValue(true).build())
             .setOutputConfig(BatchPredictionJob.OutputConfig.newBuilder().build())
             .setDedicatedResources(BatchDedicatedResources.newBuilder().build())
             .setServiceAccount("serviceAccount1079137720")
@@ -1683,6 +1706,7 @@ public void getBatchPredictionJobTest() throws Exception {
             .setUpdateTime(Timestamp.newBuilder().build())
             .putAllLabels(new HashMap())
             .setEncryptionSpec(EncryptionSpec.newBuilder().build())
+            .setModelMonitoringConfig(ModelMonitoringConfig.newBuilder().build())
             .build();
     mockJobService.addResponse(expectedResponse);
 
@@ -1731,7 +1755,7 @@ public void getBatchPredictionJobTest2() throws Exception {
             .setModelVersionId("modelVersionId-2006125846")
             .setUnmanagedContainerModel(UnmanagedContainerModel.newBuilder().build())
             .setInputConfig(BatchPredictionJob.InputConfig.newBuilder().build())
-            .setModelParameters(Value.newBuilder().build())
+            .setModelParameters(Value.newBuilder().setBoolValue(true).build())
             .setOutputConfig(BatchPredictionJob.OutputConfig.newBuilder().build())
             .setDedicatedResources(BatchDedicatedResources.newBuilder().build())
             .setServiceAccount("serviceAccount1079137720")
@@ -1750,6 +1774,7 @@ public void getBatchPredictionJobTest2() throws Exception {
             .setUpdateTime(Timestamp.newBuilder().build())
             .putAllLabels(new HashMap())
             .setEncryptionSpec(EncryptionSpec.newBuilder().build())
+            .setModelMonitoringConfig(ModelMonitoringConfig.newBuilder().build())
             .build();
     mockJobService.addResponse(expectedResponse);
 
@@ -2054,7 +2079,7 @@ public void createModelDeploymentMonitoringJobTest() throws Exception {
             .setLoggingSamplingStrategy(SamplingStrategy.newBuilder().build())
             .setModelMonitoringAlertConfig(ModelMonitoringAlertConfig.newBuilder().build())
             .setPredictInstanceSchemaUri("predictInstanceSchemaUri-1702051043")
-            .setSamplePredictInstance(Value.newBuilder().build())
+            .setSamplePredictInstance(Value.newBuilder().setBoolValue(true).build())
             .setAnalysisInstanceSchemaUri("analysisInstanceSchemaUri-1686197382")
             .addAllBigqueryTables(new ArrayList())
             .setLogTtl(Duration.newBuilder().build())
@@ -2127,7 +2152,7 @@ public void createModelDeploymentMonitoringJobTest2() throws Exception {
             .setLoggingSamplingStrategy(SamplingStrategy.newBuilder().build())
             .setModelMonitoringAlertConfig(ModelMonitoringAlertConfig.newBuilder().build())
             .setPredictInstanceSchemaUri("predictInstanceSchemaUri-1702051043")
-            .setSamplePredictInstance(Value.newBuilder().build())
+            .setSamplePredictInstance(Value.newBuilder().setBoolValue(true).build())
             .setAnalysisInstanceSchemaUri("analysisInstanceSchemaUri-1686197382")
             .addAllBigqueryTables(new ArrayList())
             .setLogTtl(Duration.newBuilder().build())
@@ -2312,7 +2337,7 @@ public void getModelDeploymentMonitoringJobTest() throws Exception {
             .setLoggingSamplingStrategy(SamplingStrategy.newBuilder().build())
             .setModelMonitoringAlertConfig(ModelMonitoringAlertConfig.newBuilder().build())
             .setPredictInstanceSchemaUri("predictInstanceSchemaUri-1702051043")
-            .setSamplePredictInstance(Value.newBuilder().build())
+            .setSamplePredictInstance(Value.newBuilder().setBoolValue(true).build())
             .setAnalysisInstanceSchemaUri("analysisInstanceSchemaUri-1686197382")
             .addAllBigqueryTables(new ArrayList())
             .setLogTtl(Duration.newBuilder().build())
@@ -2382,7 +2407,7 @@ public void getModelDeploymentMonitoringJobTest2() throws Exception {
             .setLoggingSamplingStrategy(SamplingStrategy.newBuilder().build())
             .setModelMonitoringAlertConfig(ModelMonitoringAlertConfig.newBuilder().build())
             .setPredictInstanceSchemaUri("predictInstanceSchemaUri-1702051043")
-            .setSamplePredictInstance(Value.newBuilder().build())
+            .setSamplePredictInstance(Value.newBuilder().setBoolValue(true).build())
             .setAnalysisInstanceSchemaUri("analysisInstanceSchemaUri-1686197382")
             .addAllBigqueryTables(new ArrayList())
             .setLogTtl(Duration.newBuilder().build())
@@ -2546,7 +2571,7 @@ public void updateModelDeploymentMonitoringJobTest() throws Exception {
             .setLoggingSamplingStrategy(SamplingStrategy.newBuilder().build())
             .setModelMonitoringAlertConfig(ModelMonitoringAlertConfig.newBuilder().build())
             .setPredictInstanceSchemaUri("predictInstanceSchemaUri-1702051043")
-            .setSamplePredictInstance(Value.newBuilder().build())
+            .setSamplePredictInstance(Value.newBuilder().setBoolValue(true).build())
             .setAnalysisInstanceSchemaUri("analysisInstanceSchemaUri-1686197382")
             .addAllBigqueryTables(new ArrayList())
             .setLogTtl(Duration.newBuilder().build())
@@ -2848,4 +2873,265 @@ public void resumeModelDeploymentMonitoringJobExceptionTest2() throws Exception
       // Expected exception.
     }
   }
+
+  @Test
+  public void listLocationsTest() throws Exception {
+    Location responsesElement = Location.newBuilder().build();
+    ListLocationsResponse expectedResponse =
+        ListLocationsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllLocations(Arrays.asList(responsesElement))
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    ListLocationsRequest request =
+        ListLocationsRequest.newBuilder()
+            .setName("name3373707")
+            .setFilter("filter-1274492040")
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .build();
+
+    ListLocationsPagedResponse pagedListResponse = client.listLocations(request);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0));
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+    Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
+    Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listLocationsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      ListLocationsRequest request =
+          ListLocationsRequest.newBuilder()
+              .setName("name3373707")
+              .setFilter("filter-1274492040")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      client.listLocations(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getLocationTest() throws Exception {
+    Location expectedResponse =
+        Location.newBuilder()
+            .setName("name3373707")
+            .setLocationId("locationId1541836720")
+            .setDisplayName("displayName1714148973")
+            .putAllLabels(new HashMap())
+            .setMetadata(Any.newBuilder().build())
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+
+    Location actualResponse = client.getLocation(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getLocationExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+      client.getLocation(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void setIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    SetIamPolicyRequest request =
+        SetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setPolicy(Policy.newBuilder().build())
+            .setUpdateMask(FieldMask.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.setIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy());
+    Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void setIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      client.setIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    GetIamPolicyRequest request =
+        GetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setOptions(GetPolicyOptions.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.getIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getOptions(), actualRequest.getOptions());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      client.getIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void testIamPermissionsTest() throws Exception {
+    TestIamPermissionsResponse expectedResponse =
+        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    TestIamPermissionsRequest request =
+        TestIamPermissionsRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .addAllPermissions(new ArrayList())
+            .build();
+
+    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void testIamPermissionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      client.testIamPermissions(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceClientTest.java
index 73ef123eb764..02d5ecfe061a 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
 import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListArtifactsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListContextsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListExecutionsPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListMetadataSchemasPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.MetadataServiceClient.ListMetadataStoresPagedResponse;
 
@@ -30,10 +31,25 @@
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.gax.rpc.StatusCode;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.cloud.location.MockLocations;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
+import com.google.iam.v1.Binding;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.MockIAMPolicy;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.AbstractMessage;
 import com.google.protobuf.Any;
+import com.google.protobuf.ByteString;
 import com.google.protobuf.Empty;
 import com.google.protobuf.FieldMask;
 import com.google.protobuf.Struct;
@@ -56,6 +72,8 @@
 
 @Generated("by gapic-generator-java")
 public class MetadataServiceClientTest {
+  private static MockIAMPolicy mockIAMPolicy;
+  private static MockLocations mockLocations;
   private static MockMetadataService mockMetadataService;
   private static MockServiceHelper mockServiceHelper;
   private LocalChannelProvider channelProvider;
@@ -64,9 +82,12 @@ public class MetadataServiceClientTest {
   @BeforeClass
   public static void startStaticServer() {
     mockMetadataService = new MockMetadataService();
+    mockLocations = new MockLocations();
+    mockIAMPolicy = new MockIAMPolicy();
     mockServiceHelper =
         new MockServiceHelper(
-            UUID.randomUUID().toString(), Arrays.asList(mockMetadataService));
+            UUID.randomUUID().toString(),
+            Arrays.asList(mockMetadataService, mockLocations, mockIAMPolicy));
     mockServiceHelper.start();
   }
 
@@ -2856,4 +2877,265 @@ public void queryArtifactLineageSubgraphExceptionTest2() throws Exception {
       // Expected exception.
     }
   }
+
+  @Test
+  public void listLocationsTest() throws Exception {
+    Location responsesElement = Location.newBuilder().build();
+    ListLocationsResponse expectedResponse =
+        ListLocationsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllLocations(Arrays.asList(responsesElement))
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    ListLocationsRequest request =
+        ListLocationsRequest.newBuilder()
+            .setName("name3373707")
+            .setFilter("filter-1274492040")
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .build();
+
+    ListLocationsPagedResponse pagedListResponse = client.listLocations(request);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0));
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+    Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
+    Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listLocationsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      ListLocationsRequest request =
+          ListLocationsRequest.newBuilder()
+              .setName("name3373707")
+              .setFilter("filter-1274492040")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      client.listLocations(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getLocationTest() throws Exception {
+    Location expectedResponse =
+        Location.newBuilder()
+            .setName("name3373707")
+            .setLocationId("locationId1541836720")
+            .setDisplayName("displayName1714148973")
+            .putAllLabels(new HashMap())
+            .setMetadata(Any.newBuilder().build())
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+
+    Location actualResponse = client.getLocation(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getLocationExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+      client.getLocation(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void setIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    SetIamPolicyRequest request =
+        SetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setPolicy(Policy.newBuilder().build())
+            .setUpdateMask(FieldMask.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.setIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy());
+    Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void setIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      client.setIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    GetIamPolicyRequest request =
+        GetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setOptions(GetPolicyOptions.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.getIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getOptions(), actualRequest.getOptions());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      client.getIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void testIamPermissionsTest() throws Exception {
+    TestIamPermissionsResponse expectedResponse =
+        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    TestIamPermissionsRequest request =
+        TestIamPermissionsRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .addAllPermissions(new ArrayList())
+            .build();
+
+    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void testIamPermissionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      client.testIamPermissions(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceClientTest.java
index 7a9a9a787296..226caf577cc0 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1beta1;
 
+import static com.google.cloud.aiplatform.v1beta1.MigrationServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.MigrationServiceClient.SearchMigratableResourcesPagedResponse;
 
 import com.google.api.gax.core.NoCredentialsProvider;
@@ -26,14 +27,31 @@
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.gax.rpc.StatusCode;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.cloud.location.MockLocations;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
+import com.google.iam.v1.Binding;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.MockIAMPolicy;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.AbstractMessage;
 import com.google.protobuf.Any;
+import com.google.protobuf.ByteString;
+import com.google.protobuf.FieldMask;
 import io.grpc.StatusRuntimeException;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Arrays;
+import java.util.HashMap;
 import java.util.List;
 import java.util.UUID;
 import java.util.concurrent.ExecutionException;
@@ -47,6 +65,8 @@
 
 @Generated("by gapic-generator-java")
 public class MigrationServiceClientTest {
+  private static MockIAMPolicy mockIAMPolicy;
+  private static MockLocations mockLocations;
   private static MockMigrationService mockMigrationService;
   private static MockServiceHelper mockServiceHelper;
   private LocalChannelProvider channelProvider;
@@ -55,9 +75,12 @@ public class MigrationServiceClientTest {
   @BeforeClass
   public static void startStaticServer() {
     mockMigrationService = new MockMigrationService();
+    mockLocations = new MockLocations();
+    mockIAMPolicy = new MockIAMPolicy();
     mockServiceHelper =
         new MockServiceHelper(
-            UUID.randomUUID().toString(), Arrays.asList(mockMigrationService));
+            UUID.randomUUID().toString(),
+            Arrays.asList(mockMigrationService, mockLocations, mockIAMPolicy));
     mockServiceHelper.start();
   }
 
@@ -276,4 +299,265 @@ public void batchMigrateResourcesExceptionTest2() throws Exception {
       Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
+
+  @Test
+  public void listLocationsTest() throws Exception {
+    Location responsesElement = Location.newBuilder().build();
+    ListLocationsResponse expectedResponse =
+        ListLocationsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllLocations(Arrays.asList(responsesElement))
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    ListLocationsRequest request =
+        ListLocationsRequest.newBuilder()
+            .setName("name3373707")
+            .setFilter("filter-1274492040")
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .build();
+
+    ListLocationsPagedResponse pagedListResponse = client.listLocations(request);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0));
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+    Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
+    Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listLocationsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      ListLocationsRequest request =
+          ListLocationsRequest.newBuilder()
+              .setName("name3373707")
+              .setFilter("filter-1274492040")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      client.listLocations(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getLocationTest() throws Exception {
+    Location expectedResponse =
+        Location.newBuilder()
+            .setName("name3373707")
+            .setLocationId("locationId1541836720")
+            .setDisplayName("displayName1714148973")
+            .putAllLabels(new HashMap())
+            .setMetadata(Any.newBuilder().build())
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+
+    Location actualResponse = client.getLocation(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getLocationExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+      client.getLocation(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void setIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    SetIamPolicyRequest request =
+        SetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setPolicy(Policy.newBuilder().build())
+            .setUpdateMask(FieldMask.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.setIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy());
+    Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void setIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      client.setIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    GetIamPolicyRequest request =
+        GetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setOptions(GetPolicyOptions.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.getIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getOptions(), actualRequest.getOptions());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      client.getIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void testIamPermissionsTest() throws Exception {
+    TestIamPermissionsResponse expectedResponse =
+        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    TestIamPermissionsRequest request =
+        TestIamPermissionsRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .addAllPermissions(new ArrayList())
+            .build();
+
+    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void testIamPermissionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      client.testIamPermissions(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDatasetService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDatasetService.java
index 7fe184817523..a239bebf8ea1 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDatasetService.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDatasetService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDatasetServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDatasetServiceImpl.java
index 3c90ee9de42f..eccc100fb082 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDatasetServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDatasetServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockEndpointService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockEndpointService.java
index 5180242b1de3..9cfd57322571 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockEndpointService.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockEndpointService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockEndpointServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockEndpointServiceImpl.java
index 9ea5f3f61c0f..c5e3d79314b8 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockEndpointServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockEndpointServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreOnlineServingService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreOnlineServingService.java
index 03304574f4a7..f6366f318ab0 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreOnlineServingService.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreOnlineServingService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreOnlineServingServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreOnlineServingServiceImpl.java
index 684c4e4d7db9..0f579326bc9e 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreOnlineServingServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreOnlineServingServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreService.java
index 196b8558d3d3..e4844148d0e6 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreService.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreServiceImpl.java
index 6df9c88a0c5d..9c5b5f132c72 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockIndexEndpointService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockIndexEndpointService.java
index e5be4b95a7ea..894a8d340e59 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockIndexEndpointService.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockIndexEndpointService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockIndexEndpointServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockIndexEndpointServiceImpl.java
index 2173a5085a9f..755794d92e13 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockIndexEndpointServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockIndexEndpointServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockIndexService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockIndexService.java
index bda35690aadd..0bb03faf466a 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockIndexService.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockIndexService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockIndexServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockIndexServiceImpl.java
index 47544f9bc3a3..24593209d1ed 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockIndexServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockIndexServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockJobService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockJobService.java
index 257cec687d4b..fd39c415d8d3 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockJobService.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockJobService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockJobServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockJobServiceImpl.java
index bbc1c2b15d5c..aec3059cc82f 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockJobServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockJobServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockMetadataService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockMetadataService.java
index e560ad5249d5..e55c1b65377d 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockMetadataService.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockMetadataService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockMetadataServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockMetadataServiceImpl.java
index c26a0cf44951..beac9491ca53 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockMetadataServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockMetadataServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockMigrationService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockMigrationService.java
index b1b1feddebfc..a5ab36d5802d 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockMigrationService.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockMigrationService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockMigrationServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockMigrationServiceImpl.java
index 1c8b309d8dc1..fbcc7cadc1c0 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockMigrationServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockMigrationServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockModelService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockModelService.java
index 9574dcd7bbed..77ebf4ab27a4 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockModelService.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockModelService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockModelServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockModelServiceImpl.java
index be3f566f4f78..217b004ad8ea 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockModelServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockModelServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -162,6 +162,27 @@ public void updateModel(UpdateModelRequest request, StreamObserver respon
     }
   }
 
+  @Override
+  public void updateExplanationDataset(
+      UpdateExplanationDatasetRequest request, StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof Operation) {
+      requests.add(request);
+      responseObserver.onNext(((Operation) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method UpdateExplanationDataset, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  Operation.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
+
   @Override
   public void deleteModel(DeleteModelRequest request, StreamObserver responseObserver) {
     Object response = responses.poll();
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPipelineService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPipelineService.java
index a74dca604c70..5f0475723a08 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPipelineService.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPipelineService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPipelineServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPipelineServiceImpl.java
index 703ca53bf4a5..cd533f781f68 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPipelineServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPipelineServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPredictionService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPredictionService.java
index b45f9230db32..3e6e120b97b8 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPredictionService.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPredictionService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPredictionServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPredictionServiceImpl.java
index 61a54149bec9..fee34e2aa2f1 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPredictionServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPredictionServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockSpecialistPoolService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockSpecialistPoolService.java
index 1d72ec24aedc..b63c004d5051 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockSpecialistPoolService.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockSpecialistPoolService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockSpecialistPoolServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockSpecialistPoolServiceImpl.java
index 677f05fcd2a1..10b7defbb8c5 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockSpecialistPoolServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockSpecialistPoolServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockTensorboardService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockTensorboardService.java
index 0f31c6b4806a..b52148c226b1 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockTensorboardService.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockTensorboardService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockTensorboardServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockTensorboardServiceImpl.java
index 51eda2111d33..20fa2401fd63 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockTensorboardServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockTensorboardServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockVizierService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockVizierService.java
index 8217bfe63d3c..8b32dc43ccc7 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockVizierService.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockVizierService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockVizierServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockVizierServiceImpl.java
index 12562419a3c3..6562776079b3 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockVizierServiceImpl.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockVizierServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClientTest.java
index f79407848946..689a9f33bbe8 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1beta1;
 
+import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationSlicesPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelVersionsPagedResponse;
@@ -29,10 +30,25 @@
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.gax.rpc.StatusCode;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.cloud.location.MockLocations;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
+import com.google.iam.v1.Binding;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.MockIAMPolicy;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.AbstractMessage;
 import com.google.protobuf.Any;
+import com.google.protobuf.ByteString;
 import com.google.protobuf.Empty;
 import com.google.protobuf.FieldMask;
 import com.google.protobuf.Timestamp;
@@ -55,6 +71,8 @@
 
 @Generated("by gapic-generator-java")
 public class ModelServiceClientTest {
+  private static MockIAMPolicy mockIAMPolicy;
+  private static MockLocations mockLocations;
   private static MockModelService mockModelService;
   private static MockServiceHelper mockServiceHelper;
   private LocalChannelProvider channelProvider;
@@ -63,9 +81,12 @@ public class ModelServiceClientTest {
   @BeforeClass
   public static void startStaticServer() {
     mockModelService = new MockModelService();
+    mockLocations = new MockLocations();
+    mockIAMPolicy = new MockIAMPolicy();
     mockServiceHelper =
         new MockServiceHelper(
-            UUID.randomUUID().toString(), Arrays.asList(mockModelService));
+            UUID.randomUUID().toString(),
+            Arrays.asList(mockModelService, mockLocations, mockIAMPolicy));
     mockServiceHelper.start();
   }
 
@@ -205,7 +226,7 @@ public void getModelTest() throws Exception {
             .setVersionDescription("versionDescription-1736173564")
             .setPredictSchemata(PredictSchemata.newBuilder().build())
             .setMetadataSchemaUri("metadataSchemaUri781971868")
-            .setMetadata(Value.newBuilder().build())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .addAllSupportedExportFormats(new ArrayList())
             .setTrainingPipeline(
                 TrainingPipelineName.of("[PROJECT]", "[LOCATION]", "[TRAINING_PIPELINE]")
@@ -269,7 +290,7 @@ public void getModelTest2() throws Exception {
             .setVersionDescription("versionDescription-1736173564")
             .setPredictSchemata(PredictSchemata.newBuilder().build())
             .setMetadataSchemaUri("metadataSchemaUri781971868")
-            .setMetadata(Value.newBuilder().build())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .addAllSupportedExportFormats(new ArrayList())
             .setTrainingPipeline(
                 TrainingPipelineName.of("[PROJECT]", "[LOCATION]", "[TRAINING_PIPELINE]")
@@ -509,7 +530,7 @@ public void updateModelTest() throws Exception {
             .setVersionDescription("versionDescription-1736173564")
             .setPredictSchemata(PredictSchemata.newBuilder().build())
             .setMetadataSchemaUri("metadataSchemaUri781971868")
-            .setMetadata(Value.newBuilder().build())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .addAllSupportedExportFormats(new ArrayList())
             .setTrainingPipeline(
                 TrainingPipelineName.of("[PROJECT]", "[LOCATION]", "[TRAINING_PIPELINE]")
@@ -562,6 +583,98 @@ public void updateModelExceptionTest() throws Exception {
     }
   }
 
+  @Test
+  public void updateExplanationDatasetTest() throws Exception {
+    UpdateExplanationDatasetResponse expectedResponse =
+        UpdateExplanationDatasetResponse.newBuilder().build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("updateExplanationDatasetTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockModelService.addResponse(resultOperation);
+
+    ModelName model = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
+
+    UpdateExplanationDatasetResponse actualResponse =
+        client.updateExplanationDatasetAsync(model).get();
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockModelService.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    UpdateExplanationDatasetRequest actualRequest =
+        ((UpdateExplanationDatasetRequest) actualRequests.get(0));
+
+    Assert.assertEquals(model.toString(), actualRequest.getModel());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void updateExplanationDatasetExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockModelService.addException(exception);
+
+    try {
+      ModelName model = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
+      client.updateExplanationDatasetAsync(model).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+      Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
+      InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
+      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+    }
+  }
+
+  @Test
+  public void updateExplanationDatasetTest2() throws Exception {
+    UpdateExplanationDatasetResponse expectedResponse =
+        UpdateExplanationDatasetResponse.newBuilder().build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("updateExplanationDatasetTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockModelService.addResponse(resultOperation);
+
+    String model = "model104069929";
+
+    UpdateExplanationDatasetResponse actualResponse =
+        client.updateExplanationDatasetAsync(model).get();
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockModelService.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    UpdateExplanationDatasetRequest actualRequest =
+        ((UpdateExplanationDatasetRequest) actualRequests.get(0));
+
+    Assert.assertEquals(model, actualRequest.getModel());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void updateExplanationDatasetExceptionTest2() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockModelService.addException(exception);
+
+    try {
+      String model = "model104069929";
+      client.updateExplanationDatasetAsync(model).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+      Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
+      InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
+      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+    }
+  }
+
   @Test
   public void deleteModelTest() throws Exception {
     Empty expectedResponse = Empty.newBuilder().build();
@@ -744,7 +857,7 @@ public void mergeVersionAliasesTest() throws Exception {
             .setVersionDescription("versionDescription-1736173564")
             .setPredictSchemata(PredictSchemata.newBuilder().build())
             .setMetadataSchemaUri("metadataSchemaUri781971868")
-            .setMetadata(Value.newBuilder().build())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .addAllSupportedExportFormats(new ArrayList())
             .setTrainingPipeline(
                 TrainingPipelineName.of("[PROJECT]", "[LOCATION]", "[TRAINING_PIPELINE]")
@@ -811,7 +924,7 @@ public void mergeVersionAliasesTest2() throws Exception {
             .setVersionDescription("versionDescription-1736173564")
             .setPredictSchemata(PredictSchemata.newBuilder().build())
             .setMetadataSchemaUri("metadataSchemaUri781971868")
-            .setMetadata(Value.newBuilder().build())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .addAllSupportedExportFormats(new ArrayList())
             .setTrainingPipeline(
                 TrainingPipelineName.of("[PROJECT]", "[LOCATION]", "[TRAINING_PIPELINE]")
@@ -967,12 +1080,14 @@ public void importModelEvaluationTest() throws Exception {
             .setName(
                 ModelEvaluationName.of("[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]")
                     .toString())
+            .setDisplayName("displayName1714148973")
             .setMetricsSchemaUri("metricsSchemaUri-182209912")
-            .setMetrics(Value.newBuilder().build())
+            .setMetrics(Value.newBuilder().setBoolValue(true).build())
             .setCreateTime(Timestamp.newBuilder().build())
             .addAllSliceDimensions(new ArrayList())
             .setModelExplanation(ModelExplanation.newBuilder().build())
             .addAllExplanationSpecs(new ArrayList())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .build();
     mockModelService.addResponse(expectedResponse);
 
@@ -1017,12 +1132,14 @@ public void importModelEvaluationTest2() throws Exception {
             .setName(
                 ModelEvaluationName.of("[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]")
                     .toString())
+            .setDisplayName("displayName1714148973")
             .setMetricsSchemaUri("metricsSchemaUri-182209912")
-            .setMetrics(Value.newBuilder().build())
+            .setMetrics(Value.newBuilder().setBoolValue(true).build())
             .setCreateTime(Timestamp.newBuilder().build())
             .addAllSliceDimensions(new ArrayList())
             .setModelExplanation(ModelExplanation.newBuilder().build())
             .addAllExplanationSpecs(new ArrayList())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .build();
     mockModelService.addResponse(expectedResponse);
 
@@ -1067,12 +1184,14 @@ public void getModelEvaluationTest() throws Exception {
             .setName(
                 ModelEvaluationName.of("[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]")
                     .toString())
+            .setDisplayName("displayName1714148973")
             .setMetricsSchemaUri("metricsSchemaUri-182209912")
-            .setMetrics(Value.newBuilder().build())
+            .setMetrics(Value.newBuilder().setBoolValue(true).build())
             .setCreateTime(Timestamp.newBuilder().build())
             .addAllSliceDimensions(new ArrayList())
             .setModelExplanation(ModelExplanation.newBuilder().build())
             .addAllExplanationSpecs(new ArrayList())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .build();
     mockModelService.addResponse(expectedResponse);
 
@@ -1115,12 +1234,14 @@ public void getModelEvaluationTest2() throws Exception {
             .setName(
                 ModelEvaluationName.of("[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]")
                     .toString())
+            .setDisplayName("displayName1714148973")
             .setMetricsSchemaUri("metricsSchemaUri-182209912")
-            .setMetrics(Value.newBuilder().build())
+            .setMetrics(Value.newBuilder().setBoolValue(true).build())
             .setCreateTime(Timestamp.newBuilder().build())
             .addAllSliceDimensions(new ArrayList())
             .setModelExplanation(ModelExplanation.newBuilder().build())
             .addAllExplanationSpecs(new ArrayList())
+            .setMetadata(Value.newBuilder().setBoolValue(true).build())
             .build();
     mockModelService.addResponse(expectedResponse);
 
@@ -1254,7 +1375,7 @@ public void getModelEvaluationSliceTest() throws Exception {
                     .toString())
             .setSlice(ModelEvaluationSlice.Slice.newBuilder().build())
             .setMetricsSchemaUri("metricsSchemaUri-182209912")
-            .setMetrics(Value.newBuilder().build())
+            .setMetrics(Value.newBuilder().setBoolValue(true).build())
             .setCreateTime(Timestamp.newBuilder().build())
             .build();
     mockModelService.addResponse(expectedResponse);
@@ -1304,7 +1425,7 @@ public void getModelEvaluationSliceTest2() throws Exception {
                     .toString())
             .setSlice(ModelEvaluationSlice.Slice.newBuilder().build())
             .setMetricsSchemaUri("metricsSchemaUri-182209912")
-            .setMetrics(Value.newBuilder().build())
+            .setMetrics(Value.newBuilder().setBoolValue(true).build())
             .setCreateTime(Timestamp.newBuilder().build())
             .build();
     mockModelService.addResponse(expectedResponse);
@@ -1433,4 +1554,265 @@ public void listModelEvaluationSlicesExceptionTest2() throws Exception {
       // Expected exception.
     }
   }
+
+  @Test
+  public void listLocationsTest() throws Exception {
+    Location responsesElement = Location.newBuilder().build();
+    ListLocationsResponse expectedResponse =
+        ListLocationsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllLocations(Arrays.asList(responsesElement))
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    ListLocationsRequest request =
+        ListLocationsRequest.newBuilder()
+            .setName("name3373707")
+            .setFilter("filter-1274492040")
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .build();
+
+    ListLocationsPagedResponse pagedListResponse = client.listLocations(request);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0));
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+    Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
+    Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listLocationsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      ListLocationsRequest request =
+          ListLocationsRequest.newBuilder()
+              .setName("name3373707")
+              .setFilter("filter-1274492040")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      client.listLocations(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getLocationTest() throws Exception {
+    Location expectedResponse =
+        Location.newBuilder()
+            .setName("name3373707")
+            .setLocationId("locationId1541836720")
+            .setDisplayName("displayName1714148973")
+            .putAllLabels(new HashMap())
+            .setMetadata(Any.newBuilder().build())
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+
+    Location actualResponse = client.getLocation(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getLocationExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+      client.getLocation(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void setIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    SetIamPolicyRequest request =
+        SetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setPolicy(Policy.newBuilder().build())
+            .setUpdateMask(FieldMask.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.setIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy());
+    Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void setIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      client.setIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    GetIamPolicyRequest request =
+        GetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setOptions(GetPolicyOptions.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.getIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getOptions(), actualRequest.getOptions());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      client.getIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void testIamPermissionsTest() throws Exception {
+    TestIamPermissionsResponse expectedResponse =
+        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    TestIamPermissionsRequest request =
+        TestIamPermissionsRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .addAllPermissions(new ArrayList())
+            .build();
+
+    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void testIamPermissionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      client.testIamPermissions(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClientTest.java
index bc8baa411482..bb8595832d17 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1beta1;
 
+import static com.google.cloud.aiplatform.v1beta1.PipelineServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.PipelineServiceClient.ListPipelineJobsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.PipelineServiceClient.ListTrainingPipelinesPagedResponse;
 
@@ -27,17 +28,34 @@
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.gax.rpc.StatusCode;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.cloud.location.MockLocations;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
+import com.google.iam.v1.Binding;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.MockIAMPolicy;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.AbstractMessage;
 import com.google.protobuf.Any;
+import com.google.protobuf.ByteString;
 import com.google.protobuf.Empty;
+import com.google.protobuf.FieldMask;
 import com.google.protobuf.Struct;
 import com.google.protobuf.Timestamp;
 import com.google.protobuf.Value;
 import com.google.rpc.Status;
 import io.grpc.StatusRuntimeException;
 import java.io.IOException;
+import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.HashMap;
 import java.util.List;
@@ -53,6 +71,8 @@
 
 @Generated("by gapic-generator-java")
 public class PipelineServiceClientTest {
+  private static MockIAMPolicy mockIAMPolicy;
+  private static MockLocations mockLocations;
   private static MockPipelineService mockPipelineService;
   private static MockServiceHelper mockServiceHelper;
   private LocalChannelProvider channelProvider;
@@ -61,9 +81,12 @@ public class PipelineServiceClientTest {
   @BeforeClass
   public static void startStaticServer() {
     mockPipelineService = new MockPipelineService();
+    mockLocations = new MockLocations();
+    mockIAMPolicy = new MockIAMPolicy();
     mockServiceHelper =
         new MockServiceHelper(
-            UUID.randomUUID().toString(), Arrays.asList(mockPipelineService));
+            UUID.randomUUID().toString(),
+            Arrays.asList(mockPipelineService, mockLocations, mockIAMPolicy));
     mockServiceHelper.start();
   }
 
@@ -99,8 +122,8 @@ public void createTrainingPipelineTest() throws Exception {
             .setDisplayName("displayName1714148973")
             .setInputDataConfig(InputDataConfig.newBuilder().build())
             .setTrainingTaskDefinition("trainingTaskDefinition-1218104270")
-            .setTrainingTaskInputs(Value.newBuilder().build())
-            .setTrainingTaskMetadata(Value.newBuilder().build())
+            .setTrainingTaskInputs(Value.newBuilder().setBoolValue(true).build())
+            .setTrainingTaskMetadata(Value.newBuilder().setBoolValue(true).build())
             .setModelToUpload(Model.newBuilder().build())
             .setModelId("modelId1226956324")
             .setParentModel("parentModel998431903")
@@ -159,8 +182,8 @@ public void createTrainingPipelineTest2() throws Exception {
             .setDisplayName("displayName1714148973")
             .setInputDataConfig(InputDataConfig.newBuilder().build())
             .setTrainingTaskDefinition("trainingTaskDefinition-1218104270")
-            .setTrainingTaskInputs(Value.newBuilder().build())
-            .setTrainingTaskMetadata(Value.newBuilder().build())
+            .setTrainingTaskInputs(Value.newBuilder().setBoolValue(true).build())
+            .setTrainingTaskMetadata(Value.newBuilder().setBoolValue(true).build())
             .setModelToUpload(Model.newBuilder().build())
             .setModelId("modelId1226956324")
             .setParentModel("parentModel998431903")
@@ -219,8 +242,8 @@ public void getTrainingPipelineTest() throws Exception {
             .setDisplayName("displayName1714148973")
             .setInputDataConfig(InputDataConfig.newBuilder().build())
             .setTrainingTaskDefinition("trainingTaskDefinition-1218104270")
-            .setTrainingTaskInputs(Value.newBuilder().build())
-            .setTrainingTaskMetadata(Value.newBuilder().build())
+            .setTrainingTaskInputs(Value.newBuilder().setBoolValue(true).build())
+            .setTrainingTaskMetadata(Value.newBuilder().setBoolValue(true).build())
             .setModelToUpload(Model.newBuilder().build())
             .setModelId("modelId1226956324")
             .setParentModel("parentModel998431903")
@@ -277,8 +300,8 @@ public void getTrainingPipelineTest2() throws Exception {
             .setDisplayName("displayName1714148973")
             .setInputDataConfig(InputDataConfig.newBuilder().build())
             .setTrainingTaskDefinition("trainingTaskDefinition-1218104270")
-            .setTrainingTaskInputs(Value.newBuilder().build())
-            .setTrainingTaskMetadata(Value.newBuilder().build())
+            .setTrainingTaskInputs(Value.newBuilder().setBoolValue(true).build())
+            .setTrainingTaskMetadata(Value.newBuilder().setBoolValue(true).build())
             .setModelToUpload(Model.newBuilder().build())
             .setModelId("modelId1226956324")
             .setParentModel("parentModel998431903")
@@ -592,6 +615,8 @@ public void createPipelineJobTest() throws Exception {
             .setEncryptionSpec(EncryptionSpec.newBuilder().build())
             .setServiceAccount("serviceAccount1079137720")
             .setNetwork("network1843485230")
+            .setTemplateUri("templateUri1769633426")
+            .setTemplateMetadata(PipelineTemplateMetadata.newBuilder().build())
             .build();
     mockPipelineService.addResponse(expectedResponse);
 
@@ -650,6 +675,8 @@ public void createPipelineJobTest2() throws Exception {
             .setEncryptionSpec(EncryptionSpec.newBuilder().build())
             .setServiceAccount("serviceAccount1079137720")
             .setNetwork("network1843485230")
+            .setTemplateUri("templateUri1769633426")
+            .setTemplateMetadata(PipelineTemplateMetadata.newBuilder().build())
             .build();
     mockPipelineService.addResponse(expectedResponse);
 
@@ -708,6 +735,8 @@ public void getPipelineJobTest() throws Exception {
             .setEncryptionSpec(EncryptionSpec.newBuilder().build())
             .setServiceAccount("serviceAccount1079137720")
             .setNetwork("network1843485230")
+            .setTemplateUri("templateUri1769633426")
+            .setTemplateMetadata(PipelineTemplateMetadata.newBuilder().build())
             .build();
     mockPipelineService.addResponse(expectedResponse);
 
@@ -760,6 +789,8 @@ public void getPipelineJobTest2() throws Exception {
             .setEncryptionSpec(EncryptionSpec.newBuilder().build())
             .setServiceAccount("serviceAccount1079137720")
             .setNetwork("network1843485230")
+            .setTemplateUri("templateUri1769633426")
+            .setTemplateMetadata(PipelineTemplateMetadata.newBuilder().build())
             .build();
     mockPipelineService.addResponse(expectedResponse);
 
@@ -1032,4 +1063,265 @@ public void cancelPipelineJobExceptionTest2() throws Exception {
       // Expected exception.
     }
   }
+
+  @Test
+  public void listLocationsTest() throws Exception {
+    Location responsesElement = Location.newBuilder().build();
+    ListLocationsResponse expectedResponse =
+        ListLocationsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllLocations(Arrays.asList(responsesElement))
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    ListLocationsRequest request =
+        ListLocationsRequest.newBuilder()
+            .setName("name3373707")
+            .setFilter("filter-1274492040")
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .build();
+
+    ListLocationsPagedResponse pagedListResponse = client.listLocations(request);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0));
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+    Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
+    Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listLocationsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      ListLocationsRequest request =
+          ListLocationsRequest.newBuilder()
+              .setName("name3373707")
+              .setFilter("filter-1274492040")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      client.listLocations(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getLocationTest() throws Exception {
+    Location expectedResponse =
+        Location.newBuilder()
+            .setName("name3373707")
+            .setLocationId("locationId1541836720")
+            .setDisplayName("displayName1714148973")
+            .putAllLabels(new HashMap())
+            .setMetadata(Any.newBuilder().build())
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+
+    Location actualResponse = client.getLocation(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getLocationExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+      client.getLocation(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void setIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    SetIamPolicyRequest request =
+        SetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setPolicy(Policy.newBuilder().build())
+            .setUpdateMask(FieldMask.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.setIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy());
+    Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void setIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      client.setIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    GetIamPolicyRequest request =
+        GetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setOptions(GetPolicyOptions.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.getIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getOptions(), actualRequest.getOptions());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      client.getIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void testIamPermissionsTest() throws Exception {
+    TestIamPermissionsResponse expectedResponse =
+        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    TestIamPermissionsRequest request =
+        TestIamPermissionsRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .addAllPermissions(new ArrayList())
+            .build();
+
+    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void testIamPermissionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      client.testIamPermissions(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClientTest.java
index 586e3d56bdaa..3abedd0b7fb2 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,8 @@
 
 package com.google.cloud.aiplatform.v1beta1;
 
+import static com.google.cloud.aiplatform.v1beta1.PredictionServiceClient.ListLocationsPagedResponse;
+
 import com.google.api.HttpBody;
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.grpc.GaxGrpcProperties;
@@ -24,14 +26,31 @@
 import com.google.api.gax.grpc.testing.MockServiceHelper;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.InvalidArgumentException;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.cloud.location.MockLocations;
+import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
+import com.google.iam.v1.Binding;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.MockIAMPolicy;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.protobuf.AbstractMessage;
 import com.google.protobuf.Any;
 import com.google.protobuf.ByteString;
+import com.google.protobuf.FieldMask;
 import com.google.protobuf.Value;
 import io.grpc.StatusRuntimeException;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Arrays;
+import java.util.HashMap;
 import java.util.List;
 import java.util.UUID;
 import javax.annotation.Generated;
@@ -44,6 +63,8 @@
 
 @Generated("by gapic-generator-java")
 public class PredictionServiceClientTest {
+  private static MockIAMPolicy mockIAMPolicy;
+  private static MockLocations mockLocations;
   private static MockPredictionService mockPredictionService;
   private static MockServiceHelper mockServiceHelper;
   private LocalChannelProvider channelProvider;
@@ -52,9 +73,12 @@ public class PredictionServiceClientTest {
   @BeforeClass
   public static void startStaticServer() {
     mockPredictionService = new MockPredictionService();
+    mockLocations = new MockLocations();
+    mockIAMPolicy = new MockIAMPolicy();
     mockServiceHelper =
         new MockServiceHelper(
-            UUID.randomUUID().toString(), Arrays.asList(mockPredictionService));
+            UUID.randomUUID().toString(),
+            Arrays.asList(mockPredictionService, mockLocations, mockIAMPolicy));
     mockServiceHelper.start();
   }
 
@@ -94,7 +118,7 @@ public void predictTest() throws Exception {
 
     EndpointName endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
     List instances = new ArrayList<>();
-    Value parameters = Value.newBuilder().build();
+    Value parameters = Value.newBuilder().setBoolValue(true).build();
 
     PredictResponse actualResponse = client.predict(endpoint, instances, parameters);
     Assert.assertEquals(expectedResponse, actualResponse);
@@ -120,7 +144,7 @@ public void predictExceptionTest() throws Exception {
     try {
       EndpointName endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
       List instances = new ArrayList<>();
-      Value parameters = Value.newBuilder().build();
+      Value parameters = Value.newBuilder().setBoolValue(true).build();
       client.predict(endpoint, instances, parameters);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
@@ -142,7 +166,7 @@ public void predictTest2() throws Exception {
 
     String endpoint = "endpoint1741102485";
     List instances = new ArrayList<>();
-    Value parameters = Value.newBuilder().build();
+    Value parameters = Value.newBuilder().setBoolValue(true).build();
 
     PredictResponse actualResponse = client.predict(endpoint, instances, parameters);
     Assert.assertEquals(expectedResponse, actualResponse);
@@ -168,7 +192,7 @@ public void predictExceptionTest2() throws Exception {
     try {
       String endpoint = "endpoint1741102485";
       List instances = new ArrayList<>();
-      Value parameters = Value.newBuilder().build();
+      Value parameters = Value.newBuilder().setBoolValue(true).build();
       client.predict(endpoint, instances, parameters);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
@@ -274,7 +298,7 @@ public void explainTest() throws Exception {
 
     EndpointName endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
     List instances = new ArrayList<>();
-    Value parameters = Value.newBuilder().build();
+    Value parameters = Value.newBuilder().setBoolValue(true).build();
     String deployedModelId = "deployedModelId-1817547906";
 
     ExplainResponse actualResponse =
@@ -303,7 +327,7 @@ public void explainExceptionTest() throws Exception {
     try {
       EndpointName endpoint = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
       List instances = new ArrayList<>();
-      Value parameters = Value.newBuilder().build();
+      Value parameters = Value.newBuilder().setBoolValue(true).build();
       String deployedModelId = "deployedModelId-1817547906";
       client.explain(endpoint, instances, parameters, deployedModelId);
       Assert.fail("No exception raised");
@@ -324,7 +348,7 @@ public void explainTest2() throws Exception {
 
     String endpoint = "endpoint1741102485";
     List instances = new ArrayList<>();
-    Value parameters = Value.newBuilder().build();
+    Value parameters = Value.newBuilder().setBoolValue(true).build();
     String deployedModelId = "deployedModelId-1817547906";
 
     ExplainResponse actualResponse =
@@ -353,7 +377,7 @@ public void explainExceptionTest2() throws Exception {
     try {
       String endpoint = "endpoint1741102485";
       List instances = new ArrayList<>();
-      Value parameters = Value.newBuilder().build();
+      Value parameters = Value.newBuilder().setBoolValue(true).build();
       String deployedModelId = "deployedModelId-1817547906";
       client.explain(endpoint, instances, parameters, deployedModelId);
       Assert.fail("No exception raised");
@@ -361,4 +385,265 @@ public void explainExceptionTest2() throws Exception {
       // Expected exception.
     }
   }
+
+  @Test
+  public void listLocationsTest() throws Exception {
+    Location responsesElement = Location.newBuilder().build();
+    ListLocationsResponse expectedResponse =
+        ListLocationsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllLocations(Arrays.asList(responsesElement))
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    ListLocationsRequest request =
+        ListLocationsRequest.newBuilder()
+            .setName("name3373707")
+            .setFilter("filter-1274492040")
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .build();
+
+    ListLocationsPagedResponse pagedListResponse = client.listLocations(request);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0));
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+    Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
+    Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listLocationsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      ListLocationsRequest request =
+          ListLocationsRequest.newBuilder()
+              .setName("name3373707")
+              .setFilter("filter-1274492040")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      client.listLocations(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getLocationTest() throws Exception {
+    Location expectedResponse =
+        Location.newBuilder()
+            .setName("name3373707")
+            .setLocationId("locationId1541836720")
+            .setDisplayName("displayName1714148973")
+            .putAllLabels(new HashMap())
+            .setMetadata(Any.newBuilder().build())
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+
+    Location actualResponse = client.getLocation(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getLocationExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+      client.getLocation(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void setIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    SetIamPolicyRequest request =
+        SetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setPolicy(Policy.newBuilder().build())
+            .setUpdateMask(FieldMask.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.setIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy());
+    Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void setIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      client.setIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    GetIamPolicyRequest request =
+        GetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setOptions(GetPolicyOptions.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.getIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getOptions(), actualRequest.getOptions());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      client.getIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void testIamPermissionsTest() throws Exception {
+    TestIamPermissionsResponse expectedResponse =
+        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    TestIamPermissionsRequest request =
+        TestIamPermissionsRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .addAllPermissions(new ArrayList())
+            .build();
+
+    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void testIamPermissionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      client.testIamPermissions(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceClientTest.java
index b1027ec1a222..9e9494f755ea 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1beta1;
 
+import static com.google.cloud.aiplatform.v1beta1.SpecialistPoolServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.SpecialistPoolServiceClient.ListSpecialistPoolsPagedResponse;
 
 import com.google.api.gax.core.NoCredentialsProvider;
@@ -26,16 +27,32 @@
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.gax.rpc.StatusCode;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.cloud.location.MockLocations;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
+import com.google.iam.v1.Binding;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.MockIAMPolicy;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.AbstractMessage;
 import com.google.protobuf.Any;
+import com.google.protobuf.ByteString;
 import com.google.protobuf.Empty;
 import com.google.protobuf.FieldMask;
 import io.grpc.StatusRuntimeException;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Arrays;
+import java.util.HashMap;
 import java.util.List;
 import java.util.UUID;
 import java.util.concurrent.ExecutionException;
@@ -49,6 +66,8 @@
 
 @Generated("by gapic-generator-java")
 public class SpecialistPoolServiceClientTest {
+  private static MockIAMPolicy mockIAMPolicy;
+  private static MockLocations mockLocations;
   private static MockServiceHelper mockServiceHelper;
   private static MockSpecialistPoolService mockSpecialistPoolService;
   private LocalChannelProvider channelProvider;
@@ -57,10 +76,13 @@ public class SpecialistPoolServiceClientTest {
   @BeforeClass
   public static void startStaticServer() {
     mockSpecialistPoolService = new MockSpecialistPoolService();
+    mockLocations = new MockLocations();
+    mockIAMPolicy = new MockIAMPolicy();
     mockServiceHelper =
         new MockServiceHelper(
             UUID.randomUUID().toString(),
-            Arrays.asList(mockSpecialistPoolService));
+            Arrays.asList(
+                mockSpecialistPoolService, mockLocations, mockIAMPolicy));
     mockServiceHelper.start();
   }
 
@@ -518,4 +540,265 @@ public void updateSpecialistPoolExceptionTest() throws Exception {
       Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
+
+  @Test
+  public void listLocationsTest() throws Exception {
+    Location responsesElement = Location.newBuilder().build();
+    ListLocationsResponse expectedResponse =
+        ListLocationsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllLocations(Arrays.asList(responsesElement))
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    ListLocationsRequest request =
+        ListLocationsRequest.newBuilder()
+            .setName("name3373707")
+            .setFilter("filter-1274492040")
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .build();
+
+    ListLocationsPagedResponse pagedListResponse = client.listLocations(request);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0));
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+    Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
+    Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listLocationsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      ListLocationsRequest request =
+          ListLocationsRequest.newBuilder()
+              .setName("name3373707")
+              .setFilter("filter-1274492040")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      client.listLocations(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getLocationTest() throws Exception {
+    Location expectedResponse =
+        Location.newBuilder()
+            .setName("name3373707")
+            .setLocationId("locationId1541836720")
+            .setDisplayName("displayName1714148973")
+            .putAllLabels(new HashMap())
+            .setMetadata(Any.newBuilder().build())
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+
+    Location actualResponse = client.getLocation(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getLocationExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+      client.getLocation(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void setIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    SetIamPolicyRequest request =
+        SetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setPolicy(Policy.newBuilder().build())
+            .setUpdateMask(FieldMask.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.setIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy());
+    Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void setIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      client.setIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    GetIamPolicyRequest request =
+        GetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setOptions(GetPolicyOptions.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.getIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getOptions(), actualRequest.getOptions());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      client.getIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void testIamPermissionsTest() throws Exception {
+    TestIamPermissionsResponse expectedResponse =
+        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    TestIamPermissionsRequest request =
+        TestIamPermissionsRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .addAllPermissions(new ArrayList())
+            .build();
+
+    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void testIamPermissionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      client.testIamPermissions(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceClientTest.java
index 593801711fe3..51a6c5b629bf 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
 package com.google.cloud.aiplatform.v1beta1;
 
 import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ExportTensorboardTimeSeriesDataPagedResponse;
+import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardExperimentsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardRunsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.TensorboardServiceClient.ListTensorboardTimeSeriesPagedResponse;
@@ -32,7 +33,21 @@
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.gax.rpc.ServerStreamingCallable;
 import com.google.api.gax.rpc.StatusCode;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.cloud.location.MockLocations;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
+import com.google.iam.v1.Binding;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.MockIAMPolicy;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.AbstractMessage;
 import com.google.protobuf.Any;
@@ -58,6 +73,8 @@
 
 @Generated("by gapic-generator-java")
 public class TensorboardServiceClientTest {
+  private static MockIAMPolicy mockIAMPolicy;
+  private static MockLocations mockLocations;
   private static MockServiceHelper mockServiceHelper;
   private static MockTensorboardService mockTensorboardService;
   private LocalChannelProvider channelProvider;
@@ -66,9 +83,12 @@ public class TensorboardServiceClientTest {
   @BeforeClass
   public static void startStaticServer() {
     mockTensorboardService = new MockTensorboardService();
+    mockLocations = new MockLocations();
+    mockIAMPolicy = new MockIAMPolicy();
     mockServiceHelper =
         new MockServiceHelper(
-            UUID.randomUUID().toString(), Arrays.asList(mockTensorboardService));
+            UUID.randomUUID().toString(),
+            Arrays.asList(mockTensorboardService, mockLocations, mockIAMPolicy));
     mockServiceHelper.start();
   }
 
@@ -2573,4 +2593,265 @@ public void exportTensorboardTimeSeriesDataExceptionTest2() throws Exception {
       // Expected exception.
     }
   }
+
+  @Test
+  public void listLocationsTest() throws Exception {
+    Location responsesElement = Location.newBuilder().build();
+    ListLocationsResponse expectedResponse =
+        ListLocationsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllLocations(Arrays.asList(responsesElement))
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    ListLocationsRequest request =
+        ListLocationsRequest.newBuilder()
+            .setName("name3373707")
+            .setFilter("filter-1274492040")
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .build();
+
+    ListLocationsPagedResponse pagedListResponse = client.listLocations(request);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0));
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+    Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
+    Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listLocationsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      ListLocationsRequest request =
+          ListLocationsRequest.newBuilder()
+              .setName("name3373707")
+              .setFilter("filter-1274492040")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      client.listLocations(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getLocationTest() throws Exception {
+    Location expectedResponse =
+        Location.newBuilder()
+            .setName("name3373707")
+            .setLocationId("locationId1541836720")
+            .setDisplayName("displayName1714148973")
+            .putAllLabels(new HashMap())
+            .setMetadata(Any.newBuilder().build())
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+
+    Location actualResponse = client.getLocation(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getLocationExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+      client.getLocation(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void setIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    SetIamPolicyRequest request =
+        SetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setPolicy(Policy.newBuilder().build())
+            .setUpdateMask(FieldMask.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.setIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy());
+    Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void setIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      client.setIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    GetIamPolicyRequest request =
+        GetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setOptions(GetPolicyOptions.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.getIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getOptions(), actualRequest.getOptions());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      client.getIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void testIamPermissionsTest() throws Exception {
+    TestIamPermissionsResponse expectedResponse =
+        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    TestIamPermissionsRequest request =
+        TestIamPermissionsRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .addAllPermissions(new ArrayList())
+            .build();
+
+    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void testIamPermissionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      client.testIamPermissions(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/VizierServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/VizierServiceClientTest.java
index f6be914bdf7a..a2911543c865 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/VizierServiceClientTest.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/VizierServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 package com.google.cloud.aiplatform.v1beta1;
 
+import static com.google.cloud.aiplatform.v1beta1.VizierServiceClient.ListLocationsPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.VizierServiceClient.ListStudiesPagedResponse;
 import static com.google.cloud.aiplatform.v1beta1.VizierServiceClient.ListTrialsPagedResponse;
 
@@ -27,11 +28,27 @@
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.gax.rpc.StatusCode;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.cloud.location.MockLocations;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
+import com.google.iam.v1.Binding;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.MockIAMPolicy;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
 import com.google.protobuf.AbstractMessage;
 import com.google.protobuf.Any;
+import com.google.protobuf.ByteString;
 import com.google.protobuf.Empty;
+import com.google.protobuf.FieldMask;
 import com.google.protobuf.Timestamp;
 import io.grpc.StatusRuntimeException;
 import java.io.IOException;
@@ -51,6 +68,8 @@
 
 @Generated("by gapic-generator-java")
 public class VizierServiceClientTest {
+  private static MockIAMPolicy mockIAMPolicy;
+  private static MockLocations mockLocations;
   private static MockServiceHelper mockServiceHelper;
   private static MockVizierService mockVizierService;
   private LocalChannelProvider channelProvider;
@@ -59,9 +78,12 @@ public class VizierServiceClientTest {
   @BeforeClass
   public static void startStaticServer() {
     mockVizierService = new MockVizierService();
+    mockLocations = new MockLocations();
+    mockIAMPolicy = new MockIAMPolicy();
     mockServiceHelper =
         new MockServiceHelper(
-            UUID.randomUUID().toString(), Arrays.asList(mockVizierService));
+            UUID.randomUUID().toString(),
+            Arrays.asList(mockVizierService, mockLocations, mockIAMPolicy));
     mockServiceHelper.start();
   }
 
@@ -1214,4 +1236,265 @@ public void listOptimalTrialsExceptionTest2() throws Exception {
       // Expected exception.
     }
   }
+
+  @Test
+  public void listLocationsTest() throws Exception {
+    Location responsesElement = Location.newBuilder().build();
+    ListLocationsResponse expectedResponse =
+        ListLocationsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllLocations(Arrays.asList(responsesElement))
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    ListLocationsRequest request =
+        ListLocationsRequest.newBuilder()
+            .setName("name3373707")
+            .setFilter("filter-1274492040")
+            .setPageSize(883849137)
+            .setPageToken("pageToken873572522")
+            .build();
+
+    ListLocationsPagedResponse pagedListResponse = client.listLocations(request);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0));
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertEquals(request.getFilter(), actualRequest.getFilter());
+    Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
+    Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listLocationsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      ListLocationsRequest request =
+          ListLocationsRequest.newBuilder()
+              .setName("name3373707")
+              .setFilter("filter-1274492040")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      client.listLocations(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getLocationTest() throws Exception {
+    Location expectedResponse =
+        Location.newBuilder()
+            .setName("name3373707")
+            .setLocationId("locationId1541836720")
+            .setDisplayName("displayName1714148973")
+            .putAllLabels(new HashMap())
+            .setMetadata(Any.newBuilder().build())
+            .build();
+    mockLocations.addResponse(expectedResponse);
+
+    GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+
+    Location actualResponse = client.getLocation(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockLocations.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getName(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getLocationExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockLocations.addException(exception);
+
+    try {
+      GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+      client.getLocation(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void setIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    SetIamPolicyRequest request =
+        SetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setPolicy(Policy.newBuilder().build())
+            .setUpdateMask(FieldMask.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.setIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy());
+    Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void setIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      client.setIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getIamPolicyTest() throws Exception {
+    Policy expectedResponse =
+        Policy.newBuilder()
+            .setVersion(351608024)
+            .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
+            .setEtag(ByteString.EMPTY)
+            .build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    GetIamPolicyRequest request =
+        GetIamPolicyRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .setOptions(GetPolicyOptions.newBuilder().build())
+            .build();
+
+    Policy actualResponse = client.getIamPolicy(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getOptions(), actualRequest.getOptions());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getIamPolicyExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      client.getIamPolicy(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void testIamPermissionsTest() throws Exception {
+    TestIamPermissionsResponse expectedResponse =
+        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
+    mockIAMPolicy.addResponse(expectedResponse);
+
+    TestIamPermissionsRequest request =
+        TestIamPermissionsRequest.newBuilder()
+            .setResource(
+                EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                    .toString())
+            .addAllPermissions(new ArrayList())
+            .build();
+
+    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockIAMPolicy.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0));
+
+    Assert.assertEquals(request.getResource(), actualRequest.getResource());
+    Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void testIamPermissionsExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockIAMPolicy.addException(exception);
+
+    try {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+                      .toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      client.testIamPermissions(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
 }
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/location/MockLocations.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/location/MockLocations.java
new file mode 100644
index 000000000000..8ce43edf9b9a
--- /dev/null
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/location/MockLocations.java
@@ -0,0 +1,59 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      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.
+ */
+
+package com.google.cloud.location;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.grpc.testing.MockGrpcService;
+import com.google.protobuf.AbstractMessage;
+import io.grpc.ServerServiceDefinition;
+import java.util.List;
+import javax.annotation.Generated;
+
+@BetaApi
+@Generated("by gapic-generator-java")
+public class MockLocations implements MockGrpcService {
+  private final MockLocationsImpl serviceImpl;
+
+  public MockLocations() {
+    serviceImpl = new MockLocationsImpl();
+  }
+
+  @Override
+  public List getRequests() {
+    return serviceImpl.getRequests();
+  }
+
+  @Override
+  public void addResponse(AbstractMessage response) {
+    serviceImpl.addResponse(response);
+  }
+
+  @Override
+  public void addException(Exception exception) {
+    serviceImpl.addException(exception);
+  }
+
+  @Override
+  public ServerServiceDefinition getServiceDefinition() {
+    return serviceImpl.bindService();
+  }
+
+  @Override
+  public void reset() {
+    serviceImpl.reset();
+  }
+}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/location/MockLocationsImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/location/MockLocationsImpl.java
new file mode 100644
index 000000000000..d6b51f13d1ca
--- /dev/null
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/location/MockLocationsImpl.java
@@ -0,0 +1,101 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      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.
+ */
+
+package com.google.cloud.location;
+
+import com.google.api.core.BetaApi;
+import com.google.cloud.location.LocationsGrpc.LocationsImplBase;
+import com.google.protobuf.AbstractMessage;
+import io.grpc.stub.StreamObserver;
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Queue;
+import javax.annotation.Generated;
+
+@BetaApi
+@Generated("by gapic-generator-java")
+public class MockLocationsImpl extends LocationsImplBase {
+  private List requests;
+  private Queue responses;
+
+  public MockLocationsImpl() {
+    requests = new ArrayList<>();
+    responses = new LinkedList<>();
+  }
+
+  public List getRequests() {
+    return requests;
+  }
+
+  public void addResponse(AbstractMessage response) {
+    responses.add(response);
+  }
+
+  public void setResponses(List responses) {
+    this.responses = new LinkedList(responses);
+  }
+
+  public void addException(Exception exception) {
+    responses.add(exception);
+  }
+
+  public void reset() {
+    requests = new ArrayList<>();
+    responses = new LinkedList<>();
+  }
+
+  @Override
+  public void listLocations(
+      ListLocationsRequest request, StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof ListLocationsResponse) {
+      requests.add(request);
+      responseObserver.onNext(((ListLocationsResponse) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method ListLocations, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  ListLocationsResponse.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
+
+  @Override
+  public void getLocation(GetLocationRequest request, StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof Location) {
+      requests.add(request);
+      responseObserver.onNext(((Location) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method GetLocation, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  Location.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
+}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/iam/v1/MockIAMPolicy.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/iam/v1/MockIAMPolicy.java
new file mode 100644
index 000000000000..3d7859824b8a
--- /dev/null
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/iam/v1/MockIAMPolicy.java
@@ -0,0 +1,59 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      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.
+ */
+
+package com.google.iam.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.grpc.testing.MockGrpcService;
+import com.google.protobuf.AbstractMessage;
+import io.grpc.ServerServiceDefinition;
+import java.util.List;
+import javax.annotation.Generated;
+
+@BetaApi
+@Generated("by gapic-generator-java")
+public class MockIAMPolicy implements MockGrpcService {
+  private final MockIAMPolicyImpl serviceImpl;
+
+  public MockIAMPolicy() {
+    serviceImpl = new MockIAMPolicyImpl();
+  }
+
+  @Override
+  public List getRequests() {
+    return serviceImpl.getRequests();
+  }
+
+  @Override
+  public void addResponse(AbstractMessage response) {
+    serviceImpl.addResponse(response);
+  }
+
+  @Override
+  public void addException(Exception exception) {
+    serviceImpl.addException(exception);
+  }
+
+  @Override
+  public ServerServiceDefinition getServiceDefinition() {
+    return serviceImpl.bindService();
+  }
+
+  @Override
+  public void reset() {
+    serviceImpl.reset();
+  }
+}
diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/iam/v1/MockIAMPolicyImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/iam/v1/MockIAMPolicyImpl.java
new file mode 100644
index 000000000000..4c1f9e246b24
--- /dev/null
+++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/iam/v1/MockIAMPolicyImpl.java
@@ -0,0 +1,122 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      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.
+ */
+
+package com.google.iam.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.iam.v1.IAMPolicyGrpc.IAMPolicyImplBase;
+import com.google.protobuf.AbstractMessage;
+import io.grpc.stub.StreamObserver;
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Queue;
+import javax.annotation.Generated;
+
+@BetaApi
+@Generated("by gapic-generator-java")
+public class MockIAMPolicyImpl extends IAMPolicyImplBase {
+  private List requests;
+  private Queue responses;
+
+  public MockIAMPolicyImpl() {
+    requests = new ArrayList<>();
+    responses = new LinkedList<>();
+  }
+
+  public List getRequests() {
+    return requests;
+  }
+
+  public void addResponse(AbstractMessage response) {
+    responses.add(response);
+  }
+
+  public void setResponses(List responses) {
+    this.responses = new LinkedList(responses);
+  }
+
+  public void addException(Exception exception) {
+    responses.add(exception);
+  }
+
+  public void reset() {
+    requests = new ArrayList<>();
+    responses = new LinkedList<>();
+  }
+
+  @Override
+  public void testIamPermissions(
+      TestIamPermissionsRequest request,
+      StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof TestIamPermissionsResponse) {
+      requests.add(request);
+      responseObserver.onNext(((TestIamPermissionsResponse) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method TestIamPermissions, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  TestIamPermissionsResponse.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
+
+  @Override
+  public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof Policy) {
+      requests.add(request);
+      responseObserver.onNext(((Policy) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method SetIamPolicy, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  Policy.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
+
+  @Override
+  public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof Policy) {
+      requests.add(request);
+      responseObserver.onNext(((Policy) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method GetIamPolicy, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  Policy.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
+}
diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceGrpc.java
index 405933883cbb..ff1e189585fb 100644
--- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceGrpc.java
+++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceGrpc.java
@@ -164,6 +164,53 @@ private ModelServiceGrpc() {}
     return getListModelsMethod;
   }
 
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.aiplatform.v1.ListModelVersionsRequest,
+          com.google.cloud.aiplatform.v1.ListModelVersionsResponse>
+      getListModelVersionsMethod;
+
+  @io.grpc.stub.annotations.RpcMethod(
+      fullMethodName = SERVICE_NAME + '/' + "ListModelVersions",
+      requestType = com.google.cloud.aiplatform.v1.ListModelVersionsRequest.class,
+      responseType = com.google.cloud.aiplatform.v1.ListModelVersionsResponse.class,
+      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.aiplatform.v1.ListModelVersionsRequest,
+          com.google.cloud.aiplatform.v1.ListModelVersionsResponse>
+      getListModelVersionsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.aiplatform.v1.ListModelVersionsRequest,
+            com.google.cloud.aiplatform.v1.ListModelVersionsResponse>
+        getListModelVersionsMethod;
+    if ((getListModelVersionsMethod = ModelServiceGrpc.getListModelVersionsMethod) == null) {
+      synchronized (ModelServiceGrpc.class) {
+        if ((getListModelVersionsMethod = ModelServiceGrpc.getListModelVersionsMethod) == null) {
+          ModelServiceGrpc.getListModelVersionsMethod =
+              getListModelVersionsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListModelVersions"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.aiplatform.v1.ListModelVersionsRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.aiplatform.v1.ListModelVersionsResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ModelServiceMethodDescriptorSupplier("ListModelVersions"))
+                      .build();
+        }
+      }
+    }
+    return getListModelVersionsMethod;
+  }
+
   private static volatile io.grpc.MethodDescriptor<
           com.google.cloud.aiplatform.v1.UpdateModelRequest, com.google.cloud.aiplatform.v1.Model>
       getUpdateModelMethod;
@@ -248,6 +295,100 @@ private ModelServiceGrpc() {}
     return getDeleteModelMethod;
   }
 
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.aiplatform.v1.DeleteModelVersionRequest,
+          com.google.longrunning.Operation>
+      getDeleteModelVersionMethod;
+
+  @io.grpc.stub.annotations.RpcMethod(
+      fullMethodName = SERVICE_NAME + '/' + "DeleteModelVersion",
+      requestType = com.google.cloud.aiplatform.v1.DeleteModelVersionRequest.class,
+      responseType = com.google.longrunning.Operation.class,
+      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.aiplatform.v1.DeleteModelVersionRequest,
+          com.google.longrunning.Operation>
+      getDeleteModelVersionMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.aiplatform.v1.DeleteModelVersionRequest,
+            com.google.longrunning.Operation>
+        getDeleteModelVersionMethod;
+    if ((getDeleteModelVersionMethod = ModelServiceGrpc.getDeleteModelVersionMethod) == null) {
+      synchronized (ModelServiceGrpc.class) {
+        if ((getDeleteModelVersionMethod = ModelServiceGrpc.getDeleteModelVersionMethod) == null) {
+          ModelServiceGrpc.getDeleteModelVersionMethod =
+              getDeleteModelVersionMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteModelVersion"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.aiplatform.v1.DeleteModelVersionRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ModelServiceMethodDescriptorSupplier("DeleteModelVersion"))
+                      .build();
+        }
+      }
+    }
+    return getDeleteModelVersionMethod;
+  }
+
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest,
+          com.google.cloud.aiplatform.v1.Model>
+      getMergeVersionAliasesMethod;
+
+  @io.grpc.stub.annotations.RpcMethod(
+      fullMethodName = SERVICE_NAME + '/' + "MergeVersionAliases",
+      requestType = com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest.class,
+      responseType = com.google.cloud.aiplatform.v1.Model.class,
+      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest,
+          com.google.cloud.aiplatform.v1.Model>
+      getMergeVersionAliasesMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest,
+            com.google.cloud.aiplatform.v1.Model>
+        getMergeVersionAliasesMethod;
+    if ((getMergeVersionAliasesMethod = ModelServiceGrpc.getMergeVersionAliasesMethod) == null) {
+      synchronized (ModelServiceGrpc.class) {
+        if ((getMergeVersionAliasesMethod = ModelServiceGrpc.getMergeVersionAliasesMethod)
+            == null) {
+          ModelServiceGrpc.getMergeVersionAliasesMethod =
+              getMergeVersionAliasesMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "MergeVersionAliases"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.aiplatform.v1.Model.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new ModelServiceMethodDescriptorSupplier("MergeVersionAliases"))
+                      .build();
+        }
+      }
+    }
+    return getMergeVersionAliasesMethod;
+  }
+
   private static volatile io.grpc.MethodDescriptor<
           com.google.cloud.aiplatform.v1.ExportModelRequest, com.google.longrunning.Operation>
       getExportModelMethod;
@@ -626,6 +767,21 @@ public void listModels(
       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListModelsMethod(), responseObserver);
     }
 
+    /**
+     *
+     *
+     * 
+     * Lists versions of the specified model.
+     * 
+ */ + public void listModelVersions( + com.google.cloud.aiplatform.v1.ListModelVersionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListModelVersionsMethod(), responseObserver); + } + /** * * @@ -657,6 +813,37 @@ public void deleteModel( getDeleteModelMethod(), responseObserver); } + /** + * + * + *
+     * Deletes a Model version.
+     * Model version can only be deleted if there are no [DeployedModels][]
+     * created from it. Deleting the only version in the Model is not allowed. Use
+     * [DeleteModel][google.cloud.aiplatform.v1.ModelService.DeleteModel] for deleting the Model instead.
+     * 
+ */ + public void deleteModelVersion( + com.google.cloud.aiplatform.v1.DeleteModelVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteModelVersionMethod(), responseObserver); + } + + /** + * + * + *
+     * Merges a set of aliases for a Model version.
+     * 
+ */ + public void mergeVersionAliases( + com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getMergeVersionAliasesMethod(), responseObserver); + } + /** * * @@ -771,6 +958,13 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.cloud.aiplatform.v1.ListModelsRequest, com.google.cloud.aiplatform.v1.ListModelsResponse>( this, METHODID_LIST_MODELS))) + .addMethod( + getListModelVersionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.ListModelVersionsRequest, + com.google.cloud.aiplatform.v1.ListModelVersionsResponse>( + this, METHODID_LIST_MODEL_VERSIONS))) .addMethod( getUpdateModelMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -783,6 +977,18 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.cloud.aiplatform.v1.DeleteModelRequest, com.google.longrunning.Operation>(this, METHODID_DELETE_MODEL))) + .addMethod( + getDeleteModelVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.DeleteModelVersionRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_MODEL_VERSION))) + .addMethod( + getMergeVersionAliasesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest, + com.google.cloud.aiplatform.v1.Model>(this, METHODID_MERGE_VERSION_ALIASES))) .addMethod( getExportModelMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -891,6 +1097,23 @@ public void listModels( getChannel().newCall(getListModelsMethod(), getCallOptions()), request, responseObserver); } + /** + * + * + *
+     * Lists versions of the specified model.
+     * 
+ */ + public void listModelVersions( + com.google.cloud.aiplatform.v1.ListModelVersionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListModelVersionsMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -926,6 +1149,41 @@ public void deleteModel( responseObserver); } + /** + * + * + *
+     * Deletes a Model version.
+     * Model version can only be deleted if there are no [DeployedModels][]
+     * created from it. Deleting the only version in the Model is not allowed. Use
+     * [DeleteModel][google.cloud.aiplatform.v1.ModelService.DeleteModel] for deleting the Model instead.
+     * 
+ */ + public void deleteModelVersion( + com.google.cloud.aiplatform.v1.DeleteModelVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteModelVersionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Merges a set of aliases for a Model version.
+     * 
+ */ + public void mergeVersionAliases( + com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getMergeVersionAliasesMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1089,6 +1347,19 @@ public com.google.cloud.aiplatform.v1.ListModelsResponse listModels( getChannel(), getListModelsMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Lists versions of the specified model.
+     * 
+ */ + public com.google.cloud.aiplatform.v1.ListModelVersionsResponse listModelVersions( + com.google.cloud.aiplatform.v1.ListModelVersionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListModelVersionsMethod(), getCallOptions(), request); + } + /** * * @@ -1118,6 +1389,35 @@ public com.google.longrunning.Operation deleteModel( getChannel(), getDeleteModelMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Deletes a Model version.
+     * Model version can only be deleted if there are no [DeployedModels][]
+     * created from it. Deleting the only version in the Model is not allowed. Use
+     * [DeleteModel][google.cloud.aiplatform.v1.ModelService.DeleteModel] for deleting the Model instead.
+     * 
+ */ + public com.google.longrunning.Operation deleteModelVersion( + com.google.cloud.aiplatform.v1.DeleteModelVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteModelVersionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Merges a set of aliases for a Model version.
+     * 
+ */ + public com.google.cloud.aiplatform.v1.Model mergeVersionAliases( + com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getMergeVersionAliasesMethod(), getCallOptions(), request); + } + /** * * @@ -1259,6 +1559,20 @@ protected ModelServiceFutureStub build( getChannel().newCall(getListModelsMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Lists versions of the specified model.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1.ListModelVersionsResponse> + listModelVersions(com.google.cloud.aiplatform.v1.ListModelVersionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListModelVersionsMethod(), getCallOptions()), request); + } + /** * * @@ -1288,6 +1602,35 @@ protected ModelServiceFutureStub build( getChannel().newCall(getDeleteModelMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Deletes a Model version.
+     * Model version can only be deleted if there are no [DeployedModels][]
+     * created from it. Deleting the only version in the Model is not allowed. Use
+     * [DeleteModel][google.cloud.aiplatform.v1.ModelService.DeleteModel] for deleting the Model instead.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteModelVersion(com.google.cloud.aiplatform.v1.DeleteModelVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteModelVersionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Merges a set of aliases for a Model version.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + mergeVersionAliases(com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getMergeVersionAliasesMethod(), getCallOptions()), request); + } + /** * * @@ -1379,14 +1722,17 @@ protected ModelServiceFutureStub build( private static final int METHODID_UPLOAD_MODEL = 0; private static final int METHODID_GET_MODEL = 1; private static final int METHODID_LIST_MODELS = 2; - private static final int METHODID_UPDATE_MODEL = 3; - private static final int METHODID_DELETE_MODEL = 4; - private static final int METHODID_EXPORT_MODEL = 5; - private static final int METHODID_IMPORT_MODEL_EVALUATION = 6; - private static final int METHODID_GET_MODEL_EVALUATION = 7; - private static final int METHODID_LIST_MODEL_EVALUATIONS = 8; - private static final int METHODID_GET_MODEL_EVALUATION_SLICE = 9; - private static final int METHODID_LIST_MODEL_EVALUATION_SLICES = 10; + private static final int METHODID_LIST_MODEL_VERSIONS = 3; + private static final int METHODID_UPDATE_MODEL = 4; + private static final int METHODID_DELETE_MODEL = 5; + private static final int METHODID_DELETE_MODEL_VERSION = 6; + private static final int METHODID_MERGE_VERSION_ALIASES = 7; + private static final int METHODID_EXPORT_MODEL = 8; + private static final int METHODID_IMPORT_MODEL_EVALUATION = 9; + private static final int METHODID_GET_MODEL_EVALUATION = 10; + private static final int METHODID_LIST_MODEL_EVALUATIONS = 11; + private static final int METHODID_GET_MODEL_EVALUATION_SLICE = 12; + private static final int METHODID_LIST_MODEL_EVALUATION_SLICES = 13; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1421,6 +1767,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LIST_MODEL_VERSIONS: + serviceImpl.listModelVersions( + (com.google.cloud.aiplatform.v1.ListModelVersionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1.ListModelVersionsResponse>) + responseObserver); + break; case METHODID_UPDATE_MODEL: serviceImpl.updateModel( (com.google.cloud.aiplatform.v1.UpdateModelRequest) request, @@ -1431,6 +1784,16 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.aiplatform.v1.DeleteModelRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_DELETE_MODEL_VERSION: + serviceImpl.deleteModelVersion( + (com.google.cloud.aiplatform.v1.DeleteModelVersionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_MERGE_VERSION_ALIASES: + serviceImpl.mergeVersionAliases( + (com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_EXPORT_MODEL: serviceImpl.exportModel( (com.google.cloud.aiplatform.v1.ExportModelRequest) request, @@ -1535,8 +1898,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUploadModelMethod()) .addMethod(getGetModelMethod()) .addMethod(getListModelsMethod()) + .addMethod(getListModelVersionsMethod()) .addMethod(getUpdateModelMethod()) .addMethod(getDeleteModelMethod()) + .addMethod(getDeleteModelVersionMethod()) + .addMethod(getMergeVersionAliasesMethod()) .addMethod(getExportModelMethod()) .addMethod(getImportModelEvaluationMethod()) .addMethod(getGetModelEvaluationMethod()) diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceGrpc.java index d9c664efb94c..c3ab83c24d7d 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceGrpc.java @@ -261,6 +261,55 @@ private ModelServiceGrpc() {} return getUpdateModelMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest, + com.google.longrunning.Operation> + getUpdateExplanationDatasetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateExplanationDataset", + requestType = com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest, + com.google.longrunning.Operation> + getUpdateExplanationDatasetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest, + com.google.longrunning.Operation> + getUpdateExplanationDatasetMethod; + if ((getUpdateExplanationDatasetMethod = ModelServiceGrpc.getUpdateExplanationDatasetMethod) + == null) { + synchronized (ModelServiceGrpc.class) { + if ((getUpdateExplanationDatasetMethod = ModelServiceGrpc.getUpdateExplanationDatasetMethod) + == null) { + ModelServiceGrpc.getUpdateExplanationDatasetMethod = + getUpdateExplanationDatasetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateExplanationDataset")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ModelServiceMethodDescriptorSupplier("UpdateExplanationDataset")) + .build(); + } + } + } + return getUpdateExplanationDatasetMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1beta1.DeleteModelRequest, com.google.longrunning.Operation> getDeleteModelMethod; @@ -808,6 +857,20 @@ public void updateModel( getUpdateModelMethod(), responseObserver); } + /** + * + * + *
+     * Incrementally update the dataset used for an examples model.
+     * 
+ */ + public void updateExplanationDataset( + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateExplanationDatasetMethod(), responseObserver); + } + /** * * @@ -984,6 +1047,12 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.cloud.aiplatform.v1beta1.UpdateModelRequest, com.google.cloud.aiplatform.v1beta1.Model>(this, METHODID_UPDATE_MODEL))) + .addMethod( + getUpdateExplanationDatasetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_EXPLANATION_DATASET))) .addMethod( getDeleteModelMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -1144,6 +1213,22 @@ public void updateModel( responseObserver); } + /** + * + * + *
+     * Incrementally update the dataset used for an examples model.
+     * 
+ */ + public void updateExplanationDataset( + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateExplanationDatasetMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1388,6 +1473,19 @@ public com.google.cloud.aiplatform.v1beta1.Model updateModel( getChannel(), getUpdateModelMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Incrementally update the dataset used for an examples model.
+     * 
+ */ + public com.google.longrunning.Operation updateExplanationDataset( + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateExplanationDatasetMethod(), getCallOptions(), request); + } + /** * * @@ -1603,6 +1701,20 @@ protected ModelServiceFutureStub build( getChannel().newCall(getUpdateModelMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Incrementally update the dataset used for an examples model.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateExplanationDataset( + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateExplanationDatasetMethod(), getCallOptions()), request); + } + /** * * @@ -1745,15 +1857,16 @@ protected ModelServiceFutureStub build( private static final int METHODID_LIST_MODELS = 2; private static final int METHODID_LIST_MODEL_VERSIONS = 3; private static final int METHODID_UPDATE_MODEL = 4; - private static final int METHODID_DELETE_MODEL = 5; - private static final int METHODID_DELETE_MODEL_VERSION = 6; - private static final int METHODID_MERGE_VERSION_ALIASES = 7; - private static final int METHODID_EXPORT_MODEL = 8; - private static final int METHODID_IMPORT_MODEL_EVALUATION = 9; - private static final int METHODID_GET_MODEL_EVALUATION = 10; - private static final int METHODID_LIST_MODEL_EVALUATIONS = 11; - private static final int METHODID_GET_MODEL_EVALUATION_SLICE = 12; - private static final int METHODID_LIST_MODEL_EVALUATION_SLICES = 13; + private static final int METHODID_UPDATE_EXPLANATION_DATASET = 5; + private static final int METHODID_DELETE_MODEL = 6; + private static final int METHODID_DELETE_MODEL_VERSION = 7; + private static final int METHODID_MERGE_VERSION_ALIASES = 8; + private static final int METHODID_EXPORT_MODEL = 9; + private static final int METHODID_IMPORT_MODEL_EVALUATION = 10; + private static final int METHODID_GET_MODEL_EVALUATION = 11; + private static final int METHODID_LIST_MODEL_EVALUATIONS = 12; + private static final int METHODID_GET_MODEL_EVALUATION_SLICE = 13; + private static final int METHODID_LIST_MODEL_EVALUATION_SLICES = 14; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1802,6 +1915,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_UPDATE_EXPLANATION_DATASET: + serviceImpl.updateExplanationDataset( + (com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_DELETE_MODEL: serviceImpl.deleteModel( (com.google.cloud.aiplatform.v1beta1.DeleteModelRequest) request, @@ -1925,6 +2043,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListModelsMethod()) .addMethod(getListModelVersionsMethod()) .addMethod(getUpdateModelMethod()) + .addMethod(getUpdateExplanationDatasetMethod()) .addMethod(getDeleteModelMethod()) .addMethod(getDeleteModelVersionMethod()) .addMethod(getMergeVersionAliasesMethod()) diff --git a/java-aiplatform/owlbot.py b/java-aiplatform/owlbot.py index dac2bd903766..cac43dbb632d 100644 --- a/java-aiplatform/owlbot.py +++ b/java-aiplatform/owlbot.py @@ -26,5 +26,6 @@ ".kokoro/build.sh", ".kokoro/nightly/samples.cfg", ".kokoro/presubmit/samples.cfg", + ".github/CODEOWNERS" ] ) diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpecName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpecName.java index 5e9e54f682a0..137acdfa1eff 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpecName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpecName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ArtifactName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ArtifactName.java index 5e69479518cf..581dae4a3f72 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ArtifactName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ArtifactName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJob.java index 34edea591328..ce65e5707cee 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJob.java @@ -5408,6 +5408,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * Starting this job has no impact on any existing deployments of the Model * and their resources. * Exactly one of model and unmanaged_container_model must be set. + * The model resource name may contain version id or version alias to specify + * the version, if no version is specified, the default version will be used. * * * string model = 3 [(.google.api.resource_reference) = { ... } @@ -5435,6 +5437,8 @@ public java.lang.String getModel() { * Starting this job has no impact on any existing deployments of the Model * and their resources. * Exactly one of model and unmanaged_container_model must be set. + * The model resource name may contain version id or version alias to specify + * the version, if no version is specified, the default version will be used. * * * string model = 3 [(.google.api.resource_reference) = { ... } @@ -7812,6 +7816,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * Starting this job has no impact on any existing deployments of the Model * and their resources. * Exactly one of model and unmanaged_container_model must be set. + * The model resource name may contain version id or version alias to specify + * the version, if no version is specified, the default version will be used. * * * string model = 3 [(.google.api.resource_reference) = { ... } @@ -7838,6 +7844,8 @@ public java.lang.String getModel() { * Starting this job has no impact on any existing deployments of the Model * and their resources. * Exactly one of model and unmanaged_container_model must be set. + * The model resource name may contain version id or version alias to specify + * the version, if no version is specified, the default version will be used. * * * string model = 3 [(.google.api.resource_reference) = { ... } @@ -7864,6 +7872,8 @@ public com.google.protobuf.ByteString getModelBytes() { * Starting this job has no impact on any existing deployments of the Model * and their resources. * Exactly one of model and unmanaged_container_model must be set. + * The model resource name may contain version id or version alias to specify + * the version, if no version is specified, the default version will be used. * * * string model = 3 [(.google.api.resource_reference) = { ... } @@ -7889,6 +7899,8 @@ public Builder setModel(java.lang.String value) { * Starting this job has no impact on any existing deployments of the Model * and their resources. * Exactly one of model and unmanaged_container_model must be set. + * The model resource name may contain version id or version alias to specify + * the version, if no version is specified, the default version will be used. * * * string model = 3 [(.google.api.resource_reference) = { ... } @@ -7910,6 +7922,8 @@ public Builder clearModel() { * Starting this job has no impact on any existing deployments of the Model * and their resources. * Exactly one of model and unmanaged_container_model must be set. + * The model resource name may contain version id or version alias to specify + * the version, if no version is specified, the default version will be used. * * * string model = 3 [(.google.api.resource_reference) = { ... } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobName.java index 7d93de4fe6ef..b226fd451426 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobOrBuilder.java index 665e3e1f8095..dfba864eec8e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobOrBuilder.java @@ -82,6 +82,8 @@ public interface BatchPredictionJobOrBuilder * Starting this job has no impact on any existing deployments of the Model * and their resources. * Exactly one of model and unmanaged_container_model must be set. + * The model resource name may contain version id or version alias to specify + * the version, if no version is specified, the default version will be used. * * * string model = 3 [(.google.api.resource_reference) = { ... } @@ -98,6 +100,8 @@ public interface BatchPredictionJobOrBuilder * Starting this job has no impact on any existing deployments of the Model * and their resources. * Exactly one of model and unmanaged_container_model must be set. + * The model resource name may contain version id or version alias to specify + * the version, if no version is specified, the default version will be used. * * * string model = 3 [(.google.api.resource_reference) = { ... } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompletionStats.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompletionStats.java index 9df99d43b336..3cb685f7d016 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompletionStats.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompletionStats.java @@ -84,6 +84,11 @@ private CompletionStats( incompleteCount_ = input.readInt64(); break; } + case 40: + { + successfulForecastPointCount_ = input.readInt64(); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -178,6 +183,26 @@ public long getIncompleteCount() { return incompleteCount_; } + public static final int SUCCESSFUL_FORECAST_POINT_COUNT_FIELD_NUMBER = 5; + private long successfulForecastPointCount_; + /** + * + * + *
+   * Output only. The number of the successful forecast points that are generated by the
+   * forecasting model. This is ONLY used by the forecasting batch prediction.
+   * 
+ * + * int64 successful_forecast_point_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The successfulForecastPointCount. + */ + @java.lang.Override + public long getSuccessfulForecastPointCount() { + return successfulForecastPointCount_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -201,6 +226,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (incompleteCount_ != 0L) { output.writeInt64(3, incompleteCount_); } + if (successfulForecastPointCount_ != 0L) { + output.writeInt64(5, successfulForecastPointCount_); + } unknownFields.writeTo(output); } @@ -219,6 +247,10 @@ public int getSerializedSize() { if (incompleteCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, incompleteCount_); } + if (successfulForecastPointCount_ != 0L) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size(5, successfulForecastPointCount_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -238,6 +270,7 @@ public boolean equals(final java.lang.Object obj) { if (getSuccessfulCount() != other.getSuccessfulCount()) return false; if (getFailedCount() != other.getFailedCount()) return false; if (getIncompleteCount() != other.getIncompleteCount()) return false; + if (getSuccessfulForecastPointCount() != other.getSuccessfulForecastPointCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -255,6 +288,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCount()); hash = (37 * hash) + INCOMPLETE_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIncompleteCount()); + hash = (37 * hash) + SUCCESSFUL_FORECAST_POINT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSuccessfulForecastPointCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -407,6 +442,8 @@ public Builder clear() { incompleteCount_ = 0L; + successfulForecastPointCount_ = 0L; + return this; } @@ -437,6 +474,7 @@ public com.google.cloud.aiplatform.v1.CompletionStats buildPartial() { result.successfulCount_ = successfulCount_; result.failedCount_ = failedCount_; result.incompleteCount_ = incompleteCount_; + result.successfulForecastPointCount_ = successfulForecastPointCount_; onBuilt(); return result; } @@ -495,6 +533,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CompletionStats other) { if (other.getIncompleteCount() != 0L) { setIncompleteCount(other.getIncompleteCount()); } + if (other.getSuccessfulForecastPointCount() != 0L) { + setSuccessfulForecastPointCount(other.getSuccessfulForecastPointCount()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -692,6 +733,64 @@ public Builder clearIncompleteCount() { return this; } + private long successfulForecastPointCount_; + /** + * + * + *
+     * Output only. The number of the successful forecast points that are generated by the
+     * forecasting model. This is ONLY used by the forecasting batch prediction.
+     * 
+ * + * int64 successful_forecast_point_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The successfulForecastPointCount. + */ + @java.lang.Override + public long getSuccessfulForecastPointCount() { + return successfulForecastPointCount_; + } + /** + * + * + *
+     * Output only. The number of the successful forecast points that are generated by the
+     * forecasting model. This is ONLY used by the forecasting batch prediction.
+     * 
+ * + * int64 successful_forecast_point_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The successfulForecastPointCount to set. + * @return This builder for chaining. + */ + public Builder setSuccessfulForecastPointCount(long value) { + + successfulForecastPointCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The number of the successful forecast points that are generated by the
+     * forecasting model. This is ONLY used by the forecasting batch prediction.
+     * 
+ * + * int64 successful_forecast_point_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearSuccessfulForecastPointCount() { + + successfulForecastPointCount_ = 0L; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompletionStatsOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompletionStatsOrBuilder.java index d6a941614c49..a2250cae7e91 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompletionStatsOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompletionStatsOrBuilder.java @@ -65,4 +65,19 @@ public interface CompletionStatsOrBuilder * @return The incompleteCount. */ long getIncompleteCount(); + + /** + * + * + *
+   * Output only. The number of the successful forecast points that are generated by the
+   * forecasting model. This is ONLY used by the forecasting batch prediction.
+   * 
+ * + * int64 successful_forecast_point_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The successfulForecastPointCount. + */ + long getSuccessfulForecastPointCount(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompletionStatsProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompletionStatsProto.java index c9db404ad0bd..e9741b611f05 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompletionStatsProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompletionStatsProto.java @@ -42,16 +42,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n1google/cloud/aiplatform/v1/completion_" + "stats.proto\022\032google.cloud.aiplatform.v1\032" - + "\037google/api/field_behavior.proto\"j\n\017Comp" - + "letionStats\022\035\n\020successful_count\030\001 \001(\003B\003\340" - + "A\003\022\031\n\014failed_count\030\002 \001(\003B\003\340A\003\022\035\n\020incompl" - + "ete_count\030\003 \001(\003B\003\340A\003B\330\001\n\036com.google.clou" - + "d.aiplatform.v1B\024CompletionStatsProtoP\001Z" - + "Dgoogle.golang.org/genproto/googleapis/c" - + "loud/aiplatform/v1;aiplatform\252\002\032Google.C" - + "loud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlat" - + "form\\V1\352\002\035Google::Cloud::AIPlatform::V1b" - + "\006proto3" + + "\037google/api/field_behavior.proto\"\230\001\n\017Com" + + "pletionStats\022\035\n\020successful_count\030\001 \001(\003B\003" + + "\340A\003\022\031\n\014failed_count\030\002 \001(\003B\003\340A\003\022\035\n\020incomp" + + "lete_count\030\003 \001(\003B\003\340A\003\022,\n\037successful_fore" + + "cast_point_count\030\005 \001(\003B\003\340A\003B\330\001\n\036com.goog" + + "le.cloud.aiplatform.v1B\024CompletionStatsP" + + "rotoP\001ZDgoogle.golang.org/genproto/googl" + + "eapis/cloud/aiplatform/v1;aiplatform\252\002\032G" + + "oogle.Cloud.AIPlatform.V1\312\002\032Google\\Cloud" + + "\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatfo" + + "rm::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -65,7 +66,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_CompletionStats_descriptor, new java.lang.String[] { - "SuccessfulCount", "FailedCount", "IncompleteCount", + "SuccessfulCount", "FailedCount", "IncompleteCount", "SuccessfulForecastPointCount", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContextName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContextName.java index abef402dcc6f..3ecc51ef0680 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContextName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContextName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobName.java index 2498a0631c22..3b0416202772 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemName.java index b96088eeccfd..4b2ad28926f4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobName.java index cc0533296b8e..6098a6e845e5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetName.java index 96ff13499795..f5d8bd2bbaec 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteModelVersionRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteModelVersionRequest.java new file mode 100644 index 000000000000..5e8c28a92995 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteModelVersionRequest.java @@ -0,0 +1,667 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/model_service.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for [ModelService.DeleteModelVersion][google.cloud.aiplatform.v1.ModelService.DeleteModelVersion].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.DeleteModelVersionRequest} + */ +public final class DeleteModelVersionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.DeleteModelVersionRequest) + DeleteModelVersionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteModelVersionRequest.newBuilder() to construct. + private DeleteModelVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteModelVersionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteModelVersionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteModelVersionRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteModelVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteModelVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.DeleteModelVersionRequest.class, + com.google.cloud.aiplatform.v1.DeleteModelVersionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the model version to be deleted, with a version ID explicitly
+   * included.
+   * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the model version to be deleted, with a version ID explicitly
+   * included.
+   * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.DeleteModelVersionRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.DeleteModelVersionRequest other = + (com.google.cloud.aiplatform.v1.DeleteModelVersionRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.DeleteModelVersionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DeleteModelVersionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.DeleteModelVersionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DeleteModelVersionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.DeleteModelVersionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DeleteModelVersionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.DeleteModelVersionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.DeleteModelVersionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.DeleteModelVersionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.DeleteModelVersionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.DeleteModelVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.DeleteModelVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.DeleteModelVersionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [ModelService.DeleteModelVersion][google.cloud.aiplatform.v1.ModelService.DeleteModelVersion].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.DeleteModelVersionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.DeleteModelVersionRequest) + com.google.cloud.aiplatform.v1.DeleteModelVersionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteModelVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteModelVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.DeleteModelVersionRequest.class, + com.google.cloud.aiplatform.v1.DeleteModelVersionRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.DeleteModelVersionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteModelVersionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeleteModelVersionRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.DeleteModelVersionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeleteModelVersionRequest build() { + com.google.cloud.aiplatform.v1.DeleteModelVersionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeleteModelVersionRequest buildPartial() { + com.google.cloud.aiplatform.v1.DeleteModelVersionRequest result = + new com.google.cloud.aiplatform.v1.DeleteModelVersionRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.DeleteModelVersionRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.DeleteModelVersionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeleteModelVersionRequest other) { + if (other == com.google.cloud.aiplatform.v1.DeleteModelVersionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1.DeleteModelVersionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1.DeleteModelVersionRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the model version to be deleted, with a version ID explicitly
+     * included.
+     * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the model version to be deleted, with a version ID explicitly
+     * included.
+     * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the model version to be deleted, with a version ID explicitly
+     * included.
+     * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the model version to be deleted, with a version ID explicitly
+     * included.
+     * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the model version to be deleted, with a version ID explicitly
+     * included.
+     * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.DeleteModelVersionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.DeleteModelVersionRequest) + private static final com.google.cloud.aiplatform.v1.DeleteModelVersionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.DeleteModelVersionRequest(); + } + + public static com.google.cloud.aiplatform.v1.DeleteModelVersionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteModelVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteModelVersionRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeleteModelVersionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteModelVersionRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteModelVersionRequestOrBuilder.java new file mode 100644 index 000000000000..19da2c64cbca --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteModelVersionRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/model_service.proto + +package com.google.cloud.aiplatform.v1; + +public interface DeleteModelVersionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.DeleteModelVersionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the model version to be deleted, with a version ID explicitly
+   * included.
+   * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the model version to be deleted, with a version ID explicitly
+   * included.
+   * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModel.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModel.java index 05d91e351687..5ad47d0a2976 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModel.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModel.java @@ -450,8 +450,10 @@ public com.google.protobuf.ByteString getIdBytes() { * * *
-   * Required. The name of the Model that this is the deployment of. Note that the Model
-   * may be in a different location than the DeployedModel's Endpoint.
+   * Required. The resource name of the Model that this is the deployment of. Note that
+   * the Model may be in a different location than the DeployedModel's Endpoint.
+   * The resource name may contain version id or version alias to specify the
+   * version, if no version is specified, the default version will be deployed.
    * 
* * @@ -476,8 +478,10 @@ public java.lang.String getModel() { * * *
-   * Required. The name of the Model that this is the deployment of. Note that the Model
-   * may be in a different location than the DeployedModel's Endpoint.
+   * Required. The resource name of the Model that this is the deployment of. Note that
+   * the Model may be in a different location than the DeployedModel's Endpoint.
+   * The resource name may contain version id or version alias to specify the
+   * version, if no version is specified, the default version will be deployed.
    * 
* * @@ -1967,8 +1971,10 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The name of the Model that this is the deployment of. Note that the Model
-     * may be in a different location than the DeployedModel's Endpoint.
+     * Required. The resource name of the Model that this is the deployment of. Note that
+     * the Model may be in a different location than the DeployedModel's Endpoint.
+     * The resource name may contain version id or version alias to specify the
+     * version, if no version is specified, the default version will be deployed.
      * 
* * @@ -1992,8 +1998,10 @@ public java.lang.String getModel() { * * *
-     * Required. The name of the Model that this is the deployment of. Note that the Model
-     * may be in a different location than the DeployedModel's Endpoint.
+     * Required. The resource name of the Model that this is the deployment of. Note that
+     * the Model may be in a different location than the DeployedModel's Endpoint.
+     * The resource name may contain version id or version alias to specify the
+     * version, if no version is specified, the default version will be deployed.
      * 
* * @@ -2017,8 +2025,10 @@ public com.google.protobuf.ByteString getModelBytes() { * * *
-     * Required. The name of the Model that this is the deployment of. Note that the Model
-     * may be in a different location than the DeployedModel's Endpoint.
+     * Required. The resource name of the Model that this is the deployment of. Note that
+     * the Model may be in a different location than the DeployedModel's Endpoint.
+     * The resource name may contain version id or version alias to specify the
+     * version, if no version is specified, the default version will be deployed.
      * 
* * @@ -2041,8 +2051,10 @@ public Builder setModel(java.lang.String value) { * * *
-     * Required. The name of the Model that this is the deployment of. Note that the Model
-     * may be in a different location than the DeployedModel's Endpoint.
+     * Required. The resource name of the Model that this is the deployment of. Note that
+     * the Model may be in a different location than the DeployedModel's Endpoint.
+     * The resource name may contain version id or version alias to specify the
+     * version, if no version is specified, the default version will be deployed.
      * 
* * @@ -2061,8 +2073,10 @@ public Builder clearModel() { * * *
-     * Required. The name of the Model that this is the deployment of. Note that the Model
-     * may be in a different location than the DeployedModel's Endpoint.
+     * Required. The resource name of the Model that this is the deployment of. Note that
+     * the Model may be in a different location than the DeployedModel's Endpoint.
+     * The resource name may contain version id or version alias to specify the
+     * version, if no version is specified, the default version will be deployed.
      * 
* * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModelOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModelOrBuilder.java index 8868d27b1d01..8dc11d20fc9b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModelOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModelOrBuilder.java @@ -132,8 +132,10 @@ public interface DeployedModelOrBuilder * * *
-   * Required. The name of the Model that this is the deployment of. Note that the Model
-   * may be in a different location than the DeployedModel's Endpoint.
+   * Required. The resource name of the Model that this is the deployment of. Note that
+   * the Model may be in a different location than the DeployedModel's Endpoint.
+   * The resource name may contain version id or version alias to specify the
+   * version, if no version is specified, the default version will be deployed.
    * 
* * @@ -147,8 +149,10 @@ public interface DeployedModelOrBuilder * * *
-   * Required. The name of the Model that this is the deployment of. Note that the Model
-   * may be in a different location than the DeployedModel's Endpoint.
+   * Required. The resource name of the Model that this is the deployment of. Note that
+   * the Model may be in a different location than the DeployedModel's Endpoint.
+   * The resource name may contain version id or version alias to specify the
+   * version, if no version is specified, the default version will be deployed.
    * 
* * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointName.java index 4c41b1ad93a9..30a960965be6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EntityTypeName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EntityTypeName.java index c9d4783fb74c..addd79c5e762 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EntityTypeName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EntityTypeName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExamplesOverride.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExamplesOverride.java new file mode 100644 index 000000000000..5c2cb924bd2c --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExamplesOverride.java @@ -0,0 +1,1583 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/explanation.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Overrides for example-based explanations.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ExamplesOverride} + */ +public final class ExamplesOverride extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ExamplesOverride) + ExamplesOverrideOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExamplesOverride.newBuilder() to construct. + private ExamplesOverride(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExamplesOverride() { + restrictions_ = java.util.Collections.emptyList(); + dataFormat_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExamplesOverride(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExamplesOverride( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + neighborCount_ = input.readInt32(); + break; + } + case 16: + { + crowdingCount_ = input.readInt32(); + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + restrictions_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace>(); + mutable_bitField0_ |= 0x00000001; + } + restrictions_.add( + input.readMessage( + com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.parser(), + extensionRegistry)); + break; + } + case 32: + { + returnEmbeddings_ = input.readBool(); + break; + } + case 40: + { + int rawValue = input.readEnum(); + + dataFormat_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + restrictions_ = java.util.Collections.unmodifiableList(restrictions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1_ExamplesOverride_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1_ExamplesOverride_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ExamplesOverride.class, + com.google.cloud.aiplatform.v1.ExamplesOverride.Builder.class); + } + + /** + * + * + *
+   * Data format enum.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1.ExamplesOverride.DataFormat} + */ + public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified format. Must not be used.
+     * 
+ * + * DATA_FORMAT_UNSPECIFIED = 0; + */ + DATA_FORMAT_UNSPECIFIED(0), + /** + * + * + *
+     * Provided data is a set of model inputs.
+     * 
+ * + * INSTANCES = 1; + */ + INSTANCES(1), + /** + * + * + *
+     * Provided data is a set of embeddings.
+     * 
+ * + * EMBEDDINGS = 2; + */ + EMBEDDINGS(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified format. Must not be used.
+     * 
+ * + * DATA_FORMAT_UNSPECIFIED = 0; + */ + public static final int DATA_FORMAT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Provided data is a set of model inputs.
+     * 
+ * + * INSTANCES = 1; + */ + public static final int INSTANCES_VALUE = 1; + /** + * + * + *
+     * Provided data is a set of embeddings.
+     * 
+ * + * EMBEDDINGS = 2; + */ + public static final int EMBEDDINGS_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DataFormat valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DataFormat forNumber(int value) { + switch (value) { + case 0: + return DATA_FORMAT_UNSPECIFIED; + case 1: + return INSTANCES; + case 2: + return EMBEDDINGS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DataFormat findValueByNumber(int number) { + return DataFormat.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ExamplesOverride.getDescriptor().getEnumTypes().get(0); + } + + private static final DataFormat[] VALUES = values(); + + public static DataFormat valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DataFormat(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.ExamplesOverride.DataFormat) + } + + public static final int NEIGHBOR_COUNT_FIELD_NUMBER = 1; + private int neighborCount_; + /** + * + * + *
+   * The number of neighbors to return.
+   * 
+ * + * int32 neighbor_count = 1; + * + * @return The neighborCount. + */ + @java.lang.Override + public int getNeighborCount() { + return neighborCount_; + } + + public static final int CROWDING_COUNT_FIELD_NUMBER = 2; + private int crowdingCount_; + /** + * + * + *
+   * The number of neighbors to return that have the same crowding tag.
+   * 
+ * + * int32 crowding_count = 2; + * + * @return The crowdingCount. + */ + @java.lang.Override + public int getCrowdingCount() { + return crowdingCount_; + } + + public static final int RESTRICTIONS_FIELD_NUMBER = 3; + private java.util.List + restrictions_; + /** + * + * + *
+   * Restrict the resulting nearest neighbors to respect these constraints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + @java.lang.Override + public java.util.List + getRestrictionsList() { + return restrictions_; + } + /** + * + * + *
+   * Restrict the resulting nearest neighbors to respect these constraints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespaceOrBuilder> + getRestrictionsOrBuilderList() { + return restrictions_; + } + /** + * + * + *
+   * Restrict the resulting nearest neighbors to respect these constraints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + @java.lang.Override + public int getRestrictionsCount() { + return restrictions_.size(); + } + /** + * + * + *
+   * Restrict the resulting nearest neighbors to respect these constraints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace getRestrictions(int index) { + return restrictions_.get(index); + } + /** + * + * + *
+   * Restrict the resulting nearest neighbors to respect these constraints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespaceOrBuilder + getRestrictionsOrBuilder(int index) { + return restrictions_.get(index); + } + + public static final int RETURN_EMBEDDINGS_FIELD_NUMBER = 4; + private boolean returnEmbeddings_; + /** + * + * + *
+   * If true, return the embeddings instead of neighbors.
+   * 
+ * + * bool return_embeddings = 4; + * + * @return The returnEmbeddings. + */ + @java.lang.Override + public boolean getReturnEmbeddings() { + return returnEmbeddings_; + } + + public static final int DATA_FORMAT_FIELD_NUMBER = 5; + private int dataFormat_; + /** + * + * + *
+   * The format of the data being provided with each call.
+   * 
+ * + * .google.cloud.aiplatform.v1.ExamplesOverride.DataFormat data_format = 5; + * + * @return The enum numeric value on the wire for dataFormat. + */ + @java.lang.Override + public int getDataFormatValue() { + return dataFormat_; + } + /** + * + * + *
+   * The format of the data being provided with each call.
+   * 
+ * + * .google.cloud.aiplatform.v1.ExamplesOverride.DataFormat data_format = 5; + * + * @return The dataFormat. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ExamplesOverride.DataFormat getDataFormat() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1.ExamplesOverride.DataFormat result = + com.google.cloud.aiplatform.v1.ExamplesOverride.DataFormat.valueOf(dataFormat_); + return result == null + ? com.google.cloud.aiplatform.v1.ExamplesOverride.DataFormat.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (neighborCount_ != 0) { + output.writeInt32(1, neighborCount_); + } + if (crowdingCount_ != 0) { + output.writeInt32(2, crowdingCount_); + } + for (int i = 0; i < restrictions_.size(); i++) { + output.writeMessage(3, restrictions_.get(i)); + } + if (returnEmbeddings_ != false) { + output.writeBool(4, returnEmbeddings_); + } + if (dataFormat_ + != com.google.cloud.aiplatform.v1.ExamplesOverride.DataFormat.DATA_FORMAT_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, dataFormat_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (neighborCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, neighborCount_); + } + if (crowdingCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, crowdingCount_); + } + for (int i = 0; i < restrictions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, restrictions_.get(i)); + } + if (returnEmbeddings_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, returnEmbeddings_); + } + if (dataFormat_ + != com.google.cloud.aiplatform.v1.ExamplesOverride.DataFormat.DATA_FORMAT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, dataFormat_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.ExamplesOverride)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ExamplesOverride other = + (com.google.cloud.aiplatform.v1.ExamplesOverride) obj; + + if (getNeighborCount() != other.getNeighborCount()) return false; + if (getCrowdingCount() != other.getCrowdingCount()) return false; + if (!getRestrictionsList().equals(other.getRestrictionsList())) return false; + if (getReturnEmbeddings() != other.getReturnEmbeddings()) return false; + if (dataFormat_ != other.dataFormat_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NEIGHBOR_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getNeighborCount(); + hash = (37 * hash) + CROWDING_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCrowdingCount(); + if (getRestrictionsCount() > 0) { + hash = (37 * hash) + RESTRICTIONS_FIELD_NUMBER; + hash = (53 * hash) + getRestrictionsList().hashCode(); + } + hash = (37 * hash) + RETURN_EMBEDDINGS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnEmbeddings()); + hash = (37 * hash) + DATA_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + dataFormat_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ExamplesOverride parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ExamplesOverride parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ExamplesOverride parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ExamplesOverride parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ExamplesOverride parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ExamplesOverride parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ExamplesOverride parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ExamplesOverride parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ExamplesOverride parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ExamplesOverride parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ExamplesOverride parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ExamplesOverride parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1.ExamplesOverride prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Overrides for example-based explanations.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ExamplesOverride} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ExamplesOverride) + com.google.cloud.aiplatform.v1.ExamplesOverrideOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1_ExamplesOverride_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1_ExamplesOverride_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ExamplesOverride.class, + com.google.cloud.aiplatform.v1.ExamplesOverride.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ExamplesOverride.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRestrictionsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + neighborCount_ = 0; + + crowdingCount_ = 0; + + if (restrictionsBuilder_ == null) { + restrictions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + restrictionsBuilder_.clear(); + } + returnEmbeddings_ = false; + + dataFormat_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1_ExamplesOverride_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ExamplesOverride getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ExamplesOverride.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ExamplesOverride build() { + com.google.cloud.aiplatform.v1.ExamplesOverride result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ExamplesOverride buildPartial() { + com.google.cloud.aiplatform.v1.ExamplesOverride result = + new com.google.cloud.aiplatform.v1.ExamplesOverride(this); + int from_bitField0_ = bitField0_; + result.neighborCount_ = neighborCount_; + result.crowdingCount_ = crowdingCount_; + if (restrictionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + restrictions_ = java.util.Collections.unmodifiableList(restrictions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.restrictions_ = restrictions_; + } else { + result.restrictions_ = restrictionsBuilder_.build(); + } + result.returnEmbeddings_ = returnEmbeddings_; + result.dataFormat_ = dataFormat_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.ExamplesOverride) { + return mergeFrom((com.google.cloud.aiplatform.v1.ExamplesOverride) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ExamplesOverride other) { + if (other == com.google.cloud.aiplatform.v1.ExamplesOverride.getDefaultInstance()) + return this; + if (other.getNeighborCount() != 0) { + setNeighborCount(other.getNeighborCount()); + } + if (other.getCrowdingCount() != 0) { + setCrowdingCount(other.getCrowdingCount()); + } + if (restrictionsBuilder_ == null) { + if (!other.restrictions_.isEmpty()) { + if (restrictions_.isEmpty()) { + restrictions_ = other.restrictions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRestrictionsIsMutable(); + restrictions_.addAll(other.restrictions_); + } + onChanged(); + } + } else { + if (!other.restrictions_.isEmpty()) { + if (restrictionsBuilder_.isEmpty()) { + restrictionsBuilder_.dispose(); + restrictionsBuilder_ = null; + restrictions_ = other.restrictions_; + bitField0_ = (bitField0_ & ~0x00000001); + restrictionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRestrictionsFieldBuilder() + : null; + } else { + restrictionsBuilder_.addAllMessages(other.restrictions_); + } + } + } + if (other.getReturnEmbeddings() != false) { + setReturnEmbeddings(other.getReturnEmbeddings()); + } + if (other.dataFormat_ != 0) { + setDataFormatValue(other.getDataFormatValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1.ExamplesOverride parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1.ExamplesOverride) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int neighborCount_; + /** + * + * + *
+     * The number of neighbors to return.
+     * 
+ * + * int32 neighbor_count = 1; + * + * @return The neighborCount. + */ + @java.lang.Override + public int getNeighborCount() { + return neighborCount_; + } + /** + * + * + *
+     * The number of neighbors to return.
+     * 
+ * + * int32 neighbor_count = 1; + * + * @param value The neighborCount to set. + * @return This builder for chaining. + */ + public Builder setNeighborCount(int value) { + + neighborCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of neighbors to return.
+     * 
+ * + * int32 neighbor_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearNeighborCount() { + + neighborCount_ = 0; + onChanged(); + return this; + } + + private int crowdingCount_; + /** + * + * + *
+     * The number of neighbors to return that have the same crowding tag.
+     * 
+ * + * int32 crowding_count = 2; + * + * @return The crowdingCount. + */ + @java.lang.Override + public int getCrowdingCount() { + return crowdingCount_; + } + /** + * + * + *
+     * The number of neighbors to return that have the same crowding tag.
+     * 
+ * + * int32 crowding_count = 2; + * + * @param value The crowdingCount to set. + * @return This builder for chaining. + */ + public Builder setCrowdingCount(int value) { + + crowdingCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of neighbors to return that have the same crowding tag.
+     * 
+ * + * int32 crowding_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearCrowdingCount() { + + crowdingCount_ = 0; + onChanged(); + return this; + } + + private java.util.List + restrictions_ = java.util.Collections.emptyList(); + + private void ensureRestrictionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + restrictions_ = + new java.util.ArrayList( + restrictions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace, + com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.Builder, + com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespaceOrBuilder> + restrictionsBuilder_; + + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public java.util.List + getRestrictionsList() { + if (restrictionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(restrictions_); + } else { + return restrictionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public int getRestrictionsCount() { + if (restrictionsBuilder_ == null) { + return restrictions_.size(); + } else { + return restrictionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace getRestrictions(int index) { + if (restrictionsBuilder_ == null) { + return restrictions_.get(index); + } else { + return restrictionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public Builder setRestrictions( + int index, com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace value) { + if (restrictionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRestrictionsIsMutable(); + restrictions_.set(index, value); + onChanged(); + } else { + restrictionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public Builder setRestrictions( + int index, + com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.Builder builderForValue) { + if (restrictionsBuilder_ == null) { + ensureRestrictionsIsMutable(); + restrictions_.set(index, builderForValue.build()); + onChanged(); + } else { + restrictionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public Builder addRestrictions( + com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace value) { + if (restrictionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRestrictionsIsMutable(); + restrictions_.add(value); + onChanged(); + } else { + restrictionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public Builder addRestrictions( + int index, com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace value) { + if (restrictionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRestrictionsIsMutable(); + restrictions_.add(index, value); + onChanged(); + } else { + restrictionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public Builder addRestrictions( + com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.Builder builderForValue) { + if (restrictionsBuilder_ == null) { + ensureRestrictionsIsMutable(); + restrictions_.add(builderForValue.build()); + onChanged(); + } else { + restrictionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public Builder addRestrictions( + int index, + com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.Builder builderForValue) { + if (restrictionsBuilder_ == null) { + ensureRestrictionsIsMutable(); + restrictions_.add(index, builderForValue.build()); + onChanged(); + } else { + restrictionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public Builder addAllRestrictions( + java.lang.Iterable + values) { + if (restrictionsBuilder_ == null) { + ensureRestrictionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, restrictions_); + onChanged(); + } else { + restrictionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public Builder clearRestrictions() { + if (restrictionsBuilder_ == null) { + restrictions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + restrictionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public Builder removeRestrictions(int index) { + if (restrictionsBuilder_ == null) { + ensureRestrictionsIsMutable(); + restrictions_.remove(index); + onChanged(); + } else { + restrictionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.Builder + getRestrictionsBuilder(int index) { + return getRestrictionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespaceOrBuilder + getRestrictionsOrBuilder(int index) { + if (restrictionsBuilder_ == null) { + return restrictions_.get(index); + } else { + return restrictionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespaceOrBuilder> + getRestrictionsOrBuilderList() { + if (restrictionsBuilder_ != null) { + return restrictionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(restrictions_); + } + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.Builder + addRestrictionsBuilder() { + return getRestrictionsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.getDefaultInstance()); + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.Builder + addRestrictionsBuilder(int index) { + return getRestrictionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.getDefaultInstance()); + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public java.util.List + getRestrictionsBuilderList() { + return getRestrictionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace, + com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.Builder, + com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespaceOrBuilder> + getRestrictionsFieldBuilder() { + if (restrictionsBuilder_ == null) { + restrictionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace, + com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.Builder, + com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespaceOrBuilder>( + restrictions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + restrictions_ = null; + } + return restrictionsBuilder_; + } + + private boolean returnEmbeddings_; + /** + * + * + *
+     * If true, return the embeddings instead of neighbors.
+     * 
+ * + * bool return_embeddings = 4; + * + * @return The returnEmbeddings. + */ + @java.lang.Override + public boolean getReturnEmbeddings() { + return returnEmbeddings_; + } + /** + * + * + *
+     * If true, return the embeddings instead of neighbors.
+     * 
+ * + * bool return_embeddings = 4; + * + * @param value The returnEmbeddings to set. + * @return This builder for chaining. + */ + public Builder setReturnEmbeddings(boolean value) { + + returnEmbeddings_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If true, return the embeddings instead of neighbors.
+     * 
+ * + * bool return_embeddings = 4; + * + * @return This builder for chaining. + */ + public Builder clearReturnEmbeddings() { + + returnEmbeddings_ = false; + onChanged(); + return this; + } + + private int dataFormat_ = 0; + /** + * + * + *
+     * The format of the data being provided with each call.
+     * 
+ * + * .google.cloud.aiplatform.v1.ExamplesOverride.DataFormat data_format = 5; + * + * @return The enum numeric value on the wire for dataFormat. + */ + @java.lang.Override + public int getDataFormatValue() { + return dataFormat_; + } + /** + * + * + *
+     * The format of the data being provided with each call.
+     * 
+ * + * .google.cloud.aiplatform.v1.ExamplesOverride.DataFormat data_format = 5; + * + * @param value The enum numeric value on the wire for dataFormat to set. + * @return This builder for chaining. + */ + public Builder setDataFormatValue(int value) { + + dataFormat_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The format of the data being provided with each call.
+     * 
+ * + * .google.cloud.aiplatform.v1.ExamplesOverride.DataFormat data_format = 5; + * + * @return The dataFormat. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ExamplesOverride.DataFormat getDataFormat() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1.ExamplesOverride.DataFormat result = + com.google.cloud.aiplatform.v1.ExamplesOverride.DataFormat.valueOf(dataFormat_); + return result == null + ? com.google.cloud.aiplatform.v1.ExamplesOverride.DataFormat.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The format of the data being provided with each call.
+     * 
+ * + * .google.cloud.aiplatform.v1.ExamplesOverride.DataFormat data_format = 5; + * + * @param value The dataFormat to set. + * @return This builder for chaining. + */ + public Builder setDataFormat(com.google.cloud.aiplatform.v1.ExamplesOverride.DataFormat value) { + if (value == null) { + throw new NullPointerException(); + } + + dataFormat_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The format of the data being provided with each call.
+     * 
+ * + * .google.cloud.aiplatform.v1.ExamplesOverride.DataFormat data_format = 5; + * + * @return This builder for chaining. + */ + public Builder clearDataFormat() { + + dataFormat_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.ExamplesOverride) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ExamplesOverride) + private static final com.google.cloud.aiplatform.v1.ExamplesOverride DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ExamplesOverride(); + } + + public static com.google.cloud.aiplatform.v1.ExamplesOverride getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExamplesOverride parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExamplesOverride(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ExamplesOverride getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExamplesOverrideOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExamplesOverrideOrBuilder.java new file mode 100644 index 000000000000..87c0e1ce20f2 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExamplesOverrideOrBuilder.java @@ -0,0 +1,148 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/explanation.proto + +package com.google.cloud.aiplatform.v1; + +public interface ExamplesOverrideOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ExamplesOverride) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The number of neighbors to return.
+   * 
+ * + * int32 neighbor_count = 1; + * + * @return The neighborCount. + */ + int getNeighborCount(); + + /** + * + * + *
+   * The number of neighbors to return that have the same crowding tag.
+   * 
+ * + * int32 crowding_count = 2; + * + * @return The crowdingCount. + */ + int getCrowdingCount(); + + /** + * + * + *
+   * Restrict the resulting nearest neighbors to respect these constraints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + java.util.List + getRestrictionsList(); + /** + * + * + *
+   * Restrict the resulting nearest neighbors to respect these constraints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace getRestrictions(int index); + /** + * + * + *
+   * Restrict the resulting nearest neighbors to respect these constraints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + int getRestrictionsCount(); + /** + * + * + *
+   * Restrict the resulting nearest neighbors to respect these constraints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + java.util.List + getRestrictionsOrBuilderList(); + /** + * + * + *
+   * Restrict the resulting nearest neighbors to respect these constraints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespaceOrBuilder getRestrictionsOrBuilder( + int index); + + /** + * + * + *
+   * If true, return the embeddings instead of neighbors.
+   * 
+ * + * bool return_embeddings = 4; + * + * @return The returnEmbeddings. + */ + boolean getReturnEmbeddings(); + + /** + * + * + *
+   * The format of the data being provided with each call.
+   * 
+ * + * .google.cloud.aiplatform.v1.ExamplesOverride.DataFormat data_format = 5; + * + * @return The enum numeric value on the wire for dataFormat. + */ + int getDataFormatValue(); + /** + * + * + *
+   * The format of the data being provided with each call.
+   * 
+ * + * .google.cloud.aiplatform.v1.ExamplesOverride.DataFormat data_format = 5; + * + * @return The dataFormat. + */ + com.google.cloud.aiplatform.v1.ExamplesOverride.DataFormat getDataFormat(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExamplesRestrictionsNamespace.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExamplesRestrictionsNamespace.java new file mode 100644 index 000000000000..c93b3d18248e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExamplesRestrictionsNamespace.java @@ -0,0 +1,1198 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/explanation.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Restrictions namespace for example-based explanations overrides.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace} + */ +public final class ExamplesRestrictionsNamespace extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace) + ExamplesRestrictionsNamespaceOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExamplesRestrictionsNamespace.newBuilder() to construct. + private ExamplesRestrictionsNamespace(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExamplesRestrictionsNamespace() { + namespaceName_ = ""; + allow_ = com.google.protobuf.LazyStringArrayList.EMPTY; + deny_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExamplesRestrictionsNamespace(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExamplesRestrictionsNamespace( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + namespaceName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + allow_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + allow_.add(s); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + deny_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + deny_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + allow_ = allow_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + deny_ = deny_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1_ExamplesRestrictionsNamespace_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1_ExamplesRestrictionsNamespace_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.class, + com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.Builder.class); + } + + public static final int NAMESPACE_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object namespaceName_; + /** + * + * + *
+   * The namespace name.
+   * 
+ * + * string namespace_name = 1; + * + * @return The namespaceName. + */ + @java.lang.Override + public java.lang.String getNamespaceName() { + java.lang.Object ref = namespaceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + namespaceName_ = s; + return s; + } + } + /** + * + * + *
+   * The namespace name.
+   * 
+ * + * string namespace_name = 1; + * + * @return The bytes for namespaceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNamespaceNameBytes() { + java.lang.Object ref = namespaceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + namespaceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList allow_; + /** + * + * + *
+   * The list of allowed tags.
+   * 
+ * + * repeated string allow = 2; + * + * @return A list containing the allow. + */ + public com.google.protobuf.ProtocolStringList getAllowList() { + return allow_; + } + /** + * + * + *
+   * The list of allowed tags.
+   * 
+ * + * repeated string allow = 2; + * + * @return The count of allow. + */ + public int getAllowCount() { + return allow_.size(); + } + /** + * + * + *
+   * The list of allowed tags.
+   * 
+ * + * repeated string allow = 2; + * + * @param index The index of the element to return. + * @return The allow at the given index. + */ + public java.lang.String getAllow(int index) { + return allow_.get(index); + } + /** + * + * + *
+   * The list of allowed tags.
+   * 
+ * + * repeated string allow = 2; + * + * @param index The index of the value to return. + * @return The bytes of the allow at the given index. + */ + public com.google.protobuf.ByteString getAllowBytes(int index) { + return allow_.getByteString(index); + } + + public static final int DENY_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList deny_; + /** + * + * + *
+   * The list of deny tags.
+   * 
+ * + * repeated string deny = 3; + * + * @return A list containing the deny. + */ + public com.google.protobuf.ProtocolStringList getDenyList() { + return deny_; + } + /** + * + * + *
+   * The list of deny tags.
+   * 
+ * + * repeated string deny = 3; + * + * @return The count of deny. + */ + public int getDenyCount() { + return deny_.size(); + } + /** + * + * + *
+   * The list of deny tags.
+   * 
+ * + * repeated string deny = 3; + * + * @param index The index of the element to return. + * @return The deny at the given index. + */ + public java.lang.String getDeny(int index) { + return deny_.get(index); + } + /** + * + * + *
+   * The list of deny tags.
+   * 
+ * + * repeated string deny = 3; + * + * @param index The index of the value to return. + * @return The bytes of the deny at the given index. + */ + public com.google.protobuf.ByteString getDenyBytes(int index) { + return deny_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespaceName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namespaceName_); + } + for (int i = 0; i < allow_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, allow_.getRaw(i)); + } + for (int i = 0; i < deny_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, deny_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespaceName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, namespaceName_); + } + { + int dataSize = 0; + for (int i = 0; i < allow_.size(); i++) { + dataSize += computeStringSizeNoTag(allow_.getRaw(i)); + } + size += dataSize; + size += 1 * getAllowList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < deny_.size(); i++) { + dataSize += computeStringSizeNoTag(deny_.getRaw(i)); + } + size += dataSize; + size += 1 * getDenyList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace other = + (com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace) obj; + + if (!getNamespaceName().equals(other.getNamespaceName())) return false; + if (!getAllowList().equals(other.getAllowList())) return false; + if (!getDenyList().equals(other.getDenyList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAMESPACE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getNamespaceName().hashCode(); + if (getAllowCount() > 0) { + hash = (37 * hash) + ALLOW_FIELD_NUMBER; + hash = (53 * hash) + getAllowList().hashCode(); + } + if (getDenyCount() > 0) { + hash = (37 * hash) + DENY_FIELD_NUMBER; + hash = (53 * hash) + getDenyList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Restrictions namespace for example-based explanations overrides.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace) + com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespaceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1_ExamplesRestrictionsNamespace_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1_ExamplesRestrictionsNamespace_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.class, + com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + namespaceName_ = ""; + + allow_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + deny_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1_ExamplesRestrictionsNamespace_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace build() { + com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace buildPartial() { + com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace result = + new com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace(this); + int from_bitField0_ = bitField0_; + result.namespaceName_ = namespaceName_; + if (((bitField0_ & 0x00000001) != 0)) { + allow_ = allow_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.allow_ = allow_; + if (((bitField0_ & 0x00000002) != 0)) { + deny_ = deny_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.deny_ = deny_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace) { + return mergeFrom((com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace other) { + if (other + == com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.getDefaultInstance()) + return this; + if (!other.getNamespaceName().isEmpty()) { + namespaceName_ = other.namespaceName_; + onChanged(); + } + if (!other.allow_.isEmpty()) { + if (allow_.isEmpty()) { + allow_ = other.allow_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAllowIsMutable(); + allow_.addAll(other.allow_); + } + onChanged(); + } + if (!other.deny_.isEmpty()) { + if (deny_.isEmpty()) { + deny_ = other.deny_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureDenyIsMutable(); + deny_.addAll(other.deny_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object namespaceName_ = ""; + /** + * + * + *
+     * The namespace name.
+     * 
+ * + * string namespace_name = 1; + * + * @return The namespaceName. + */ + public java.lang.String getNamespaceName() { + java.lang.Object ref = namespaceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + namespaceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The namespace name.
+     * 
+ * + * string namespace_name = 1; + * + * @return The bytes for namespaceName. + */ + public com.google.protobuf.ByteString getNamespaceNameBytes() { + java.lang.Object ref = namespaceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + namespaceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The namespace name.
+     * 
+ * + * string namespace_name = 1; + * + * @param value The namespaceName to set. + * @return This builder for chaining. + */ + public Builder setNamespaceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + namespaceName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The namespace name.
+     * 
+ * + * string namespace_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearNamespaceName() { + + namespaceName_ = getDefaultInstance().getNamespaceName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The namespace name.
+     * 
+ * + * string namespace_name = 1; + * + * @param value The bytes for namespaceName to set. + * @return This builder for chaining. + */ + public Builder setNamespaceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + namespaceName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList allow_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAllowIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + allow_ = new com.google.protobuf.LazyStringArrayList(allow_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * The list of allowed tags.
+     * 
+ * + * repeated string allow = 2; + * + * @return A list containing the allow. + */ + public com.google.protobuf.ProtocolStringList getAllowList() { + return allow_.getUnmodifiableView(); + } + /** + * + * + *
+     * The list of allowed tags.
+     * 
+ * + * repeated string allow = 2; + * + * @return The count of allow. + */ + public int getAllowCount() { + return allow_.size(); + } + /** + * + * + *
+     * The list of allowed tags.
+     * 
+ * + * repeated string allow = 2; + * + * @param index The index of the element to return. + * @return The allow at the given index. + */ + public java.lang.String getAllow(int index) { + return allow_.get(index); + } + /** + * + * + *
+     * The list of allowed tags.
+     * 
+ * + * repeated string allow = 2; + * + * @param index The index of the value to return. + * @return The bytes of the allow at the given index. + */ + public com.google.protobuf.ByteString getAllowBytes(int index) { + return allow_.getByteString(index); + } + /** + * + * + *
+     * The list of allowed tags.
+     * 
+ * + * repeated string allow = 2; + * + * @param index The index to set the value at. + * @param value The allow to set. + * @return This builder for chaining. + */ + public Builder setAllow(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowIsMutable(); + allow_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of allowed tags.
+     * 
+ * + * repeated string allow = 2; + * + * @param value The allow to add. + * @return This builder for chaining. + */ + public Builder addAllow(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowIsMutable(); + allow_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of allowed tags.
+     * 
+ * + * repeated string allow = 2; + * + * @param values The allow to add. + * @return This builder for chaining. + */ + public Builder addAllAllow(java.lang.Iterable values) { + ensureAllowIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allow_); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of allowed tags.
+     * 
+ * + * repeated string allow = 2; + * + * @return This builder for chaining. + */ + public Builder clearAllow() { + allow_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of allowed tags.
+     * 
+ * + * repeated string allow = 2; + * + * @param value The bytes of the allow to add. + * @return This builder for chaining. + */ + public Builder addAllowBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAllowIsMutable(); + allow_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList deny_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureDenyIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + deny_ = new com.google.protobuf.LazyStringArrayList(deny_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * The list of deny tags.
+     * 
+ * + * repeated string deny = 3; + * + * @return A list containing the deny. + */ + public com.google.protobuf.ProtocolStringList getDenyList() { + return deny_.getUnmodifiableView(); + } + /** + * + * + *
+     * The list of deny tags.
+     * 
+ * + * repeated string deny = 3; + * + * @return The count of deny. + */ + public int getDenyCount() { + return deny_.size(); + } + /** + * + * + *
+     * The list of deny tags.
+     * 
+ * + * repeated string deny = 3; + * + * @param index The index of the element to return. + * @return The deny at the given index. + */ + public java.lang.String getDeny(int index) { + return deny_.get(index); + } + /** + * + * + *
+     * The list of deny tags.
+     * 
+ * + * repeated string deny = 3; + * + * @param index The index of the value to return. + * @return The bytes of the deny at the given index. + */ + public com.google.protobuf.ByteString getDenyBytes(int index) { + return deny_.getByteString(index); + } + /** + * + * + *
+     * The list of deny tags.
+     * 
+ * + * repeated string deny = 3; + * + * @param index The index to set the value at. + * @param value The deny to set. + * @return This builder for chaining. + */ + public Builder setDeny(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDenyIsMutable(); + deny_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of deny tags.
+     * 
+ * + * repeated string deny = 3; + * + * @param value The deny to add. + * @return This builder for chaining. + */ + public Builder addDeny(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDenyIsMutable(); + deny_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of deny tags.
+     * 
+ * + * repeated string deny = 3; + * + * @param values The deny to add. + * @return This builder for chaining. + */ + public Builder addAllDeny(java.lang.Iterable values) { + ensureDenyIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deny_); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of deny tags.
+     * 
+ * + * repeated string deny = 3; + * + * @return This builder for chaining. + */ + public Builder clearDeny() { + deny_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of deny tags.
+     * 
+ * + * repeated string deny = 3; + * + * @param value The bytes of the deny to add. + * @return This builder for chaining. + */ + public Builder addDenyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDenyIsMutable(); + deny_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace) + private static final com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace(); + } + + public static com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExamplesRestrictionsNamespace parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExamplesRestrictionsNamespace(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExamplesRestrictionsNamespaceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExamplesRestrictionsNamespaceOrBuilder.java new file mode 100644 index 000000000000..be616fd6c53d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExamplesRestrictionsNamespaceOrBuilder.java @@ -0,0 +1,152 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/explanation.proto + +package com.google.cloud.aiplatform.v1; + +public interface ExamplesRestrictionsNamespaceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The namespace name.
+   * 
+ * + * string namespace_name = 1; + * + * @return The namespaceName. + */ + java.lang.String getNamespaceName(); + /** + * + * + *
+   * The namespace name.
+   * 
+ * + * string namespace_name = 1; + * + * @return The bytes for namespaceName. + */ + com.google.protobuf.ByteString getNamespaceNameBytes(); + + /** + * + * + *
+   * The list of allowed tags.
+   * 
+ * + * repeated string allow = 2; + * + * @return A list containing the allow. + */ + java.util.List getAllowList(); + /** + * + * + *
+   * The list of allowed tags.
+   * 
+ * + * repeated string allow = 2; + * + * @return The count of allow. + */ + int getAllowCount(); + /** + * + * + *
+   * The list of allowed tags.
+   * 
+ * + * repeated string allow = 2; + * + * @param index The index of the element to return. + * @return The allow at the given index. + */ + java.lang.String getAllow(int index); + /** + * + * + *
+   * The list of allowed tags.
+   * 
+ * + * repeated string allow = 2; + * + * @param index The index of the value to return. + * @return The bytes of the allow at the given index. + */ + com.google.protobuf.ByteString getAllowBytes(int index); + + /** + * + * + *
+   * The list of deny tags.
+   * 
+ * + * repeated string deny = 3; + * + * @return A list containing the deny. + */ + java.util.List getDenyList(); + /** + * + * + *
+   * The list of deny tags.
+   * 
+ * + * repeated string deny = 3; + * + * @return The count of deny. + */ + int getDenyCount(); + /** + * + * + *
+   * The list of deny tags.
+   * 
+ * + * repeated string deny = 3; + * + * @param index The index of the element to return. + * @return The deny at the given index. + */ + java.lang.String getDeny(int index); + /** + * + * + *
+   * The list of deny tags.
+   * 
+ * + * repeated string deny = 3; + * + * @param index The index of the value to return. + * @return The bytes of the deny at the given index. + */ + com.google.protobuf.ByteString getDenyBytes(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExecutionName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExecutionName.java index 952c02c5e303..488db349c0a2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExecutionName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExecutionName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Explanation.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Explanation.java index 41c88b4c696f..a31063144e88 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Explanation.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Explanation.java @@ -40,6 +40,7 @@ private Explanation(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Explanation() { attributions_ = java.util.Collections.emptyList(); + neighbors_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -84,6 +85,17 @@ private Explanation( com.google.cloud.aiplatform.v1.Attribution.parser(), extensionRegistry)); break; } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + neighbors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + neighbors_.add( + input.readMessage( + com.google.cloud.aiplatform.v1.Neighbor.parser(), extensionRegistry)); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -103,6 +115,9 @@ private Explanation( if (((mutable_bitField0_ & 0x00000001) != 0)) { attributions_ = java.util.Collections.unmodifiableList(attributions_); } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + neighbors_ = java.util.Collections.unmodifiableList(neighbors_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -257,6 +272,95 @@ public com.google.cloud.aiplatform.v1.AttributionOrBuilder getAttributionsOrBuil return attributions_.get(index); } + public static final int NEIGHBORS_FIELD_NUMBER = 2; + private java.util.List neighbors_; + /** + * + * + *
+   * Output only. List of the nearest neighbors for example-based explanations.
+   * For models deployed with the examples explanations feature enabled, the
+   * attributions field is empty and instead the neighbors field is populated.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getNeighborsList() { + return neighbors_; + } + /** + * + * + *
+   * Output only. List of the nearest neighbors for example-based explanations.
+   * For models deployed with the examples explanations feature enabled, the
+   * attributions field is empty and instead the neighbors field is populated.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getNeighborsOrBuilderList() { + return neighbors_; + } + /** + * + * + *
+   * Output only. List of the nearest neighbors for example-based explanations.
+   * For models deployed with the examples explanations feature enabled, the
+   * attributions field is empty and instead the neighbors field is populated.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getNeighborsCount() { + return neighbors_.size(); + } + /** + * + * + *
+   * Output only. List of the nearest neighbors for example-based explanations.
+   * For models deployed with the examples explanations feature enabled, the
+   * attributions field is empty and instead the neighbors field is populated.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Neighbor getNeighbors(int index) { + return neighbors_.get(index); + } + /** + * + * + *
+   * Output only. List of the nearest neighbors for example-based explanations.
+   * For models deployed with the examples explanations feature enabled, the
+   * attributions field is empty and instead the neighbors field is populated.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NeighborOrBuilder getNeighborsOrBuilder(int index) { + return neighbors_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -274,6 +378,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < attributions_.size(); i++) { output.writeMessage(1, attributions_.get(i)); } + for (int i = 0; i < neighbors_.size(); i++) { + output.writeMessage(2, neighbors_.get(i)); + } unknownFields.writeTo(output); } @@ -286,6 +393,9 @@ public int getSerializedSize() { for (int i = 0; i < attributions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, attributions_.get(i)); } + for (int i = 0; i < neighbors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, neighbors_.get(i)); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -303,6 +413,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.aiplatform.v1.Explanation) obj; if (!getAttributionsList().equals(other.getAttributionsList())) return false; + if (!getNeighborsList().equals(other.getNeighborsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -318,6 +429,10 @@ public int hashCode() { hash = (37 * hash) + ATTRIBUTIONS_FIELD_NUMBER; hash = (53 * hash) + getAttributionsList().hashCode(); } + if (getNeighborsCount() > 0) { + hash = (37 * hash) + NEIGHBORS_FIELD_NUMBER; + hash = (53 * hash) + getNeighborsList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -460,6 +575,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAttributionsFieldBuilder(); + getNeighborsFieldBuilder(); } } @@ -472,6 +588,12 @@ public Builder clear() { } else { attributionsBuilder_.clear(); } + if (neighborsBuilder_ == null) { + neighbors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + neighborsBuilder_.clear(); + } return this; } @@ -509,6 +631,15 @@ public com.google.cloud.aiplatform.v1.Explanation buildPartial() { } else { result.attributions_ = attributionsBuilder_.build(); } + if (neighborsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + neighbors_ = java.util.Collections.unmodifiableList(neighbors_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.neighbors_ = neighbors_; + } else { + result.neighbors_ = neighborsBuilder_.build(); + } onBuilt(); return result; } @@ -585,6 +716,33 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Explanation other) { } } } + if (neighborsBuilder_ == null) { + if (!other.neighbors_.isEmpty()) { + if (neighbors_.isEmpty()) { + neighbors_ = other.neighbors_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureNeighborsIsMutable(); + neighbors_.addAll(other.neighbors_); + } + onChanged(); + } + } else { + if (!other.neighbors_.isEmpty()) { + if (neighborsBuilder_.isEmpty()) { + neighborsBuilder_.dispose(); + neighborsBuilder_ = null; + neighbors_ = other.neighbors_; + bitField0_ = (bitField0_ & ~0x00000002); + neighborsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNeighborsFieldBuilder() + : null; + } else { + neighborsBuilder_.addAllMessages(other.neighbors_); + } + } + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1201,6 +1359,427 @@ public com.google.cloud.aiplatform.v1.Attribution.Builder addAttributionsBuilder return attributionsBuilder_; } + private java.util.List neighbors_ = + java.util.Collections.emptyList(); + + private void ensureNeighborsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + neighbors_ = new java.util.ArrayList(neighbors_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Neighbor, + com.google.cloud.aiplatform.v1.Neighbor.Builder, + com.google.cloud.aiplatform.v1.NeighborOrBuilder> + neighborsBuilder_; + + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getNeighborsList() { + if (neighborsBuilder_ == null) { + return java.util.Collections.unmodifiableList(neighbors_); + } else { + return neighborsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getNeighborsCount() { + if (neighborsBuilder_ == null) { + return neighbors_.size(); + } else { + return neighborsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.Neighbor getNeighbors(int index) { + if (neighborsBuilder_ == null) { + return neighbors_.get(index); + } else { + return neighborsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setNeighbors(int index, com.google.cloud.aiplatform.v1.Neighbor value) { + if (neighborsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNeighborsIsMutable(); + neighbors_.set(index, value); + onChanged(); + } else { + neighborsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setNeighbors( + int index, com.google.cloud.aiplatform.v1.Neighbor.Builder builderForValue) { + if (neighborsBuilder_ == null) { + ensureNeighborsIsMutable(); + neighbors_.set(index, builderForValue.build()); + onChanged(); + } else { + neighborsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addNeighbors(com.google.cloud.aiplatform.v1.Neighbor value) { + if (neighborsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNeighborsIsMutable(); + neighbors_.add(value); + onChanged(); + } else { + neighborsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addNeighbors(int index, com.google.cloud.aiplatform.v1.Neighbor value) { + if (neighborsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNeighborsIsMutable(); + neighbors_.add(index, value); + onChanged(); + } else { + neighborsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addNeighbors(com.google.cloud.aiplatform.v1.Neighbor.Builder builderForValue) { + if (neighborsBuilder_ == null) { + ensureNeighborsIsMutable(); + neighbors_.add(builderForValue.build()); + onChanged(); + } else { + neighborsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addNeighbors( + int index, com.google.cloud.aiplatform.v1.Neighbor.Builder builderForValue) { + if (neighborsBuilder_ == null) { + ensureNeighborsIsMutable(); + neighbors_.add(index, builderForValue.build()); + onChanged(); + } else { + neighborsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllNeighbors( + java.lang.Iterable values) { + if (neighborsBuilder_ == null) { + ensureNeighborsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, neighbors_); + onChanged(); + } else { + neighborsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearNeighbors() { + if (neighborsBuilder_ == null) { + neighbors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + neighborsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeNeighbors(int index) { + if (neighborsBuilder_ == null) { + ensureNeighborsIsMutable(); + neighbors_.remove(index); + onChanged(); + } else { + neighborsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.Neighbor.Builder getNeighborsBuilder(int index) { + return getNeighborsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.NeighborOrBuilder getNeighborsOrBuilder(int index) { + if (neighborsBuilder_ == null) { + return neighbors_.get(index); + } else { + return neighborsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getNeighborsOrBuilderList() { + if (neighborsBuilder_ != null) { + return neighborsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(neighbors_); + } + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.Neighbor.Builder addNeighborsBuilder() { + return getNeighborsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.Neighbor.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.Neighbor.Builder addNeighborsBuilder(int index) { + return getNeighborsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1.Neighbor.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getNeighborsBuilderList() { + return getNeighborsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Neighbor, + com.google.cloud.aiplatform.v1.Neighbor.Builder, + com.google.cloud.aiplatform.v1.NeighborOrBuilder> + getNeighborsFieldBuilder() { + if (neighborsBuilder_ == null) { + neighborsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Neighbor, + com.google.cloud.aiplatform.v1.Neighbor.Builder, + com.google.cloud.aiplatform.v1.NeighborOrBuilder>( + neighbors_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + neighbors_ = null; + } + return neighborsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadata.java index c545b72bc0f1..aba164b8ad25 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadata.java @@ -39,6 +39,7 @@ private ExplanationMetadata(com.google.protobuf.GeneratedMessageV3.Builder bu private ExplanationMetadata() { featureAttributionsSchemaUri_ = ""; + latentSpaceSource_ = ""; } @java.lang.Override @@ -113,6 +114,13 @@ private ExplanationMetadata( featureAttributionsSchemaUri_ = s; break; } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + latentSpaceSource_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -10590,6 +10598,55 @@ public com.google.protobuf.ByteString getFeatureAttributionsSchemaUriBytes() { } } + public static final int LATENT_SPACE_SOURCE_FIELD_NUMBER = 5; + private volatile java.lang.Object latentSpaceSource_; + /** + * + * + *
+   * Name of the source to generate embeddings for example based explanations.
+   * 
+ * + * string latent_space_source = 5; + * + * @return The latentSpaceSource. + */ + @java.lang.Override + public java.lang.String getLatentSpaceSource() { + java.lang.Object ref = latentSpaceSource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + latentSpaceSource_ = s; + return s; + } + } + /** + * + * + *
+   * Name of the source to generate embeddings for example based explanations.
+   * 
+ * + * string latent_space_source = 5; + * + * @return The bytes for latentSpaceSource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLatentSpaceSourceBytes() { + java.lang.Object ref = latentSpaceSource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + latentSpaceSource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -10611,6 +10668,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(featureAttributionsSchemaUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, featureAttributionsSchemaUri_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(latentSpaceSource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, latentSpaceSource_); + } unknownFields.writeTo(output); } @@ -10651,6 +10711,9 @@ public int getSerializedSize() { com.google.protobuf.GeneratedMessageV3.computeStringSize( 3, featureAttributionsSchemaUri_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(latentSpaceSource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, latentSpaceSource_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -10671,6 +10734,7 @@ public boolean equals(final java.lang.Object obj) { if (!internalGetOutputs().equals(other.internalGetOutputs())) return false; if (!getFeatureAttributionsSchemaUri().equals(other.getFeatureAttributionsSchemaUri())) return false; + if (!getLatentSpaceSource().equals(other.getLatentSpaceSource())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -10692,6 +10756,8 @@ public int hashCode() { } hash = (37 * hash) + FEATURE_ATTRIBUTIONS_SCHEMA_URI_FIELD_NUMBER; hash = (53 * hash) + getFeatureAttributionsSchemaUri().hashCode(); + hash = (37 * hash) + LATENT_SPACE_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getLatentSpaceSource().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -10865,6 +10931,8 @@ public Builder clear() { internalGetMutableOutputs().clear(); featureAttributionsSchemaUri_ = ""; + latentSpaceSource_ = ""; + return this; } @@ -10898,6 +10966,7 @@ public com.google.cloud.aiplatform.v1.ExplanationMetadata buildPartial() { result.outputs_ = internalGetOutputs(); result.outputs_.makeImmutable(); result.featureAttributionsSchemaUri_ = featureAttributionsSchemaUri_; + result.latentSpaceSource_ = latentSpaceSource_; onBuilt(); return result; } @@ -10954,6 +11023,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ExplanationMetadata othe featureAttributionsSchemaUri_ = other.featureAttributionsSchemaUri_; onChanged(); } + if (!other.getLatentSpaceSource().isEmpty()) { + latentSpaceSource_ = other.latentSpaceSource_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -11620,6 +11693,112 @@ public Builder setFeatureAttributionsSchemaUriBytes(com.google.protobuf.ByteStri return this; } + private java.lang.Object latentSpaceSource_ = ""; + /** + * + * + *
+     * Name of the source to generate embeddings for example based explanations.
+     * 
+ * + * string latent_space_source = 5; + * + * @return The latentSpaceSource. + */ + public java.lang.String getLatentSpaceSource() { + java.lang.Object ref = latentSpaceSource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + latentSpaceSource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of the source to generate embeddings for example based explanations.
+     * 
+ * + * string latent_space_source = 5; + * + * @return The bytes for latentSpaceSource. + */ + public com.google.protobuf.ByteString getLatentSpaceSourceBytes() { + java.lang.Object ref = latentSpaceSource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + latentSpaceSource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of the source to generate embeddings for example based explanations.
+     * 
+ * + * string latent_space_source = 5; + * + * @param value The latentSpaceSource to set. + * @return This builder for chaining. + */ + public Builder setLatentSpaceSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + latentSpaceSource_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the source to generate embeddings for example based explanations.
+     * 
+ * + * string latent_space_source = 5; + * + * @return This builder for chaining. + */ + public Builder clearLatentSpaceSource() { + + latentSpaceSource_ = getDefaultInstance().getLatentSpaceSource(); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the source to generate embeddings for example based explanations.
+     * 
+ * + * string latent_space_source = 5; + * + * @param value The bytes for latentSpaceSource to set. + * @return This builder for chaining. + */ + public Builder setLatentSpaceSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + latentSpaceSource_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataOrBuilder.java index 007a684d0141..3a612f0531e2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataOrBuilder.java @@ -280,4 +280,29 @@ com.google.cloud.aiplatform.v1.ExplanationMetadata.OutputMetadata getOutputsOrTh * @return The bytes for featureAttributionsSchemaUri. */ com.google.protobuf.ByteString getFeatureAttributionsSchemaUriBytes(); + + /** + * + * + *
+   * Name of the source to generate embeddings for example based explanations.
+   * 
+ * + * string latent_space_source = 5; + * + * @return The latentSpaceSource. + */ + java.lang.String getLatentSpaceSource(); + /** + * + * + *
+   * Name of the source to generate embeddings for example based explanations.
+   * 
+ * + * string latent_space_source = 5; + * + * @return The bytes for latentSpaceSource. + */ + com.google.protobuf.ByteString getLatentSpaceSourceBytes(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataProto.java index 2e616199f89c..02e4ce7cb8fa 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationMetadataProto.java @@ -67,72 +67,73 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n5google/cloud/aiplatform/v1/explanation" + "_metadata.proto\022\032google.cloud.aiplatform" + ".v1\032\037google/api/field_behavior.proto\032\034go" - + "ogle/protobuf/struct.proto\"\262\022\n\023Explanati" + + "ogle/protobuf/struct.proto\"\317\022\n\023Explanati" + "onMetadata\022P\n\006inputs\030\001 \003(\0132;.google.clou" + "d.aiplatform.v1.ExplanationMetadata.Inpu" + "tsEntryB\003\340A\002\022R\n\007outputs\030\002 \003(\0132<.google.c" + "loud.aiplatform.v1.ExplanationMetadata.O" + "utputsEntryB\003\340A\002\022\'\n\037feature_attributions" - + "_schema_uri\030\003 \001(\t\032\304\r\n\rInputMetadata\022/\n\017i" - + "nput_baselines\030\001 \003(\0132\026.google.protobuf.V" - + "alue\022\031\n\021input_tensor_name\030\002 \001(\t\022X\n\010encod" - + "ing\030\003 \001(\0162F.google.cloud.aiplatform.v1.E" - + "xplanationMetadata.InputMetadata.Encodin" - + "g\022\020\n\010modality\030\004 \001(\t\022n\n\024feature_value_dom" - + "ain\030\005 \001(\0132P.google.cloud.aiplatform.v1.E" - + "xplanationMetadata.InputMetadata.Feature" - + "ValueDomain\022\033\n\023indices_tensor_name\030\006 \001(\t" - + "\022\037\n\027dense_shape_tensor_name\030\007 \001(\t\022\035\n\025ind" - + "ex_feature_mapping\030\010 \003(\t\022\033\n\023encoded_tens" - + "or_name\030\t \001(\t\0221\n\021encoded_baselines\030\n \003(\013" - + "2\026.google.protobuf.Value\022b\n\rvisualizatio" - + "n\030\013 \001(\0132K.google.cloud.aiplatform.v1.Exp" - + "lanationMetadata.InputMetadata.Visualiza" - + "tion\022\022\n\ngroup_name\030\014 \001(\t\032j\n\022FeatureValue" - + "Domain\022\021\n\tmin_value\030\001 \001(\002\022\021\n\tmax_value\030\002" - + " \001(\002\022\025\n\roriginal_mean\030\003 \001(\002\022\027\n\017original_" - + "stddev\030\004 \001(\002\032\326\006\n\rVisualization\022^\n\004type\030\001" - + " \001(\0162P.google.cloud.aiplatform.v1.Explan" - + "ationMetadata.InputMetadata.Visualizatio" - + "n.Type\022f\n\010polarity\030\002 \001(\0162T.google.cloud." - + "aiplatform.v1.ExplanationMetadata.InputM" - + "etadata.Visualization.Polarity\022g\n\tcolor_" - + "map\030\003 \001(\0162T.google.cloud.aiplatform.v1.E" - + "xplanationMetadata.InputMetadata.Visuali" - + "zation.ColorMap\022\037\n\027clip_percent_upperbou" - + "nd\030\004 \001(\002\022\037\n\027clip_percent_lowerbound\030\005 \001(" - + "\002\022m\n\014overlay_type\030\006 \001(\0162W.google.cloud.a" - + "iplatform.v1.ExplanationMetadata.InputMe" - + "tadata.Visualization.OverlayType\"6\n\004Type" - + "\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n\006PIXELS\020\001\022\014\n\010OU" - + "TLINES\020\002\"J\n\010Polarity\022\030\n\024POLARITY_UNSPECI" - + "FIED\020\000\022\014\n\010POSITIVE\020\001\022\014\n\010NEGATIVE\020\002\022\010\n\004BO" - + "TH\020\003\"{\n\010ColorMap\022\031\n\025COLOR_MAP_UNSPECIFIE" - + "D\020\000\022\016\n\nPINK_GREEN\020\001\022\013\n\007VIRIDIS\020\002\022\007\n\003RED\020" - + "\003\022\t\n\005GREEN\020\004\022\r\n\tRED_GREEN\020\006\022\024\n\020PINK_WHIT" - + "E_GREEN\020\005\"b\n\013OverlayType\022\034\n\030OVERLAY_TYPE" - + "_UNSPECIFIED\020\000\022\010\n\004NONE\020\001\022\014\n\010ORIGINAL\020\002\022\r" - + "\n\tGRAYSCALE\020\003\022\016\n\nMASK_BLACK\020\004\"\240\001\n\010Encodi" - + "ng\022\030\n\024ENCODING_UNSPECIFIED\020\000\022\014\n\010IDENTITY" - + "\020\001\022\023\n\017BAG_OF_FEATURES\020\002\022\032\n\026BAG_OF_FEATUR" - + "ES_SPARSE\020\003\022\r\n\tINDICATOR\020\004\022\026\n\022COMBINED_E" - + "MBEDDING\020\005\022\024\n\020CONCAT_EMBEDDING\020\006\032\246\001\n\016Out" - + "putMetadata\022<\n\032index_display_name_mappin" - + "g\030\001 \001(\0132\026.google.protobuf.ValueH\000\022\"\n\030dis" - + "play_name_mapping_key\030\002 \001(\tH\000\022\032\n\022output_" - + "tensor_name\030\003 \001(\tB\026\n\024display_name_mappin" - + "g\032l\n\013InputsEntry\022\013\n\003key\030\001 \001(\t\022L\n\005value\030\002" - + " \001(\0132=.google.cloud.aiplatform.v1.Explan" - + "ationMetadata.InputMetadata:\0028\001\032n\n\014Outpu" - + "tsEntry\022\013\n\003key\030\001 \001(\t\022M\n\005value\030\002 \001(\0132>.go" - + "ogle.cloud.aiplatform.v1.ExplanationMeta" - + "data.OutputMetadata:\0028\001B\334\001\n\036com.google.c" - + "loud.aiplatform.v1B\030ExplanationMetadataP" - + "rotoP\001ZDgoogle.golang.org/genproto/googl" - + "eapis/cloud/aiplatform/v1;aiplatform\252\002\032G" - + "oogle.Cloud.AIPlatform.V1\312\002\032Google\\Cloud" - + "\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatfo" - + "rm::V1b\006proto3" + + "_schema_uri\030\003 \001(\t\022\033\n\023latent_space_source" + + "\030\005 \001(\t\032\304\r\n\rInputMetadata\022/\n\017input_baseli" + + "nes\030\001 \003(\0132\026.google.protobuf.Value\022\031\n\021inp" + + "ut_tensor_name\030\002 \001(\t\022X\n\010encoding\030\003 \001(\0162F" + + ".google.cloud.aiplatform.v1.ExplanationM" + + "etadata.InputMetadata.Encoding\022\020\n\010modali" + + "ty\030\004 \001(\t\022n\n\024feature_value_domain\030\005 \001(\0132P" + + ".google.cloud.aiplatform.v1.ExplanationM" + + "etadata.InputMetadata.FeatureValueDomain" + + "\022\033\n\023indices_tensor_name\030\006 \001(\t\022\037\n\027dense_s" + + "hape_tensor_name\030\007 \001(\t\022\035\n\025index_feature_" + + "mapping\030\010 \003(\t\022\033\n\023encoded_tensor_name\030\t \001" + + "(\t\0221\n\021encoded_baselines\030\n \003(\0132\026.google.p" + + "rotobuf.Value\022b\n\rvisualization\030\013 \001(\0132K.g" + + "oogle.cloud.aiplatform.v1.ExplanationMet" + + "adata.InputMetadata.Visualization\022\022\n\ngro" + + "up_name\030\014 \001(\t\032j\n\022FeatureValueDomain\022\021\n\tm" + + "in_value\030\001 \001(\002\022\021\n\tmax_value\030\002 \001(\002\022\025\n\rori" + + "ginal_mean\030\003 \001(\002\022\027\n\017original_stddev\030\004 \001(" + + "\002\032\326\006\n\rVisualization\022^\n\004type\030\001 \001(\0162P.goog" + + "le.cloud.aiplatform.v1.ExplanationMetada" + + "ta.InputMetadata.Visualization.Type\022f\n\010p" + + "olarity\030\002 \001(\0162T.google.cloud.aiplatform." + + "v1.ExplanationMetadata.InputMetadata.Vis" + + "ualization.Polarity\022g\n\tcolor_map\030\003 \001(\0162T" + + ".google.cloud.aiplatform.v1.ExplanationM" + + "etadata.InputMetadata.Visualization.Colo" + + "rMap\022\037\n\027clip_percent_upperbound\030\004 \001(\002\022\037\n" + + "\027clip_percent_lowerbound\030\005 \001(\002\022m\n\014overla" + + "y_type\030\006 \001(\0162W.google.cloud.aiplatform.v" + + "1.ExplanationMetadata.InputMetadata.Visu" + + "alization.OverlayType\"6\n\004Type\022\024\n\020TYPE_UN" + + "SPECIFIED\020\000\022\n\n\006PIXELS\020\001\022\014\n\010OUTLINES\020\002\"J\n" + + "\010Polarity\022\030\n\024POLARITY_UNSPECIFIED\020\000\022\014\n\010P" + + "OSITIVE\020\001\022\014\n\010NEGATIVE\020\002\022\010\n\004BOTH\020\003\"{\n\010Col" + + "orMap\022\031\n\025COLOR_MAP_UNSPECIFIED\020\000\022\016\n\nPINK" + + "_GREEN\020\001\022\013\n\007VIRIDIS\020\002\022\007\n\003RED\020\003\022\t\n\005GREEN\020" + + "\004\022\r\n\tRED_GREEN\020\006\022\024\n\020PINK_WHITE_GREEN\020\005\"b" + + "\n\013OverlayType\022\034\n\030OVERLAY_TYPE_UNSPECIFIE" + + "D\020\000\022\010\n\004NONE\020\001\022\014\n\010ORIGINAL\020\002\022\r\n\tGRAYSCALE" + + "\020\003\022\016\n\nMASK_BLACK\020\004\"\240\001\n\010Encoding\022\030\n\024ENCOD" + + "ING_UNSPECIFIED\020\000\022\014\n\010IDENTITY\020\001\022\023\n\017BAG_O" + + "F_FEATURES\020\002\022\032\n\026BAG_OF_FEATURES_SPARSE\020\003" + + "\022\r\n\tINDICATOR\020\004\022\026\n\022COMBINED_EMBEDDING\020\005\022" + + "\024\n\020CONCAT_EMBEDDING\020\006\032\246\001\n\016OutputMetadata" + + "\022<\n\032index_display_name_mapping\030\001 \001(\0132\026.g" + + "oogle.protobuf.ValueH\000\022\"\n\030display_name_m" + + "apping_key\030\002 \001(\tH\000\022\032\n\022output_tensor_name" + + "\030\003 \001(\tB\026\n\024display_name_mapping\032l\n\013Inputs" + + "Entry\022\013\n\003key\030\001 \001(\t\022L\n\005value\030\002 \001(\0132=.goog" + + "le.cloud.aiplatform.v1.ExplanationMetada" + + "ta.InputMetadata:\0028\001\032n\n\014OutputsEntry\022\013\n\003" + + "key\030\001 \001(\t\022M\n\005value\030\002 \001(\0132>.google.cloud." + + "aiplatform.v1.ExplanationMetadata.Output" + + "Metadata:\0028\001B\334\001\n\036com.google.cloud.aiplat" + + "form.v1B\030ExplanationMetadataProtoP\001ZDgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/aiplatform/v1;aiplatform\252\002\032Google.Cloud" + + ".AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatform" + + "\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -147,7 +148,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ExplanationMetadata_descriptor, new java.lang.String[] { - "Inputs", "Outputs", "FeatureAttributionsSchemaUri", + "Inputs", "Outputs", "FeatureAttributionsSchemaUri", "LatentSpaceSource", }); internal_static_google_cloud_aiplatform_v1_ExplanationMetadata_InputMetadata_descriptor = internal_static_google_cloud_aiplatform_v1_ExplanationMetadata_descriptor diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationOrBuilder.java index f2f92ed5f7e3..c4976b70b8a5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationOrBuilder.java @@ -139,4 +139,76 @@ public interface ExplanationOrBuilder *
*/ com.google.cloud.aiplatform.v1.AttributionOrBuilder getAttributionsOrBuilder(int index); + + /** + * + * + *
+   * Output only. List of the nearest neighbors for example-based explanations.
+   * For models deployed with the examples explanations feature enabled, the
+   * attributions field is empty and instead the neighbors field is populated.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getNeighborsList(); + /** + * + * + *
+   * Output only. List of the nearest neighbors for example-based explanations.
+   * For models deployed with the examples explanations feature enabled, the
+   * attributions field is empty and instead the neighbors field is populated.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.Neighbor getNeighbors(int index); + /** + * + * + *
+   * Output only. List of the nearest neighbors for example-based explanations.
+   * For models deployed with the examples explanations feature enabled, the
+   * attributions field is empty and instead the neighbors field is populated.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getNeighborsCount(); + /** + * + * + *
+   * Output only. List of the nearest neighbors for example-based explanations.
+   * For models deployed with the examples explanations feature enabled, the
+   * attributions field is empty and instead the neighbors field is populated.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getNeighborsOrBuilderList(); + /** + * + * + *
+   * Output only. List of the nearest neighbors for example-based explanations.
+   * For models deployed with the examples explanations feature enabled, the
+   * attributions field is empty and instead the neighbors field is populated.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.NeighborOrBuilder getNeighborsOrBuilder(int index); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationProto.java index f8f9207ec91a..030f8f19e8d4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationProto.java @@ -39,6 +39,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_Attribution_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_Attribution_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_Neighbor_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_Neighbor_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_ExplanationSpec_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -91,6 +95,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_ExplanationMetadataOverride_InputsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_ExplanationMetadataOverride_InputsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ExamplesOverride_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ExamplesOverride_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ExamplesRestrictionsNamespace_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ExamplesRestrictionsNamespace_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -104,71 +116,87 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".proto\022\032google.cloud.aiplatform.v1\032\037goog" + "le/api/field_behavior.proto\0325google/clou" + "d/aiplatform/v1/explanation_metadata.pro" - + "to\032\034google/protobuf/struct.proto\"Q\n\013Expl" - + "anation\022B\n\014attributions\030\001 \003(\0132\'.google.c" - + "loud.aiplatform.v1.AttributionB\003\340A\003\"[\n\020M" - + "odelExplanation\022G\n\021mean_attributions\030\001 \003" - + "(\0132\'.google.cloud.aiplatform.v1.Attribut" - + "ionB\003\340A\003\"\211\002\n\013Attribution\022\"\n\025baseline_out" - + "put_value\030\001 \001(\001B\003\340A\003\022\"\n\025instance_output_" - + "value\030\002 \001(\001B\003\340A\003\0229\n\024feature_attributions" - + "\030\003 \001(\0132\026.google.protobuf.ValueB\003\340A\003\022\031\n\014o" - + "utput_index\030\004 \003(\005B\003\340A\003\022 \n\023output_display" - + "_name\030\005 \001(\tB\003\340A\003\022 \n\023approximation_error\030" - + "\006 \001(\001B\003\340A\003\022\030\n\013output_name\030\007 \001(\tB\003\340A\003\"\245\001\n" - + "\017ExplanationSpec\022J\n\nparameters\030\001 \001(\01321.g" - + "oogle.cloud.aiplatform.v1.ExplanationPar" - + "ametersB\003\340A\002\022F\n\010metadata\030\002 \001(\0132/.google." - + "cloud.aiplatform.v1.ExplanationMetadataB" - + "\003\340A\002\"\363\002\n\025ExplanationParameters\022\\\n\033sample" - + "d_shapley_attribution\030\001 \001(\01325.google.clo" - + "ud.aiplatform.v1.SampledShapleyAttributi" - + "onH\000\022f\n integrated_gradients_attribution" - + "\030\002 \001(\0132:.google.cloud.aiplatform.v1.Inte" - + "gratedGradientsAttributionH\000\022G\n\020xrai_att" - + "ribution\030\003 \001(\0132+.google.cloud.aiplatform" - + ".v1.XraiAttributionH\000\022\r\n\005top_k\030\004 \001(\005\0222\n\016" - + "output_indices\030\005 \001(\0132\032.google.protobuf.L" - + "istValueB\010\n\006method\"4\n\031SampledShapleyAttr" - + "ibution\022\027\n\npath_count\030\001 \001(\005B\003\340A\002\"\321\001\n\036Int" - + "egratedGradientsAttribution\022\027\n\nstep_coun" - + "t\030\001 \001(\005B\003\340A\002\022H\n\022smooth_grad_config\030\002 \001(\013" - + "2,.google.cloud.aiplatform.v1.SmoothGrad" - + "Config\022L\n\024blur_baseline_config\030\003 \001(\0132..g" - + "oogle.cloud.aiplatform.v1.BlurBaselineCo" - + "nfig\"\302\001\n\017XraiAttribution\022\027\n\nstep_count\030\001" - + " \001(\005B\003\340A\002\022H\n\022smooth_grad_config\030\002 \001(\0132,." - + "google.cloud.aiplatform.v1.SmoothGradCon" - + "fig\022L\n\024blur_baseline_config\030\003 \001(\0132..goog" - + "le.cloud.aiplatform.v1.BlurBaselineConfi" - + "g\"\251\001\n\020SmoothGradConfig\022\025\n\013noise_sigma\030\001 " - + "\001(\002H\000\022L\n\023feature_noise_sigma\030\002 \001(\0132-.goo" - + "gle.cloud.aiplatform.v1.FeatureNoiseSigm" - + "aH\000\022\032\n\022noisy_sample_count\030\003 \001(\005B\024\n\022Gradi" - + "entNoiseSigma\"\241\001\n\021FeatureNoiseSigma\022W\n\013n" - + "oise_sigma\030\001 \003(\0132B.google.cloud.aiplatfo" - + "rm.v1.FeatureNoiseSigma.NoiseSigmaForFea" - + "ture\0323\n\024NoiseSigmaForFeature\022\014\n\004name\030\001 \001" - + "(\t\022\r\n\005sigma\030\002 \001(\002\",\n\022BlurBaselineConfig\022" - + "\026\n\016max_blur_sigma\030\001 \001(\002\"\253\001\n\027ExplanationS" - + "pecOverride\022E\n\nparameters\030\001 \001(\01321.google" - + ".cloud.aiplatform.v1.ExplanationParamete" - + "rs\022I\n\010metadata\030\002 \001(\01327.google.cloud.aipl" - + "atform.v1.ExplanationMetadataOverride\"\277\002" - + "\n\033ExplanationMetadataOverride\022X\n\006inputs\030" - + "\001 \003(\0132C.google.cloud.aiplatform.v1.Expla" - + "nationMetadataOverride.InputsEntryB\003\340A\002\032" - + "H\n\025InputMetadataOverride\022/\n\017input_baseli" - + "nes\030\001 \003(\0132\026.google.protobuf.Value\032|\n\013Inp" - + "utsEntry\022\013\n\003key\030\001 \001(\t\022\\\n\005value\030\002 \001(\0132M.g" - + "oogle.cloud.aiplatform.v1.ExplanationMet" - + "adataOverride.InputMetadataOverride:\0028\001B" - + "\324\001\n\036com.google.cloud.aiplatform.v1B\020Expl" - + "anationProtoP\001ZDgoogle.golang.org/genpro" - + "to/googleapis/cloud/aiplatform/v1;aiplat" - + "form\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Goog" - + "le\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::" - + "AIPlatform::V1b\006proto3" + + "to\032\034google/protobuf/struct.proto\"\217\001\n\013Exp" + + "lanation\022B\n\014attributions\030\001 \003(\0132\'.google." + + "cloud.aiplatform.v1.AttributionB\003\340A\003\022<\n\t" + + "neighbors\030\002 \003(\0132$.google.cloud.aiplatfor" + + "m.v1.NeighborB\003\340A\003\"[\n\020ModelExplanation\022G" + + "\n\021mean_attributions\030\001 \003(\0132\'.google.cloud" + + ".aiplatform.v1.AttributionB\003\340A\003\"\211\002\n\013Attr" + + "ibution\022\"\n\025baseline_output_value\030\001 \001(\001B\003" + + "\340A\003\022\"\n\025instance_output_value\030\002 \001(\001B\003\340A\003\022" + + "9\n\024feature_attributions\030\003 \001(\0132\026.google.p" + + "rotobuf.ValueB\003\340A\003\022\031\n\014output_index\030\004 \003(\005" + + "B\003\340A\003\022 \n\023output_display_name\030\005 \001(\tB\003\340A\003\022" + + " \n\023approximation_error\030\006 \001(\001B\003\340A\003\022\030\n\013out" + + "put_name\030\007 \001(\tB\003\340A\003\"D\n\010Neighbor\022\030\n\013neigh" + + "bor_id\030\001 \001(\tB\003\340A\003\022\036\n\021neighbor_distance\030\002" + + " \001(\001B\003\340A\003\"\245\001\n\017ExplanationSpec\022J\n\nparamet" + + "ers\030\001 \001(\01321.google.cloud.aiplatform.v1.E" + + "xplanationParametersB\003\340A\002\022F\n\010metadata\030\002 " + + "\001(\0132/.google.cloud.aiplatform.v1.Explana" + + "tionMetadataB\003\340A\002\"\363\002\n\025ExplanationParamet" + + "ers\022\\\n\033sampled_shapley_attribution\030\001 \001(\013" + + "25.google.cloud.aiplatform.v1.SampledSha" + + "pleyAttributionH\000\022f\n integrated_gradient" + + "s_attribution\030\002 \001(\0132:.google.cloud.aipla" + + "tform.v1.IntegratedGradientsAttributionH" + + "\000\022G\n\020xrai_attribution\030\003 \001(\0132+.google.clo" + + "ud.aiplatform.v1.XraiAttributionH\000\022\r\n\005to" + + "p_k\030\004 \001(\005\0222\n\016output_indices\030\005 \001(\0132\032.goog" + + "le.protobuf.ListValueB\010\n\006method\"4\n\031Sampl" + + "edShapleyAttribution\022\027\n\npath_count\030\001 \001(\005" + + "B\003\340A\002\"\321\001\n\036IntegratedGradientsAttribution" + + "\022\027\n\nstep_count\030\001 \001(\005B\003\340A\002\022H\n\022smooth_grad" + + "_config\030\002 \001(\0132,.google.cloud.aiplatform." + + "v1.SmoothGradConfig\022L\n\024blur_baseline_con" + + "fig\030\003 \001(\0132..google.cloud.aiplatform.v1.B" + + "lurBaselineConfig\"\302\001\n\017XraiAttribution\022\027\n" + + "\nstep_count\030\001 \001(\005B\003\340A\002\022H\n\022smooth_grad_co" + + "nfig\030\002 \001(\0132,.google.cloud.aiplatform.v1." + + "SmoothGradConfig\022L\n\024blur_baseline_config" + + "\030\003 \001(\0132..google.cloud.aiplatform.v1.Blur" + + "BaselineConfig\"\251\001\n\020SmoothGradConfig\022\025\n\013n" + + "oise_sigma\030\001 \001(\002H\000\022L\n\023feature_noise_sigm" + + "a\030\002 \001(\0132-.google.cloud.aiplatform.v1.Fea" + + "tureNoiseSigmaH\000\022\032\n\022noisy_sample_count\030\003" + + " \001(\005B\024\n\022GradientNoiseSigma\"\241\001\n\021FeatureNo" + + "iseSigma\022W\n\013noise_sigma\030\001 \003(\0132B.google.c" + + "loud.aiplatform.v1.FeatureNoiseSigma.Noi" + + "seSigmaForFeature\0323\n\024NoiseSigmaForFeatur" + + "e\022\014\n\004name\030\001 \001(\t\022\r\n\005sigma\030\002 \001(\002\",\n\022BlurBa" + + "selineConfig\022\026\n\016max_blur_sigma\030\001 \001(\002\"\364\001\n" + + "\027ExplanationSpecOverride\022E\n\nparameters\030\001" + + " \001(\01321.google.cloud.aiplatform.v1.Explan" + + "ationParameters\022I\n\010metadata\030\002 \001(\01327.goog" + + "le.cloud.aiplatform.v1.ExplanationMetada" + + "taOverride\022G\n\021examples_override\030\003 \001(\0132,." + + "google.cloud.aiplatform.v1.ExamplesOverr" + + "ide\"\277\002\n\033ExplanationMetadataOverride\022X\n\006i" + + "nputs\030\001 \003(\0132C.google.cloud.aiplatform.v1" + + ".ExplanationMetadataOverride.InputsEntry" + + "B\003\340A\002\032H\n\025InputMetadataOverride\022/\n\017input_" + + "baselines\030\001 \003(\0132\026.google.protobuf.Value\032" + + "|\n\013InputsEntry\022\013\n\003key\030\001 \001(\t\022\\\n\005value\030\002 \001" + + "(\0132M.google.cloud.aiplatform.v1.Explanat" + + "ionMetadataOverride.InputMetadataOverrid" + + "e:\0028\001\"\306\002\n\020ExamplesOverride\022\026\n\016neighbor_c" + + "ount\030\001 \001(\005\022\026\n\016crowding_count\030\002 \001(\005\022O\n\014re" + + "strictions\030\003 \003(\01329.google.cloud.aiplatfo" + + "rm.v1.ExamplesRestrictionsNamespace\022\031\n\021r" + + "eturn_embeddings\030\004 \001(\010\022L\n\013data_format\030\005 " + + "\001(\01627.google.cloud.aiplatform.v1.Example" + + "sOverride.DataFormat\"H\n\nDataFormat\022\033\n\027DA" + + "TA_FORMAT_UNSPECIFIED\020\000\022\r\n\tINSTANCES\020\001\022\016" + + "\n\nEMBEDDINGS\020\002\"T\n\035ExamplesRestrictionsNa" + + "mespace\022\026\n\016namespace_name\030\001 \001(\t\022\r\n\005allow" + + "\030\002 \003(\t\022\014\n\004deny\030\003 \003(\tB\324\001\n\036com.google.clou" + + "d.aiplatform.v1B\020ExplanationProtoP\001ZDgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/aiplatform/v1;aiplatform\252\002\032Google.Cloud" + + ".AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatform" + + "\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -184,7 +212,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_Explanation_descriptor, new java.lang.String[] { - "Attributions", + "Attributions", "Neighbors", }); internal_static_google_cloud_aiplatform_v1_ModelExplanation_descriptor = getDescriptor().getMessageTypes().get(1); @@ -208,8 +236,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApproximationError", "OutputName", }); - internal_static_google_cloud_aiplatform_v1_ExplanationSpec_descriptor = + internal_static_google_cloud_aiplatform_v1_Neighbor_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_aiplatform_v1_Neighbor_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_Neighbor_descriptor, + new java.lang.String[] { + "NeighborId", "NeighborDistance", + }); + internal_static_google_cloud_aiplatform_v1_ExplanationSpec_descriptor = + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_aiplatform_v1_ExplanationSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ExplanationSpec_descriptor, @@ -217,7 +253,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parameters", "Metadata", }); internal_static_google_cloud_aiplatform_v1_ExplanationParameters_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_aiplatform_v1_ExplanationParameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ExplanationParameters_descriptor, @@ -230,7 +266,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Method", }); internal_static_google_cloud_aiplatform_v1_SampledShapleyAttribution_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_aiplatform_v1_SampledShapleyAttribution_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_SampledShapleyAttribution_descriptor, @@ -238,7 +274,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PathCount", }); internal_static_google_cloud_aiplatform_v1_IntegratedGradientsAttribution_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_aiplatform_v1_IntegratedGradientsAttribution_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_IntegratedGradientsAttribution_descriptor, @@ -246,7 +282,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StepCount", "SmoothGradConfig", "BlurBaselineConfig", }); internal_static_google_cloud_aiplatform_v1_XraiAttribution_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_aiplatform_v1_XraiAttribution_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_XraiAttribution_descriptor, @@ -254,7 +290,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StepCount", "SmoothGradConfig", "BlurBaselineConfig", }); internal_static_google_cloud_aiplatform_v1_SmoothGradConfig_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_aiplatform_v1_SmoothGradConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_SmoothGradConfig_descriptor, @@ -262,7 +298,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NoiseSigma", "FeatureNoiseSigma", "NoisySampleCount", "GradientNoiseSigma", }); internal_static_google_cloud_aiplatform_v1_FeatureNoiseSigma_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_aiplatform_v1_FeatureNoiseSigma_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_FeatureNoiseSigma_descriptor, @@ -280,7 +316,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Sigma", }); internal_static_google_cloud_aiplatform_v1_BlurBaselineConfig_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_aiplatform_v1_BlurBaselineConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_BlurBaselineConfig_descriptor, @@ -288,15 +324,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaxBlurSigma", }); internal_static_google_cloud_aiplatform_v1_ExplanationSpecOverride_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_aiplatform_v1_ExplanationSpecOverride_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ExplanationSpecOverride_descriptor, new java.lang.String[] { - "Parameters", "Metadata", + "Parameters", "Metadata", "ExamplesOverride", }); internal_static_google_cloud_aiplatform_v1_ExplanationMetadataOverride_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_aiplatform_v1_ExplanationMetadataOverride_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ExplanationMetadataOverride_descriptor, @@ -323,6 +359,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_aiplatform_v1_ExamplesOverride_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_aiplatform_v1_ExamplesOverride_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ExamplesOverride_descriptor, + new java.lang.String[] { + "NeighborCount", "CrowdingCount", "Restrictions", "ReturnEmbeddings", "DataFormat", + }); + internal_static_google_cloud_aiplatform_v1_ExamplesRestrictionsNamespace_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_aiplatform_v1_ExamplesRestrictionsNamespace_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ExamplesRestrictionsNamespace_descriptor, + new java.lang.String[] { + "NamespaceName", "Allow", "Deny", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationSpecOverride.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationSpecOverride.java index 9d93ab7faf46..228df2360c2e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationSpecOverride.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationSpecOverride.java @@ -101,6 +101,22 @@ private ExplanationSpecOverride( metadata_ = subBuilder.buildPartial(); } + break; + } + case 26: + { + com.google.cloud.aiplatform.v1.ExamplesOverride.Builder subBuilder = null; + if (examplesOverride_ != null) { + subBuilder = examplesOverride_.toBuilder(); + } + examplesOverride_ = + input.readMessage( + com.google.cloud.aiplatform.v1.ExamplesOverride.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(examplesOverride_); + examplesOverride_ = subBuilder.buildPartial(); + } + break; } default: @@ -242,6 +258,54 @@ public com.google.cloud.aiplatform.v1.ExplanationMetadataOverride getMetadata() return getMetadata(); } + public static final int EXAMPLES_OVERRIDE_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1.ExamplesOverride examplesOverride_; + /** + * + * + *
+   * The example-based explanations parameter overrides.
+   * 
+ * + * .google.cloud.aiplatform.v1.ExamplesOverride examples_override = 3; + * + * @return Whether the examplesOverride field is set. + */ + @java.lang.Override + public boolean hasExamplesOverride() { + return examplesOverride_ != null; + } + /** + * + * + *
+   * The example-based explanations parameter overrides.
+   * 
+ * + * .google.cloud.aiplatform.v1.ExamplesOverride examples_override = 3; + * + * @return The examplesOverride. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ExamplesOverride getExamplesOverride() { + return examplesOverride_ == null + ? com.google.cloud.aiplatform.v1.ExamplesOverride.getDefaultInstance() + : examplesOverride_; + } + /** + * + * + *
+   * The example-based explanations parameter overrides.
+   * 
+ * + * .google.cloud.aiplatform.v1.ExamplesOverride examples_override = 3; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ExamplesOverrideOrBuilder getExamplesOverrideOrBuilder() { + return getExamplesOverride(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -262,6 +326,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (metadata_ != null) { output.writeMessage(2, getMetadata()); } + if (examplesOverride_ != null) { + output.writeMessage(3, getExamplesOverride()); + } unknownFields.writeTo(output); } @@ -277,6 +344,9 @@ public int getSerializedSize() { if (metadata_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetadata()); } + if (examplesOverride_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExamplesOverride()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -301,6 +371,10 @@ public boolean equals(final java.lang.Object obj) { if (hasMetadata()) { if (!getMetadata().equals(other.getMetadata())) return false; } + if (hasExamplesOverride() != other.hasExamplesOverride()) return false; + if (hasExamplesOverride()) { + if (!getExamplesOverride().equals(other.getExamplesOverride())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -320,6 +394,10 @@ public int hashCode() { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } + if (hasExamplesOverride()) { + hash = (37 * hash) + EXAMPLES_OVERRIDE_FIELD_NUMBER; + hash = (53 * hash) + getExamplesOverride().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -479,6 +557,12 @@ public Builder clear() { metadata_ = null; metadataBuilder_ = null; } + if (examplesOverrideBuilder_ == null) { + examplesOverride_ = null; + } else { + examplesOverride_ = null; + examplesOverrideBuilder_ = null; + } return this; } @@ -516,6 +600,11 @@ public com.google.cloud.aiplatform.v1.ExplanationSpecOverride buildPartial() { } else { result.metadata_ = metadataBuilder_.build(); } + if (examplesOverrideBuilder_ == null) { + result.examplesOverride_ = examplesOverride_; + } else { + result.examplesOverride_ = examplesOverrideBuilder_.build(); + } onBuilt(); return result; } @@ -572,6 +661,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ExplanationSpecOverride if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } + if (other.hasExamplesOverride()) { + mergeExamplesOverride(other.getExamplesOverride()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -993,6 +1085,192 @@ public com.google.cloud.aiplatform.v1.ExplanationMetadataOverride.Builder getMet return metadataBuilder_; } + private com.google.cloud.aiplatform.v1.ExamplesOverride examplesOverride_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ExamplesOverride, + com.google.cloud.aiplatform.v1.ExamplesOverride.Builder, + com.google.cloud.aiplatform.v1.ExamplesOverrideOrBuilder> + examplesOverrideBuilder_; + /** + * + * + *
+     * The example-based explanations parameter overrides.
+     * 
+ * + * .google.cloud.aiplatform.v1.ExamplesOverride examples_override = 3; + * + * @return Whether the examplesOverride field is set. + */ + public boolean hasExamplesOverride() { + return examplesOverrideBuilder_ != null || examplesOverride_ != null; + } + /** + * + * + *
+     * The example-based explanations parameter overrides.
+     * 
+ * + * .google.cloud.aiplatform.v1.ExamplesOverride examples_override = 3; + * + * @return The examplesOverride. + */ + public com.google.cloud.aiplatform.v1.ExamplesOverride getExamplesOverride() { + if (examplesOverrideBuilder_ == null) { + return examplesOverride_ == null + ? com.google.cloud.aiplatform.v1.ExamplesOverride.getDefaultInstance() + : examplesOverride_; + } else { + return examplesOverrideBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The example-based explanations parameter overrides.
+     * 
+ * + * .google.cloud.aiplatform.v1.ExamplesOverride examples_override = 3; + */ + public Builder setExamplesOverride(com.google.cloud.aiplatform.v1.ExamplesOverride value) { + if (examplesOverrideBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + examplesOverride_ = value; + onChanged(); + } else { + examplesOverrideBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The example-based explanations parameter overrides.
+     * 
+ * + * .google.cloud.aiplatform.v1.ExamplesOverride examples_override = 3; + */ + public Builder setExamplesOverride( + com.google.cloud.aiplatform.v1.ExamplesOverride.Builder builderForValue) { + if (examplesOverrideBuilder_ == null) { + examplesOverride_ = builderForValue.build(); + onChanged(); + } else { + examplesOverrideBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The example-based explanations parameter overrides.
+     * 
+ * + * .google.cloud.aiplatform.v1.ExamplesOverride examples_override = 3; + */ + public Builder mergeExamplesOverride(com.google.cloud.aiplatform.v1.ExamplesOverride value) { + if (examplesOverrideBuilder_ == null) { + if (examplesOverride_ != null) { + examplesOverride_ = + com.google.cloud.aiplatform.v1.ExamplesOverride.newBuilder(examplesOverride_) + .mergeFrom(value) + .buildPartial(); + } else { + examplesOverride_ = value; + } + onChanged(); + } else { + examplesOverrideBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The example-based explanations parameter overrides.
+     * 
+ * + * .google.cloud.aiplatform.v1.ExamplesOverride examples_override = 3; + */ + public Builder clearExamplesOverride() { + if (examplesOverrideBuilder_ == null) { + examplesOverride_ = null; + onChanged(); + } else { + examplesOverride_ = null; + examplesOverrideBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The example-based explanations parameter overrides.
+     * 
+ * + * .google.cloud.aiplatform.v1.ExamplesOverride examples_override = 3; + */ + public com.google.cloud.aiplatform.v1.ExamplesOverride.Builder getExamplesOverrideBuilder() { + + onChanged(); + return getExamplesOverrideFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The example-based explanations parameter overrides.
+     * 
+ * + * .google.cloud.aiplatform.v1.ExamplesOverride examples_override = 3; + */ + public com.google.cloud.aiplatform.v1.ExamplesOverrideOrBuilder getExamplesOverrideOrBuilder() { + if (examplesOverrideBuilder_ != null) { + return examplesOverrideBuilder_.getMessageOrBuilder(); + } else { + return examplesOverride_ == null + ? com.google.cloud.aiplatform.v1.ExamplesOverride.getDefaultInstance() + : examplesOverride_; + } + } + /** + * + * + *
+     * The example-based explanations parameter overrides.
+     * 
+ * + * .google.cloud.aiplatform.v1.ExamplesOverride examples_override = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ExamplesOverride, + com.google.cloud.aiplatform.v1.ExamplesOverride.Builder, + com.google.cloud.aiplatform.v1.ExamplesOverrideOrBuilder> + getExamplesOverrideFieldBuilder() { + if (examplesOverrideBuilder_ == null) { + examplesOverrideBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ExamplesOverride, + com.google.cloud.aiplatform.v1.ExamplesOverride.Builder, + com.google.cloud.aiplatform.v1.ExamplesOverrideOrBuilder>( + getExamplesOverride(), getParentForChildren(), isClean()); + examplesOverride_ = null; + } + return examplesOverrideBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationSpecOverrideOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationSpecOverrideOrBuilder.java index 9c2bd2a415f1..4be0673fefb0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationSpecOverrideOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExplanationSpecOverrideOrBuilder.java @@ -98,4 +98,39 @@ public interface ExplanationSpecOverrideOrBuilder * .google.cloud.aiplatform.v1.ExplanationMetadataOverride metadata = 2; */ com.google.cloud.aiplatform.v1.ExplanationMetadataOverrideOrBuilder getMetadataOrBuilder(); + + /** + * + * + *
+   * The example-based explanations parameter overrides.
+   * 
+ * + * .google.cloud.aiplatform.v1.ExamplesOverride examples_override = 3; + * + * @return Whether the examplesOverride field is set. + */ + boolean hasExamplesOverride(); + /** + * + * + *
+   * The example-based explanations parameter overrides.
+   * 
+ * + * .google.cloud.aiplatform.v1.ExamplesOverride examples_override = 3; + * + * @return The examplesOverride. + */ + com.google.cloud.aiplatform.v1.ExamplesOverride getExamplesOverride(); + /** + * + * + *
+   * The example-based explanations parameter overrides.
+   * 
+ * + * .google.cloud.aiplatform.v1.ExamplesOverride examples_override = 3; + */ + com.google.cloud.aiplatform.v1.ExamplesOverrideOrBuilder getExamplesOverrideOrBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportModelRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportModelRequest.java index 8c31aec19e8e..2e236356213c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportModelRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportModelRequest.java @@ -1624,6 +1624,8 @@ public com.google.protobuf.Parser getParserForType() { * *
    * Required. The resource name of the Model to export.
+   * The resource name may contain version id or version alias to specify the
+   * version, if no version is specified, the default version will be exported.
    * 
* * @@ -1649,6 +1651,8 @@ public java.lang.String getName() { * *
    * Required. The resource name of the Model to export.
+   * The resource name may contain version id or version alias to specify the
+   * version, if no version is specified, the default version will be exported.
    * 
* * @@ -2077,6 +2081,8 @@ public Builder mergeFrom( * *
      * Required. The resource name of the Model to export.
+     * The resource name may contain version id or version alias to specify the
+     * version, if no version is specified, the default version will be exported.
      * 
* * @@ -2101,6 +2107,8 @@ public java.lang.String getName() { * *
      * Required. The resource name of the Model to export.
+     * The resource name may contain version id or version alias to specify the
+     * version, if no version is specified, the default version will be exported.
      * 
* * @@ -2125,6 +2133,8 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. The resource name of the Model to export.
+     * The resource name may contain version id or version alias to specify the
+     * version, if no version is specified, the default version will be exported.
      * 
* * @@ -2148,6 +2158,8 @@ public Builder setName(java.lang.String value) { * *
      * Required. The resource name of the Model to export.
+     * The resource name may contain version id or version alias to specify the
+     * version, if no version is specified, the default version will be exported.
      * 
* * @@ -2167,6 +2179,8 @@ public Builder clearName() { * *
      * Required. The resource name of the Model to export.
+     * The resource name may contain version id or version alias to specify the
+     * version, if no version is specified, the default version will be exported.
      * 
* * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportModelRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportModelRequestOrBuilder.java index d9960cb3106b..0e13f927d104 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportModelRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExportModelRequestOrBuilder.java @@ -28,6 +28,8 @@ public interface ExportModelRequestOrBuilder * *
    * Required. The resource name of the Model to export.
+   * The resource name may contain version id or version alias to specify the
+   * version, if no version is specified, the default version will be exported.
    * 
* * @@ -42,6 +44,8 @@ public interface ExportModelRequestOrBuilder * *
    * Required. The resource name of the Model to export.
+   * The resource name may contain version id or version alias to specify the
+   * version, if no version is specified, the default version will be exported.
    * 
* * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureName.java index 16cc7e705fc7..84a5d5b85d06 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureValue.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureValue.java index 89ebca07fe1a..c91f89fa6cf0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureValue.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureValue.java @@ -23,7 +23,6 @@ * *
  * Value for a feature.
- * NEXT ID: 15
  * 
* * Protobuf type {@code google.cloud.aiplatform.v1.FeatureValue} @@ -1898,7 +1897,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Value for a feature.
-   * NEXT ID: 15
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1.FeatureValue} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Featurestore.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Featurestore.java index 603a8d5b8e33..31cb7d27b803 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Featurestore.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Featurestore.java @@ -419,6 +419,51 @@ public interface OnlineServingConfigOrBuilder * @return The fixedNodeCount. */ int getFixedNodeCount(); + + /** + * + * + *
+     * Online serving scaling configuration.
+     * Only one of `fixed_node_count` and `scaling` can be set. Setting one will
+     * reset the other.
+     * 
+ * + * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling scaling = 4; + * + * + * @return Whether the scaling field is set. + */ + boolean hasScaling(); + /** + * + * + *
+     * Online serving scaling configuration.
+     * Only one of `fixed_node_count` and `scaling` can be set. Setting one will
+     * reset the other.
+     * 
+ * + * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling scaling = 4; + * + * + * @return The scaling. + */ + com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling getScaling(); + /** + * + * + *
+     * Online serving scaling configuration.
+     * Only one of `fixed_node_count` and `scaling` can be set. Setting one will
+     * reset the other.
+     * 
+ * + * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling scaling = 4; + * + */ + com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.ScalingOrBuilder + getScalingOrBuilder(); } /** * @@ -474,6 +519,25 @@ private OnlineServingConfig( case 16: { fixedNodeCount_ = input.readInt32(); + break; + } + case 34: + { + com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.Builder + subBuilder = null; + if (scaling_ != null) { + subBuilder = scaling_.toBuilder(); + } + scaling_ = + input.readMessage( + com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scaling_); + scaling_ = subBuilder.buildPartial(); + } + break; } default: @@ -512,6 +576,703 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Builder.class); } + public interface ScalingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * 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]; + * + * @return The minNodeCount. + */ + int getMinNodeCount(); + + /** + * + * + *
+       * The maximum number of nodes to scale up to. Must be greater than
+       * min_node_count, and less than or equal to 10 times of 'min_node_count'.
+       * 
+ * + * int32 max_node_count = 2; + * + * @return The maxNodeCount. + */ + int getMaxNodeCount(); + } + /** + * + * + *
+     * Online serving scaling configuration. If min_node_count and
+     * max_node_count are set to the same value, the cluster will be configured
+     * with the fixed number of node (no auto-scaling).
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling} + */ + public static final class Scaling extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling) + ScalingOrBuilder { + private static final long serialVersionUID = 0L; + // Use Scaling.newBuilder() to construct. + private Scaling(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Scaling() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Scaling(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Scaling( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + minNodeCount_ = input.readInt32(); + break; + } + case 16: + { + maxNodeCount_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.FeaturestoreProto + .internal_static_google_cloud_aiplatform_v1_Featurestore_OnlineServingConfig_Scaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.FeaturestoreProto + .internal_static_google_cloud_aiplatform_v1_Featurestore_OnlineServingConfig_Scaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.class, + com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.Builder + .class); + } + + public static final int MIN_NODE_COUNT_FIELD_NUMBER = 1; + private int minNodeCount_; + /** + * + * + *
+       * 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]; + * + * @return The minNodeCount. + */ + @java.lang.Override + public int getMinNodeCount() { + return minNodeCount_; + } + + public static final int MAX_NODE_COUNT_FIELD_NUMBER = 2; + private int maxNodeCount_; + /** + * + * + *
+       * The maximum number of nodes to scale up to. Must be greater than
+       * min_node_count, and less than or equal to 10 times of 'min_node_count'.
+       * 
+ * + * int32 max_node_count = 2; + * + * @return The maxNodeCount. + */ + @java.lang.Override + public int getMaxNodeCount() { + return maxNodeCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (minNodeCount_ != 0) { + output.writeInt32(1, minNodeCount_); + } + if (maxNodeCount_ != 0) { + output.writeInt32(2, maxNodeCount_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (minNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, minNodeCount_); + } + if (maxNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxNodeCount_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling other = + (com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling) obj; + + if (getMinNodeCount() != other.getMinNodeCount()) return false; + if (getMaxNodeCount() != other.getMaxNodeCount()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MIN_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMinNodeCount(); + hash = (37 * hash) + MAX_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMaxNodeCount(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * Online serving scaling configuration. If min_node_count and
+       * max_node_count are set to the same value, the cluster will be configured
+       * with the fixed number of node (no auto-scaling).
+       * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling) + com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.ScalingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.FeaturestoreProto + .internal_static_google_cloud_aiplatform_v1_Featurestore_OnlineServingConfig_Scaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.FeaturestoreProto + .internal_static_google_cloud_aiplatform_v1_Featurestore_OnlineServingConfig_Scaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.class, + com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + minNodeCount_ = 0; + + maxNodeCount_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.FeaturestoreProto + .internal_static_google_cloud_aiplatform_v1_Featurestore_OnlineServingConfig_Scaling_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling build() { + com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + buildPartial() { + com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling result = + new com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling(this); + result.minNodeCount_ = minNodeCount_; + result.maxNodeCount_ = maxNodeCount_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling other) { + if (other + == com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + .getDefaultInstance()) return this; + if (other.getMinNodeCount() != 0) { + setMinNodeCount(other.getMinNodeCount()); + } + if (other.getMaxNodeCount() != 0) { + setMaxNodeCount(other.getMaxNodeCount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int minNodeCount_; + /** + * + * + *
+         * 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]; + * + * @return The minNodeCount. + */ + @java.lang.Override + public int getMinNodeCount() { + return minNodeCount_; + } + /** + * + * + *
+         * 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]; + * + * @param value The minNodeCount to set. + * @return This builder for chaining. + */ + public Builder setMinNodeCount(int value) { + + minNodeCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * 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]; + * + * @return This builder for chaining. + */ + public Builder clearMinNodeCount() { + + minNodeCount_ = 0; + onChanged(); + return this; + } + + private int maxNodeCount_; + /** + * + * + *
+         * The maximum number of nodes to scale up to. Must be greater than
+         * min_node_count, and less than or equal to 10 times of 'min_node_count'.
+         * 
+ * + * int32 max_node_count = 2; + * + * @return The maxNodeCount. + */ + @java.lang.Override + public int getMaxNodeCount() { + return maxNodeCount_; + } + /** + * + * + *
+         * The maximum number of nodes to scale up to. Must be greater than
+         * min_node_count, and less than or equal to 10 times of 'min_node_count'.
+         * 
+ * + * int32 max_node_count = 2; + * + * @param value The maxNodeCount to set. + * @return This builder for chaining. + */ + public Builder setMaxNodeCount(int value) { + + maxNodeCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * The maximum number of nodes to scale up to. Must be greater than
+         * min_node_count, and less than or equal to 10 times of 'min_node_count'.
+         * 
+ * + * int32 max_node_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearMaxNodeCount() { + + maxNodeCount_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling) + private static final com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling(); + } + + public static com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Scaling parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Scaling(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public static final int FIXED_NODE_COUNT_FIELD_NUMBER = 2; private int fixedNodeCount_; /** @@ -533,6 +1294,65 @@ public int getFixedNodeCount() { return fixedNodeCount_; } + public static final int SCALING_FIELD_NUMBER = 4; + private com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling scaling_; + /** + * + * + *
+     * Online serving scaling configuration.
+     * Only one of `fixed_node_count` and `scaling` can be set. Setting one will
+     * reset the other.
+     * 
+ * + * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling scaling = 4; + * + * + * @return Whether the scaling field is set. + */ + @java.lang.Override + public boolean hasScaling() { + return scaling_ != null; + } + /** + * + * + *
+     * Online serving scaling configuration.
+     * Only one of `fixed_node_count` and `scaling` can be set. Setting one will
+     * reset the other.
+     * 
+ * + * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling scaling = 4; + * + * + * @return The scaling. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling getScaling() { + return scaling_ == null + ? com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + .getDefaultInstance() + : scaling_; + } + /** + * + * + *
+     * Online serving scaling configuration.
+     * Only one of `fixed_node_count` and `scaling` can be set. Setting one will
+     * reset the other.
+     * 
+ * + * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling scaling = 4; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.ScalingOrBuilder + getScalingOrBuilder() { + return getScaling(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -550,6 +1370,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (fixedNodeCount_ != 0) { output.writeInt32(2, fixedNodeCount_); } + if (scaling_ != null) { + output.writeMessage(4, getScaling()); + } unknownFields.writeTo(output); } @@ -562,6 +1385,9 @@ public int getSerializedSize() { if (fixedNodeCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, fixedNodeCount_); } + if (scaling_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getScaling()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -579,6 +1405,10 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig) obj; if (getFixedNodeCount() != other.getFixedNodeCount()) return false; + if (hasScaling() != other.hasScaling()) return false; + if (hasScaling()) { + if (!getScaling().equals(other.getScaling())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -592,6 +1422,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FIXED_NODE_COUNT_FIELD_NUMBER; hash = (53 * hash) + getFixedNodeCount(); + if (hasScaling()) { + hash = (37 * hash) + SCALING_FIELD_NUMBER; + hash = (53 * hash) + getScaling().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -745,6 +1579,12 @@ public Builder clear() { super.clear(); fixedNodeCount_ = 0; + if (scalingBuilder_ == null) { + scaling_ = null; + } else { + scaling_ = null; + scalingBuilder_ = null; + } return this; } @@ -774,6 +1614,11 @@ public com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig buildPart com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig result = new com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig(this); result.fixedNodeCount_ = fixedNodeCount_; + if (scalingBuilder_ == null) { + result.scaling_ = scaling_; + } else { + result.scaling_ = scalingBuilder_.build(); + } onBuilt(); return result; } @@ -831,6 +1676,9 @@ public Builder mergeFrom( if (other.getFixedNodeCount() != 0) { setFixedNodeCount(other.getFixedNodeCount()); } + if (other.hasScaling()) { + mergeScaling(other.getScaling()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -923,6 +1771,227 @@ public Builder clearFixedNodeCount() { return this; } + private com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling scaling_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling, + com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.Builder, + com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.ScalingOrBuilder> + scalingBuilder_; + /** + * + * + *
+       * Online serving scaling configuration.
+       * Only one of `fixed_node_count` and `scaling` can be set. Setting one will
+       * reset the other.
+       * 
+ * + * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling scaling = 4; + * + * + * @return Whether the scaling field is set. + */ + public boolean hasScaling() { + return scalingBuilder_ != null || scaling_ != null; + } + /** + * + * + *
+       * Online serving scaling configuration.
+       * Only one of `fixed_node_count` and `scaling` can be set. Setting one will
+       * reset the other.
+       * 
+ * + * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling scaling = 4; + * + * + * @return The scaling. + */ + public com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling getScaling() { + if (scalingBuilder_ == null) { + return scaling_ == null + ? com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + .getDefaultInstance() + : scaling_; + } else { + return scalingBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Online serving scaling configuration.
+       * Only one of `fixed_node_count` and `scaling` can be set. Setting one will
+       * reset the other.
+       * 
+ * + * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling scaling = 4; + * + */ + public Builder setScaling( + com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling value) { + if (scalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scaling_ = value; + onChanged(); + } else { + scalingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Online serving scaling configuration.
+       * Only one of `fixed_node_count` and `scaling` can be set. Setting one will
+       * reset the other.
+       * 
+ * + * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling scaling = 4; + * + */ + public Builder setScaling( + com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.Builder + builderForValue) { + if (scalingBuilder_ == null) { + scaling_ = builderForValue.build(); + onChanged(); + } else { + scalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Online serving scaling configuration.
+       * Only one of `fixed_node_count` and `scaling` can be set. Setting one will
+       * reset the other.
+       * 
+ * + * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling scaling = 4; + * + */ + public Builder mergeScaling( + com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling value) { + if (scalingBuilder_ == null) { + if (scaling_ != null) { + scaling_ = + com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.newBuilder( + scaling_) + .mergeFrom(value) + .buildPartial(); + } else { + scaling_ = value; + } + onChanged(); + } else { + scalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Online serving scaling configuration.
+       * Only one of `fixed_node_count` and `scaling` can be set. Setting one will
+       * reset the other.
+       * 
+ * + * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling scaling = 4; + * + */ + public Builder clearScaling() { + if (scalingBuilder_ == null) { + scaling_ = null; + onChanged(); + } else { + scaling_ = null; + scalingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Online serving scaling configuration.
+       * Only one of `fixed_node_count` and `scaling` can be set. Setting one will
+       * reset the other.
+       * 
+ * + * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling scaling = 4; + * + */ + public com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.Builder + getScalingBuilder() { + + onChanged(); + return getScalingFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Online serving scaling configuration.
+       * Only one of `fixed_node_count` and `scaling` can be set. Setting one will
+       * reset the other.
+       * 
+ * + * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling scaling = 4; + * + */ + public com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.ScalingOrBuilder + getScalingOrBuilder() { + if (scalingBuilder_ != null) { + return scalingBuilder_.getMessageOrBuilder(); + } else { + return scaling_ == null + ? com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling + .getDefaultInstance() + : scaling_; + } + } + /** + * + * + *
+       * Online serving scaling configuration.
+       * Only one of `fixed_node_count` and `scaling` can be set. Setting one will
+       * reset the other.
+       * 
+ * + * .google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling scaling = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling, + com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.Builder, + com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.ScalingOrBuilder> + getScalingFieldBuilder() { + if (scalingBuilder_ == null) { + scalingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling, + com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling.Builder, + com.google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.ScalingOrBuilder>( + getScaling(), getParentForChildren(), isClean()); + scaling_ = null; + } + return scalingBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreName.java index 8cc35f3d23d0..2bb3c362c545 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreProto.java index aea5535f7729..36b8c4e1a1a3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreProto.java @@ -35,6 +35,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_Featurestore_OnlineServingConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_Featurestore_OnlineServingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_Featurestore_OnlineServingConfig_Scaling_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_Featurestore_OnlineServingConfig_Scaling_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_Featurestore_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -53,7 +57,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gle/api/field_behavior.proto\032\031google/api" + "/resource.proto\0320google/cloud/aiplatform" + "/v1/encryption_spec.proto\032\037google/protob" - + "uf/timestamp.proto\"\350\005\n\014Featurestore\022\021\n\004n" + + "uf/timestamp.proto\"\200\007\n\014Featurestore\022\021\n\004n" + "ame\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032.go" + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013update_t" + "ime\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340" @@ -65,19 +69,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ate\030\010 \001(\0162..google.cloud.aiplatform.v1.F" + "eaturestore.StateB\003\340A\003\022H\n\017encryption_spe" + "c\030\n \001(\0132*.google.cloud.aiplatform.v1.Enc" - + "ryptionSpecB\003\340A\001\032/\n\023OnlineServingConfig\022" - + "\030\n\020fixed_node_count\030\002 \001(\005\032-\n\013LabelsEntry" - + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"8\n\005Stat" - + "e\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006STABLE\020\001\022\014\n\010" - + "UPDATING\020\002:q\352An\n&aiplatform.googleapis.c" - + "om/Featurestore\022Dprojects/{project}/loca" - + "tions/{location}/featurestores/{features" - + "tore}B\325\001\n\036com.google.cloud.aiplatform.v1" - + "B\021FeaturestoreProtoP\001ZDgoogle.golang.org" - + "/genproto/googleapis/cloud/aiplatform/v1" - + ";aiplatform\252\002\032Google.Cloud.AIPlatform.V1" - + "\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google::" - + "Cloud::AIPlatform::V1b\006proto3" + + "ryptionSpecB\003\340A\001\032\306\001\n\023OnlineServingConfig" + + "\022\030\n\020fixed_node_count\030\002 \001(\005\022U\n\007scaling\030\004 " + + "\001(\0132D.google.cloud.aiplatform.v1.Feature" + + "store.OnlineServingConfig.Scaling\032>\n\007Sca" + + "ling\022\033\n\016min_node_count\030\001 \001(\005B\003\340A\002\022\026\n\016max" + + "_node_count\030\002 \001(\005\032-\n\013LabelsEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"8\n\005State\022\025\n\021STA" + + "TE_UNSPECIFIED\020\000\022\n\n\006STABLE\020\001\022\014\n\010UPDATING" + + "\020\002:q\352An\n&aiplatform.googleapis.com/Featu" + + "restore\022Dprojects/{project}/locations/{l" + + "ocation}/featurestores/{featurestore}B\325\001" + + "\n\036com.google.cloud.aiplatform.v1B\021Featur" + + "estoreProtoP\001ZDgoogle.golang.org/genprot" + + "o/googleapis/cloud/aiplatform/v1;aiplatf" + + "orm\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Googl" + + "e\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::A" + + "IPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -109,7 +117,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_Featurestore_OnlineServingConfig_descriptor, new java.lang.String[] { - "FixedNodeCount", + "FixedNodeCount", "Scaling", + }); + internal_static_google_cloud_aiplatform_v1_Featurestore_OnlineServingConfig_Scaling_descriptor = + internal_static_google_cloud_aiplatform_v1_Featurestore_OnlineServingConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1_Featurestore_OnlineServingConfig_Scaling_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_Featurestore_OnlineServingConfig_Scaling_descriptor, + new java.lang.String[] { + "MinNodeCount", "MaxNodeCount", }); internal_static_google_cloud_aiplatform_v1_Featurestore_LabelsEntry_descriptor = internal_static_google_cloud_aiplatform_v1_Featurestore_descriptor.getNestedTypes().get(1); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelRequest.java index bca052d19b15..af2c8c2bf2b2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelRequest.java @@ -121,6 +121,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. The name of the Model resource.
    * Format: `projects/{project}/locations/{location}/models/{model}`
+   * In order to retrieve a specific version of the model, also provide
+   * the version ID or version alias.
+   *   Example: `projects/{project}/locations/{location}/models/{model}@2`
+   *              or
+   *            `projects/{project}/locations/{location}/models/{model}@golden`
+   * If no version ID or alias is specified, the "default" version will be
+   * returned. The "default" version alias is created for the first version of
+   * the model, and can be moved to other versions later on. There will be
+   * exactly one default version.
    * 
* * @@ -147,6 +156,15 @@ public java.lang.String getName() { *
    * Required. The name of the Model resource.
    * Format: `projects/{project}/locations/{location}/models/{model}`
+   * In order to retrieve a specific version of the model, also provide
+   * the version ID or version alias.
+   *   Example: `projects/{project}/locations/{location}/models/{model}@2`
+   *              or
+   *            `projects/{project}/locations/{location}/models/{model}@golden`
+   * If no version ID or alias is specified, the "default" version will be
+   * returned. The "default" version alias is created for the first version of
+   * the model, and can be moved to other versions later on. There will be
+   * exactly one default version.
    * 
* * @@ -491,6 +509,15 @@ public Builder mergeFrom( *
      * Required. The name of the Model resource.
      * Format: `projects/{project}/locations/{location}/models/{model}`
+     * In order to retrieve a specific version of the model, also provide
+     * the version ID or version alias.
+     *   Example: `projects/{project}/locations/{location}/models/{model}@2`
+     *              or
+     *            `projects/{project}/locations/{location}/models/{model}@golden`
+     * If no version ID or alias is specified, the "default" version will be
+     * returned. The "default" version alias is created for the first version of
+     * the model, and can be moved to other versions later on. There will be
+     * exactly one default version.
      * 
* * @@ -516,6 +543,15 @@ public java.lang.String getName() { *
      * Required. The name of the Model resource.
      * Format: `projects/{project}/locations/{location}/models/{model}`
+     * In order to retrieve a specific version of the model, also provide
+     * the version ID or version alias.
+     *   Example: `projects/{project}/locations/{location}/models/{model}@2`
+     *              or
+     *            `projects/{project}/locations/{location}/models/{model}@golden`
+     * If no version ID or alias is specified, the "default" version will be
+     * returned. The "default" version alias is created for the first version of
+     * the model, and can be moved to other versions later on. There will be
+     * exactly one default version.
      * 
* * @@ -541,6 +577,15 @@ public com.google.protobuf.ByteString getNameBytes() { *
      * Required. The name of the Model resource.
      * Format: `projects/{project}/locations/{location}/models/{model}`
+     * In order to retrieve a specific version of the model, also provide
+     * the version ID or version alias.
+     *   Example: `projects/{project}/locations/{location}/models/{model}@2`
+     *              or
+     *            `projects/{project}/locations/{location}/models/{model}@golden`
+     * If no version ID or alias is specified, the "default" version will be
+     * returned. The "default" version alias is created for the first version of
+     * the model, and can be moved to other versions later on. There will be
+     * exactly one default version.
      * 
* * @@ -565,6 +610,15 @@ public Builder setName(java.lang.String value) { *
      * Required. The name of the Model resource.
      * Format: `projects/{project}/locations/{location}/models/{model}`
+     * In order to retrieve a specific version of the model, also provide
+     * the version ID or version alias.
+     *   Example: `projects/{project}/locations/{location}/models/{model}@2`
+     *              or
+     *            `projects/{project}/locations/{location}/models/{model}@golden`
+     * If no version ID or alias is specified, the "default" version will be
+     * returned. The "default" version alias is created for the first version of
+     * the model, and can be moved to other versions later on. There will be
+     * exactly one default version.
      * 
* * @@ -585,6 +639,15 @@ public Builder clearName() { *
      * Required. The name of the Model resource.
      * Format: `projects/{project}/locations/{location}/models/{model}`
+     * In order to retrieve a specific version of the model, also provide
+     * the version ID or version alias.
+     *   Example: `projects/{project}/locations/{location}/models/{model}@2`
+     *              or
+     *            `projects/{project}/locations/{location}/models/{model}@golden`
+     * If no version ID or alias is specified, the "default" version will be
+     * returned. The "default" version alias is created for the first version of
+     * the model, and can be moved to other versions later on. There will be
+     * exactly one default version.
      * 
* * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelRequestOrBuilder.java index 8fd7a304a53c..394a16042bab 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetModelRequestOrBuilder.java @@ -29,6 +29,15 @@ public interface GetModelRequestOrBuilder *
    * Required. The name of the Model resource.
    * Format: `projects/{project}/locations/{location}/models/{model}`
+   * In order to retrieve a specific version of the model, also provide
+   * the version ID or version alias.
+   *   Example: `projects/{project}/locations/{location}/models/{model}@2`
+   *              or
+   *            `projects/{project}/locations/{location}/models/{model}@golden`
+   * If no version ID or alias is specified, the "default" version will be
+   * returned. The "default" version alias is created for the first version of
+   * the model, and can be moved to other versions later on. There will be
+   * exactly one default version.
    * 
* * @@ -44,6 +53,15 @@ public interface GetModelRequestOrBuilder *
    * Required. The name of the Model resource.
    * Format: `projects/{project}/locations/{location}/models/{model}`
+   * In order to retrieve a specific version of the model, also provide
+   * the version ID or version alias.
+   *   Example: `projects/{project}/locations/{location}/models/{model}@2`
+   *              or
+   *            `projects/{project}/locations/{location}/models/{model}@golden`
+   * If no version ID or alias is specified, the "default" version will be
+   * returned. The "default" version alias is created for the first version of
+   * the model, and can be moved to other versions later on. There will be
+   * exactly one default version.
    * 
* * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobName.java index cf196e5d07be..55873b45e0f5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointName.java index 8a3bb52acfb5..abc52130fc74 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexName.java index 15f34a6d66fd..6fc86d3a1c2b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionsRequest.java new file mode 100644 index 000000000000..9de9ff332dc6 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionsRequest.java @@ -0,0 +1,1439 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/model_service.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for [ModelService.ListModelVersions][google.cloud.aiplatform.v1.ModelService.ListModelVersions].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListModelVersionsRequest} + */ +public final class ListModelVersionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ListModelVersionsRequest) + ListModelVersionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListModelVersionsRequest.newBuilder() to construct. + private ListModelVersionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListModelVersionsRequest() { + name_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListModelVersionsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListModelVersionsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 42: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (readMask_ != null) { + subBuilder = readMask_.toBuilder(); + } + readMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readMask_); + readMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_ListModelVersionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_ListModelVersionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListModelVersionsRequest.class, + com.google.cloud.aiplatform.v1.ListModelVersionsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the model to list versions for.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the model to list versions for.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + * + * + *
+   * The standard list page size.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * The standard list page token.
+   * Typically obtained via
+   * [ListModelVersionsResponse.next_page_token][google.cloud.aiplatform.v1.ListModelVersionsResponse.next_page_token] of the previous
+   * [ModelService.ListModelversions][] call.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * The standard list page token.
+   * Typically obtained via
+   * [ListModelVersionsResponse.next_page_token][google.cloud.aiplatform.v1.ListModelVersionsResponse.next_page_token] of the previous
+   * [ModelService.ListModelversions][] call.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * An expression for filtering the results of the request. For field names
+   * both snake_case and camelCase are supported.
+   *   * `labels` supports general map functions that is:
+   *     * `labels.key=value` - key:value equality
+   *     * `labels.key:* or labels:key - key existence
+   *     * A key including a space must be quoted. `labels."a key"`.
+   * Some examples:
+   *   * `labels.myKey="myValue"`
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * An expression for filtering the results of the request. For field names
+   * both snake_case and camelCase are supported.
+   *   * `labels` supports general map functions that is:
+   *     * `labels.key=value` - key:value equality
+   *     * `labels.key:* or labels:key - key existence
+   *     * A key including a space must be quoted. `labels."a key"`.
+   * Some examples:
+   *   * `labels.myKey="myValue"`
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int READ_MASK_FIELD_NUMBER = 5; + private com.google.protobuf.FieldMask readMask_; + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return Whether the readMask field is set. + */ + @java.lang.Override + public boolean hasReadMask() { + return readMask_ != null; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return The readMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getReadMask() { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + return getReadMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (readMask_ != null) { + output.writeMessage(5, getReadMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (readMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReadMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.ListModelVersionsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ListModelVersionsRequest other = + (com.google.cloud.aiplatform.v1.ListModelVersionsRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (hasReadMask() != other.hasReadMask()) return false; + if (hasReadMask()) { + if (!getReadMask().equals(other.getReadMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + if (hasReadMask()) { + hash = (37 * hash) + READ_MASK_FIELD_NUMBER; + hash = (53 * hash) + getReadMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.ListModelVersionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [ModelService.ListModelVersions][google.cloud.aiplatform.v1.ModelService.ListModelVersions].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListModelVersionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ListModelVersionsRequest) + com.google.cloud.aiplatform.v1.ListModelVersionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_ListModelVersionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_ListModelVersionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListModelVersionsRequest.class, + com.google.cloud.aiplatform.v1.ListModelVersionsRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ListModelVersionsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + filter_ = ""; + + if (readMaskBuilder_ == null) { + readMask_ = null; + } else { + readMask_ = null; + readMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_ListModelVersionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListModelVersionsRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ListModelVersionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListModelVersionsRequest build() { + com.google.cloud.aiplatform.v1.ListModelVersionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListModelVersionsRequest buildPartial() { + com.google.cloud.aiplatform.v1.ListModelVersionsRequest result = + new com.google.cloud.aiplatform.v1.ListModelVersionsRequest(this); + result.name_ = name_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.filter_ = filter_; + if (readMaskBuilder_ == null) { + result.readMask_ = readMask_; + } else { + result.readMask_ = readMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.ListModelVersionsRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.ListModelVersionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListModelVersionsRequest other) { + if (other == com.google.cloud.aiplatform.v1.ListModelVersionsRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (other.hasReadMask()) { + mergeReadMask(other.getReadMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1.ListModelVersionsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1.ListModelVersionsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the model to list versions for.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the model to list versions for.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the model to list versions for.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the model to list versions for.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the model to list versions for.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The standard list page size.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The standard list page size.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The standard list page size.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * The standard list page token.
+     * Typically obtained via
+     * [ListModelVersionsResponse.next_page_token][google.cloud.aiplatform.v1.ListModelVersionsResponse.next_page_token] of the previous
+     * [ModelService.ListModelversions][] call.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The standard list page token.
+     * Typically obtained via
+     * [ListModelVersionsResponse.next_page_token][google.cloud.aiplatform.v1.ListModelVersionsResponse.next_page_token] of the previous
+     * [ModelService.ListModelversions][] call.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The standard list page token.
+     * Typically obtained via
+     * [ListModelVersionsResponse.next_page_token][google.cloud.aiplatform.v1.ListModelVersionsResponse.next_page_token] of the previous
+     * [ModelService.ListModelversions][] call.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The standard list page token.
+     * Typically obtained via
+     * [ListModelVersionsResponse.next_page_token][google.cloud.aiplatform.v1.ListModelVersionsResponse.next_page_token] of the previous
+     * [ModelService.ListModelversions][] call.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * The standard list page token.
+     * Typically obtained via
+     * [ListModelVersionsResponse.next_page_token][google.cloud.aiplatform.v1.ListModelVersionsResponse.next_page_token] of the previous
+     * [ModelService.ListModelversions][] call.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * An expression for filtering the results of the request. For field names
+     * both snake_case and camelCase are supported.
+     *   * `labels` supports general map functions that is:
+     *     * `labels.key=value` - key:value equality
+     *     * `labels.key:* or labels:key - key existence
+     *     * A key including a space must be quoted. `labels."a key"`.
+     * Some examples:
+     *   * `labels.myKey="myValue"`
+     * 
+ * + * string filter = 4; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * An expression for filtering the results of the request. For field names
+     * both snake_case and camelCase are supported.
+     *   * `labels` supports general map functions that is:
+     *     * `labels.key=value` - key:value equality
+     *     * `labels.key:* or labels:key - key existence
+     *     * A key including a space must be quoted. `labels."a key"`.
+     * Some examples:
+     *   * `labels.myKey="myValue"`
+     * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * An expression for filtering the results of the request. For field names
+     * both snake_case and camelCase are supported.
+     *   * `labels` supports general map functions that is:
+     *     * `labels.key=value` - key:value equality
+     *     * `labels.key:* or labels:key - key existence
+     *     * A key including a space must be quoted. `labels."a key"`.
+     * Some examples:
+     *   * `labels.myKey="myValue"`
+     * 
+ * + * string filter = 4; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * An expression for filtering the results of the request. For field names
+     * both snake_case and camelCase are supported.
+     *   * `labels` supports general map functions that is:
+     *     * `labels.key=value` - key:value equality
+     *     * `labels.key:* or labels:key - key existence
+     *     * A key including a space must be quoted. `labels."a key"`.
+     * Some examples:
+     *   * `labels.myKey="myValue"`
+     * 
+ * + * string filter = 4; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * An expression for filtering the results of the request. For field names
+     * both snake_case and camelCase are supported.
+     *   * `labels` supports general map functions that is:
+     *     * `labels.key=value` - key:value equality
+     *     * `labels.key:* or labels:key - key existence
+     *     * A key including a space must be quoted. `labels."a key"`.
+     * Some examples:
+     *   * `labels.myKey="myValue"`
+     * 
+ * + * string filter = 4; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.FieldMask readMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + readMaskBuilder_; + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return Whether the readMask field is set. + */ + public boolean hasReadMask() { + return readMaskBuilder_ != null || readMask_ != null; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return The readMask. + */ + public com.google.protobuf.FieldMask getReadMask() { + if (readMaskBuilder_ == null) { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } else { + return readMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public Builder setReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readMask_ = value; + onChanged(); + } else { + readMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (readMaskBuilder_ == null) { + readMask_ = builderForValue.build(); + onChanged(); + } else { + readMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public Builder mergeReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (readMask_ != null) { + readMask_ = + com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + } else { + readMask_ = value; + } + onChanged(); + } else { + readMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public Builder clearReadMask() { + if (readMaskBuilder_ == null) { + readMask_ = null; + onChanged(); + } else { + readMask_ = null; + readMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { + + onChanged(); + return getReadMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + if (readMaskBuilder_ != null) { + return readMaskBuilder_.getMessageOrBuilder(); + } else { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getReadMaskFieldBuilder() { + if (readMaskBuilder_ == null) { + readMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), getParentForChildren(), isClean()); + readMask_ = null; + } + return readMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.ListModelVersionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ListModelVersionsRequest) + private static final com.google.cloud.aiplatform.v1.ListModelVersionsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ListModelVersionsRequest(); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListModelVersionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListModelVersionsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListModelVersionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionsRequestOrBuilder.java new file mode 100644 index 000000000000..bbbadb26d6c9 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionsRequestOrBuilder.java @@ -0,0 +1,172 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/model_service.proto + +package com.google.cloud.aiplatform.v1; + +public interface ListModelVersionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ListModelVersionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the model to list versions for.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the model to list versions for.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The standard list page size.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * The standard list page token.
+   * Typically obtained via
+   * [ListModelVersionsResponse.next_page_token][google.cloud.aiplatform.v1.ListModelVersionsResponse.next_page_token] of the previous
+   * [ModelService.ListModelversions][] call.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * The standard list page token.
+   * Typically obtained via
+   * [ListModelVersionsResponse.next_page_token][google.cloud.aiplatform.v1.ListModelVersionsResponse.next_page_token] of the previous
+   * [ModelService.ListModelversions][] call.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * An expression for filtering the results of the request. For field names
+   * both snake_case and camelCase are supported.
+   *   * `labels` supports general map functions that is:
+   *     * `labels.key=value` - key:value equality
+   *     * `labels.key:* or labels:key - key existence
+   *     * A key including a space must be quoted. `labels."a key"`.
+   * Some examples:
+   *   * `labels.myKey="myValue"`
+   * 
+ * + * string filter = 4; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * An expression for filtering the results of the request. For field names
+   * both snake_case and camelCase are supported.
+   *   * `labels` supports general map functions that is:
+   *     * `labels.key=value` - key:value equality
+   *     * `labels.key:* or labels:key - key existence
+   *     * A key including a space must be quoted. `labels."a key"`.
+   * Some examples:
+   *   * `labels.myKey="myValue"`
+   * 
+ * + * string filter = 4; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return Whether the readMask field is set. + */ + boolean hasReadMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return The readMask. + */ + com.google.protobuf.FieldMask getReadMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionsResponse.java new file mode 100644 index 000000000000..1dd0ee9edf38 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionsResponse.java @@ -0,0 +1,1183 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/model_service.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Response message for [ModelService.ListModelVersions][google.cloud.aiplatform.v1.ModelService.ListModelVersions]
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListModelVersionsResponse} + */ +public final class ListModelVersionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ListModelVersionsResponse) + ListModelVersionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListModelVersionsResponse.newBuilder() to construct. + private ListModelVersionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListModelVersionsResponse() { + models_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListModelVersionsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListModelVersionsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + models_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + models_.add( + input.readMessage( + com.google.cloud.aiplatform.v1.Model.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + models_ = java.util.Collections.unmodifiableList(models_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_ListModelVersionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_ListModelVersionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListModelVersionsResponse.class, + com.google.cloud.aiplatform.v1.ListModelVersionsResponse.Builder.class); + } + + public static final int MODELS_FIELD_NUMBER = 1; + private java.util.List models_; + /** + * + * + *
+   * List of Model versions in the requested page.
+   * In the returned Model name field, version ID instead of regvision tag will
+   * be included.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Model models = 1; + */ + @java.lang.Override + public java.util.List getModelsList() { + return models_; + } + /** + * + * + *
+   * List of Model versions in the requested page.
+   * In the returned Model name field, version ID instead of regvision tag will
+   * be included.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Model models = 1; + */ + @java.lang.Override + public java.util.List + getModelsOrBuilderList() { + return models_; + } + /** + * + * + *
+   * List of Model versions in the requested page.
+   * In the returned Model name field, version ID instead of regvision tag will
+   * be included.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Model models = 1; + */ + @java.lang.Override + public int getModelsCount() { + return models_.size(); + } + /** + * + * + *
+   * List of Model versions in the requested page.
+   * In the returned Model name field, version ID instead of regvision tag will
+   * be included.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Model models = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Model getModels(int index) { + return models_.get(index); + } + /** + * + * + *
+   * List of Model versions in the requested page.
+   * In the returned Model name field, version ID instead of regvision tag will
+   * be included.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Model models = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ModelOrBuilder getModelsOrBuilder(int index) { + return models_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * Pass to [ListModelVersionsRequest.page_token][google.cloud.aiplatform.v1.ListModelVersionsRequest.page_token] to obtain that page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * Pass to [ListModelVersionsRequest.page_token][google.cloud.aiplatform.v1.ListModelVersionsRequest.page_token] to obtain that page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < models_.size(); i++) { + output.writeMessage(1, models_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < models_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, models_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.ListModelVersionsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ListModelVersionsResponse other = + (com.google.cloud.aiplatform.v1.ListModelVersionsResponse) obj; + + if (!getModelsList().equals(other.getModelsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getModelsCount() > 0) { + hash = (37 * hash) + MODELS_FIELD_NUMBER; + hash = (53 * hash) + getModelsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.ListModelVersionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for [ModelService.ListModelVersions][google.cloud.aiplatform.v1.ModelService.ListModelVersions]
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListModelVersionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ListModelVersionsResponse) + com.google.cloud.aiplatform.v1.ListModelVersionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_ListModelVersionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_ListModelVersionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListModelVersionsResponse.class, + com.google.cloud.aiplatform.v1.ListModelVersionsResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ListModelVersionsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getModelsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (modelsBuilder_ == null) { + models_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + modelsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_ListModelVersionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListModelVersionsResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ListModelVersionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListModelVersionsResponse build() { + com.google.cloud.aiplatform.v1.ListModelVersionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListModelVersionsResponse buildPartial() { + com.google.cloud.aiplatform.v1.ListModelVersionsResponse result = + new com.google.cloud.aiplatform.v1.ListModelVersionsResponse(this); + int from_bitField0_ = bitField0_; + if (modelsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + models_ = java.util.Collections.unmodifiableList(models_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.models_ = models_; + } else { + result.models_ = modelsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.ListModelVersionsResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1.ListModelVersionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListModelVersionsResponse other) { + if (other == com.google.cloud.aiplatform.v1.ListModelVersionsResponse.getDefaultInstance()) + return this; + if (modelsBuilder_ == null) { + if (!other.models_.isEmpty()) { + if (models_.isEmpty()) { + models_ = other.models_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureModelsIsMutable(); + models_.addAll(other.models_); + } + onChanged(); + } + } else { + if (!other.models_.isEmpty()) { + if (modelsBuilder_.isEmpty()) { + modelsBuilder_.dispose(); + modelsBuilder_ = null; + models_ = other.models_; + bitField0_ = (bitField0_ & ~0x00000001); + modelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getModelsFieldBuilder() + : null; + } else { + modelsBuilder_.addAllMessages(other.models_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1.ListModelVersionsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1.ListModelVersionsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List models_ = + java.util.Collections.emptyList(); + + private void ensureModelsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + models_ = new java.util.ArrayList(models_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Model, + com.google.cloud.aiplatform.v1.Model.Builder, + com.google.cloud.aiplatform.v1.ModelOrBuilder> + modelsBuilder_; + + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Model models = 1; + */ + public java.util.List getModelsList() { + if (modelsBuilder_ == null) { + return java.util.Collections.unmodifiableList(models_); + } else { + return modelsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Model models = 1; + */ + public int getModelsCount() { + if (modelsBuilder_ == null) { + return models_.size(); + } else { + return modelsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Model models = 1; + */ + public com.google.cloud.aiplatform.v1.Model getModels(int index) { + if (modelsBuilder_ == null) { + return models_.get(index); + } else { + return modelsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Model models = 1; + */ + public Builder setModels(int index, com.google.cloud.aiplatform.v1.Model value) { + if (modelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureModelsIsMutable(); + models_.set(index, value); + onChanged(); + } else { + modelsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Model models = 1; + */ + public Builder setModels( + int index, com.google.cloud.aiplatform.v1.Model.Builder builderForValue) { + if (modelsBuilder_ == null) { + ensureModelsIsMutable(); + models_.set(index, builderForValue.build()); + onChanged(); + } else { + modelsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Model models = 1; + */ + public Builder addModels(com.google.cloud.aiplatform.v1.Model value) { + if (modelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureModelsIsMutable(); + models_.add(value); + onChanged(); + } else { + modelsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Model models = 1; + */ + public Builder addModels(int index, com.google.cloud.aiplatform.v1.Model value) { + if (modelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureModelsIsMutable(); + models_.add(index, value); + onChanged(); + } else { + modelsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Model models = 1; + */ + public Builder addModels(com.google.cloud.aiplatform.v1.Model.Builder builderForValue) { + if (modelsBuilder_ == null) { + ensureModelsIsMutable(); + models_.add(builderForValue.build()); + onChanged(); + } else { + modelsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Model models = 1; + */ + public Builder addModels( + int index, com.google.cloud.aiplatform.v1.Model.Builder builderForValue) { + if (modelsBuilder_ == null) { + ensureModelsIsMutable(); + models_.add(index, builderForValue.build()); + onChanged(); + } else { + modelsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Model models = 1; + */ + public Builder addAllModels( + java.lang.Iterable values) { + if (modelsBuilder_ == null) { + ensureModelsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, models_); + onChanged(); + } else { + modelsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Model models = 1; + */ + public Builder clearModels() { + if (modelsBuilder_ == null) { + models_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + modelsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Model models = 1; + */ + public Builder removeModels(int index) { + if (modelsBuilder_ == null) { + ensureModelsIsMutable(); + models_.remove(index); + onChanged(); + } else { + modelsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Model models = 1; + */ + public com.google.cloud.aiplatform.v1.Model.Builder getModelsBuilder(int index) { + return getModelsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Model models = 1; + */ + public com.google.cloud.aiplatform.v1.ModelOrBuilder getModelsOrBuilder(int index) { + if (modelsBuilder_ == null) { + return models_.get(index); + } else { + return modelsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Model models = 1; + */ + public java.util.List + getModelsOrBuilderList() { + if (modelsBuilder_ != null) { + return modelsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(models_); + } + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Model models = 1; + */ + public com.google.cloud.aiplatform.v1.Model.Builder addModelsBuilder() { + return getModelsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.Model.getDefaultInstance()); + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Model models = 1; + */ + public com.google.cloud.aiplatform.v1.Model.Builder addModelsBuilder(int index) { + return getModelsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1.Model.getDefaultInstance()); + } + /** + * + * + *
+     * List of Model versions in the requested page.
+     * In the returned Model name field, version ID instead of regvision tag will
+     * be included.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Model models = 1; + */ + public java.util.List getModelsBuilderList() { + return getModelsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Model, + com.google.cloud.aiplatform.v1.Model.Builder, + com.google.cloud.aiplatform.v1.ModelOrBuilder> + getModelsFieldBuilder() { + if (modelsBuilder_ == null) { + modelsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Model, + com.google.cloud.aiplatform.v1.Model.Builder, + com.google.cloud.aiplatform.v1.ModelOrBuilder>( + models_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + models_ = null; + } + return modelsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * Pass to [ListModelVersionsRequest.page_token][google.cloud.aiplatform.v1.ListModelVersionsRequest.page_token] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * Pass to [ListModelVersionsRequest.page_token][google.cloud.aiplatform.v1.ListModelVersionsRequest.page_token] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * Pass to [ListModelVersionsRequest.page_token][google.cloud.aiplatform.v1.ListModelVersionsRequest.page_token] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * Pass to [ListModelVersionsRequest.page_token][google.cloud.aiplatform.v1.ListModelVersionsRequest.page_token] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * Pass to [ListModelVersionsRequest.page_token][google.cloud.aiplatform.v1.ListModelVersionsRequest.page_token] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.ListModelVersionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ListModelVersionsResponse) + private static final com.google.cloud.aiplatform.v1.ListModelVersionsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ListModelVersionsResponse(); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListModelVersionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListModelVersionsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListModelVersionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionsResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionsResponseOrBuilder.java new file mode 100644 index 000000000000..3a60771e8cd8 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionsResponseOrBuilder.java @@ -0,0 +1,113 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/model_service.proto + +package com.google.cloud.aiplatform.v1; + +public interface ListModelVersionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ListModelVersionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of Model versions in the requested page.
+   * In the returned Model name field, version ID instead of regvision tag will
+   * be included.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Model models = 1; + */ + java.util.List getModelsList(); + /** + * + * + *
+   * List of Model versions in the requested page.
+   * In the returned Model name field, version ID instead of regvision tag will
+   * be included.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Model models = 1; + */ + com.google.cloud.aiplatform.v1.Model getModels(int index); + /** + * + * + *
+   * List of Model versions in the requested page.
+   * In the returned Model name field, version ID instead of regvision tag will
+   * be included.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Model models = 1; + */ + int getModelsCount(); + /** + * + * + *
+   * List of Model versions in the requested page.
+   * In the returned Model name field, version ID instead of regvision tag will
+   * be included.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Model models = 1; + */ + java.util.List getModelsOrBuilderList(); + /** + * + * + *
+   * List of Model versions in the requested page.
+   * In the returned Model name field, version ID instead of regvision tag will
+   * be included.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Model models = 1; + */ + com.google.cloud.aiplatform.v1.ModelOrBuilder getModelsOrBuilder(int index); + + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * Pass to [ListModelVersionsRequest.page_token][google.cloud.aiplatform.v1.ListModelVersionsRequest.page_token] to obtain that page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * Pass to [ListModelVersionsRequest.page_token][google.cloud.aiplatform.v1.ListModelVersionsRequest.page_token] to obtain that page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequest.java index e61ffd9f2c2f..f0f58eae89be 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequest.java @@ -219,7 +219,7 @@ public com.google.protobuf.ByteString getParentBytes() { * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. - * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). @@ -270,7 +270,7 @@ public java.lang.String getFilter() { * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. - * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). @@ -970,7 +970,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. - * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). @@ -1020,7 +1020,7 @@ public java.lang.String getFilter() { * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. - * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). @@ -1070,7 +1070,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. - * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). @@ -1119,7 +1119,7 @@ public Builder setFilter(java.lang.String value) { * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. - * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). @@ -1164,7 +1164,7 @@ public Builder clearFilter() { * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. - * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequestOrBuilder.java index 6630d6e29c6a..8e0b26a59ab9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequestOrBuilder.java @@ -74,7 +74,7 @@ public interface ListPipelineJobsRequestOrBuilder * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. - * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). @@ -114,7 +114,7 @@ public interface ListPipelineJobsRequestOrBuilder * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. - * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LocationName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LocationName.java index b7520dd046d0..ae7995d5d023 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LocationName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/LocationName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ManualBatchTuningParameters.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ManualBatchTuningParameters.java index 7b1853dc014e..2301dcdda15d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ManualBatchTuningParameters.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ManualBatchTuningParameters.java @@ -121,7 +121,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * speeds up the batch operation's execution, but too high value will result * in a whole batch not fitting in a machine's memory, and the whole * operation will fail. - * The default value is 4. + * The default value is 64. * * * int32 batch_size = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -462,7 +462,7 @@ public Builder mergeFrom( * speeds up the batch operation's execution, but too high value will result * in a whole batch not fitting in a machine's memory, and the whole * operation will fail. - * The default value is 4. + * The default value is 64. * * * int32 batch_size = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -483,7 +483,7 @@ public int getBatchSize() { * speeds up the batch operation's execution, but too high value will result * in a whole batch not fitting in a machine's memory, and the whole * operation will fail. - * The default value is 4. + * The default value is 64. * * * int32 batch_size = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -507,7 +507,7 @@ public Builder setBatchSize(int value) { * speeds up the batch operation's execution, but too high value will result * in a whole batch not fitting in a machine's memory, and the whole * operation will fail. - * The default value is 4. + * The default value is 64. * * * int32 batch_size = 1 [(.google.api.field_behavior) = IMMUTABLE]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ManualBatchTuningParametersOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ManualBatchTuningParametersOrBuilder.java index 6cddaf396332..e828be484019 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ManualBatchTuningParametersOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ManualBatchTuningParametersOrBuilder.java @@ -33,7 +33,7 @@ public interface ManualBatchTuningParametersOrBuilder * speeds up the batch operation's execution, but too high value will result * in a whole batch not fitting in a machine's memory, and the whole * operation will fail. - * The default value is 4. + * The default value is 64. * * * int32 batch_size = 1 [(.google.api.field_behavior) = IMMUTABLE]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MergeVersionAliasesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MergeVersionAliasesRequest.java new file mode 100644 index 000000000000..bfa334968eac --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MergeVersionAliasesRequest.java @@ -0,0 +1,1077 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/model_service.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for [ModelService.MergeVersionAliases][google.cloud.aiplatform.v1.ModelService.MergeVersionAliases].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.MergeVersionAliasesRequest} + */ +public final class MergeVersionAliasesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.MergeVersionAliasesRequest) + MergeVersionAliasesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use MergeVersionAliasesRequest.newBuilder() to construct. + private MergeVersionAliasesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MergeVersionAliasesRequest() { + name_ = ""; + versionAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MergeVersionAliasesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MergeVersionAliasesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + versionAliases_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + versionAliases_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + versionAliases_ = versionAliases_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_MergeVersionAliasesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_MergeVersionAliasesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest.class, + com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the model version to merge aliases, with a version ID
+   * explicitly included.
+   * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the model version to merge aliases, with a version ID
+   * explicitly included.
+   * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_ALIASES_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList versionAliases_; + /** + * + * + *
+   * Required. The set of version aliases to merge.
+   * The alias should be at most 128 characters, and match
+   * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+   * Add the `-` prefix to an alias means removing that alias from the version.
+   * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+   * the `golden` alias from the version.
+   * There is NO ordering in aliases, which means
+   * 1) The aliases returned from GetModel API might not have the exactly same
+   * order from this MergeVersionAliases API. 2) Adding and deleting the same
+   * alias in the request is not recommended, and the 2 operations will be
+   * cancelled out.
+   * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the versionAliases. + */ + public com.google.protobuf.ProtocolStringList getVersionAliasesList() { + return versionAliases_; + } + /** + * + * + *
+   * Required. The set of version aliases to merge.
+   * The alias should be at most 128 characters, and match
+   * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+   * Add the `-` prefix to an alias means removing that alias from the version.
+   * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+   * the `golden` alias from the version.
+   * There is NO ordering in aliases, which means
+   * 1) The aliases returned from GetModel API might not have the exactly same
+   * order from this MergeVersionAliases API. 2) Adding and deleting the same
+   * alias in the request is not recommended, and the 2 operations will be
+   * cancelled out.
+   * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of versionAliases. + */ + public int getVersionAliasesCount() { + return versionAliases_.size(); + } + /** + * + * + *
+   * Required. The set of version aliases to merge.
+   * The alias should be at most 128 characters, and match
+   * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+   * Add the `-` prefix to an alias means removing that alias from the version.
+   * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+   * the `golden` alias from the version.
+   * There is NO ordering in aliases, which means
+   * 1) The aliases returned from GetModel API might not have the exactly same
+   * order from this MergeVersionAliases API. 2) Adding and deleting the same
+   * alias in the request is not recommended, and the 2 operations will be
+   * cancelled out.
+   * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The versionAliases at the given index. + */ + public java.lang.String getVersionAliases(int index) { + return versionAliases_.get(index); + } + /** + * + * + *
+   * Required. The set of version aliases to merge.
+   * The alias should be at most 128 characters, and match
+   * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+   * Add the `-` prefix to an alias means removing that alias from the version.
+   * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+   * the `golden` alias from the version.
+   * There is NO ordering in aliases, which means
+   * 1) The aliases returned from GetModel API might not have the exactly same
+   * order from this MergeVersionAliases API. 2) Adding and deleting the same
+   * alias in the request is not recommended, and the 2 operations will be
+   * cancelled out.
+   * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the versionAliases at the given index. + */ + public com.google.protobuf.ByteString getVersionAliasesBytes(int index) { + return versionAliases_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + for (int i = 0; i < versionAliases_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, versionAliases_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + { + int dataSize = 0; + for (int i = 0; i < versionAliases_.size(); i++) { + dataSize += computeStringSizeNoTag(versionAliases_.getRaw(i)); + } + size += dataSize; + size += 1 * getVersionAliasesList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest other = + (com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getVersionAliasesList().equals(other.getVersionAliasesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getVersionAliasesCount() > 0) { + hash = (37 * hash) + VERSION_ALIASES_FIELD_NUMBER; + hash = (53 * hash) + getVersionAliasesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [ModelService.MergeVersionAliases][google.cloud.aiplatform.v1.ModelService.MergeVersionAliases].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.MergeVersionAliasesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.MergeVersionAliasesRequest) + com.google.cloud.aiplatform.v1.MergeVersionAliasesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_MergeVersionAliasesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_MergeVersionAliasesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest.class, + com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + versionAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_MergeVersionAliasesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest build() { + com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest buildPartial() { + com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest result = + new com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (((bitField0_ & 0x00000001) != 0)) { + versionAliases_ = versionAliases_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.versionAliases_ = versionAliases_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest other) { + if (other == com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.versionAliases_.isEmpty()) { + if (versionAliases_.isEmpty()) { + versionAliases_ = other.versionAliases_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureVersionAliasesIsMutable(); + versionAliases_.addAll(other.versionAliases_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the model version to merge aliases, with a version ID
+     * explicitly included.
+     * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the model version to merge aliases, with a version ID
+     * explicitly included.
+     * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the model version to merge aliases, with a version ID
+     * explicitly included.
+     * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the model version to merge aliases, with a version ID
+     * explicitly included.
+     * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the model version to merge aliases, with a version ID
+     * explicitly included.
+     * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList versionAliases_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureVersionAliasesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + versionAliases_ = new com.google.protobuf.LazyStringArrayList(versionAliases_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Required. The set of version aliases to merge.
+     * The alias should be at most 128 characters, and match
+     * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+     * Add the `-` prefix to an alias means removing that alias from the version.
+     * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+     * the `golden` alias from the version.
+     * There is NO ordering in aliases, which means
+     * 1) The aliases returned from GetModel API might not have the exactly same
+     * order from this MergeVersionAliases API. 2) Adding and deleting the same
+     * alias in the request is not recommended, and the 2 operations will be
+     * cancelled out.
+     * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the versionAliases. + */ + public com.google.protobuf.ProtocolStringList getVersionAliasesList() { + return versionAliases_.getUnmodifiableView(); + } + /** + * + * + *
+     * Required. The set of version aliases to merge.
+     * The alias should be at most 128 characters, and match
+     * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+     * Add the `-` prefix to an alias means removing that alias from the version.
+     * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+     * the `golden` alias from the version.
+     * There is NO ordering in aliases, which means
+     * 1) The aliases returned from GetModel API might not have the exactly same
+     * order from this MergeVersionAliases API. 2) Adding and deleting the same
+     * alias in the request is not recommended, and the 2 operations will be
+     * cancelled out.
+     * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of versionAliases. + */ + public int getVersionAliasesCount() { + return versionAliases_.size(); + } + /** + * + * + *
+     * Required. The set of version aliases to merge.
+     * The alias should be at most 128 characters, and match
+     * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+     * Add the `-` prefix to an alias means removing that alias from the version.
+     * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+     * the `golden` alias from the version.
+     * There is NO ordering in aliases, which means
+     * 1) The aliases returned from GetModel API might not have the exactly same
+     * order from this MergeVersionAliases API. 2) Adding and deleting the same
+     * alias in the request is not recommended, and the 2 operations will be
+     * cancelled out.
+     * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The versionAliases at the given index. + */ + public java.lang.String getVersionAliases(int index) { + return versionAliases_.get(index); + } + /** + * + * + *
+     * Required. The set of version aliases to merge.
+     * The alias should be at most 128 characters, and match
+     * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+     * Add the `-` prefix to an alias means removing that alias from the version.
+     * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+     * the `golden` alias from the version.
+     * There is NO ordering in aliases, which means
+     * 1) The aliases returned from GetModel API might not have the exactly same
+     * order from this MergeVersionAliases API. 2) Adding and deleting the same
+     * alias in the request is not recommended, and the 2 operations will be
+     * cancelled out.
+     * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the versionAliases at the given index. + */ + public com.google.protobuf.ByteString getVersionAliasesBytes(int index) { + return versionAliases_.getByteString(index); + } + /** + * + * + *
+     * Required. The set of version aliases to merge.
+     * The alias should be at most 128 characters, and match
+     * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+     * Add the `-` prefix to an alias means removing that alias from the version.
+     * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+     * the `golden` alias from the version.
+     * There is NO ordering in aliases, which means
+     * 1) The aliases returned from GetModel API might not have the exactly same
+     * order from this MergeVersionAliases API. 2) Adding and deleting the same
+     * alias in the request is not recommended, and the 2 operations will be
+     * cancelled out.
+     * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The versionAliases to set. + * @return This builder for chaining. + */ + public Builder setVersionAliases(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVersionAliasesIsMutable(); + versionAliases_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The set of version aliases to merge.
+     * The alias should be at most 128 characters, and match
+     * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+     * Add the `-` prefix to an alias means removing that alias from the version.
+     * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+     * the `golden` alias from the version.
+     * There is NO ordering in aliases, which means
+     * 1) The aliases returned from GetModel API might not have the exactly same
+     * order from this MergeVersionAliases API. 2) Adding and deleting the same
+     * alias in the request is not recommended, and the 2 operations will be
+     * cancelled out.
+     * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The versionAliases to add. + * @return This builder for chaining. + */ + public Builder addVersionAliases(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVersionAliasesIsMutable(); + versionAliases_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The set of version aliases to merge.
+     * The alias should be at most 128 characters, and match
+     * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+     * Add the `-` prefix to an alias means removing that alias from the version.
+     * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+     * the `golden` alias from the version.
+     * There is NO ordering in aliases, which means
+     * 1) The aliases returned from GetModel API might not have the exactly same
+     * order from this MergeVersionAliases API. 2) Adding and deleting the same
+     * alias in the request is not recommended, and the 2 operations will be
+     * cancelled out.
+     * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The versionAliases to add. + * @return This builder for chaining. + */ + public Builder addAllVersionAliases(java.lang.Iterable values) { + ensureVersionAliasesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, versionAliases_); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The set of version aliases to merge.
+     * The alias should be at most 128 characters, and match
+     * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+     * Add the `-` prefix to an alias means removing that alias from the version.
+     * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+     * the `golden` alias from the version.
+     * There is NO ordering in aliases, which means
+     * 1) The aliases returned from GetModel API might not have the exactly same
+     * order from this MergeVersionAliases API. 2) Adding and deleting the same
+     * alias in the request is not recommended, and the 2 operations will be
+     * cancelled out.
+     * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearVersionAliases() { + versionAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The set of version aliases to merge.
+     * The alias should be at most 128 characters, and match
+     * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+     * Add the `-` prefix to an alias means removing that alias from the version.
+     * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+     * the `golden` alias from the version.
+     * There is NO ordering in aliases, which means
+     * 1) The aliases returned from GetModel API might not have the exactly same
+     * order from this MergeVersionAliases API. 2) Adding and deleting the same
+     * alias in the request is not recommended, and the 2 operations will be
+     * cancelled out.
+     * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the versionAliases to add. + * @return This builder for chaining. + */ + public Builder addVersionAliasesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureVersionAliasesIsMutable(); + versionAliases_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.MergeVersionAliasesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.MergeVersionAliasesRequest) + private static final com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest(); + } + + public static com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MergeVersionAliasesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MergeVersionAliasesRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.MergeVersionAliasesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MergeVersionAliasesRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MergeVersionAliasesRequestOrBuilder.java new file mode 100644 index 000000000000..967cd7715326 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MergeVersionAliasesRequestOrBuilder.java @@ -0,0 +1,149 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/model_service.proto + +package com.google.cloud.aiplatform.v1; + +public interface MergeVersionAliasesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.MergeVersionAliasesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the model version to merge aliases, with a version ID
+   * explicitly included.
+   * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the model version to merge aliases, with a version ID
+   * explicitly included.
+   * Example: `projects/{project}/locations/{location}/models/{model}@1234`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The set of version aliases to merge.
+   * The alias should be at most 128 characters, and match
+   * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+   * Add the `-` prefix to an alias means removing that alias from the version.
+   * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+   * the `golden` alias from the version.
+   * There is NO ordering in aliases, which means
+   * 1) The aliases returned from GetModel API might not have the exactly same
+   * order from this MergeVersionAliases API. 2) Adding and deleting the same
+   * alias in the request is not recommended, and the 2 operations will be
+   * cancelled out.
+   * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the versionAliases. + */ + java.util.List getVersionAliasesList(); + /** + * + * + *
+   * Required. The set of version aliases to merge.
+   * The alias should be at most 128 characters, and match
+   * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+   * Add the `-` prefix to an alias means removing that alias from the version.
+   * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+   * the `golden` alias from the version.
+   * There is NO ordering in aliases, which means
+   * 1) The aliases returned from GetModel API might not have the exactly same
+   * order from this MergeVersionAliases API. 2) Adding and deleting the same
+   * alias in the request is not recommended, and the 2 operations will be
+   * cancelled out.
+   * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of versionAliases. + */ + int getVersionAliasesCount(); + /** + * + * + *
+   * Required. The set of version aliases to merge.
+   * The alias should be at most 128 characters, and match
+   * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+   * Add the `-` prefix to an alias means removing that alias from the version.
+   * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+   * the `golden` alias from the version.
+   * There is NO ordering in aliases, which means
+   * 1) The aliases returned from GetModel API might not have the exactly same
+   * order from this MergeVersionAliases API. 2) Adding and deleting the same
+   * alias in the request is not recommended, and the 2 operations will be
+   * cancelled out.
+   * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The versionAliases at the given index. + */ + java.lang.String getVersionAliases(int index); + /** + * + * + *
+   * Required. The set of version aliases to merge.
+   * The alias should be at most 128 characters, and match
+   * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`.
+   * Add the `-` prefix to an alias means removing that alias from the version.
+   * `-` is NOT counted in the 128 characters. Example: `-golden` means removing
+   * the `golden` alias from the version.
+   * There is NO ordering in aliases, which means
+   * 1) The aliases returned from GetModel API might not have the exactly same
+   * order from this MergeVersionAliases API. 2) Adding and deleting the same
+   * alias in the request is not recommended, and the 2 operations will be
+   * cancelled out.
+   * 
+ * + * repeated string version_aliases = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the versionAliases at the given index. + */ + com.google.protobuf.ByteString getVersionAliasesBytes(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataSchemaName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataSchemaName.java index 109aeb2debc9..06dee2288869 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataSchemaName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataSchemaName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataStoreName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataStoreName.java index 3cb5b5793ce5..3af5240206a4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataStoreName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MetadataStoreName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java index 6c662137abae..30bc3c295ff6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java @@ -39,8 +39,11 @@ private Model(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Model() { name_ = ""; + versionId_ = ""; + versionAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; displayName_ = ""; description_ = ""; + versionDescription_ = ""; metadataSchemaUri_ = ""; supportedExportFormats_ = java.util.Collections.emptyList(); trainingPipeline_ = ""; @@ -167,9 +170,9 @@ private Model( case 80: { int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { supportedDeploymentResourcesTypes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000004; } supportedDeploymentResourcesTypes_.add(rawValue); break; @@ -180,9 +183,9 @@ private Model( int oldLimit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { supportedDeploymentResourcesTypes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000004; } supportedDeploymentResourcesTypes_.add(rawValue); } @@ -192,9 +195,9 @@ private Model( case 90: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { supportedInputStorageFormats_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000008; } supportedInputStorageFormats_.add(s); break; @@ -202,9 +205,9 @@ private Model( case 98: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { supportedOutputStorageFormats_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; + mutable_bitField0_ |= 0x00000010; } supportedOutputStorageFormats_.add(s); break; @@ -241,10 +244,10 @@ private Model( } case 122: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { deployedModels_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; + mutable_bitField0_ |= 0x00000020; } deployedModels_.add( input.readMessage( @@ -260,10 +263,10 @@ private Model( } case 138: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { + if (!((mutable_bitField0_ & 0x00000040) != 0)) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000020; + mutable_bitField0_ |= 0x00000040; } com.google.protobuf.MapEntry labels__ = input.readMessage( @@ -273,10 +276,10 @@ private Model( } case 162: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { supportedExportFormats_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } supportedExportFormats_.add( input.readMessage( @@ -321,6 +324,60 @@ private Model( java.lang.String s = input.readStringRequireUtf8(); artifactUri_ = s; + break; + } + case 226: + { + java.lang.String s = input.readStringRequireUtf8(); + + versionId_ = s; + break; + } + case 234: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + versionAliases_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + versionAliases_.add(s); + break; + } + case 242: + { + java.lang.String s = input.readStringRequireUtf8(); + + versionDescription_ = s; + break; + } + case 250: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (versionCreateTime_ != null) { + subBuilder = versionCreateTime_.toBuilder(); + } + versionCreateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(versionCreateTime_); + versionCreateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 258: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (versionUpdateTime_ != null) { + subBuilder = versionUpdateTime_.toBuilder(); + } + versionUpdateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(versionUpdateTime_); + versionUpdateTime_ = subBuilder.buildPartial(); + } + break; } default: @@ -339,22 +396,25 @@ private Model( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000004) != 0)) { supportedDeploymentResourcesTypes_ = java.util.Collections.unmodifiableList(supportedDeploymentResourcesTypes_); } - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000008) != 0)) { supportedInputStorageFormats_ = supportedInputStorageFormats_.getUnmodifiableView(); } - if (((mutable_bitField0_ & 0x00000008) != 0)) { + if (((mutable_bitField0_ & 0x00000010) != 0)) { supportedOutputStorageFormats_ = supportedOutputStorageFormats_.getUnmodifiableView(); } - if (((mutable_bitField0_ & 0x00000010) != 0)) { + if (((mutable_bitField0_ & 0x00000020) != 0)) { deployedModels_ = java.util.Collections.unmodifiableList(deployedModels_); } - if (((mutable_bitField0_ & 0x00000001) != 0)) { + if (((mutable_bitField0_ & 0x00000002) != 0)) { supportedExportFormats_ = java.util.Collections.unmodifiableList(supportedExportFormats_); } + if (((mutable_bitField0_ & 0x00000001) != 0)) { + versionAliases_ = versionAliases_.getUnmodifiableView(); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -2069,6 +2129,266 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int VERSION_ID_FIELD_NUMBER = 28; + private volatile java.lang.Object versionId_; + /** + * + * + *
+   * Output only. Immutable. The version ID of the model.
+   * A new version is committed when a new model version is uploaded or
+   * trained under an existing model id. It is an auto-incrementing decimal
+   * number in string representation.
+   * 
+ * + * + * string version_id = 28 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The versionId. + */ + @java.lang.Override + public java.lang.String getVersionId() { + java.lang.Object ref = versionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + versionId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Immutable. The version ID of the model.
+   * A new version is committed when a new model version is uploaded or
+   * trained under an existing model id. It is an auto-incrementing decimal
+   * number in string representation.
+   * 
+ * + * + * string version_id = 28 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for versionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionIdBytes() { + java.lang.Object ref = versionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + versionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_ALIASES_FIELD_NUMBER = 29; + private com.google.protobuf.LazyStringList versionAliases_; + /** + * + * + *
+   * User provided version aliases so that a model version can be referenced via
+   * alias (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+   * instead of auto-generated version id (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+   * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+   * version_id. A default version alias will be created for the first version
+   * of the model, and there must be exactly one default version alias for a
+   * model.
+   * 
+ * + * repeated string version_aliases = 29; + * + * @return A list containing the versionAliases. + */ + public com.google.protobuf.ProtocolStringList getVersionAliasesList() { + return versionAliases_; + } + /** + * + * + *
+   * User provided version aliases so that a model version can be referenced via
+   * alias (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+   * instead of auto-generated version id (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+   * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+   * version_id. A default version alias will be created for the first version
+   * of the model, and there must be exactly one default version alias for a
+   * model.
+   * 
+ * + * repeated string version_aliases = 29; + * + * @return The count of versionAliases. + */ + public int getVersionAliasesCount() { + return versionAliases_.size(); + } + /** + * + * + *
+   * User provided version aliases so that a model version can be referenced via
+   * alias (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+   * instead of auto-generated version id (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+   * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+   * version_id. A default version alias will be created for the first version
+   * of the model, and there must be exactly one default version alias for a
+   * model.
+   * 
+ * + * repeated string version_aliases = 29; + * + * @param index The index of the element to return. + * @return The versionAliases at the given index. + */ + public java.lang.String getVersionAliases(int index) { + return versionAliases_.get(index); + } + /** + * + * + *
+   * User provided version aliases so that a model version can be referenced via
+   * alias (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+   * instead of auto-generated version id (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+   * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+   * version_id. A default version alias will be created for the first version
+   * of the model, and there must be exactly one default version alias for a
+   * model.
+   * 
+ * + * repeated string version_aliases = 29; + * + * @param index The index of the value to return. + * @return The bytes of the versionAliases at the given index. + */ + public com.google.protobuf.ByteString getVersionAliasesBytes(int index) { + return versionAliases_.getByteString(index); + } + + public static final int VERSION_CREATE_TIME_FIELD_NUMBER = 31; + private com.google.protobuf.Timestamp versionCreateTime_; + /** + * + * + *
+   * Output only. Timestamp when this version was created.
+   * 
+ * + * + * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the versionCreateTime field is set. + */ + @java.lang.Override + public boolean hasVersionCreateTime() { + return versionCreateTime_ != null; + } + /** + * + * + *
+   * Output only. Timestamp when this version was created.
+   * 
+ * + * + * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The versionCreateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getVersionCreateTime() { + return versionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : versionCreateTime_; + } + /** + * + * + *
+   * Output only. Timestamp when this version was created.
+   * 
+ * + * + * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getVersionCreateTimeOrBuilder() { + return getVersionCreateTime(); + } + + public static final int VERSION_UPDATE_TIME_FIELD_NUMBER = 32; + private com.google.protobuf.Timestamp versionUpdateTime_; + /** + * + * + *
+   * Output only. Timestamp when this version was most recently updated.
+   * 
+ * + * + * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the versionUpdateTime field is set. + */ + @java.lang.Override + public boolean hasVersionUpdateTime() { + return versionUpdateTime_ != null; + } + /** + * + * + *
+   * Output only. Timestamp when this version was most recently updated.
+   * 
+ * + * + * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The versionUpdateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getVersionUpdateTime() { + return versionUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : versionUpdateTime_; + } + /** + * + * + *
+   * Output only. Timestamp when this version was most recently updated.
+   * 
+ * + * + * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getVersionUpdateTimeOrBuilder() { + return getVersionUpdateTime(); + } + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** @@ -2171,6 +2491,55 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } + public static final int VERSION_DESCRIPTION_FIELD_NUMBER = 30; + private volatile java.lang.Object versionDescription_; + /** + * + * + *
+   * The description of this version.
+   * 
+ * + * string version_description = 30; + * + * @return The versionDescription. + */ + @java.lang.Override + public java.lang.String getVersionDescription() { + java.lang.Object ref = versionDescription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + versionDescription_ = s; + return s; + } + } + /** + * + * + *
+   * The description of this version.
+   * 
+ * + * string version_description = 30; + * + * @return The bytes for versionDescription. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionDescriptionBytes() { + java.lang.Object ref = versionDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + versionDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int PREDICT_SCHEMATA_FIELD_NUMBER = 4; private com.google.cloud.aiplatform.v1.PredictSchemata predictSchemata_; /** @@ -3699,9 +4068,24 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 26, artifactUri_); } - unknownFields.writeTo(output); - } - + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 28, versionId_); + } + for (int i = 0; i < versionAliases_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 29, versionAliases_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionDescription_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 30, versionDescription_); + } + if (versionCreateTime_ != null) { + output.writeMessage(31, getVersionCreateTime()); + } + if (versionUpdateTime_ != null) { + output.writeMessage(32, getVersionUpdateTime()); + } + unknownFields.writeTo(output); + } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; @@ -3798,6 +4182,26 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, artifactUri_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, versionId_); + } + { + int dataSize = 0; + for (int i = 0; i < versionAliases_.size(); i++) { + dataSize += computeStringSizeNoTag(versionAliases_.getRaw(i)); + } + size += dataSize; + size += 2 * getVersionAliasesList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionDescription_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, versionDescription_); + } + if (versionCreateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(31, getVersionCreateTime()); + } + if (versionUpdateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, getVersionUpdateTime()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -3814,8 +4218,19 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.aiplatform.v1.Model other = (com.google.cloud.aiplatform.v1.Model) obj; if (!getName().equals(other.getName())) return false; + if (!getVersionId().equals(other.getVersionId())) return false; + if (!getVersionAliasesList().equals(other.getVersionAliasesList())) return false; + if (hasVersionCreateTime() != other.hasVersionCreateTime()) return false; + if (hasVersionCreateTime()) { + if (!getVersionCreateTime().equals(other.getVersionCreateTime())) return false; + } + if (hasVersionUpdateTime() != other.hasVersionUpdateTime()) return false; + if (hasVersionUpdateTime()) { + if (!getVersionUpdateTime().equals(other.getVersionUpdateTime())) return false; + } if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getDescription().equals(other.getDescription())) return false; + if (!getVersionDescription().equals(other.getVersionDescription())) return false; if (hasPredictSchemata() != other.hasPredictSchemata()) return false; if (hasPredictSchemata()) { if (!getPredictSchemata().equals(other.getPredictSchemata())) return false; @@ -3871,10 +4286,26 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VERSION_ID_FIELD_NUMBER; + hash = (53 * hash) + getVersionId().hashCode(); + if (getVersionAliasesCount() > 0) { + hash = (37 * hash) + VERSION_ALIASES_FIELD_NUMBER; + hash = (53 * hash) + getVersionAliasesList().hashCode(); + } + if (hasVersionCreateTime()) { + hash = (37 * hash) + VERSION_CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getVersionCreateTime().hashCode(); + } + if (hasVersionUpdateTime()) { + hash = (37 * hash) + VERSION_UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getVersionUpdateTime().hashCode(); + } hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + VERSION_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getVersionDescription().hashCode(); if (hasPredictSchemata()) { hash = (37 * hash) + PREDICT_SCHEMATA_FIELD_NUMBER; hash = (53 * hash) + getPredictSchemata().hashCode(); @@ -4104,10 +4535,28 @@ public Builder clear() { super.clear(); name_ = ""; + versionId_ = ""; + + versionAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (versionCreateTimeBuilder_ == null) { + versionCreateTime_ = null; + } else { + versionCreateTime_ = null; + versionCreateTimeBuilder_ = null; + } + if (versionUpdateTimeBuilder_ == null) { + versionUpdateTime_ = null; + } else { + versionUpdateTime_ = null; + versionUpdateTimeBuilder_ = null; + } displayName_ = ""; description_ = ""; + versionDescription_ = ""; + if (predictSchemataBuilder_ == null) { predictSchemata_ = null; } else { @@ -4124,7 +4573,7 @@ public Builder clear() { } if (supportedExportFormatsBuilder_ == null) { supportedExportFormats_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { supportedExportFormatsBuilder_.clear(); } @@ -4139,11 +4588,11 @@ public Builder clear() { artifactUri_ = ""; supportedDeploymentResourcesTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - supportedInputStorageFormats_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); - supportedOutputStorageFormats_ = com.google.protobuf.LazyStringArrayList.EMPTY; + supportedInputStorageFormats_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); + supportedOutputStorageFormats_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); if (createTimeBuilder_ == null) { createTime_ = null; } else { @@ -4158,7 +4607,7 @@ public Builder clear() { } if (deployedModelsBuilder_ == null) { deployedModels_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); } else { deployedModelsBuilder_.clear(); } @@ -4205,8 +4654,25 @@ public com.google.cloud.aiplatform.v1.Model buildPartial() { com.google.cloud.aiplatform.v1.Model result = new com.google.cloud.aiplatform.v1.Model(this); int from_bitField0_ = bitField0_; result.name_ = name_; + result.versionId_ = versionId_; + if (((bitField0_ & 0x00000001) != 0)) { + versionAliases_ = versionAliases_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.versionAliases_ = versionAliases_; + if (versionCreateTimeBuilder_ == null) { + result.versionCreateTime_ = versionCreateTime_; + } else { + result.versionCreateTime_ = versionCreateTimeBuilder_.build(); + } + if (versionUpdateTimeBuilder_ == null) { + result.versionUpdateTime_ = versionUpdateTime_; + } else { + result.versionUpdateTime_ = versionUpdateTimeBuilder_.build(); + } result.displayName_ = displayName_; result.description_ = description_; + result.versionDescription_ = versionDescription_; if (predictSchemataBuilder_ == null) { result.predictSchemata_ = predictSchemata_; } else { @@ -4219,9 +4685,9 @@ public com.google.cloud.aiplatform.v1.Model buildPartial() { result.metadata_ = metadataBuilder_.build(); } if (supportedExportFormatsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { supportedExportFormats_ = java.util.Collections.unmodifiableList(supportedExportFormats_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.supportedExportFormats_ = supportedExportFormats_; } else { @@ -4234,20 +4700,20 @@ public com.google.cloud.aiplatform.v1.Model buildPartial() { result.containerSpec_ = containerSpecBuilder_.build(); } result.artifactUri_ = artifactUri_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { supportedDeploymentResourcesTypes_ = java.util.Collections.unmodifiableList(supportedDeploymentResourcesTypes_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } result.supportedDeploymentResourcesTypes_ = supportedDeploymentResourcesTypes_; - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { supportedInputStorageFormats_ = supportedInputStorageFormats_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); } result.supportedInputStorageFormats_ = supportedInputStorageFormats_; - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { supportedOutputStorageFormats_ = supportedOutputStorageFormats_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); } result.supportedOutputStorageFormats_ = supportedOutputStorageFormats_; if (createTimeBuilder_ == null) { @@ -4261,9 +4727,9 @@ public com.google.cloud.aiplatform.v1.Model buildPartial() { result.updateTime_ = updateTimeBuilder_.build(); } if (deployedModelsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { deployedModels_ = java.util.Collections.unmodifiableList(deployedModels_); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); } result.deployedModels_ = deployedModels_; } else { @@ -4335,6 +4801,26 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { name_ = other.name_; onChanged(); } + if (!other.getVersionId().isEmpty()) { + versionId_ = other.versionId_; + onChanged(); + } + if (!other.versionAliases_.isEmpty()) { + if (versionAliases_.isEmpty()) { + versionAliases_ = other.versionAliases_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureVersionAliasesIsMutable(); + versionAliases_.addAll(other.versionAliases_); + } + onChanged(); + } + if (other.hasVersionCreateTime()) { + mergeVersionCreateTime(other.getVersionCreateTime()); + } + if (other.hasVersionUpdateTime()) { + mergeVersionUpdateTime(other.getVersionUpdateTime()); + } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; onChanged(); @@ -4343,6 +4829,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { description_ = other.description_; onChanged(); } + if (!other.getVersionDescription().isEmpty()) { + versionDescription_ = other.versionDescription_; + onChanged(); + } if (other.hasPredictSchemata()) { mergePredictSchemata(other.getPredictSchemata()); } @@ -4357,7 +4847,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { if (!other.supportedExportFormats_.isEmpty()) { if (supportedExportFormats_.isEmpty()) { supportedExportFormats_ = other.supportedExportFormats_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSupportedExportFormatsIsMutable(); supportedExportFormats_.addAll(other.supportedExportFormats_); @@ -4370,7 +4860,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { supportedExportFormatsBuilder_.dispose(); supportedExportFormatsBuilder_ = null; supportedExportFormats_ = other.supportedExportFormats_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); supportedExportFormatsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSupportedExportFormatsFieldBuilder() @@ -4394,7 +4884,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { if (!other.supportedDeploymentResourcesTypes_.isEmpty()) { if (supportedDeploymentResourcesTypes_.isEmpty()) { supportedDeploymentResourcesTypes_ = other.supportedDeploymentResourcesTypes_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureSupportedDeploymentResourcesTypesIsMutable(); supportedDeploymentResourcesTypes_.addAll(other.supportedDeploymentResourcesTypes_); @@ -4404,7 +4894,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { if (!other.supportedInputStorageFormats_.isEmpty()) { if (supportedInputStorageFormats_.isEmpty()) { supportedInputStorageFormats_ = other.supportedInputStorageFormats_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureSupportedInputStorageFormatsIsMutable(); supportedInputStorageFormats_.addAll(other.supportedInputStorageFormats_); @@ -4414,7 +4904,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { if (!other.supportedOutputStorageFormats_.isEmpty()) { if (supportedOutputStorageFormats_.isEmpty()) { supportedOutputStorageFormats_ = other.supportedOutputStorageFormats_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureSupportedOutputStorageFormatsIsMutable(); supportedOutputStorageFormats_.addAll(other.supportedOutputStorageFormats_); @@ -4431,7 +4921,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { if (!other.deployedModels_.isEmpty()) { if (deployedModels_.isEmpty()) { deployedModels_ = other.deployedModels_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureDeployedModelsIsMutable(); deployedModels_.addAll(other.deployedModels_); @@ -4444,7 +4934,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { deployedModelsBuilder_.dispose(); deployedModelsBuilder_ = null; deployedModels_ = other.deployedModels_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); deployedModelsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDeployedModelsFieldBuilder() @@ -4491,115 +4981,892 @@ public Builder mergeFrom( mergeFrom(parsedMessage); } } - return this; + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The resource name of the Model.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The resource name of the Model.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The resource name of the Model.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the Model.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the Model.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object versionId_ = ""; + /** + * + * + *
+     * Output only. Immutable. The version ID of the model.
+     * A new version is committed when a new model version is uploaded or
+     * trained under an existing model id. It is an auto-incrementing decimal
+     * number in string representation.
+     * 
+ * + * + * string version_id = 28 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The versionId. + */ + public java.lang.String getVersionId() { + java.lang.Object ref = versionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + versionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Immutable. The version ID of the model.
+     * A new version is committed when a new model version is uploaded or
+     * trained under an existing model id. It is an auto-incrementing decimal
+     * number in string representation.
+     * 
+ * + * + * string version_id = 28 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for versionId. + */ + public com.google.protobuf.ByteString getVersionIdBytes() { + java.lang.Object ref = versionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + versionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Immutable. The version ID of the model.
+     * A new version is committed when a new model version is uploaded or
+     * trained under an existing model id. It is an auto-incrementing decimal
+     * number in string representation.
+     * 
+ * + * + * string version_id = 28 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The versionId to set. + * @return This builder for chaining. + */ + public Builder setVersionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + versionId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Immutable. The version ID of the model.
+     * A new version is committed when a new model version is uploaded or
+     * trained under an existing model id. It is an auto-incrementing decimal
+     * number in string representation.
+     * 
+ * + * + * string version_id = 28 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearVersionId() { + + versionId_ = getDefaultInstance().getVersionId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Immutable. The version ID of the model.
+     * A new version is committed when a new model version is uploaded or
+     * trained under an existing model id. It is an auto-incrementing decimal
+     * number in string representation.
+     * 
+ * + * + * string version_id = 28 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for versionId to set. + * @return This builder for chaining. + */ + public Builder setVersionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + versionId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList versionAliases_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureVersionAliasesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + versionAliases_ = new com.google.protobuf.LazyStringArrayList(versionAliases_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * User provided version aliases so that a model version can be referenced via
+     * alias (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+     * instead of auto-generated version id (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+     * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+     * version_id. A default version alias will be created for the first version
+     * of the model, and there must be exactly one default version alias for a
+     * model.
+     * 
+ * + * repeated string version_aliases = 29; + * + * @return A list containing the versionAliases. + */ + public com.google.protobuf.ProtocolStringList getVersionAliasesList() { + return versionAliases_.getUnmodifiableView(); + } + /** + * + * + *
+     * User provided version aliases so that a model version can be referenced via
+     * alias (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+     * instead of auto-generated version id (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+     * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+     * version_id. A default version alias will be created for the first version
+     * of the model, and there must be exactly one default version alias for a
+     * model.
+     * 
+ * + * repeated string version_aliases = 29; + * + * @return The count of versionAliases. + */ + public int getVersionAliasesCount() { + return versionAliases_.size(); + } + /** + * + * + *
+     * User provided version aliases so that a model version can be referenced via
+     * alias (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+     * instead of auto-generated version id (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+     * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+     * version_id. A default version alias will be created for the first version
+     * of the model, and there must be exactly one default version alias for a
+     * model.
+     * 
+ * + * repeated string version_aliases = 29; + * + * @param index The index of the element to return. + * @return The versionAliases at the given index. + */ + public java.lang.String getVersionAliases(int index) { + return versionAliases_.get(index); + } + /** + * + * + *
+     * User provided version aliases so that a model version can be referenced via
+     * alias (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+     * instead of auto-generated version id (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+     * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+     * version_id. A default version alias will be created for the first version
+     * of the model, and there must be exactly one default version alias for a
+     * model.
+     * 
+ * + * repeated string version_aliases = 29; + * + * @param index The index of the value to return. + * @return The bytes of the versionAliases at the given index. + */ + public com.google.protobuf.ByteString getVersionAliasesBytes(int index) { + return versionAliases_.getByteString(index); + } + /** + * + * + *
+     * User provided version aliases so that a model version can be referenced via
+     * alias (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+     * instead of auto-generated version id (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+     * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+     * version_id. A default version alias will be created for the first version
+     * of the model, and there must be exactly one default version alias for a
+     * model.
+     * 
+ * + * repeated string version_aliases = 29; + * + * @param index The index to set the value at. + * @param value The versionAliases to set. + * @return This builder for chaining. + */ + public Builder setVersionAliases(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVersionAliasesIsMutable(); + versionAliases_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * User provided version aliases so that a model version can be referenced via
+     * alias (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+     * instead of auto-generated version id (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+     * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+     * version_id. A default version alias will be created for the first version
+     * of the model, and there must be exactly one default version alias for a
+     * model.
+     * 
+ * + * repeated string version_aliases = 29; + * + * @param value The versionAliases to add. + * @return This builder for chaining. + */ + public Builder addVersionAliases(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVersionAliasesIsMutable(); + versionAliases_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * User provided version aliases so that a model version can be referenced via
+     * alias (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+     * instead of auto-generated version id (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+     * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+     * version_id. A default version alias will be created for the first version
+     * of the model, and there must be exactly one default version alias for a
+     * model.
+     * 
+ * + * repeated string version_aliases = 29; + * + * @param values The versionAliases to add. + * @return This builder for chaining. + */ + public Builder addAllVersionAliases(java.lang.Iterable values) { + ensureVersionAliasesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, versionAliases_); + onChanged(); + return this; + } + /** + * + * + *
+     * User provided version aliases so that a model version can be referenced via
+     * alias (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+     * instead of auto-generated version id (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+     * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+     * version_id. A default version alias will be created for the first version
+     * of the model, and there must be exactly one default version alias for a
+     * model.
+     * 
+ * + * repeated string version_aliases = 29; + * + * @return This builder for chaining. + */ + public Builder clearVersionAliases() { + versionAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * User provided version aliases so that a model version can be referenced via
+     * alias (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+     * instead of auto-generated version id (i.e.
+     * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+     * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+     * version_id. A default version alias will be created for the first version
+     * of the model, and there must be exactly one default version alias for a
+     * model.
+     * 
+ * + * repeated string version_aliases = 29; + * + * @param value The bytes of the versionAliases to add. + * @return This builder for chaining. + */ + public Builder addVersionAliasesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureVersionAliasesIsMutable(); + versionAliases_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp versionCreateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + versionCreateTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when this version was created.
+     * 
+ * + * + * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the versionCreateTime field is set. + */ + public boolean hasVersionCreateTime() { + return versionCreateTimeBuilder_ != null || versionCreateTime_ != null; + } + /** + * + * + *
+     * Output only. Timestamp when this version was created.
+     * 
+ * + * + * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The versionCreateTime. + */ + public com.google.protobuf.Timestamp getVersionCreateTime() { + if (versionCreateTimeBuilder_ == null) { + return versionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : versionCreateTime_; + } else { + return versionCreateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp when this version was created.
+     * 
+ * + * + * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setVersionCreateTime(com.google.protobuf.Timestamp value) { + if (versionCreateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + versionCreateTime_ = value; + onChanged(); + } else { + versionCreateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this version was created.
+     * 
+ * + * + * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setVersionCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (versionCreateTimeBuilder_ == null) { + versionCreateTime_ = builderForValue.build(); + onChanged(); + } else { + versionCreateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this version was created.
+     * 
+ * + * + * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeVersionCreateTime(com.google.protobuf.Timestamp value) { + if (versionCreateTimeBuilder_ == null) { + if (versionCreateTime_ != null) { + versionCreateTime_ = + com.google.protobuf.Timestamp.newBuilder(versionCreateTime_) + .mergeFrom(value) + .buildPartial(); + } else { + versionCreateTime_ = value; + } + onChanged(); + } else { + versionCreateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this version was created.
+     * 
+ * + * + * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearVersionCreateTime() { + if (versionCreateTimeBuilder_ == null) { + versionCreateTime_ = null; + onChanged(); + } else { + versionCreateTime_ = null; + versionCreateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this version was created.
+     * 
+ * + * + * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getVersionCreateTimeBuilder() { + + onChanged(); + return getVersionCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this version was created.
+     * 
+ * + * + * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getVersionCreateTimeOrBuilder() { + if (versionCreateTimeBuilder_ != null) { + return versionCreateTimeBuilder_.getMessageOrBuilder(); + } else { + return versionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : versionCreateTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp when this version was created.
+     * 
+ * + * + * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getVersionCreateTimeFieldBuilder() { + if (versionCreateTimeBuilder_ == null) { + versionCreateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getVersionCreateTime(), getParentForChildren(), isClean()); + versionCreateTime_ = null; + } + return versionCreateTimeBuilder_; } - private int bitField0_; - - private java.lang.Object name_ = ""; + private com.google.protobuf.Timestamp versionUpdateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + versionUpdateTimeBuilder_; /** * * *
-     * The resource name of the Model.
+     * Output only. Timestamp when this version was most recently updated.
      * 
* - * string name = 1; + * + * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The name. + * @return Whether the versionUpdateTime field is set. */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; + public boolean hasVersionUpdateTime() { + return versionUpdateTimeBuilder_ != null || versionUpdateTime_ != null; + } + /** + * + * + *
+     * Output only. Timestamp when this version was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The versionUpdateTime. + */ + public com.google.protobuf.Timestamp getVersionUpdateTime() { + if (versionUpdateTimeBuilder_ == null) { + return versionUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : versionUpdateTime_; } else { - return (java.lang.String) ref; + return versionUpdateTimeBuilder_.getMessage(); } } /** * * *
-     * The resource name of the Model.
+     * Output only. Timestamp when this version was most recently updated.
      * 
* - * string name = 1; - * - * @return The bytes for name. + * + * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; + public Builder setVersionUpdateTime(com.google.protobuf.Timestamp value) { + if (versionUpdateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + versionUpdateTime_ = value; + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + versionUpdateTimeBuilder_.setMessage(value); } + + return this; } /** * * *
-     * The resource name of the Model.
+     * Output only. Timestamp when this version was most recently updated.
      * 
* - * string name = 1; + * + * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setVersionUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (versionUpdateTimeBuilder_ == null) { + versionUpdateTime_ = builderForValue.build(); + onChanged(); + } else { + versionUpdateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** * - * @param value The name to set. - * @return This builder for chaining. + * + *
+     * Output only. Timestamp when this version was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeVersionUpdateTime(com.google.protobuf.Timestamp value) { + if (versionUpdateTimeBuilder_ == null) { + if (versionUpdateTime_ != null) { + versionUpdateTime_ = + com.google.protobuf.Timestamp.newBuilder(versionUpdateTime_) + .mergeFrom(value) + .buildPartial(); + } else { + versionUpdateTime_ = value; + } + onChanged(); + } else { + versionUpdateTimeBuilder_.mergeFrom(value); } - name_ = value; - onChanged(); return this; } /** * * *
-     * The resource name of the Model.
+     * Output only. Timestamp when this version was most recently updated.
      * 
* - * string name = 1; + * + * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearVersionUpdateTime() { + if (versionUpdateTimeBuilder_ == null) { + versionUpdateTime_ = null; + onChanged(); + } else { + versionUpdateTime_ = null; + versionUpdateTimeBuilder_ = null; + } + + return this; + } + /** * - * @return This builder for chaining. + * + *
+     * Output only. Timestamp when this version was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearName() { + public com.google.protobuf.Timestamp.Builder getVersionUpdateTimeBuilder() { - name_ = getDefaultInstance().getName(); onChanged(); - return this; + return getVersionUpdateTimeFieldBuilder().getBuilder(); } /** * * *
-     * The resource name of the Model.
+     * Output only. Timestamp when this version was most recently updated.
      * 
* - * string name = 1; + * + * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getVersionUpdateTimeOrBuilder() { + if (versionUpdateTimeBuilder_ != null) { + return versionUpdateTimeBuilder_.getMessageOrBuilder(); + } else { + return versionUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : versionUpdateTime_; + } + } + /** * - * @param value The bytes for name to set. - * @return This builder for chaining. + * + *
+     * Output only. Timestamp when this version was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getVersionUpdateTimeFieldBuilder() { + if (versionUpdateTimeBuilder_ == null) { + versionUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getVersionUpdateTime(), getParentForChildren(), isClean()); + versionUpdateTime_ = null; } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; + return versionUpdateTimeBuilder_; } private java.lang.Object displayName_ = ""; @@ -4824,6 +6091,112 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object versionDescription_ = ""; + /** + * + * + *
+     * The description of this version.
+     * 
+ * + * string version_description = 30; + * + * @return The versionDescription. + */ + public java.lang.String getVersionDescription() { + java.lang.Object ref = versionDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + versionDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The description of this version.
+     * 
+ * + * string version_description = 30; + * + * @return The bytes for versionDescription. + */ + public com.google.protobuf.ByteString getVersionDescriptionBytes() { + java.lang.Object ref = versionDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + versionDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The description of this version.
+     * 
+ * + * string version_description = 30; + * + * @param value The versionDescription to set. + * @return This builder for chaining. + */ + public Builder setVersionDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + versionDescription_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The description of this version.
+     * 
+ * + * string version_description = 30; + * + * @return This builder for chaining. + */ + public Builder clearVersionDescription() { + + versionDescription_ = getDefaultInstance().getVersionDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * The description of this version.
+     * 
+ * + * string version_description = 30; + * + * @param value The bytes for versionDescription to set. + * @return This builder for chaining. + */ + public Builder setVersionDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + versionDescription_ = value; + onChanged(); + return this; + } + private com.google.cloud.aiplatform.v1.PredictSchemata predictSchemata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.PredictSchemata, @@ -5380,11 +6753,11 @@ public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { supportedExportFormats_ = java.util.Collections.emptyList(); private void ensureSupportedExportFormatsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { supportedExportFormats_ = new java.util.ArrayList( supportedExportFormats_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -5637,7 +7010,7 @@ public Builder addAllSupportedExportFormats( public Builder clearSupportedExportFormats() { if (supportedExportFormatsBuilder_ == null) { supportedExportFormats_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { supportedExportFormatsBuilder_.clear(); @@ -5786,7 +7159,7 @@ public Builder removeSupportedExportFormats(int index) { com.google.cloud.aiplatform.v1.Model.ExportFormat.Builder, com.google.cloud.aiplatform.v1.Model.ExportFormatOrBuilder>( supportedExportFormats_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); supportedExportFormats_ = null; @@ -6275,10 +7648,10 @@ public Builder setArtifactUriBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureSupportedDeploymentResourcesTypesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { supportedDeploymentResourcesTypes_ = new java.util.ArrayList(supportedDeploymentResourcesTypes_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } /** @@ -6493,7 +7866,7 @@ public Builder addAllSupportedDeploymentResourcesTypes( */ public Builder clearSupportedDeploymentResourcesTypes() { supportedDeploymentResourcesTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -6653,10 +8026,10 @@ public Builder addAllSupportedDeploymentResourcesTypesValue( com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSupportedInputStorageFormatsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { supportedInputStorageFormats_ = new com.google.protobuf.LazyStringArrayList(supportedInputStorageFormats_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; } } /** @@ -7039,7 +8412,7 @@ public Builder addAllSupportedInputStorageFormats(java.lang.Iterable( deployedModels_); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; } } @@ -8163,7 +9536,7 @@ public Builder addAllDeployedModels( public Builder clearDeployedModels() { if (deployedModelsBuilder_ == null) { deployedModels_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { deployedModelsBuilder_.clear(); @@ -8310,7 +9683,7 @@ public com.google.cloud.aiplatform.v1.DeployedModelRef.Builder addDeployedModels com.google.cloud.aiplatform.v1.DeployedModelRef.Builder, com.google.cloud.aiplatform.v1.DeployedModelRefOrBuilder>( deployedModels_, - ((bitField0_ & 0x00000010) != 0), + ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); deployedModels_ = null; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJobName.java index 93185920c0ff..0bf80fc7e177 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJobName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJobProto.java index 4f32dd8d1f77..e61055d6f213 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJobProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJobProto.java @@ -147,34 +147,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ctiveConfig\022\031\n\021deployed_model_id\030\001 \001(\t\022T" + "\n\020objective_config\030\002 \001(\0132:.google.cloud." + "aiplatform.v1.ModelMonitoringObjectiveCo" - + "nfig\"c\n\'ModelDeploymentMonitoringSchedul" - + "eConfig\0228\n\020monitor_interval\030\001 \001(\0132\031.goog" - + "le.protobuf.DurationB\003\340A\002\"\254\004\n\035ModelMonit" - + "oringStatsAnomalies\022U\n\tobjective\030\001 \001(\0162B" - + ".google.cloud.aiplatform.v1.ModelDeploym" - + "entMonitoringObjectiveType\022\031\n\021deployed_m" - + "odel_id\030\002 \001(\t\022\025\n\ranomaly_count\030\003 \001(\005\022n\n\r" - + "feature_stats\030\004 \003(\0132W.google.cloud.aipla" - + "tform.v1.ModelMonitoringStatsAnomalies.F" - + "eatureHistoricStatsAnomalies\032\221\002\n\035Feature" - + "HistoricStatsAnomalies\022\034\n\024feature_displa" - + "y_name\030\001 \001(\t\022>\n\tthreshold\030\003 \001(\0132+.google" - + ".cloud.aiplatform.v1.ThresholdConfig\022G\n\016" - + "training_stats\030\004 \001(\0132/.google.cloud.aipl" - + "atform.v1.FeatureStatsAnomaly\022I\n\020predict" - + "ion_stats\030\005 \003(\0132/.google.cloud.aiplatfor" - + "m.v1.FeatureStatsAnomaly*\316\001\n&ModelDeploy" - + "mentMonitoringObjectiveType\022:\n6MODEL_DEP" - + "LOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPEC" - + "IFIED\020\000\022\024\n\020RAW_FEATURE_SKEW\020\001\022\025\n\021RAW_FEA" - + "TURE_DRIFT\020\002\022\034\n\030FEATURE_ATTRIBUTION_SKEW" - + "\020\003\022\035\n\031FEATURE_ATTRIBUTION_DRIFT\020\004B\345\001\n\036co" - + "m.google.cloud.aiplatform.v1B!ModelDeplo" - + "ymentMonitoringJobProtoP\001ZDgoogle.golang" - + ".org/genproto/googleapis/cloud/aiplatfor" - + "m/v1;aiplatform\252\002\032Google.Cloud.AIPlatfor" - + "m.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Goog" - + "le::Cloud::AIPlatform::V1b\006proto3" + + "nfig\"\226\001\n\'ModelDeploymentMonitoringSchedu" + + "leConfig\0228\n\020monitor_interval\030\001 \001(\0132\031.goo" + + "gle.protobuf.DurationB\003\340A\002\0221\n\016monitor_wi" + + "ndow\030\002 \001(\0132\031.google.protobuf.Duration\"\254\004" + + "\n\035ModelMonitoringStatsAnomalies\022U\n\tobjec" + + "tive\030\001 \001(\0162B.google.cloud.aiplatform.v1." + + "ModelDeploymentMonitoringObjectiveType\022\031" + + "\n\021deployed_model_id\030\002 \001(\t\022\025\n\ranomaly_cou" + + "nt\030\003 \001(\005\022n\n\rfeature_stats\030\004 \003(\0132W.google" + + ".cloud.aiplatform.v1.ModelMonitoringStat" + + "sAnomalies.FeatureHistoricStatsAnomalies" + + "\032\221\002\n\035FeatureHistoricStatsAnomalies\022\034\n\024fe" + + "ature_display_name\030\001 \001(\t\022>\n\tthreshold\030\003 " + + "\001(\0132+.google.cloud.aiplatform.v1.Thresho" + + "ldConfig\022G\n\016training_stats\030\004 \001(\0132/.googl" + + "e.cloud.aiplatform.v1.FeatureStatsAnomal" + + "y\022I\n\020prediction_stats\030\005 \003(\0132/.google.clo" + + "ud.aiplatform.v1.FeatureStatsAnomaly*\316\001\n" + + "&ModelDeploymentMonitoringObjectiveType\022" + + ":\n6MODEL_DEPLOYMENT_MONITORING_OBJECTIVE" + + "_TYPE_UNSPECIFIED\020\000\022\024\n\020RAW_FEATURE_SKEW\020" + + "\001\022\025\n\021RAW_FEATURE_DRIFT\020\002\022\034\n\030FEATURE_ATTR" + + "IBUTION_SKEW\020\003\022\035\n\031FEATURE_ATTRIBUTION_DR" + + "IFT\020\004B\345\001\n\036com.google.cloud.aiplatform.v1" + + "B!ModelDeploymentMonitoringJobProtoP\001ZDg" + + "oogle.golang.org/genproto/googleapis/clo" + + "ud/aiplatform/v1;aiplatform\252\002\032Google.Clo" + + "ud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatfo" + + "rm\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -264,7 +266,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ModelDeploymentMonitoringScheduleConfig_descriptor, new java.lang.String[] { - "MonitorInterval", + "MonitorInterval", "MonitorWindow", }); internal_static_google_cloud_aiplatform_v1_ModelMonitoringStatsAnomalies_descriptor = getDescriptor().getMessageTypes().get(4); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringScheduleConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringScheduleConfig.java index 348bd41c1588..be60a578d133 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringScheduleConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringScheduleConfig.java @@ -83,6 +83,21 @@ private ModelDeploymentMonitoringScheduleConfig( monitorInterval_ = subBuilder.buildPartial(); } + break; + } + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (monitorWindow_ != null) { + subBuilder = monitorWindow_.toBuilder(); + } + monitorWindow_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(monitorWindow_); + monitorWindow_ = subBuilder.buildPartial(); + } + break; } default: @@ -175,6 +190,75 @@ public com.google.protobuf.DurationOrBuilder getMonitorIntervalOrBuilder() { return getMonitorInterval(); } + public static final int MONITOR_WINDOW_FIELD_NUMBER = 2; + private com.google.protobuf.Duration monitorWindow_; + /** + * + * + *
+   * The time window of the prediction data being included in each prediction
+   * dataset. This window specifies how long the data should be collected from
+   * historical model results for each run. If not set,
+   * [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used.
+   * e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the
+   * monitor_window is set to be 3600, then data from 2022-01-08 13:30:00
+   * to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the
+   * monitoring statistics.
+   * 
+ * + * .google.protobuf.Duration monitor_window = 2; + * + * @return Whether the monitorWindow field is set. + */ + @java.lang.Override + public boolean hasMonitorWindow() { + return monitorWindow_ != null; + } + /** + * + * + *
+   * The time window of the prediction data being included in each prediction
+   * dataset. This window specifies how long the data should be collected from
+   * historical model results for each run. If not set,
+   * [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used.
+   * e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the
+   * monitor_window is set to be 3600, then data from 2022-01-08 13:30:00
+   * to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the
+   * monitoring statistics.
+   * 
+ * + * .google.protobuf.Duration monitor_window = 2; + * + * @return The monitorWindow. + */ + @java.lang.Override + public com.google.protobuf.Duration getMonitorWindow() { + return monitorWindow_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : monitorWindow_; + } + /** + * + * + *
+   * The time window of the prediction data being included in each prediction
+   * dataset. This window specifies how long the data should be collected from
+   * historical model results for each run. If not set,
+   * [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used.
+   * e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the
+   * monitor_window is set to be 3600, then data from 2022-01-08 13:30:00
+   * to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the
+   * monitoring statistics.
+   * 
+ * + * .google.protobuf.Duration monitor_window = 2; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getMonitorWindowOrBuilder() { + return getMonitorWindow(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -192,6 +276,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (monitorInterval_ != null) { output.writeMessage(1, getMonitorInterval()); } + if (monitorWindow_ != null) { + output.writeMessage(2, getMonitorWindow()); + } unknownFields.writeTo(output); } @@ -204,6 +291,9 @@ public int getSerializedSize() { if (monitorInterval_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMonitorInterval()); } + if (monitorWindow_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMonitorWindow()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -224,6 +314,10 @@ public boolean equals(final java.lang.Object obj) { if (hasMonitorInterval()) { if (!getMonitorInterval().equals(other.getMonitorInterval())) return false; } + if (hasMonitorWindow() != other.hasMonitorWindow()) return false; + if (hasMonitorWindow()) { + if (!getMonitorWindow().equals(other.getMonitorWindow())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -239,6 +333,10 @@ public int hashCode() { hash = (37 * hash) + MONITOR_INTERVAL_FIELD_NUMBER; hash = (53 * hash) + getMonitorInterval().hashCode(); } + if (hasMonitorWindow()) { + hash = (37 * hash) + MONITOR_WINDOW_FIELD_NUMBER; + hash = (53 * hash) + getMonitorWindow().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -393,6 +491,12 @@ public Builder clear() { monitorInterval_ = null; monitorIntervalBuilder_ = null; } + if (monitorWindowBuilder_ == null) { + monitorWindow_ = null; + } else { + monitorWindow_ = null; + monitorWindowBuilder_ = null; + } return this; } @@ -428,6 +532,11 @@ public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig bu } else { result.monitorInterval_ = monitorIntervalBuilder_.build(); } + if (monitorWindowBuilder_ == null) { + result.monitorWindow_ = monitorWindow_; + } else { + result.monitorWindow_ = monitorWindowBuilder_.build(); + } onBuilt(); return result; } @@ -484,6 +593,9 @@ public Builder mergeFrom( if (other.hasMonitorInterval()) { mergeMonitorInterval(other.getMonitorInterval()); } + if (other.hasMonitorWindow()) { + mergeMonitorWindow(other.getMonitorWindow()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -727,6 +839,254 @@ public com.google.protobuf.DurationOrBuilder getMonitorIntervalOrBuilder() { return monitorIntervalBuilder_; } + private com.google.protobuf.Duration monitorWindow_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + monitorWindowBuilder_; + /** + * + * + *
+     * The time window of the prediction data being included in each prediction
+     * dataset. This window specifies how long the data should be collected from
+     * historical model results for each run. If not set,
+     * [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used.
+     * e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the
+     * monitor_window is set to be 3600, then data from 2022-01-08 13:30:00
+     * to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the
+     * monitoring statistics.
+     * 
+ * + * .google.protobuf.Duration monitor_window = 2; + * + * @return Whether the monitorWindow field is set. + */ + public boolean hasMonitorWindow() { + return monitorWindowBuilder_ != null || monitorWindow_ != null; + } + /** + * + * + *
+     * The time window of the prediction data being included in each prediction
+     * dataset. This window specifies how long the data should be collected from
+     * historical model results for each run. If not set,
+     * [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used.
+     * e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the
+     * monitor_window is set to be 3600, then data from 2022-01-08 13:30:00
+     * to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the
+     * monitoring statistics.
+     * 
+ * + * .google.protobuf.Duration monitor_window = 2; + * + * @return The monitorWindow. + */ + public com.google.protobuf.Duration getMonitorWindow() { + if (monitorWindowBuilder_ == null) { + return monitorWindow_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : monitorWindow_; + } else { + return monitorWindowBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time window of the prediction data being included in each prediction
+     * dataset. This window specifies how long the data should be collected from
+     * historical model results for each run. If not set,
+     * [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used.
+     * e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the
+     * monitor_window is set to be 3600, then data from 2022-01-08 13:30:00
+     * to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the
+     * monitoring statistics.
+     * 
+ * + * .google.protobuf.Duration monitor_window = 2; + */ + public Builder setMonitorWindow(com.google.protobuf.Duration value) { + if (monitorWindowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + monitorWindow_ = value; + onChanged(); + } else { + monitorWindowBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time window of the prediction data being included in each prediction
+     * dataset. This window specifies how long the data should be collected from
+     * historical model results for each run. If not set,
+     * [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used.
+     * e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the
+     * monitor_window is set to be 3600, then data from 2022-01-08 13:30:00
+     * to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the
+     * monitoring statistics.
+     * 
+ * + * .google.protobuf.Duration monitor_window = 2; + */ + public Builder setMonitorWindow(com.google.protobuf.Duration.Builder builderForValue) { + if (monitorWindowBuilder_ == null) { + monitorWindow_ = builderForValue.build(); + onChanged(); + } else { + monitorWindowBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time window of the prediction data being included in each prediction
+     * dataset. This window specifies how long the data should be collected from
+     * historical model results for each run. If not set,
+     * [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used.
+     * e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the
+     * monitor_window is set to be 3600, then data from 2022-01-08 13:30:00
+     * to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the
+     * monitoring statistics.
+     * 
+ * + * .google.protobuf.Duration monitor_window = 2; + */ + public Builder mergeMonitorWindow(com.google.protobuf.Duration value) { + if (monitorWindowBuilder_ == null) { + if (monitorWindow_ != null) { + monitorWindow_ = + com.google.protobuf.Duration.newBuilder(monitorWindow_) + .mergeFrom(value) + .buildPartial(); + } else { + monitorWindow_ = value; + } + onChanged(); + } else { + monitorWindowBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time window of the prediction data being included in each prediction
+     * dataset. This window specifies how long the data should be collected from
+     * historical model results for each run. If not set,
+     * [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used.
+     * e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the
+     * monitor_window is set to be 3600, then data from 2022-01-08 13:30:00
+     * to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the
+     * monitoring statistics.
+     * 
+ * + * .google.protobuf.Duration monitor_window = 2; + */ + public Builder clearMonitorWindow() { + if (monitorWindowBuilder_ == null) { + monitorWindow_ = null; + onChanged(); + } else { + monitorWindow_ = null; + monitorWindowBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time window of the prediction data being included in each prediction
+     * dataset. This window specifies how long the data should be collected from
+     * historical model results for each run. If not set,
+     * [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used.
+     * e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the
+     * monitor_window is set to be 3600, then data from 2022-01-08 13:30:00
+     * to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the
+     * monitoring statistics.
+     * 
+ * + * .google.protobuf.Duration monitor_window = 2; + */ + public com.google.protobuf.Duration.Builder getMonitorWindowBuilder() { + + onChanged(); + return getMonitorWindowFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time window of the prediction data being included in each prediction
+     * dataset. This window specifies how long the data should be collected from
+     * historical model results for each run. If not set,
+     * [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used.
+     * e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the
+     * monitor_window is set to be 3600, then data from 2022-01-08 13:30:00
+     * to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the
+     * monitoring statistics.
+     * 
+ * + * .google.protobuf.Duration monitor_window = 2; + */ + public com.google.protobuf.DurationOrBuilder getMonitorWindowOrBuilder() { + if (monitorWindowBuilder_ != null) { + return monitorWindowBuilder_.getMessageOrBuilder(); + } else { + return monitorWindow_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : monitorWindow_; + } + } + /** + * + * + *
+     * The time window of the prediction data being included in each prediction
+     * dataset. This window specifies how long the data should be collected from
+     * historical model results for each run. If not set,
+     * [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used.
+     * e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the
+     * monitor_window is set to be 3600, then data from 2022-01-08 13:30:00
+     * to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the
+     * monitoring statistics.
+     * 
+ * + * .google.protobuf.Duration monitor_window = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getMonitorWindowFieldBuilder() { + if (monitorWindowBuilder_ == null) { + monitorWindowBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMonitorWindow(), getParentForChildren(), isClean()); + monitorWindow_ = null; + } + return monitorWindowBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringScheduleConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringScheduleConfigOrBuilder.java index 9b25a9c77915..e4bcc22b66d7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringScheduleConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringScheduleConfigOrBuilder.java @@ -63,4 +63,60 @@ public interface ModelDeploymentMonitoringScheduleConfigOrBuilder *
*/ com.google.protobuf.DurationOrBuilder getMonitorIntervalOrBuilder(); + + /** + * + * + *
+   * The time window of the prediction data being included in each prediction
+   * dataset. This window specifies how long the data should be collected from
+   * historical model results for each run. If not set,
+   * [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used.
+   * e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the
+   * monitor_window is set to be 3600, then data from 2022-01-08 13:30:00
+   * to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the
+   * monitoring statistics.
+   * 
+ * + * .google.protobuf.Duration monitor_window = 2; + * + * @return Whether the monitorWindow field is set. + */ + boolean hasMonitorWindow(); + /** + * + * + *
+   * The time window of the prediction data being included in each prediction
+   * dataset. This window specifies how long the data should be collected from
+   * historical model results for each run. If not set,
+   * [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used.
+   * e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the
+   * monitor_window is set to be 3600, then data from 2022-01-08 13:30:00
+   * to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the
+   * monitoring statistics.
+   * 
+ * + * .google.protobuf.Duration monitor_window = 2; + * + * @return The monitorWindow. + */ + com.google.protobuf.Duration getMonitorWindow(); + /** + * + * + *
+   * The time window of the prediction data being included in each prediction
+   * dataset. This window specifies how long the data should be collected from
+   * historical model results for each run. If not set,
+   * [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used.
+   * e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the
+   * monitor_window is set to be 3600, then data from 2022-01-08 13:30:00
+   * to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the
+   * monitoring statistics.
+   * 
+ * + * .google.protobuf.Duration monitor_window = 2; + */ + com.google.protobuf.DurationOrBuilder getMonitorWindowOrBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluation.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluation.java index 1ce501a6b219..0fbda50774dd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluation.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluation.java @@ -40,6 +40,7 @@ private ModelEvaluation(com.google.protobuf.GeneratedMessageV3.Builder builde private ModelEvaluation() { name_ = ""; + displayName_ = ""; metricsSchemaUri_ = ""; sliceDimensions_ = com.google.protobuf.LazyStringArrayList.EMPTY; dataItemSchemaUri_ = ""; @@ -176,6 +177,27 @@ private ModelEvaluation( extensionRegistry)); break; } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 90: + { + com.google.protobuf.Value.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(com.google.protobuf.Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -1281,6 +1303,55 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int DISPLAY_NAME_FIELD_NUMBER = 10; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * The display name of the ModelEvaluation.
+   * 
+ * + * string display_name = 10; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * The display name of the ModelEvaluation.
+   * 
+ * + * string display_name = 10; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int METRICS_SCHEMA_URI_FIELD_NUMBER = 2; private volatile java.lang.Object metricsSchemaUri_; /** @@ -1780,6 +1851,61 @@ public int getExplanationSpecsCount() { return explanationSpecs_.get(index); } + public static final int METADATA_FIELD_NUMBER = 11; + private com.google.protobuf.Value metadata_; + /** + * + * + *
+   * The metadata of the ModelEvaluation.
+   * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
+   * structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
+   * "evaluation_dataset_path".
+   * 
+ * + * .google.protobuf.Value metadata = 11; + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * + * + *
+   * The metadata of the ModelEvaluation.
+   * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
+   * structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
+   * "evaluation_dataset_path".
+   * 
+ * + * .google.protobuf.Value metadata = 11; + * + * @return The metadata. + */ + @java.lang.Override + public com.google.protobuf.Value getMetadata() { + return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_; + } + /** + * + * + *
+   * The metadata of the ModelEvaluation.
+   * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
+   * structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
+   * "evaluation_dataset_path".
+   * 
+ * + * .google.protobuf.Value metadata = 11; + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1821,6 +1947,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < explanationSpecs_.size(); i++) { output.writeMessage(9, explanationSpecs_.get(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, displayName_); + } + if (metadata_ != null) { + output.writeMessage(11, getMetadata()); + } unknownFields.writeTo(output); } @@ -1862,6 +1994,12 @@ public int getSerializedSize() { for (int i = 0; i < explanationSpecs_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, explanationSpecs_.get(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, displayName_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getMetadata()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1879,6 +2017,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.aiplatform.v1.ModelEvaluation) obj; if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getMetricsSchemaUri().equals(other.getMetricsSchemaUri())) return false; if (hasMetrics() != other.hasMetrics()) return false; if (hasMetrics()) { @@ -1896,6 +2035,10 @@ public boolean equals(final java.lang.Object obj) { if (!getModelExplanation().equals(other.getModelExplanation())) return false; } if (!getExplanationSpecsList().equals(other.getExplanationSpecsList())) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata().equals(other.getMetadata())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1909,6 +2052,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + METRICS_SCHEMA_URI_FIELD_NUMBER; hash = (53 * hash) + getMetricsSchemaUri().hashCode(); if (hasMetrics()) { @@ -1935,6 +2080,10 @@ public int hashCode() { hash = (37 * hash) + EXPLANATION_SPECS_FIELD_NUMBER; hash = (53 * hash) + getExplanationSpecsList().hashCode(); } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -2085,6 +2234,8 @@ public Builder clear() { super.clear(); name_ = ""; + displayName_ = ""; + metricsSchemaUri_ = ""; if (metricsBuilder_ == null) { @@ -2117,6 +2268,12 @@ public Builder clear() { } else { explanationSpecsBuilder_.clear(); } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } return this; } @@ -2146,6 +2303,7 @@ public com.google.cloud.aiplatform.v1.ModelEvaluation buildPartial() { new com.google.cloud.aiplatform.v1.ModelEvaluation(this); int from_bitField0_ = bitField0_; result.name_ = name_; + result.displayName_ = displayName_; result.metricsSchemaUri_ = metricsSchemaUri_; if (metricsBuilder_ == null) { result.metrics_ = metrics_; @@ -2178,6 +2336,11 @@ public com.google.cloud.aiplatform.v1.ModelEvaluation buildPartial() { } else { result.explanationSpecs_ = explanationSpecsBuilder_.build(); } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } onBuilt(); return result; } @@ -2231,6 +2394,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelEvaluation other) { name_ = other.name_; onChanged(); } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } if (!other.getMetricsSchemaUri().isEmpty()) { metricsSchemaUri_ = other.metricsSchemaUri_; onChanged(); @@ -2289,6 +2456,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelEvaluation other) { } } } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2426,6 +2596,112 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * The display name of the ModelEvaluation.
+     * 
+ * + * string display_name = 10; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The display name of the ModelEvaluation.
+     * 
+ * + * string display_name = 10; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The display name of the ModelEvaluation.
+     * 
+ * + * string display_name = 10; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The display name of the ModelEvaluation.
+     * 
+ * + * string display_name = 10; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The display name of the ModelEvaluation.
+     * 
+ * + * string display_name = 10; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + private java.lang.Object metricsSchemaUri_ = ""; /** * @@ -4058,6 +4334,212 @@ public Builder removeExplanationSpecs(int index) { return explanationSpecsBuilder_; } + private com.google.protobuf.Value metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + metadataBuilder_; + /** + * + * + *
+     * The metadata of the ModelEvaluation.
+     * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
+     * structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
+     * "evaluation_dataset_path".
+     * 
+ * + * .google.protobuf.Value metadata = 11; + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * + * + *
+     * The metadata of the ModelEvaluation.
+     * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
+     * structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
+     * "evaluation_dataset_path".
+     * 
+ * + * .google.protobuf.Value metadata = 11; + * + * @return The metadata. + */ + public com.google.protobuf.Value getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The metadata of the ModelEvaluation.
+     * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
+     * structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
+     * "evaluation_dataset_path".
+     * 
+ * + * .google.protobuf.Value metadata = 11; + */ + public Builder setMetadata(com.google.protobuf.Value value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The metadata of the ModelEvaluation.
+     * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
+     * structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
+     * "evaluation_dataset_path".
+     * 
+ * + * .google.protobuf.Value metadata = 11; + */ + public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The metadata of the ModelEvaluation.
+     * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
+     * structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
+     * "evaluation_dataset_path".
+     * 
+ * + * .google.protobuf.Value metadata = 11; + */ + public Builder mergeMetadata(com.google.protobuf.Value value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.protobuf.Value.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The metadata of the ModelEvaluation.
+     * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
+     * structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
+     * "evaluation_dataset_path".
+     * 
+ * + * .google.protobuf.Value metadata = 11; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The metadata of the ModelEvaluation.
+     * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
+     * structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
+     * "evaluation_dataset_path".
+     * 
+ * + * .google.protobuf.Value metadata = 11; + */ + public com.google.protobuf.Value.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The metadata of the ModelEvaluation.
+     * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
+     * structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
+     * "evaluation_dataset_path".
+     * 
+ * + * .google.protobuf.Value metadata = 11; + */ + public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_; + } + } + /** + * + * + *
+     * The metadata of the ModelEvaluation.
+     * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
+     * structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
+     * "evaluation_dataset_path".
+     * 
+ * + * .google.protobuf.Value metadata = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationName.java index 3c4be043ce5a..61e4362c216d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationOrBuilder.java index d6656d18284d..bef2998911cb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationOrBuilder.java @@ -48,6 +48,31 @@ public interface ModelEvaluationOrBuilder */ com.google.protobuf.ByteString getNameBytes(); + /** + * + * + *
+   * The display name of the ModelEvaluation.
+   * 
+ * + * string display_name = 10; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * The display name of the ModelEvaluation.
+   * 
+ * + * string display_name = 10; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + /** * * @@ -409,4 +434,48 @@ com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec ge */ com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpecOrBuilder getExplanationSpecsOrBuilder(int index); + + /** + * + * + *
+   * The metadata of the ModelEvaluation.
+   * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
+   * structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
+   * "evaluation_dataset_path".
+   * 
+ * + * .google.protobuf.Value metadata = 11; + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + /** + * + * + *
+   * The metadata of the ModelEvaluation.
+   * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
+   * structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
+   * "evaluation_dataset_path".
+   * 
+ * + * .google.protobuf.Value metadata = 11; + * + * @return The metadata. + */ + com.google.protobuf.Value getMetadata(); + /** + * + * + *
+   * The metadata of the ModelEvaluation.
+   * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
+   * structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
+   * "evaluation_dataset_path".
+   * 
+ * + * .google.protobuf.Value metadata = 11; + */ + com.google.protobuf.ValueOrBuilder getMetadataOrBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationProto.java index 66ef44779dae..0dec00f96a48 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationProto.java @@ -50,30 +50,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/api/resource.proto\032,google/cloud/aiplat" + "form/v1/explanation.proto\032\034google/protob" + "uf/struct.proto\032\037google/protobuf/timesta" - + "mp.proto\"\253\005\n\017ModelEvaluation\022\021\n\004name\030\001 \001" - + "(\tB\003\340A\003\022\032\n\022metrics_schema_uri\030\002 \001(\t\022\'\n\007m" - + "etrics\030\003 \001(\0132\026.google.protobuf.Value\0224\n\013" - + "create_time\030\004 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\022\030\n\020slice_dimensions\030\005 \003(\t\022\034\n\024" - + "data_item_schema_uri\030\006 \001(\t\022\035\n\025annotation" - + "_schema_uri\030\007 \001(\t\022G\n\021model_explanation\030\010" - + " \001(\0132,.google.cloud.aiplatform.v1.ModelE" - + "xplanation\022e\n\021explanation_specs\030\t \003(\0132J." - + "google.cloud.aiplatform.v1.ModelEvaluati" - + "on.ModelEvaluationExplanationSpec\032\201\001\n\036Mo" - + "delEvaluationExplanationSpec\022\030\n\020explanat" - + "ion_type\030\001 \001(\t\022E\n\020explanation_spec\030\002 \001(\013" - + "2+.google.cloud.aiplatform.v1.Explanatio" - + "nSpec:\177\352A|\n)aiplatform.googleapis.com/Mo" - + "delEvaluation\022Oprojects/{project}/locati" - + "ons/{location}/models/{model}/evaluation" - + "s/{evaluation}B\330\001\n\036com.google.cloud.aipl" - + "atform.v1B\024ModelEvaluationProtoP\001ZDgoogl" - + "e.golang.org/genproto/googleapis/cloud/a" - + "iplatform/v1;aiplatform\252\002\032Google.Cloud.A" - + "IPlatform.V1\312\002\032Google\\Cloud\\AIPlatform\\V" - + "1\352\002\035Google::Cloud::AIPlatform::V1b\006proto" - + "3" + + "mp.proto\"\353\005\n\017ModelEvaluation\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\003\022\024\n\014display_name\030\n \001(\t\022\032\n\022metrics" + + "_schema_uri\030\002 \001(\t\022\'\n\007metrics\030\003 \001(\0132\026.goo" + + "gle.protobuf.Value\0224\n\013create_time\030\004 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\022\030\n\020slic" + + "e_dimensions\030\005 \003(\t\022\034\n\024data_item_schema_u" + + "ri\030\006 \001(\t\022\035\n\025annotation_schema_uri\030\007 \001(\t\022" + + "G\n\021model_explanation\030\010 \001(\0132,.google.clou" + + "d.aiplatform.v1.ModelExplanation\022e\n\021expl" + + "anation_specs\030\t \003(\0132J.google.cloud.aipla" + + "tform.v1.ModelEvaluation.ModelEvaluation" + + "ExplanationSpec\022(\n\010metadata\030\013 \001(\0132\026.goog" + + "le.protobuf.Value\032\201\001\n\036ModelEvaluationExp" + + "lanationSpec\022\030\n\020explanation_type\030\001 \001(\t\022E" + + "\n\020explanation_spec\030\002 \001(\0132+.google.cloud." + + "aiplatform.v1.ExplanationSpec:\177\352A|\n)aipl" + + "atform.googleapis.com/ModelEvaluation\022Op" + + "rojects/{project}/locations/{location}/m" + + "odels/{model}/evaluations/{evaluation}B\330" + + "\001\n\036com.google.cloud.aiplatform.v1B\024Model" + + "EvaluationProtoP\001ZDgoogle.golang.org/gen" + + "proto/googleapis/cloud/aiplatform/v1;aip" + + "latform\252\002\032Google.Cloud.AIPlatform.V1\312\002\032G" + + "oogle\\Cloud\\AIPlatform\\V1\352\002\035Google::Clou" + + "d::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -92,6 +93,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_aiplatform_v1_ModelEvaluation_descriptor, new java.lang.String[] { "Name", + "DisplayName", "MetricsSchemaUri", "Metrics", "CreateTime", @@ -100,6 +102,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AnnotationSchemaUri", "ModelExplanation", "ExplanationSpecs", + "Metadata", }); internal_static_google_cloud_aiplatform_v1_ModelEvaluation_ModelEvaluationExplanationSpec_descriptor = internal_static_google_cloud_aiplatform_v1_ModelEvaluation_descriptor diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSliceName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSliceName.java index 7a57da8a0f7c..81f549aac030 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSliceName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSliceName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringObjectiveConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringObjectiveConfig.java index 5c8ba35463c9..3e94aa02d555 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringObjectiveConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringObjectiveConfig.java @@ -313,6 +313,8 @@ public interface TrainingDatasetOrBuilder * The source file is a TFRecord file. * "csv" * The source file is a CSV file. + * "jsonl" + * The source file is a JSONL file. * * * string data_format = 2; @@ -331,6 +333,8 @@ public interface TrainingDatasetOrBuilder * The source file is a TFRecord file. * "csv" * The source file is a CSV file. + * "jsonl" + * The source file is a JSONL file. * * * string data_format = 2; @@ -812,6 +816,8 @@ public com.google.cloud.aiplatform.v1.BigQuerySourceOrBuilder getBigquerySourceO * The source file is a TFRecord file. * "csv" * The source file is a CSV file. + * "jsonl" + * The source file is a JSONL file. * * * string data_format = 2; @@ -841,6 +847,8 @@ public java.lang.String getDataFormat() { * The source file is a TFRecord file. * "csv" * The source file is a CSV file. + * "jsonl" + * The source file is a JSONL file. * * * string data_format = 2; @@ -2051,6 +2059,8 @@ public com.google.cloud.aiplatform.v1.BigQuerySourceOrBuilder getBigquerySourceO * The source file is a TFRecord file. * "csv" * The source file is a CSV file. + * "jsonl" + * The source file is a JSONL file. * * * string data_format = 2; @@ -2079,6 +2089,8 @@ public java.lang.String getDataFormat() { * The source file is a TFRecord file. * "csv" * The source file is a CSV file. + * "jsonl" + * The source file is a JSONL file. * * * string data_format = 2; @@ -2107,6 +2119,8 @@ public com.google.protobuf.ByteString getDataFormatBytes() { * The source file is a TFRecord file. * "csv" * The source file is a CSV file. + * "jsonl" + * The source file is a JSONL file. * * * string data_format = 2; @@ -2134,6 +2148,8 @@ public Builder setDataFormat(java.lang.String value) { * The source file is a TFRecord file. * "csv" * The source file is a CSV file. + * "jsonl" + * The source file is a JSONL file. * * * string data_format = 2; @@ -2157,6 +2173,8 @@ public Builder clearDataFormat() { * The source file is a TFRecord file. * "csv" * The source file is a CSV file. + * "jsonl" + * The source file is a JSONL file. * * * string data_format = 2; @@ -2714,6 +2732,47 @@ com.google.cloud.aiplatform.v1.ThresholdConfig getAttributionScoreSkewThresholds */ com.google.cloud.aiplatform.v1.ThresholdConfig getAttributionScoreSkewThresholdsOrThrow( java.lang.String key); + + /** + * + * + *
+     * Skew anomaly detection threshold used by all features.
+     * When the per-feature thresholds are not set, this field can be used to
+     * specify a threshold for all features.
+     * 
+ * + * .google.cloud.aiplatform.v1.ThresholdConfig default_skew_threshold = 6; + * + * @return Whether the defaultSkewThreshold field is set. + */ + boolean hasDefaultSkewThreshold(); + /** + * + * + *
+     * Skew anomaly detection threshold used by all features.
+     * When the per-feature thresholds are not set, this field can be used to
+     * specify a threshold for all features.
+     * 
+ * + * .google.cloud.aiplatform.v1.ThresholdConfig default_skew_threshold = 6; + * + * @return The defaultSkewThreshold. + */ + com.google.cloud.aiplatform.v1.ThresholdConfig getDefaultSkewThreshold(); + /** + * + * + *
+     * Skew anomaly detection threshold used by all features.
+     * When the per-feature thresholds are not set, this field can be used to
+     * specify a threshold for all features.
+     * 
+ * + * .google.cloud.aiplatform.v1.ThresholdConfig default_skew_threshold = 6; + */ + com.google.cloud.aiplatform.v1.ThresholdConfigOrBuilder getDefaultSkewThresholdOrBuilder(); } /** * @@ -2811,6 +2870,22 @@ private TrainingPredictionSkewDetectionConfig( attributionScoreSkewThresholds__.getValue()); break; } + case 50: + { + com.google.cloud.aiplatform.v1.ThresholdConfig.Builder subBuilder = null; + if (defaultSkewThreshold_ != null) { + subBuilder = defaultSkewThreshold_.toBuilder(); + } + defaultSkewThreshold_ = + input.readMessage( + com.google.cloud.aiplatform.v1.ThresholdConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(defaultSkewThreshold_); + defaultSkewThreshold_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -3121,6 +3196,61 @@ public com.google.cloud.aiplatform.v1.ThresholdConfig getAttributionScoreSkewThr return map.get(key); } + public static final int DEFAULT_SKEW_THRESHOLD_FIELD_NUMBER = 6; + private com.google.cloud.aiplatform.v1.ThresholdConfig defaultSkewThreshold_; + /** + * + * + *
+     * Skew anomaly detection threshold used by all features.
+     * When the per-feature thresholds are not set, this field can be used to
+     * specify a threshold for all features.
+     * 
+ * + * .google.cloud.aiplatform.v1.ThresholdConfig default_skew_threshold = 6; + * + * @return Whether the defaultSkewThreshold field is set. + */ + @java.lang.Override + public boolean hasDefaultSkewThreshold() { + return defaultSkewThreshold_ != null; + } + /** + * + * + *
+     * Skew anomaly detection threshold used by all features.
+     * When the per-feature thresholds are not set, this field can be used to
+     * specify a threshold for all features.
+     * 
+ * + * .google.cloud.aiplatform.v1.ThresholdConfig default_skew_threshold = 6; + * + * @return The defaultSkewThreshold. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ThresholdConfig getDefaultSkewThreshold() { + return defaultSkewThreshold_ == null + ? com.google.cloud.aiplatform.v1.ThresholdConfig.getDefaultInstance() + : defaultSkewThreshold_; + } + /** + * + * + *
+     * Skew anomaly detection threshold used by all features.
+     * When the per-feature thresholds are not set, this field can be used to
+     * specify a threshold for all features.
+     * 
+ * + * .google.cloud.aiplatform.v1.ThresholdConfig default_skew_threshold = 6; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ThresholdConfigOrBuilder + getDefaultSkewThresholdOrBuilder() { + return getDefaultSkewThreshold(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3142,6 +3272,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io internalGetAttributionScoreSkewThresholds(), AttributionScoreSkewThresholdsDefaultEntryHolder.defaultEntry, 2); + if (defaultSkewThreshold_ != null) { + output.writeMessage(6, getDefaultSkewThreshold()); + } unknownFields.writeTo(output); } @@ -3177,6 +3310,10 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 2, attributionScoreSkewThresholds__); } + if (defaultSkewThreshold_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDefaultSkewThreshold()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -3203,6 +3340,10 @@ public boolean equals(final java.lang.Object obj) { if (!internalGetSkewThresholds().equals(other.internalGetSkewThresholds())) return false; if (!internalGetAttributionScoreSkewThresholds() .equals(other.internalGetAttributionScoreSkewThresholds())) return false; + if (hasDefaultSkewThreshold() != other.hasDefaultSkewThreshold()) return false; + if (hasDefaultSkewThreshold()) { + if (!getDefaultSkewThreshold().equals(other.getDefaultSkewThreshold())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3222,6 +3363,10 @@ public int hashCode() { hash = (37 * hash) + ATTRIBUTION_SCORE_SKEW_THRESHOLDS_FIELD_NUMBER; hash = (53 * hash) + internalGetAttributionScoreSkewThresholds().hashCode(); } + if (hasDefaultSkewThreshold()) { + hash = (37 * hash) + DEFAULT_SKEW_THRESHOLD_FIELD_NUMBER; + hash = (53 * hash) + getDefaultSkewThreshold().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -3422,6 +3567,12 @@ public Builder clear() { super.clear(); internalGetMutableSkewThresholds().clear(); internalGetMutableAttributionScoreSkewThresholds().clear(); + if (defaultSkewThresholdBuilder_ == null) { + defaultSkewThreshold_ = null; + } else { + defaultSkewThreshold_ = null; + defaultSkewThresholdBuilder_ = null; + } return this; } @@ -3466,6 +3617,11 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result.skewThresholds_.makeImmutable(); result.attributionScoreSkewThresholds_ = internalGetAttributionScoreSkewThresholds(); result.attributionScoreSkewThresholds_.makeImmutable(); + if (defaultSkewThresholdBuilder_ == null) { + result.defaultSkewThreshold_ = defaultSkewThreshold_; + } else { + result.defaultSkewThreshold_ = defaultSkewThresholdBuilder_.build(); + } onBuilt(); return result; } @@ -3531,6 +3687,9 @@ public Builder mergeFrom( internalGetMutableSkewThresholds().mergeFrom(other.internalGetSkewThresholds()); internalGetMutableAttributionScoreSkewThresholds() .mergeFrom(other.internalGetAttributionScoreSkewThresholds()); + if (other.hasDefaultSkewThreshold()) { + mergeDefaultSkewThreshold(other.getDefaultSkewThreshold()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -3972,6 +4131,213 @@ public Builder putAllAttributionScoreSkewThresholds( return this; } + private com.google.cloud.aiplatform.v1.ThresholdConfig defaultSkewThreshold_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ThresholdConfig, + com.google.cloud.aiplatform.v1.ThresholdConfig.Builder, + com.google.cloud.aiplatform.v1.ThresholdConfigOrBuilder> + defaultSkewThresholdBuilder_; + /** + * + * + *
+       * Skew anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1.ThresholdConfig default_skew_threshold = 6; + * + * @return Whether the defaultSkewThreshold field is set. + */ + public boolean hasDefaultSkewThreshold() { + return defaultSkewThresholdBuilder_ != null || defaultSkewThreshold_ != null; + } + /** + * + * + *
+       * Skew anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1.ThresholdConfig default_skew_threshold = 6; + * + * @return The defaultSkewThreshold. + */ + public com.google.cloud.aiplatform.v1.ThresholdConfig getDefaultSkewThreshold() { + if (defaultSkewThresholdBuilder_ == null) { + return defaultSkewThreshold_ == null + ? com.google.cloud.aiplatform.v1.ThresholdConfig.getDefaultInstance() + : defaultSkewThreshold_; + } else { + return defaultSkewThresholdBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Skew anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1.ThresholdConfig default_skew_threshold = 6; + */ + public Builder setDefaultSkewThreshold(com.google.cloud.aiplatform.v1.ThresholdConfig value) { + if (defaultSkewThresholdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultSkewThreshold_ = value; + onChanged(); + } else { + defaultSkewThresholdBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Skew anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1.ThresholdConfig default_skew_threshold = 6; + */ + public Builder setDefaultSkewThreshold( + com.google.cloud.aiplatform.v1.ThresholdConfig.Builder builderForValue) { + if (defaultSkewThresholdBuilder_ == null) { + defaultSkewThreshold_ = builderForValue.build(); + onChanged(); + } else { + defaultSkewThresholdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Skew anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1.ThresholdConfig default_skew_threshold = 6; + */ + public Builder mergeDefaultSkewThreshold( + com.google.cloud.aiplatform.v1.ThresholdConfig value) { + if (defaultSkewThresholdBuilder_ == null) { + if (defaultSkewThreshold_ != null) { + defaultSkewThreshold_ = + com.google.cloud.aiplatform.v1.ThresholdConfig.newBuilder(defaultSkewThreshold_) + .mergeFrom(value) + .buildPartial(); + } else { + defaultSkewThreshold_ = value; + } + onChanged(); + } else { + defaultSkewThresholdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Skew anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1.ThresholdConfig default_skew_threshold = 6; + */ + public Builder clearDefaultSkewThreshold() { + if (defaultSkewThresholdBuilder_ == null) { + defaultSkewThreshold_ = null; + onChanged(); + } else { + defaultSkewThreshold_ = null; + defaultSkewThresholdBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Skew anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1.ThresholdConfig default_skew_threshold = 6; + */ + public com.google.cloud.aiplatform.v1.ThresholdConfig.Builder + getDefaultSkewThresholdBuilder() { + + onChanged(); + return getDefaultSkewThresholdFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Skew anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1.ThresholdConfig default_skew_threshold = 6; + */ + public com.google.cloud.aiplatform.v1.ThresholdConfigOrBuilder + getDefaultSkewThresholdOrBuilder() { + if (defaultSkewThresholdBuilder_ != null) { + return defaultSkewThresholdBuilder_.getMessageOrBuilder(); + } else { + return defaultSkewThreshold_ == null + ? com.google.cloud.aiplatform.v1.ThresholdConfig.getDefaultInstance() + : defaultSkewThreshold_; + } + } + /** + * + * + *
+       * Skew anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1.ThresholdConfig default_skew_threshold = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ThresholdConfig, + com.google.cloud.aiplatform.v1.ThresholdConfig.Builder, + com.google.cloud.aiplatform.v1.ThresholdConfigOrBuilder> + getDefaultSkewThresholdFieldBuilder() { + if (defaultSkewThresholdBuilder_ == null) { + defaultSkewThresholdBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ThresholdConfig, + com.google.cloud.aiplatform.v1.ThresholdConfig.Builder, + com.google.cloud.aiplatform.v1.ThresholdConfigOrBuilder>( + getDefaultSkewThreshold(), getParentForChildren(), isClean()); + defaultSkewThreshold_ = null; + } + return defaultSkewThresholdBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4194,6 +4560,47 @@ com.google.cloud.aiplatform.v1.ThresholdConfig getAttributionScoreDriftThreshold */ com.google.cloud.aiplatform.v1.ThresholdConfig getAttributionScoreDriftThresholdsOrThrow( java.lang.String key); + + /** + * + * + *
+     * Drift anomaly detection threshold used by all features.
+     * When the per-feature thresholds are not set, this field can be used to
+     * specify a threshold for all features.
+     * 
+ * + * .google.cloud.aiplatform.v1.ThresholdConfig default_drift_threshold = 5; + * + * @return Whether the defaultDriftThreshold field is set. + */ + boolean hasDefaultDriftThreshold(); + /** + * + * + *
+     * Drift anomaly detection threshold used by all features.
+     * When the per-feature thresholds are not set, this field can be used to
+     * specify a threshold for all features.
+     * 
+ * + * .google.cloud.aiplatform.v1.ThresholdConfig default_drift_threshold = 5; + * + * @return The defaultDriftThreshold. + */ + com.google.cloud.aiplatform.v1.ThresholdConfig getDefaultDriftThreshold(); + /** + * + * + *
+     * Drift anomaly detection threshold used by all features.
+     * When the per-feature thresholds are not set, this field can be used to
+     * specify a threshold for all features.
+     * 
+ * + * .google.cloud.aiplatform.v1.ThresholdConfig default_drift_threshold = 5; + */ + com.google.cloud.aiplatform.v1.ThresholdConfigOrBuilder getDefaultDriftThresholdOrBuilder(); } /** * @@ -4290,6 +4697,22 @@ private PredictionDriftDetectionConfig( attributionScoreDriftThresholds__.getValue()); break; } + case 42: + { + com.google.cloud.aiplatform.v1.ThresholdConfig.Builder subBuilder = null; + if (defaultDriftThreshold_ != null) { + subBuilder = defaultDriftThreshold_.toBuilder(); + } + defaultDriftThreshold_ = + input.readMessage( + com.google.cloud.aiplatform.v1.ThresholdConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(defaultDriftThreshold_); + defaultDriftThreshold_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -4596,6 +5019,61 @@ public com.google.cloud.aiplatform.v1.ThresholdConfig getAttributionScoreDriftTh return map.get(key); } + public static final int DEFAULT_DRIFT_THRESHOLD_FIELD_NUMBER = 5; + private com.google.cloud.aiplatform.v1.ThresholdConfig defaultDriftThreshold_; + /** + * + * + *
+     * Drift anomaly detection threshold used by all features.
+     * When the per-feature thresholds are not set, this field can be used to
+     * specify a threshold for all features.
+     * 
+ * + * .google.cloud.aiplatform.v1.ThresholdConfig default_drift_threshold = 5; + * + * @return Whether the defaultDriftThreshold field is set. + */ + @java.lang.Override + public boolean hasDefaultDriftThreshold() { + return defaultDriftThreshold_ != null; + } + /** + * + * + *
+     * Drift anomaly detection threshold used by all features.
+     * When the per-feature thresholds are not set, this field can be used to
+     * specify a threshold for all features.
+     * 
+ * + * .google.cloud.aiplatform.v1.ThresholdConfig default_drift_threshold = 5; + * + * @return The defaultDriftThreshold. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ThresholdConfig getDefaultDriftThreshold() { + return defaultDriftThreshold_ == null + ? com.google.cloud.aiplatform.v1.ThresholdConfig.getDefaultInstance() + : defaultDriftThreshold_; + } + /** + * + * + *
+     * Drift anomaly detection threshold used by all features.
+     * When the per-feature thresholds are not set, this field can be used to
+     * specify a threshold for all features.
+     * 
+ * + * .google.cloud.aiplatform.v1.ThresholdConfig default_drift_threshold = 5; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ThresholdConfigOrBuilder + getDefaultDriftThresholdOrBuilder() { + return getDefaultDriftThreshold(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4617,6 +5095,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io internalGetAttributionScoreDriftThresholds(), AttributionScoreDriftThresholdsDefaultEntryHolder.defaultEntry, 2); + if (defaultDriftThreshold_ != null) { + output.writeMessage(5, getDefaultDriftThreshold()); + } unknownFields.writeTo(output); } @@ -4652,6 +5133,10 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 2, attributionScoreDriftThresholds__); } + if (defaultDriftThreshold_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDefaultDriftThreshold()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -4677,6 +5162,10 @@ public boolean equals(final java.lang.Object obj) { if (!internalGetDriftThresholds().equals(other.internalGetDriftThresholds())) return false; if (!internalGetAttributionScoreDriftThresholds() .equals(other.internalGetAttributionScoreDriftThresholds())) return false; + if (hasDefaultDriftThreshold() != other.hasDefaultDriftThreshold()) return false; + if (hasDefaultDriftThreshold()) { + if (!getDefaultDriftThreshold().equals(other.getDefaultDriftThreshold())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4696,6 +5185,10 @@ public int hashCode() { hash = (37 * hash) + ATTRIBUTION_SCORE_DRIFT_THRESHOLDS_FIELD_NUMBER; hash = (53 * hash) + internalGetAttributionScoreDriftThresholds().hashCode(); } + if (hasDefaultDriftThreshold()) { + hash = (37 * hash) + DEFAULT_DRIFT_THRESHOLD_FIELD_NUMBER; + hash = (53 * hash) + getDefaultDriftThreshold().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -4894,6 +5387,12 @@ public Builder clear() { super.clear(); internalGetMutableDriftThresholds().clear(); internalGetMutableAttributionScoreDriftThresholds().clear(); + if (defaultDriftThresholdBuilder_ == null) { + defaultDriftThreshold_ = null; + } else { + defaultDriftThreshold_ = null; + defaultDriftThresholdBuilder_ = null; + } return this; } @@ -4936,6 +5435,11 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result.driftThresholds_.makeImmutable(); result.attributionScoreDriftThresholds_ = internalGetAttributionScoreDriftThresholds(); result.attributionScoreDriftThresholds_.makeImmutable(); + if (defaultDriftThresholdBuilder_ == null) { + result.defaultDriftThreshold_ = defaultDriftThreshold_; + } else { + result.defaultDriftThreshold_ = defaultDriftThresholdBuilder_.build(); + } onBuilt(); return result; } @@ -5001,6 +5505,9 @@ public Builder mergeFrom( internalGetMutableDriftThresholds().mergeFrom(other.internalGetDriftThresholds()); internalGetMutableAttributionScoreDriftThresholds() .mergeFrom(other.internalGetAttributionScoreDriftThresholds()); + if (other.hasDefaultDriftThreshold()) { + mergeDefaultDriftThreshold(other.getDefaultDriftThreshold()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -5434,6 +5941,214 @@ public Builder putAllAttributionScoreDriftThresholds( return this; } + private com.google.cloud.aiplatform.v1.ThresholdConfig defaultDriftThreshold_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ThresholdConfig, + com.google.cloud.aiplatform.v1.ThresholdConfig.Builder, + com.google.cloud.aiplatform.v1.ThresholdConfigOrBuilder> + defaultDriftThresholdBuilder_; + /** + * + * + *
+       * Drift anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1.ThresholdConfig default_drift_threshold = 5; + * + * @return Whether the defaultDriftThreshold field is set. + */ + public boolean hasDefaultDriftThreshold() { + return defaultDriftThresholdBuilder_ != null || defaultDriftThreshold_ != null; + } + /** + * + * + *
+       * Drift anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1.ThresholdConfig default_drift_threshold = 5; + * + * @return The defaultDriftThreshold. + */ + public com.google.cloud.aiplatform.v1.ThresholdConfig getDefaultDriftThreshold() { + if (defaultDriftThresholdBuilder_ == null) { + return defaultDriftThreshold_ == null + ? com.google.cloud.aiplatform.v1.ThresholdConfig.getDefaultInstance() + : defaultDriftThreshold_; + } else { + return defaultDriftThresholdBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Drift anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1.ThresholdConfig default_drift_threshold = 5; + */ + public Builder setDefaultDriftThreshold( + com.google.cloud.aiplatform.v1.ThresholdConfig value) { + if (defaultDriftThresholdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultDriftThreshold_ = value; + onChanged(); + } else { + defaultDriftThresholdBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Drift anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1.ThresholdConfig default_drift_threshold = 5; + */ + public Builder setDefaultDriftThreshold( + com.google.cloud.aiplatform.v1.ThresholdConfig.Builder builderForValue) { + if (defaultDriftThresholdBuilder_ == null) { + defaultDriftThreshold_ = builderForValue.build(); + onChanged(); + } else { + defaultDriftThresholdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Drift anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1.ThresholdConfig default_drift_threshold = 5; + */ + public Builder mergeDefaultDriftThreshold( + com.google.cloud.aiplatform.v1.ThresholdConfig value) { + if (defaultDriftThresholdBuilder_ == null) { + if (defaultDriftThreshold_ != null) { + defaultDriftThreshold_ = + com.google.cloud.aiplatform.v1.ThresholdConfig.newBuilder(defaultDriftThreshold_) + .mergeFrom(value) + .buildPartial(); + } else { + defaultDriftThreshold_ = value; + } + onChanged(); + } else { + defaultDriftThresholdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Drift anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1.ThresholdConfig default_drift_threshold = 5; + */ + public Builder clearDefaultDriftThreshold() { + if (defaultDriftThresholdBuilder_ == null) { + defaultDriftThreshold_ = null; + onChanged(); + } else { + defaultDriftThreshold_ = null; + defaultDriftThresholdBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Drift anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1.ThresholdConfig default_drift_threshold = 5; + */ + public com.google.cloud.aiplatform.v1.ThresholdConfig.Builder + getDefaultDriftThresholdBuilder() { + + onChanged(); + return getDefaultDriftThresholdFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Drift anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1.ThresholdConfig default_drift_threshold = 5; + */ + public com.google.cloud.aiplatform.v1.ThresholdConfigOrBuilder + getDefaultDriftThresholdOrBuilder() { + if (defaultDriftThresholdBuilder_ != null) { + return defaultDriftThresholdBuilder_.getMessageOrBuilder(); + } else { + return defaultDriftThreshold_ == null + ? com.google.cloud.aiplatform.v1.ThresholdConfig.getDefaultInstance() + : defaultDriftThreshold_; + } + } + /** + * + * + *
+       * Drift anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1.ThresholdConfig default_drift_threshold = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ThresholdConfig, + com.google.cloud.aiplatform.v1.ThresholdConfig.Builder, + com.google.cloud.aiplatform.v1.ThresholdConfigOrBuilder> + getDefaultDriftThresholdFieldBuilder() { + if (defaultDriftThresholdBuilder_ == null) { + defaultDriftThresholdBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ThresholdConfig, + com.google.cloud.aiplatform.v1.ThresholdConfig.Builder, + com.google.cloud.aiplatform.v1.ThresholdConfigOrBuilder>( + getDefaultDriftThreshold(), getParentForChildren(), isClean()); + defaultDriftThreshold_ = null; + } + return defaultDriftThresholdBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringProto.java index 3037f24cbef8..276cb65924fb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringProto.java @@ -99,7 +99,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n1google/cloud/aiplatform/v1/model_monit" + "oring.proto\022\032google.cloud.aiplatform.v1\032" + "\031google/api/resource.proto\032#google/cloud" - + "/aiplatform/v1/io.proto\"\244\024\n\036ModelMonitor" + + "/aiplatform/v1/io.proto\"\277\025\n\036ModelMonitor" + "ingObjectiveConfig\022d\n\020training_dataset\030\001" + " \001(\0132J.google.cloud.aiplatform.v1.ModelM" + "onitoringObjectiveConfig.TrainingDataset" @@ -121,7 +121,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "H\000\022\023\n\013data_format\030\002 \001(\t\022\024\n\014target_field\030" + "\006 \001(\t\022O\n\031logging_sampling_strategy\030\007 \001(\013" + "2,.google.cloud.aiplatform.v1.SamplingSt" - + "rategyB\r\n\013data_source\032\302\004\n%TrainingPredic" + + "rategyB\r\n\013data_source\032\217\005\n%TrainingPredic" + "tionSkewDetectionConfig\022\215\001\n\017skew_thresho" + "lds\030\001 \003(\0132t.google.cloud.aiplatform.v1.M" + "odelMonitoringObjectiveConfig.TrainingPr" @@ -130,57 +130,61 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "holds\030\002 \003(\0132\204\001.google.cloud.aiplatform.v" + "1.ModelMonitoringObjectiveConfig.Trainin" + "gPredictionSkewDetectionConfig.Attributi" - + "onScoreSkewThresholdsEntry\032b\n\023SkewThresh" - + "oldsEntry\022\013\n\003key\030\001 \001(\t\022:\n\005value\030\002 \001(\0132+." - + "google.cloud.aiplatform.v1.ThresholdConf" - + "ig:\0028\001\032r\n#AttributionScoreSkewThresholds" + + "onScoreSkewThresholdsEntry\022K\n\026default_sk" + + "ew_threshold\030\006 \001(\0132+.google.cloud.aiplat" + + "form.v1.ThresholdConfig\032b\n\023SkewThreshold" + + "sEntry\022\013\n\003key\030\001 \001(\t\022:\n\005value\030\002 \001(\0132+.goo" + + "gle.cloud.aiplatform.v1.ThresholdConfig:" + + "\0028\001\032r\n#AttributionScoreSkewThresholdsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022:\n\005value\030\002 \001(\0132+.google." + + "cloud.aiplatform.v1.ThresholdConfig:\0028\001\032" + + "\200\005\n\036PredictionDriftDetectionConfig\022\210\001\n\020d" + + "rift_thresholds\030\001 \003(\0132n.google.cloud.aip" + + "latform.v1.ModelMonitoringObjectiveConfi" + + "g.PredictionDriftDetectionConfig.DriftTh" + + "resholdsEntry\022\252\001\n\"attribution_score_drif" + + "t_thresholds\030\002 \003(\0132~.google.cloud.aiplat" + + "form.v1.ModelMonitoringObjectiveConfig.P" + + "redictionDriftDetectionConfig.Attributio" + + "nScoreDriftThresholdsEntry\022L\n\027default_dr" + + "ift_threshold\030\005 \001(\0132+.google.cloud.aipla" + + "tform.v1.ThresholdConfig\032c\n\024DriftThresho" + + "ldsEntry\022\013\n\003key\030\001 \001(\t\022:\n\005value\030\002 \001(\0132+.g" + + "oogle.cloud.aiplatform.v1.ThresholdConfi" + + "g:\0028\001\032s\n$AttributionScoreDriftThresholds" + "Entry\022\013\n\003key\030\001 \001(\t\022:\n\005value\030\002 \001(\0132+.goog" + "le.cloud.aiplatform.v1.ThresholdConfig:\002" - + "8\001\032\262\004\n\036PredictionDriftDetectionConfig\022\210\001" - + "\n\020drift_thresholds\030\001 \003(\0132n.google.cloud." - + "aiplatform.v1.ModelMonitoringObjectiveCo" - + "nfig.PredictionDriftDetectionConfig.Drif" - + "tThresholdsEntry\022\252\001\n\"attribution_score_d" - + "rift_thresholds\030\002 \003(\0132~.google.cloud.aip" - + "latform.v1.ModelMonitoringObjectiveConfi" - + "g.PredictionDriftDetectionConfig.Attribu" - + "tionScoreDriftThresholdsEntry\032c\n\024DriftTh" - + "resholdsEntry\022\013\n\003key\030\001 \001(\t\022:\n\005value\030\002 \001(" - + "\0132+.google.cloud.aiplatform.v1.Threshold" - + "Config:\0028\001\032s\n$AttributionScoreDriftThres" - + "holdsEntry\022\013\n\003key\030\001 \001(\t\022:\n\005value\030\002 \001(\0132+" - + ".google.cloud.aiplatform.v1.ThresholdCon" - + "fig:\0028\001\032\274\004\n\021ExplanationConfig\022!\n\031enable_" - + "feature_attributes\030\001 \001(\010\022~\n\024explanation_" - + "baseline\030\002 \001(\0132`.google.cloud.aiplatform" - + ".v1.ModelMonitoringObjectiveConfig.Expla" - + "nationConfig.ExplanationBaseline\032\203\003\n\023Exp" - + "lanationBaseline\0229\n\003gcs\030\002 \001(\0132*.google.c" - + "loud.aiplatform.v1.GcsDestinationH\000\022C\n\010b" - + "igquery\030\003 \001(\0132/.google.cloud.aiplatform." - + "v1.BigQueryDestinationH\000\022\214\001\n\021prediction_" - + "format\030\001 \001(\0162q.google.cloud.aiplatform.v" - + "1.ModelMonitoringObjectiveConfig.Explana" - + "tionConfig.ExplanationBaseline.Predictio" - + "nFormat\"N\n\020PredictionFormat\022!\n\035PREDICTIO" - + "N_FORMAT_UNSPECIFIED\020\000\022\t\n\005JSONL\020\002\022\014\n\010BIG" - + "QUERY\020\003B\r\n\013destination\"\315\001\n\032ModelMonitori" - + "ngAlertConfig\022e\n\022email_alert_config\030\001 \001(" - + "\0132G.google.cloud.aiplatform.v1.ModelMoni" - + "toringAlertConfig.EmailAlertConfigH\000\022\026\n\016" - + "enable_logging\030\002 \001(\010\032\'\n\020EmailAlertConfig" - + "\022\023\n\013user_emails\030\001 \003(\tB\007\n\005alert\"/\n\017Thresh" - + "oldConfig\022\017\n\005value\030\001 \001(\001H\000B\013\n\tthreshold\"" - + "\234\001\n\020SamplingStrategy\022]\n\024random_sample_co" - + "nfig\030\001 \001(\0132?.google.cloud.aiplatform.v1." - + "SamplingStrategy.RandomSampleConfig\032)\n\022R" - + "andomSampleConfig\022\023\n\013sample_rate\030\001 \001(\001B\330" - + "\001\n\036com.google.cloud.aiplatform.v1B\024Model" - + "MonitoringProtoP\001ZDgoogle.golang.org/gen" - + "proto/googleapis/cloud/aiplatform/v1;aip" - + "latform\252\002\032Google.Cloud.AIPlatform.V1\312\002\032G" - + "oogle\\Cloud\\AIPlatform\\V1\352\002\035Google::Clou" - + "d::AIPlatform::V1b\006proto3" + + "8\001\032\274\004\n\021ExplanationConfig\022!\n\031enable_featu" + + "re_attributes\030\001 \001(\010\022~\n\024explanation_basel" + + "ine\030\002 \001(\0132`.google.cloud.aiplatform.v1.M" + + "odelMonitoringObjectiveConfig.Explanatio" + + "nConfig.ExplanationBaseline\032\203\003\n\023Explanat" + + "ionBaseline\0229\n\003gcs\030\002 \001(\0132*.google.cloud." + + "aiplatform.v1.GcsDestinationH\000\022C\n\010bigque" + + "ry\030\003 \001(\0132/.google.cloud.aiplatform.v1.Bi" + + "gQueryDestinationH\000\022\214\001\n\021prediction_forma" + + "t\030\001 \001(\0162q.google.cloud.aiplatform.v1.Mod" + + "elMonitoringObjectiveConfig.ExplanationC" + + "onfig.ExplanationBaseline.PredictionForm" + + "at\"N\n\020PredictionFormat\022!\n\035PREDICTION_FOR" + + "MAT_UNSPECIFIED\020\000\022\t\n\005JSONL\020\002\022\014\n\010BIGQUERY" + + "\020\003B\r\n\013destination\"\315\001\n\032ModelMonitoringAle" + + "rtConfig\022e\n\022email_alert_config\030\001 \001(\0132G.g" + + "oogle.cloud.aiplatform.v1.ModelMonitorin" + + "gAlertConfig.EmailAlertConfigH\000\022\026\n\016enabl" + + "e_logging\030\002 \001(\010\032\'\n\020EmailAlertConfig\022\023\n\013u" + + "ser_emails\030\001 \003(\tB\007\n\005alert\"/\n\017ThresholdCo" + + "nfig\022\017\n\005value\030\001 \001(\001H\000B\013\n\tthreshold\"\234\001\n\020S" + + "amplingStrategy\022]\n\024random_sample_config\030" + + "\001 \001(\0132?.google.cloud.aiplatform.v1.Sampl" + + "ingStrategy.RandomSampleConfig\032)\n\022Random" + + "SampleConfig\022\023\n\013sample_rate\030\001 \001(\001B\330\001\n\036co" + + "m.google.cloud.aiplatform.v1B\024ModelMonit" + + "oringProtoP\001ZDgoogle.golang.org/genproto" + + "/googleapis/cloud/aiplatform/v1;aiplatfo" + + "rm\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Google" + + "\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AI" + + "Platform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -224,7 +228,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ModelMonitoringObjectiveConfig_TrainingPredictionSkewDetectionConfig_descriptor, new java.lang.String[] { - "SkewThresholds", "AttributionScoreSkewThresholds", + "SkewThresholds", "AttributionScoreSkewThresholds", "DefaultSkewThreshold", }); internal_static_google_cloud_aiplatform_v1_ModelMonitoringObjectiveConfig_TrainingPredictionSkewDetectionConfig_SkewThresholdsEntry_descriptor = internal_static_google_cloud_aiplatform_v1_ModelMonitoringObjectiveConfig_TrainingPredictionSkewDetectionConfig_descriptor @@ -254,7 +258,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_descriptor, new java.lang.String[] { - "DriftThresholds", "AttributionScoreDriftThresholds", + "DriftThresholds", "AttributionScoreDriftThresholds", "DefaultDriftThreshold", }); internal_static_google_cloud_aiplatform_v1_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_DriftThresholdsEntry_descriptor = internal_static_google_cloud_aiplatform_v1_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_descriptor diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelName.java index baa9c5cfa36a..fadc1419815c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelOrBuilder.java index 8af448361508..e2cc6a6ead30 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelOrBuilder.java @@ -48,6 +48,206 @@ public interface ModelOrBuilder */ com.google.protobuf.ByteString getNameBytes(); + /** + * + * + *
+   * Output only. Immutable. The version ID of the model.
+   * A new version is committed when a new model version is uploaded or
+   * trained under an existing model id. It is an auto-incrementing decimal
+   * number in string representation.
+   * 
+ * + * + * string version_id = 28 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The versionId. + */ + java.lang.String getVersionId(); + /** + * + * + *
+   * Output only. Immutable. The version ID of the model.
+   * A new version is committed when a new model version is uploaded or
+   * trained under an existing model id. It is an auto-incrementing decimal
+   * number in string representation.
+   * 
+ * + * + * string version_id = 28 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for versionId. + */ + com.google.protobuf.ByteString getVersionIdBytes(); + + /** + * + * + *
+   * User provided version aliases so that a model version can be referenced via
+   * alias (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+   * instead of auto-generated version id (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+   * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+   * version_id. A default version alias will be created for the first version
+   * of the model, and there must be exactly one default version alias for a
+   * model.
+   * 
+ * + * repeated string version_aliases = 29; + * + * @return A list containing the versionAliases. + */ + java.util.List getVersionAliasesList(); + /** + * + * + *
+   * User provided version aliases so that a model version can be referenced via
+   * alias (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+   * instead of auto-generated version id (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+   * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+   * version_id. A default version alias will be created for the first version
+   * of the model, and there must be exactly one default version alias for a
+   * model.
+   * 
+ * + * repeated string version_aliases = 29; + * + * @return The count of versionAliases. + */ + int getVersionAliasesCount(); + /** + * + * + *
+   * User provided version aliases so that a model version can be referenced via
+   * alias (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+   * instead of auto-generated version id (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+   * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+   * version_id. A default version alias will be created for the first version
+   * of the model, and there must be exactly one default version alias for a
+   * model.
+   * 
+ * + * repeated string version_aliases = 29; + * + * @param index The index of the element to return. + * @return The versionAliases at the given index. + */ + java.lang.String getVersionAliases(int index); + /** + * + * + *
+   * User provided version aliases so that a model version can be referenced via
+   * alias (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_alias}
+   * instead of auto-generated version id (i.e.
+   * projects/{project}/locations/{location}/models/{model_id}@{version_id}).
+   * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
+   * version_id. A default version alias will be created for the first version
+   * of the model, and there must be exactly one default version alias for a
+   * model.
+   * 
+ * + * repeated string version_aliases = 29; + * + * @param index The index of the value to return. + * @return The bytes of the versionAliases at the given index. + */ + com.google.protobuf.ByteString getVersionAliasesBytes(int index); + + /** + * + * + *
+   * Output only. Timestamp when this version was created.
+   * 
+ * + * + * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the versionCreateTime field is set. + */ + boolean hasVersionCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this version was created.
+   * 
+ * + * + * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The versionCreateTime. + */ + com.google.protobuf.Timestamp getVersionCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this version was created.
+   * 
+ * + * + * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getVersionCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when this version was most recently updated.
+   * 
+ * + * + * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the versionUpdateTime field is set. + */ + boolean hasVersionUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this version was most recently updated.
+   * 
+ * + * + * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The versionUpdateTime. + */ + com.google.protobuf.Timestamp getVersionUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this version was most recently updated.
+   * 
+ * + * + * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getVersionUpdateTimeOrBuilder(); + /** * * @@ -102,6 +302,31 @@ public interface ModelOrBuilder */ com.google.protobuf.ByteString getDescriptionBytes(); + /** + * + * + *
+   * The description of this version.
+   * 
+ * + * string version_description = 30; + * + * @return The versionDescription. + */ + java.lang.String getVersionDescription(); + /** + * + * + *
+   * The description of this version.
+   * 
+ * + * string version_description = 30; + * + * @return The bytes for versionDescription. + */ + com.google.protobuf.ByteString getVersionDescriptionBytes(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelProto.java index ec28c727188b..6af901ae0f41 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelProto.java @@ -69,62 +69,67 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "cloud/aiplatform/v1/env_var.proto\032,googl" + "e/cloud/aiplatform/v1/explanation.proto\032" + "\034google/protobuf/struct.proto\032\037google/pr" - + "otobuf/timestamp.proto\"\244\014\n\005Model\022\014\n\004name" - + "\030\001 \001(\t\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\023\n\013des" - + "cription\030\003 \001(\t\022E\n\020predict_schemata\030\004 \001(\013" - + "2+.google.cloud.aiplatform.v1.PredictSch" - + "emata\022 \n\023metadata_schema_uri\030\005 \001(\tB\003\340A\005\022" - + "-\n\010metadata\030\006 \001(\0132\026.google.protobuf.Valu" - + "eB\003\340A\005\022U\n\030supported_export_formats\030\024 \003(\013" - + "2..google.cloud.aiplatform.v1.Model.Expo" - + "rtFormatB\003\340A\003\022M\n\021training_pipeline\030\007 \001(\t" - + "B2\340A\003\372A,\n*aiplatform.googleapis.com/Trai" - + "ningPipeline\022K\n\016container_spec\030\t \001(\0132..g" - + "oogle.cloud.aiplatform.v1.ModelContainer" - + "SpecB\003\340A\004\022\031\n\014artifact_uri\030\032 \001(\tB\003\340A\005\022l\n$" - + "supported_deployment_resources_types\030\n \003" - + "(\01629.google.cloud.aiplatform.v1.Model.De" - + "ploymentResourcesTypeB\003\340A\003\022,\n\037supported_" - + "input_storage_formats\030\013 \003(\tB\003\340A\003\022-\n supp" - + "orted_output_storage_formats\030\014 \003(\tB\003\340A\003\022" - + "4\n\013create_time\030\r \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\003\0224\n\013update_time\030\016 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\003\022J\n\017deployed_" - + "models\030\017 \003(\0132,.google.cloud.aiplatform.v" - + "1.DeployedModelRefB\003\340A\003\022E\n\020explanation_s" - + "pec\030\027 \001(\0132+.google.cloud.aiplatform.v1.E" - + "xplanationSpec\022\014\n\004etag\030\020 \001(\t\022=\n\006labels\030\021" - + " \003(\0132-.google.cloud.aiplatform.v1.Model." - + "LabelsEntry\022C\n\017encryption_spec\030\030 \001(\0132*.g" - + "oogle.cloud.aiplatform.v1.EncryptionSpec" - + "\032\325\001\n\014ExportFormat\022\017\n\002id\030\001 \001(\tB\003\340A\003\022b\n\023ex" - + "portable_contents\030\002 \003(\0162@.google.cloud.a" - + "iplatform.v1.Model.ExportFormat.Exportab" - + "leContentB\003\340A\003\"P\n\021ExportableContent\022\"\n\036E" - + "XPORTABLE_CONTENT_UNSPECIFIED\020\000\022\014\n\010ARTIF" - + "ACT\020\001\022\t\n\005IMAGE\020\002\032-\n\013LabelsEntry\022\013\n\003key\030\001" - + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"v\n\027DeploymentRes" - + "ourcesType\022)\n%DEPLOYMENT_RESOURCES_TYPE_" - + "UNSPECIFIED\020\000\022\027\n\023DEDICATED_RESOURCES\020\001\022\027" - + "\n\023AUTOMATIC_RESOURCES\020\002:\\\352AY\n\037aiplatform" - + ".googleapis.com/Model\0226projects/{project" - + "}/locations/{location}/models/{model}\"{\n" - + "\017PredictSchemata\022 \n\023instance_schema_uri\030" - + "\001 \001(\tB\003\340A\005\022\"\n\025parameters_schema_uri\030\002 \001(" - + "\tB\003\340A\005\022\"\n\025prediction_schema_uri\030\003 \001(\tB\003\340" - + "A\005\"\373\001\n\022ModelContainerSpec\022\031\n\timage_uri\030\001" - + " \001(\tB\006\340A\002\340A\005\022\024\n\007command\030\002 \003(\tB\003\340A\005\022\021\n\004ar" - + "gs\030\003 \003(\tB\003\340A\005\0224\n\003env\030\004 \003(\0132\".google.clou" - + "d.aiplatform.v1.EnvVarB\003\340A\005\0224\n\005ports\030\005 \003" - + "(\0132 .google.cloud.aiplatform.v1.PortB\003\340A" - + "\005\022\032\n\rpredict_route\030\006 \001(\tB\003\340A\005\022\031\n\014health_" - + "route\030\007 \001(\tB\003\340A\005\"\036\n\004Port\022\026\n\016container_po" - + "rt\030\003 \001(\005B\316\001\n\036com.google.cloud.aiplatform" - + ".v1B\nModelProtoP\001ZDgoogle.golang.org/gen" - + "proto/googleapis/cloud/aiplatform/v1;aip" - + "latform\252\002\032Google.Cloud.AIPlatform.V1\312\002\032G" - + "oogle\\Cloud\\AIPlatform\\V1\352\002\035Google::Clou" - + "d::AIPlatform::V1b\006proto3" + + "otobuf/timestamp.proto\"\362\r\n\005Model\022\014\n\004name" + + "\030\001 \001(\t\022\032\n\nversion_id\030\034 \001(\tB\006\340A\005\340A\003\022\027\n\017ve" + + "rsion_aliases\030\035 \003(\t\022<\n\023version_create_ti" + + "me\030\037 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\022<\n\023version_update_time\030 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\022\031\n\014display_name\030" + + "\002 \001(\tB\003\340A\002\022\023\n\013description\030\003 \001(\t\022\033\n\023versi" + + "on_description\030\036 \001(\t\022E\n\020predict_schemata" + + "\030\004 \001(\0132+.google.cloud.aiplatform.v1.Pred" + + "ictSchemata\022 \n\023metadata_schema_uri\030\005 \001(\t" + + "B\003\340A\005\022-\n\010metadata\030\006 \001(\0132\026.google.protobu" + + "f.ValueB\003\340A\005\022U\n\030supported_export_formats" + + "\030\024 \003(\0132..google.cloud.aiplatform.v1.Mode" + + "l.ExportFormatB\003\340A\003\022M\n\021training_pipeline" + + "\030\007 \001(\tB2\340A\003\372A,\n*aiplatform.googleapis.co" + + "m/TrainingPipeline\022K\n\016container_spec\030\t \001" + + "(\0132..google.cloud.aiplatform.v1.ModelCon" + + "tainerSpecB\003\340A\004\022\031\n\014artifact_uri\030\032 \001(\tB\003\340" + + "A\005\022l\n$supported_deployment_resources_typ" + + "es\030\n \003(\01629.google.cloud.aiplatform.v1.Mo" + + "del.DeploymentResourcesTypeB\003\340A\003\022,\n\037supp" + + "orted_input_storage_formats\030\013 \003(\tB\003\340A\003\022-" + + "\n supported_output_storage_formats\030\014 \003(\t" + + "B\003\340A\003\0224\n\013create_time\030\r \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\0224\n\013update_time\030\016 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\022J\n\017dep" + + "loyed_models\030\017 \003(\0132,.google.cloud.aiplat" + + "form.v1.DeployedModelRefB\003\340A\003\022E\n\020explana" + + "tion_spec\030\027 \001(\0132+.google.cloud.aiplatfor" + + "m.v1.ExplanationSpec\022\014\n\004etag\030\020 \001(\t\022=\n\006la" + + "bels\030\021 \003(\0132-.google.cloud.aiplatform.v1." + + "Model.LabelsEntry\022C\n\017encryption_spec\030\030 \001" + + "(\0132*.google.cloud.aiplatform.v1.Encrypti" + + "onSpec\032\325\001\n\014ExportFormat\022\017\n\002id\030\001 \001(\tB\003\340A\003" + + "\022b\n\023exportable_contents\030\002 \003(\0162@.google.c" + + "loud.aiplatform.v1.Model.ExportFormat.Ex" + + "portableContentB\003\340A\003\"P\n\021ExportableConten" + + "t\022\"\n\036EXPORTABLE_CONTENT_UNSPECIFIED\020\000\022\014\n" + + "\010ARTIFACT\020\001\022\t\n\005IMAGE\020\002\032-\n\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"v\n\027Deploym" + + "entResourcesType\022)\n%DEPLOYMENT_RESOURCES" + + "_TYPE_UNSPECIFIED\020\000\022\027\n\023DEDICATED_RESOURC" + + "ES\020\001\022\027\n\023AUTOMATIC_RESOURCES\020\002:\\\352AY\n\037aipl" + + "atform.googleapis.com/Model\0226projects/{p" + + "roject}/locations/{location}/models/{mod" + + "el}\"{\n\017PredictSchemata\022 \n\023instance_schem" + + "a_uri\030\001 \001(\tB\003\340A\005\022\"\n\025parameters_schema_ur" + + "i\030\002 \001(\tB\003\340A\005\022\"\n\025prediction_schema_uri\030\003 " + + "\001(\tB\003\340A\005\"\373\001\n\022ModelContainerSpec\022\031\n\timage" + + "_uri\030\001 \001(\tB\006\340A\002\340A\005\022\024\n\007command\030\002 \003(\tB\003\340A\005" + + "\022\021\n\004args\030\003 \003(\tB\003\340A\005\0224\n\003env\030\004 \003(\0132\".googl" + + "e.cloud.aiplatform.v1.EnvVarB\003\340A\005\0224\n\005por" + + "ts\030\005 \003(\0132 .google.cloud.aiplatform.v1.Po" + + "rtB\003\340A\005\022\032\n\rpredict_route\030\006 \001(\tB\003\340A\005\022\031\n\014h" + + "ealth_route\030\007 \001(\tB\003\340A\005\"\036\n\004Port\022\026\n\016contai" + + "ner_port\030\003 \001(\005B\316\001\n\036com.google.cloud.aipl" + + "atform.v1B\nModelProtoP\001ZDgoogle.golang.o" + + "rg/genproto/googleapis/cloud/aiplatform/" + + "v1;aiplatform\252\002\032Google.Cloud.AIPlatform." + + "V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google" + + "::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -146,8 +151,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_aiplatform_v1_Model_descriptor, new java.lang.String[] { "Name", + "VersionId", + "VersionAliases", + "VersionCreateTime", + "VersionUpdateTime", "DisplayName", "Description", + "VersionDescription", "PredictSchemata", "MetadataSchemaUri", "Metadata", diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceProto.java index 24fc44d142b5..57f45e58a09b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceProto.java @@ -51,6 +51,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_ListModelsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_ListModelsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ListModelVersionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ListModelVersionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ListModelVersionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ListModelVersionsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_UpdateModelRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -59,6 +67,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_DeleteModelRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_DeleteModelRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_DeleteModelVersionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_DeleteModelVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_MergeVersionAliasesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_MergeVersionAliasesRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_ExportModelRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -128,137 +144,168 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tion_slice.proto\032*google/cloud/aiplatfor" + "m/v1/operation.proto\032#google/longrunning" + "/operations.proto\032 google/protobuf/field" - + "_mask.proto\"\206\001\n\022UploadModelRequest\0229\n\006pa" + + "_mask.proto\"\270\001\n\022UploadModelRequest\0229\n\006pa" + "rent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis" - + ".com/Location\0225\n\005model\030\002 \001(\0132!.google.cl" - + "oud.aiplatform.v1.ModelB\003\340A\002\"n\n\034UploadMo" - + "delOperationMetadata\022N\n\020generic_metadata" - + "\030\001 \001(\01324.google.cloud.aiplatform.v1.Gene" - + "ricOperationMetadata\"J\n\023UploadModelRespo" - + "nse\0223\n\005model\030\001 \001(\tB$\372A!\n\037aiplatform.goog" - + "leapis.com/Model\"H\n\017GetModelRequest\0225\n\004n" + + ".com/Location\022\031\n\014parent_model\030\004 \001(\tB\003\340A\001" + + "\022\025\n\010model_id\030\005 \001(\tB\003\340A\001\0225\n\005model\030\002 \001(\0132!" + + ".google.cloud.aiplatform.v1.ModelB\003\340A\002\"n" + + "\n\034UploadModelOperationMetadata\022N\n\020generi" + + "c_metadata\030\001 \001(\01324.google.cloud.aiplatfo" + + "rm.v1.GenericOperationMetadata\"i\n\023Upload" + + "ModelResponse\0223\n\005model\030\001 \001(\tB$\372A!\n\037aipla" + + "tform.googleapis.com/Model\022\035\n\020model_vers" + + "ion_id\030\002 \001(\tB\003\340A\003\"H\n\017GetModelRequest\0225\n\004" + + "name\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.googleapi" + + "s.com/Model\"\306\001\n\021ListModelsRequest\0229\n\006par" + + "ent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis." + + "com/Location\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_siz" + + "e\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_mask" + + "\030\005 \001(\0132\032.google.protobuf.FieldMask\022\020\n\010or" + + "der_by\030\006 \001(\t\"`\n\022ListModelsResponse\0221\n\006mo" + + "dels\030\001 \003(\0132!.google.cloud.aiplatform.v1." + + "Model\022\027\n\017next_page_token\030\002 \001(\t\"\267\001\n\030ListM" + + "odelVersionsRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A" + + "!\n\037aiplatform.googleapis.com/Model\022\021\n\tpa" + + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006fil" + + "ter\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032.google.pr" + + "otobuf.FieldMask\"g\n\031ListModelVersionsRes" + + "ponse\0221\n\006models\030\001 \003(\0132!.google.cloud.aip" + + "latform.v1.Model\022\027\n\017next_page_token\030\002 \001(" + + "\t\"\201\001\n\022UpdateModelRequest\0225\n\005model\030\001 \001(\0132" + + "!.google.cloud.aiplatform.v1.ModelB\003\340A\002\022" + + "4\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" + + "ieldMaskB\003\340A\002\"K\n\022DeleteModelRequest\0225\n\004n" + "ame\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.googleapis" - + ".com/Model\"\306\001\n\021ListModelsRequest\0229\n\006pare" - + "nt\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.c" - + "om/Location\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size" - + "\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_mask\030" - + "\005 \001(\0132\032.google.protobuf.FieldMask\022\020\n\010ord" - + "er_by\030\006 \001(\t\"`\n\022ListModelsResponse\0221\n\006mod" - + "els\030\001 \003(\0132!.google.cloud.aiplatform.v1.M" - + "odel\022\027\n\017next_page_token\030\002 \001(\t\"\201\001\n\022Update" - + "ModelRequest\0225\n\005model\030\001 \001(\0132!.google.clo" - + "ud.aiplatform.v1.ModelB\003\340A\002\0224\n\013update_ma" - + "sk\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" - + "\002\"K\n\022DeleteModelRequest\0225\n\004name\030\001 \001(\tB\'\340" - + "A\002\372A!\n\037aiplatform.googleapis.com/Model\"\356" - + "\002\n\022ExportModelRequest\0225\n\004name\030\001 \001(\tB\'\340A\002" - + "\372A!\n\037aiplatform.googleapis.com/Model\022W\n\r" - + "output_config\030\002 \001(\0132;.google.cloud.aipla" - + "tform.v1.ExportModelRequest.OutputConfig" - + "B\003\340A\002\032\307\001\n\014OutputConfig\022\030\n\020export_format_" - + "id\030\001 \001(\t\022H\n\024artifact_destination\030\003 \001(\0132*" - + ".google.cloud.aiplatform.v1.GcsDestinati" - + "on\022S\n\021image_destination\030\004 \001(\01328.google.c" - + "loud.aiplatform.v1.ContainerRegistryDest" - + "ination\"\234\002\n\034ExportModelOperationMetadata" - + "\022N\n\020generic_metadata\030\001 \001(\01324.google.clou" - + "d.aiplatform.v1.GenericOperationMetadata" - + "\022]\n\013output_info\030\002 \001(\0132C.google.cloud.aip" - + "latform.v1.ExportModelOperationMetadata." - + "OutputInfoB\003\340A\003\032M\n\nOutputInfo\022 \n\023artifac" - + "t_output_uri\030\002 \001(\tB\003\340A\003\022\035\n\020image_output_" - + "uri\030\003 \001(\tB\003\340A\003\"\025\n\023ExportModelResponse\"\243\001" - + "\n\034ImportModelEvaluationRequest\0227\n\006parent" + + ".com/Model\"R\n\031DeleteModelVersionRequest\022" + + "5\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.google" + + "apis.com/Model\"q\n\032MergeVersionAliasesReq" + + "uest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.g" + + "oogleapis.com/Model\022\034\n\017version_aliases\030\002" + + " \003(\tB\003\340A\002\"\356\002\n\022ExportModelRequest\0225\n\004name" + "\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.googleapis.co" - + "m/Model\022J\n\020model_evaluation\030\002 \001(\0132+.goog" - + "le.cloud.aiplatform.v1.ModelEvaluationB\003" - + "\340A\002\"\\\n\031GetModelEvaluationRequest\022?\n\004name" - + "\030\001 \001(\tB1\340A\002\372A+\n)aiplatform.googleapis.co" - + "m/ModelEvaluation\"\274\001\n\033ListModelEvaluatio" - + "nsRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037aipla" - + "tform.googleapis.com/Model\022\016\n\006filter\030\002 \001" - + "(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(" - + "\t\022-\n\tread_mask\030\005 \001(\0132\032.google.protobuf.F" - + "ieldMask\"\177\n\034ListModelEvaluationsResponse" - + "\022F\n\021model_evaluations\030\001 \003(\0132+.google.clo" - + "ud.aiplatform.v1.ModelEvaluation\022\027\n\017next" - + "_page_token\030\002 \001(\t\"f\n\036GetModelEvaluationS" - + "liceRequest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.aipla" - + "tform.googleapis.com/ModelEvaluationSlic" - + "e\"\313\001\n ListModelEvaluationSlicesRequest\022A" - + "\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)aiplatform.googl" - + "eapis.com/ModelEvaluation\022\016\n\006filter\030\002 \001(" - + "\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t" - + "\022-\n\tread_mask\030\005 \001(\0132\032.google.protobuf.Fi" - + "eldMask\"\217\001\n!ListModelEvaluationSlicesRes" - + "ponse\022Q\n\027model_evaluation_slices\030\001 \003(\01320" + + "m/Model\022W\n\routput_config\030\002 \001(\0132;.google." + + "cloud.aiplatform.v1.ExportModelRequest.O" + + "utputConfigB\003\340A\002\032\307\001\n\014OutputConfig\022\030\n\020exp" + + "ort_format_id\030\001 \001(\t\022H\n\024artifact_destinat" + + "ion\030\003 \001(\0132*.google.cloud.aiplatform.v1.G" + + "csDestination\022S\n\021image_destination\030\004 \001(\013" + + "28.google.cloud.aiplatform.v1.ContainerR" + + "egistryDestination\"\234\002\n\034ExportModelOperat" + + "ionMetadata\022N\n\020generic_metadata\030\001 \001(\01324." + + "google.cloud.aiplatform.v1.GenericOperat" + + "ionMetadata\022]\n\013output_info\030\002 \001(\0132C.googl" + + "e.cloud.aiplatform.v1.ExportModelOperati" + + "onMetadata.OutputInfoB\003\340A\003\032M\n\nOutputInfo" + + "\022 \n\023artifact_output_uri\030\002 \001(\tB\003\340A\003\022\035\n\020im" + + "age_output_uri\030\003 \001(\tB\003\340A\003\"\025\n\023ExportModel" + + "Response\"\243\001\n\034ImportModelEvaluationReques" + + "t\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.go" + + "ogleapis.com/Model\022J\n\020model_evaluation\030\002" + + " \001(\0132+.google.cloud.aiplatform.v1.ModelE" + + "valuationB\003\340A\002\"\\\n\031GetModelEvaluationRequ" + + "est\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)aiplatform.go" + + "ogleapis.com/ModelEvaluation\"\274\001\n\033ListMod" + + "elEvaluationsRequest\0227\n\006parent\030\001 \001(\tB\'\340A" + + "\002\372A!\n\037aiplatform.googleapis.com/Model\022\016\n" + + "\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage" + + "_token\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032.google" + + ".protobuf.FieldMask\"\177\n\034ListModelEvaluati" + + "onsResponse\022F\n\021model_evaluations\030\001 \003(\0132+" + ".google.cloud.aiplatform.v1.ModelEvaluat" - + "ionSlice\022\027\n\017next_page_token\030\002 \001(\t2\276\022\n\014Mo" - + "delService\022\340\001\n\013UploadModel\022..google.clou" - + "d.aiplatform.v1.UploadModelRequest\032\035.goo" - + "gle.longrunning.Operation\"\201\001\202\323\344\223\0026\"1/v1/" - + "{parent=projects/*/locations/*}/models:u" - + "pload:\001*\332A\014parent,model\312A3\n\023UploadModelR" - + "esponse\022\034UploadModelOperationMetadata\022\225\001" - + "\n\010GetModel\022+.google.cloud.aiplatform.v1." - + "GetModelRequest\032!.google.cloud.aiplatfor" - + "m.v1.Model\"9\202\323\344\223\002,\022*/v1/{name=projects/*" - + "/locations/*/models/*}\332A\004name\022\250\001\n\nListMo" - + "dels\022-.google.cloud.aiplatform.v1.ListMo" - + "delsRequest\032..google.cloud.aiplatform.v1" - + ".ListModelsResponse\";\202\323\344\223\002,\022*/v1/{parent" - + "=projects/*/locations/*}/models\332A\006parent" - + "\022\265\001\n\013UpdateModel\022..google.cloud.aiplatfo" - + "rm.v1.UpdateModelRequest\032!.google.cloud." - + "aiplatform.v1.Model\"S\202\323\344\223\002920/v1/{model." - + "name=projects/*/locations/*/models/*}:\005m" - + "odel\332A\021model,update_mask\022\312\001\n\013DeleteModel" - + "\022..google.cloud.aiplatform.v1.DeleteMode" - + "lRequest\032\035.google.longrunning.Operation\"" - + "l\202\323\344\223\002,**/v1/{name=projects/*/locations/" - + "*/models/*}\332A\004name\312A0\n\025google.protobuf.E" - + "mpty\022\027DeleteOperationMetadata\022\346\001\n\013Export" - + "Model\022..google.cloud.aiplatform.v1.Expor" - + "tModelRequest\032\035.google.longrunning.Opera" - + "tion\"\207\001\202\323\344\223\0026\"1/v1/{name=projects/*/loca" - + "tions/*/models/*}:export:\001*\332A\022name,outpu" - + "t_config\312A3\n\023ExportModelResponse\022\034Export" - + "ModelOperationMetadata\022\344\001\n\025ImportModelEv" - + "aluation\0228.google.cloud.aiplatform.v1.Im" - + "portModelEvaluationRequest\032+.google.clou" - + "d.aiplatform.v1.ModelEvaluation\"d\202\323\344\223\002D\"" - + "?/v1/{parent=projects/*/locations/*/mode" - + "ls/*}/evaluations:import:\001*\332A\027parent,mod" - + "el_evaluation\022\301\001\n\022GetModelEvaluation\0225.g" - + "oogle.cloud.aiplatform.v1.GetModelEvalua" - + "tionRequest\032+.google.cloud.aiplatform.v1" - + ".ModelEvaluation\"G\202\323\344\223\002:\0228/v1/{name=proj" - + "ects/*/locations/*/models/*/evaluations/" - + "*}\332A\004name\022\324\001\n\024ListModelEvaluations\0227.goo" - + "gle.cloud.aiplatform.v1.ListModelEvaluat" - + "ionsRequest\0328.google.cloud.aiplatform.v1" - + ".ListModelEvaluationsResponse\"I\202\323\344\223\002:\0228/" - + "v1/{parent=projects/*/locations/*/models" - + "/*}/evaluations\332A\006parent\022\331\001\n\027GetModelEva" - + "luationSlice\022:.google.cloud.aiplatform.v" - + "1.GetModelEvaluationSliceRequest\0320.googl" - + "e.cloud.aiplatform.v1.ModelEvaluationSli" - + "ce\"P\202\323\344\223\002C\022A/v1/{name=projects/*/locatio" - + "ns/*/models/*/evaluations/*/slices/*}\332A\004" - + "name\022\354\001\n\031ListModelEvaluationSlices\022<.goo" - + "gle.cloud.aiplatform.v1.ListModelEvaluat" - + "ionSlicesRequest\032=.google.cloud.aiplatfo" - + "rm.v1.ListModelEvaluationSlicesResponse\"" - + "R\202\323\344\223\002C\022A/v1/{parent=projects/*/location" - + "s/*/models/*/evaluations/*}/slices\332A\006par" - + "ent\032M\312A\031aiplatform.googleapis.com\322A.http" - + "s://www.googleapis.com/auth/cloud-platfo" - + "rmB\325\001\n\036com.google.cloud.aiplatform.v1B\021M" - + "odelServiceProtoP\001ZDgoogle.golang.org/ge" - + "nproto/googleapis/cloud/aiplatform/v1;ai" - + "platform\252\002\032Google.Cloud.AIPlatform.V1\312\002\032" - + "Google\\Cloud\\AIPlatform\\V1\352\002\035Google::Clo" - + "ud::AIPlatform::V1b\006proto3" + + "ion\022\027\n\017next_page_token\030\002 \001(\t\"f\n\036GetModel" + + "EvaluationSliceRequest\022D\n\004name\030\001 \001(\tB6\340A" + + "\002\372A0\n.aiplatform.googleapis.com/ModelEva" + + "luationSlice\"\313\001\n ListModelEvaluationSlic" + + "esRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)aipla" + + "tform.googleapis.com/ModelEvaluation\022\016\n\006" + + "filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_" + + "token\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032.google." + + "protobuf.FieldMask\"\217\001\n!ListModelEvaluati" + + "onSlicesResponse\022Q\n\027model_evaluation_sli" + + "ces\030\001 \003(\01320.google.cloud.aiplatform.v1.M" + + "odelEvaluationSlice\022\027\n\017next_page_token\030\002" + + " \001(\t2\307\027\n\014ModelService\022\340\001\n\013UploadModel\022.." + + "google.cloud.aiplatform.v1.UploadModelRe" + + "quest\032\035.google.longrunning.Operation\"\201\001\202" + + "\323\344\223\0026\"1/v1/{parent=projects/*/locations/" + + "*}/models:upload:\001*\332A\014parent,model\312A3\n\023U" + + "ploadModelResponse\022\034UploadModelOperation" + + "Metadata\022\225\001\n\010GetModel\022+.google.cloud.aip" + + "latform.v1.GetModelRequest\032!.google.clou" + + "d.aiplatform.v1.Model\"9\202\323\344\223\002,\022*/v1/{name" + + "=projects/*/locations/*/models/*}\332A\004name" + + "\022\250\001\n\nListModels\022-.google.cloud.aiplatfor" + + "m.v1.ListModelsRequest\032..google.cloud.ai" + + "platform.v1.ListModelsResponse\";\202\323\344\223\002,\022*" + + "/v1/{parent=projects/*/locations/*}/mode" + + "ls\332A\006parent\022\310\001\n\021ListModelVersions\0224.goog" + + "le.cloud.aiplatform.v1.ListModelVersions" + + "Request\0325.google.cloud.aiplatform.v1.Lis" + + "tModelVersionsResponse\"F\202\323\344\223\0029\0227/v1/{nam" + + "e=projects/*/locations/*/models/*}:listV" + + "ersions\332A\004name\022\265\001\n\013UpdateModel\022..google." + + "cloud.aiplatform.v1.UpdateModelRequest\032!" + + ".google.cloud.aiplatform.v1.Model\"S\202\323\344\223\002" + + "920/v1/{model.name=projects/*/locations/" + + "*/models/*}:\005model\332A\021model,update_mask\022\312" + + "\001\n\013DeleteModel\022..google.cloud.aiplatform" + + ".v1.DeleteModelRequest\032\035.google.longrunn" + + "ing.Operation\"l\202\323\344\223\002,**/v1/{name=project" + + "s/*/locations/*/models/*}\332A\004name\312A0\n\025goo" + + "gle.protobuf.Empty\022\027DeleteOperationMetad" + + "ata\022\346\001\n\022DeleteModelVersion\0225.google.clou" + + "d.aiplatform.v1.DeleteModelVersionReques" + + "t\032\035.google.longrunning.Operation\"z\202\323\344\223\002:" + + "*8/v1/{name=projects/*/locations/*/model" + + "s/*}:deleteVersion\332A\004name\312A0\n\025google.pro" + + "tobuf.Empty\022\027DeleteOperationMetadata\022\322\001\n" + + "\023MergeVersionAliases\0226.google.cloud.aipl" + + "atform.v1.MergeVersionAliasesRequest\032!.g" + + "oogle.cloud.aiplatform.v1.Model\"`\202\323\344\223\002C\"" + + ">/v1/{name=projects/*/locations/*/models" + + "/*}:mergeVersionAliases:\001*\332A\024name,versio" + + "n_aliases\022\346\001\n\013ExportModel\022..google.cloud" + + ".aiplatform.v1.ExportModelRequest\032\035.goog" + + "le.longrunning.Operation\"\207\001\202\323\344\223\0026\"1/v1/{" + + "name=projects/*/locations/*/models/*}:ex" + + "port:\001*\332A\022name,output_config\312A3\n\023ExportM" + + "odelResponse\022\034ExportModelOperationMetada" + + "ta\022\344\001\n\025ImportModelEvaluation\0228.google.cl" + + "oud.aiplatform.v1.ImportModelEvaluationR" + + "equest\032+.google.cloud.aiplatform.v1.Mode" + + "lEvaluation\"d\202\323\344\223\002D\"?/v1/{parent=project" + + "s/*/locations/*/models/*}/evaluations:im" + + "port:\001*\332A\027parent,model_evaluation\022\301\001\n\022Ge" + + "tModelEvaluation\0225.google.cloud.aiplatfo" + + "rm.v1.GetModelEvaluationRequest\032+.google" + + ".cloud.aiplatform.v1.ModelEvaluation\"G\202\323" + + "\344\223\002:\0228/v1/{name=projects/*/locations/*/m" + + "odels/*/evaluations/*}\332A\004name\022\324\001\n\024ListMo" + + "delEvaluations\0227.google.cloud.aiplatform" + + ".v1.ListModelEvaluationsRequest\0328.google" + + ".cloud.aiplatform.v1.ListModelEvaluation" + + "sResponse\"I\202\323\344\223\002:\0228/v1/{parent=projects/" + + "*/locations/*/models/*}/evaluations\332A\006pa" + + "rent\022\331\001\n\027GetModelEvaluationSlice\022:.googl" + + "e.cloud.aiplatform.v1.GetModelEvaluation" + + "SliceRequest\0320.google.cloud.aiplatform.v" + + "1.ModelEvaluationSlice\"P\202\323\344\223\002C\022A/v1/{nam" + + "e=projects/*/locations/*/models/*/evalua" + + "tions/*/slices/*}\332A\004name\022\354\001\n\031ListModelEv" + + "aluationSlices\022<.google.cloud.aiplatform" + + ".v1.ListModelEvaluationSlicesRequest\032=.g" + + "oogle.cloud.aiplatform.v1.ListModelEvalu" + + "ationSlicesResponse\"R\202\323\344\223\002C\022A/v1/{parent" + + "=projects/*/locations/*/models/*/evaluat" + + "ions/*}/slices\332A\006parent\032M\312A\031aiplatform.g" + + "oogleapis.com\322A.https://www.googleapis.c" + + "om/auth/cloud-platformB\325\001\n\036com.google.cl" + + "oud.aiplatform.v1B\021ModelServiceProtoP\001ZD" + + "google.golang.org/genproto/googleapis/cl" + + "oud/aiplatform/v1;aiplatform\252\002\032Google.Cl" + + "oud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatf" + + "orm\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006" + + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -282,7 +329,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_UploadModelRequest_descriptor, new java.lang.String[] { - "Parent", "Model", + "Parent", "ParentModel", "ModelId", "Model", }); internal_static_google_cloud_aiplatform_v1_UploadModelOperationMetadata_descriptor = getDescriptor().getMessageTypes().get(1); @@ -298,7 +345,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_UploadModelResponse_descriptor, new java.lang.String[] { - "Model", + "Model", "ModelVersionId", }); internal_static_google_cloud_aiplatform_v1_GetModelRequest_descriptor = getDescriptor().getMessageTypes().get(3); @@ -324,8 +371,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Models", "NextPageToken", }); - internal_static_google_cloud_aiplatform_v1_UpdateModelRequest_descriptor = + internal_static_google_cloud_aiplatform_v1_ListModelVersionsRequest_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_aiplatform_v1_ListModelVersionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ListModelVersionsRequest_descriptor, + new java.lang.String[] { + "Name", "PageSize", "PageToken", "Filter", "ReadMask", + }); + internal_static_google_cloud_aiplatform_v1_ListModelVersionsResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_aiplatform_v1_ListModelVersionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ListModelVersionsResponse_descriptor, + new java.lang.String[] { + "Models", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1_UpdateModelRequest_descriptor = + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_aiplatform_v1_UpdateModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_UpdateModelRequest_descriptor, @@ -333,15 +396,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Model", "UpdateMask", }); internal_static_google_cloud_aiplatform_v1_DeleteModelRequest_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_aiplatform_v1_DeleteModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_DeleteModelRequest_descriptor, new java.lang.String[] { "Name", }); + internal_static_google_cloud_aiplatform_v1_DeleteModelVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_aiplatform_v1_DeleteModelVersionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_DeleteModelVersionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1_MergeVersionAliasesRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_aiplatform_v1_MergeVersionAliasesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_MergeVersionAliasesRequest_descriptor, + new java.lang.String[] { + "Name", "VersionAliases", + }); internal_static_google_cloud_aiplatform_v1_ExportModelRequest_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_aiplatform_v1_ExportModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ExportModelRequest_descriptor, @@ -359,7 +438,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExportFormatId", "ArtifactDestination", "ImageDestination", }); internal_static_google_cloud_aiplatform_v1_ExportModelOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_aiplatform_v1_ExportModelOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ExportModelOperationMetadata_descriptor, @@ -377,13 +456,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ArtifactOutputUri", "ImageOutputUri", }); internal_static_google_cloud_aiplatform_v1_ExportModelResponse_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_aiplatform_v1_ExportModelResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ExportModelResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_aiplatform_v1_ImportModelEvaluationRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_aiplatform_v1_ImportModelEvaluationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ImportModelEvaluationRequest_descriptor, @@ -391,7 +470,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ModelEvaluation", }); internal_static_google_cloud_aiplatform_v1_GetModelEvaluationRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_aiplatform_v1_GetModelEvaluationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_GetModelEvaluationRequest_descriptor, @@ -399,7 +478,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1_ListModelEvaluationsRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_aiplatform_v1_ListModelEvaluationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListModelEvaluationsRequest_descriptor, @@ -407,7 +486,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "ReadMask", }); internal_static_google_cloud_aiplatform_v1_ListModelEvaluationsResponse_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_aiplatform_v1_ListModelEvaluationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListModelEvaluationsResponse_descriptor, @@ -415,7 +494,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ModelEvaluations", "NextPageToken", }); internal_static_google_cloud_aiplatform_v1_GetModelEvaluationSliceRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_aiplatform_v1_GetModelEvaluationSliceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_GetModelEvaluationSliceRequest_descriptor, @@ -423,7 +502,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1_ListModelEvaluationSlicesRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_aiplatform_v1_ListModelEvaluationSlicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListModelEvaluationSlicesRequest_descriptor, @@ -431,7 +510,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "ReadMask", }); internal_static_google_cloud_aiplatform_v1_ListModelEvaluationSlicesResponse_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_aiplatform_v1_ListModelEvaluationSlicesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListModelEvaluationSlicesResponse_descriptor, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Neighbor.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Neighbor.java new file mode 100644 index 000000000000..3ed41f6f9d77 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Neighbor.java @@ -0,0 +1,729 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/explanation.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Neighbors for example-based explanations.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.Neighbor} + */ +public final class Neighbor extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.Neighbor) + NeighborOrBuilder { + private static final long serialVersionUID = 0L; + // Use Neighbor.newBuilder() to construct. + private Neighbor(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Neighbor() { + neighborId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Neighbor(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Neighbor( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + neighborId_ = s; + break; + } + case 17: + { + neighborDistance_ = input.readDouble(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1_Neighbor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1_Neighbor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.Neighbor.class, + com.google.cloud.aiplatform.v1.Neighbor.Builder.class); + } + + public static final int NEIGHBOR_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object neighborId_; + /** + * + * + *
+   * Output only. The neighbor id.
+   * 
+ * + * string neighbor_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The neighborId. + */ + @java.lang.Override + public java.lang.String getNeighborId() { + java.lang.Object ref = neighborId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + neighborId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The neighbor id.
+   * 
+ * + * string neighbor_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for neighborId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNeighborIdBytes() { + java.lang.Object ref = neighborId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + neighborId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEIGHBOR_DISTANCE_FIELD_NUMBER = 2; + private double neighborDistance_; + /** + * + * + *
+   * Output only. The neighbor distance.
+   * 
+ * + * double neighbor_distance = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The neighborDistance. + */ + @java.lang.Override + public double getNeighborDistance() { + return neighborDistance_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(neighborId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, neighborId_); + } + if (java.lang.Double.doubleToRawLongBits(neighborDistance_) != 0) { + output.writeDouble(2, neighborDistance_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(neighborId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, neighborId_); + } + if (java.lang.Double.doubleToRawLongBits(neighborDistance_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, neighborDistance_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.Neighbor)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.Neighbor other = (com.google.cloud.aiplatform.v1.Neighbor) obj; + + if (!getNeighborId().equals(other.getNeighborId())) return false; + if (java.lang.Double.doubleToLongBits(getNeighborDistance()) + != java.lang.Double.doubleToLongBits(other.getNeighborDistance())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NEIGHBOR_ID_FIELD_NUMBER; + hash = (53 * hash) + getNeighborId().hashCode(); + hash = (37 * hash) + NEIGHBOR_DISTANCE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getNeighborDistance())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.Neighbor parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Neighbor parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Neighbor parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Neighbor parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Neighbor parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Neighbor parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Neighbor parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Neighbor parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Neighbor parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Neighbor parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.Neighbor parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Neighbor parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1.Neighbor prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Neighbors for example-based explanations.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.Neighbor} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.Neighbor) + com.google.cloud.aiplatform.v1.NeighborOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1_Neighbor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1_Neighbor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.Neighbor.class, + com.google.cloud.aiplatform.v1.Neighbor.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.Neighbor.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + neighborId_ = ""; + + neighborDistance_ = 0D; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1_Neighbor_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Neighbor getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.Neighbor.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Neighbor build() { + com.google.cloud.aiplatform.v1.Neighbor result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Neighbor buildPartial() { + com.google.cloud.aiplatform.v1.Neighbor result = + new com.google.cloud.aiplatform.v1.Neighbor(this); + result.neighborId_ = neighborId_; + result.neighborDistance_ = neighborDistance_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.Neighbor) { + return mergeFrom((com.google.cloud.aiplatform.v1.Neighbor) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.Neighbor other) { + if (other == com.google.cloud.aiplatform.v1.Neighbor.getDefaultInstance()) return this; + if (!other.getNeighborId().isEmpty()) { + neighborId_ = other.neighborId_; + onChanged(); + } + if (other.getNeighborDistance() != 0D) { + setNeighborDistance(other.getNeighborDistance()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1.Neighbor parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1.Neighbor) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object neighborId_ = ""; + /** + * + * + *
+     * Output only. The neighbor id.
+     * 
+ * + * string neighbor_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The neighborId. + */ + public java.lang.String getNeighborId() { + java.lang.Object ref = neighborId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + neighborId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The neighbor id.
+     * 
+ * + * string neighbor_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for neighborId. + */ + public com.google.protobuf.ByteString getNeighborIdBytes() { + java.lang.Object ref = neighborId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + neighborId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The neighbor id.
+     * 
+ * + * string neighbor_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The neighborId to set. + * @return This builder for chaining. + */ + public Builder setNeighborId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + neighborId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The neighbor id.
+     * 
+ * + * string neighbor_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearNeighborId() { + + neighborId_ = getDefaultInstance().getNeighborId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The neighbor id.
+     * 
+ * + * string neighbor_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for neighborId to set. + * @return This builder for chaining. + */ + public Builder setNeighborIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + neighborId_ = value; + onChanged(); + return this; + } + + private double neighborDistance_; + /** + * + * + *
+     * Output only. The neighbor distance.
+     * 
+ * + * double neighbor_distance = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The neighborDistance. + */ + @java.lang.Override + public double getNeighborDistance() { + return neighborDistance_; + } + /** + * + * + *
+     * Output only. The neighbor distance.
+     * 
+ * + * double neighbor_distance = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The neighborDistance to set. + * @return This builder for chaining. + */ + public Builder setNeighborDistance(double value) { + + neighborDistance_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The neighbor distance.
+     * 
+ * + * double neighbor_distance = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearNeighborDistance() { + + neighborDistance_ = 0D; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.Neighbor) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.Neighbor) + private static final com.google.cloud.aiplatform.v1.Neighbor DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.Neighbor(); + } + + public static com.google.cloud.aiplatform.v1.Neighbor getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Neighbor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Neighbor(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Neighbor getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NeighborOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NeighborOrBuilder.java new file mode 100644 index 000000000000..3087bd6235b0 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NeighborOrBuilder.java @@ -0,0 +1,63 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/explanation.proto + +package com.google.cloud.aiplatform.v1; + +public interface NeighborOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.Neighbor) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The neighbor id.
+   * 
+ * + * string neighbor_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The neighborId. + */ + java.lang.String getNeighborId(); + /** + * + * + *
+   * Output only. The neighbor id.
+   * 
+ * + * string neighbor_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for neighborId. + */ + com.google.protobuf.ByteString getNeighborIdBytes(); + + /** + * + * + *
+   * Output only. The neighbor distance.
+   * 
+ * + * double neighbor_distance = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The neighborDistance. + */ + double getNeighborDistance(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Pipeline.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Pipeline.java index 7936d22a8667..db2b7f2a3eea 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Pipeline.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Pipeline.java @@ -47,6 +47,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_PipelineJob_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_PipelineJob_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_PipelineTemplateMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_PipelineTemplateMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_PipelineJobDetail_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -99,108 +103,115 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/v1/artifact.proto\032(google/cloud/aiplatf" + "orm/v1/context.proto\0320google/cloud/aipla" + "tform/v1/encryption_spec.proto\032*google/c" - + "loud/aiplatform/v1/execution.proto\032/goog" - + "le/cloud/aiplatform/v1/pipeline_state.pr" - + "oto\032&google/cloud/aiplatform/v1/value.pr" - + "oto\032\034google/protobuf/struct.proto\032\037googl" - + "e/protobuf/timestamp.proto\032\027google/rpc/s" - + "tatus.proto\"\321\n\n\013PipelineJob\022\021\n\004name\030\001 \001(" - + "\tB\003\340A\003\022\024\n\014display_name\030\002 \001(\t\0224\n\013create_t" - + "ime\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\0223\n\nstart_time\030\004 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\0221\n\010end_time\030\005 \001(\0132\032.goog" - + "le.protobuf.TimestampB\003\340A\003\0224\n\013update_tim" - + "e\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" - + "\022.\n\rpipeline_spec\030\007 \001(\0132\027.google.protobu" - + "f.Struct\022=\n\005state\030\010 \001(\0162).google.cloud.a" - + "iplatform.v1.PipelineStateB\003\340A\003\022F\n\njob_d" - + "etail\030\t \001(\0132-.google.cloud.aiplatform.v1" - + ".PipelineJobDetailB\003\340A\003\022&\n\005error\030\n \001(\0132\022" - + ".google.rpc.StatusB\003\340A\003\022C\n\006labels\030\013 \003(\0132" - + "3.google.cloud.aiplatform.v1.PipelineJob" - + ".LabelsEntry\022M\n\016runtime_config\030\014 \001(\01325.g" - + "oogle.cloud.aiplatform.v1.PipelineJob.Ru" - + "ntimeConfig\022C\n\017encryption_spec\030\020 \001(\0132*.g" - + "oogle.cloud.aiplatform.v1.EncryptionSpec" - + "\022\027\n\017service_account\030\021 \001(\t\0224\n\007network\030\022 \001" - + "(\tB#\372A \n\036compute.googleapis.com/Network\032" - + "\235\003\n\rRuntimeConfig\022]\n\nparameters\030\001 \003(\0132E." - + "google.cloud.aiplatform.v1.PipelineJob.R" - + "untimeConfig.ParametersEntryB\002\030\001\022!\n\024gcs_" - + "output_directory\030\002 \001(\tB\003\340A\002\022d\n\020parameter" - + "_values\030\003 \003(\0132J.google.cloud.aiplatform." - + "v1.PipelineJob.RuntimeConfig.ParameterVa" - + "luesEntry\032T\n\017ParametersEntry\022\013\n\003key\030\001 \001(" - + "\t\0220\n\005value\030\002 \001(\0132!.google.cloud.aiplatfo" - + "rm.v1.Value:\0028\001\032N\n\024ParameterValuesEntry\022" - + "\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.pro" - + "tobuf.Value:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:o\352Al\n%aiplatform." - + "googleapis.com/PipelineJob\022Cprojects/{pr" - + "oject}/locations/{location}/pipelineJobs" - + "/{pipeline_job}\"\352\001\n\021PipelineJobDetail\022B\n" - + "\020pipeline_context\030\001 \001(\0132#.google.cloud.a" - + "iplatform.v1.ContextB\003\340A\003\022F\n\024pipeline_ru" - + "n_context\030\002 \001(\0132#.google.cloud.aiplatfor" - + "m.v1.ContextB\003\340A\003\022I\n\014task_details\030\003 \003(\0132" - + "..google.cloud.aiplatform.v1.PipelineTas" - + "kDetailB\003\340A\003\"\235\013\n\022PipelineTaskDetail\022\024\n\007t" - + "ask_id\030\001 \001(\003B\003\340A\003\022\033\n\016parent_task_id\030\014 \001(" - + "\003B\003\340A\003\022\026\n\ttask_name\030\002 \001(\tB\003\340A\003\0224\n\013create" - + "_time\030\003 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\0223\n\nstart_time\030\004 \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\003\0221\n\010end_time\030\005 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\022T\n\017executor" - + "_detail\030\006 \001(\01326.google.cloud.aiplatform." - + "v1.PipelineTaskExecutorDetailB\003\340A\003\022H\n\005st" - + "ate\030\007 \001(\01624.google.cloud.aiplatform.v1.P" - + "ipelineTaskDetail.StateB\003\340A\003\022=\n\texecutio" - + "n\030\010 \001(\0132%.google.cloud.aiplatform.v1.Exe" - + "cutionB\003\340A\003\022&\n\005error\030\t \001(\0132\022.google.rpc." - + "StatusB\003\340A\003\022d\n\024pipeline_task_status\030\r \003(" - + "\0132A.google.cloud.aiplatform.v1.PipelineT" - + "askDetail.PipelineTaskStatusB\003\340A\003\022O\n\006inp" - + "uts\030\n \003(\0132:.google.cloud.aiplatform.v1.P" - + "ipelineTaskDetail.InputsEntryB\003\340A\003\022Q\n\007ou" - + "tputs\030\013 \003(\0132;.google.cloud.aiplatform.v1" - + ".PipelineTaskDetail.OutputsEntryB\003\340A\003\032\274\001" - + "\n\022PipelineTaskStatus\0224\n\013update_time\030\001 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\022H\n\005st" - + "ate\030\002 \001(\01624.google.cloud.aiplatform.v1.P" - + "ipelineTaskDetail.StateB\003\340A\003\022&\n\005error\030\003 " - + "\001(\0132\022.google.rpc.StatusB\003\340A\003\032L\n\014Artifact" - + "List\022<\n\tartifacts\030\001 \003(\0132$.google.cloud.a" - + "iplatform.v1.ArtifactB\003\340A\003\032j\n\013InputsEntr" - + "y\022\013\n\003key\030\001 \001(\t\022J\n\005value\030\002 \001(\0132;.google.c" - + "loud.aiplatform.v1.PipelineTaskDetail.Ar" - + "tifactList:\0028\001\032k\n\014OutputsEntry\022\013\n\003key\030\001 " - + "\001(\t\022J\n\005value\030\002 \001(\0132;.google.cloud.aiplat" - + "form.v1.PipelineTaskDetail.ArtifactList:" - + "\0028\001\"\246\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007" - + "PENDING\020\001\022\013\n\007RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\022\n" - + "\016CANCEL_PENDING\020\004\022\016\n\nCANCELLING\020\005\022\r\n\tCAN" - + "CELLED\020\006\022\n\n\006FAILED\020\007\022\013\n\007SKIPPED\020\010\022\021\n\rNOT" - + "_TRIGGERED\020\t\"\354\003\n\032PipelineTaskExecutorDet" - + "ail\022g\n\020container_detail\030\001 \001(\0132F.google.c" - + "loud.aiplatform.v1.PipelineTaskExecutorD" - + "etail.ContainerDetailB\003\340A\003H\000\022j\n\021custom_j" - + "ob_detail\030\002 \001(\0132F.google.cloud.aiplatfor" - + "m.v1.PipelineTaskExecutorDetail.CustomJo" - + "bDetailB\005\030\001\340A\003H\000\032\234\001\n\017ContainerDetail\022=\n\010" - + "main_job\030\001 \001(\tB+\340A\003\372A%\n#aiplatform.googl" - + "eapis.com/CustomJob\022J\n\025pre_caching_check" - + "_job\030\002 \001(\tB+\340A\003\372A%\n#aiplatform.googleapi" - + "s.com/CustomJob\032O\n\017CustomJobDetail\0228\n\003jo" - + "b\030\001 \001(\tB+\340A\003\372A%\n#aiplatform.googleapis.c" - + "om/CustomJob:\002\030\001B\t\n\007detailsB\235\002\n\036com.goog" - + "le.cloud.aiplatform.v1B\010PipelineP\001ZDgoog" - + "le.golang.org/genproto/googleapis/cloud/" - + "aiplatform/v1;aiplatform\252\002\032Google.Cloud." - + "AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatform\\" - + "V1\352\002\035Google::Cloud::AIPlatform::V1\352AN\n\036c" - + "ompute.googleapis.com/Network\022,projects/" - + "{project}/global/networks/{network}b\006pro" - + "to3" + + "loud/aiplatform/v1/execution.proto\0328goog" + + "le/cloud/aiplatform/v1/pipeline_failure_" + + "policy.proto\032/google/cloud/aiplatform/v1" + + "/pipeline_state.proto\032&google/cloud/aipl" + + "atform/v1/value.proto\032\034google/protobuf/s" + + "truct.proto\032\037google/protobuf/timestamp.p" + + "roto\032\027google/rpc/status.proto\"\210\014\n\013Pipeli" + + "neJob\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014display_name" + + "\030\002 \001(\t\0224\n\013create_time\030\003 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\0223\n\nstart_time\030\004 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\0221\n\010end" + + "_time\030\005 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\022.\n\rpipeline_spec\030\007 \001(" + + "\0132\027.google.protobuf.Struct\022=\n\005state\030\010 \001(" + + "\0162).google.cloud.aiplatform.v1.PipelineS" + + "tateB\003\340A\003\022F\n\njob_detail\030\t \001(\0132-.google.c" + + "loud.aiplatform.v1.PipelineJobDetailB\003\340A" + + "\003\022&\n\005error\030\n \001(\0132\022.google.rpc.StatusB\003\340A" + + "\003\022C\n\006labels\030\013 \003(\01323.google.cloud.aiplatf" + + "orm.v1.PipelineJob.LabelsEntry\022M\n\016runtim" + + "e_config\030\014 \001(\01325.google.cloud.aiplatform" + + ".v1.PipelineJob.RuntimeConfig\022C\n\017encrypt" + + "ion_spec\030\020 \001(\0132*.google.cloud.aiplatform" + + ".v1.EncryptionSpec\022\027\n\017service_account\030\021 " + + "\001(\t\0224\n\007network\030\022 \001(\tB#\372A \n\036compute.googl" + + "eapis.com/Network\022\024\n\014template_uri\030\023 \001(\t\022" + + "T\n\021template_metadata\030\024 \001(\01324.google.clou" + + "d.aiplatform.v1.PipelineTemplateMetadata" + + "B\003\340A\003\032\350\003\n\rRuntimeConfig\022]\n\nparameters\030\001 " + + "\003(\0132E.google.cloud.aiplatform.v1.Pipelin" + + "eJob.RuntimeConfig.ParametersEntryB\002\030\001\022!" + + "\n\024gcs_output_directory\030\002 \001(\tB\003\340A\002\022d\n\020par" + + "ameter_values\030\003 \003(\0132J.google.cloud.aipla" + + "tform.v1.PipelineJob.RuntimeConfig.Param" + + "eterValuesEntry\022I\n\016failure_policy\030\004 \001(\0162" + + "1.google.cloud.aiplatform.v1.PipelineFai" + + "lurePolicy\032T\n\017ParametersEntry\022\013\n\003key\030\001 \001" + + "(\t\0220\n\005value\030\002 \001(\0132!.google.cloud.aiplatf" + + "orm.v1.Value:\0028\001\032N\n\024ParameterValuesEntry" + + "\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.pr" + + "otobuf.Value:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:o\352Al\n%aiplatform" + + ".googleapis.com/PipelineJob\022Cprojects/{p" + + "roject}/locations/{location}/pipelineJob" + + "s/{pipeline_job}\"+\n\030PipelineTemplateMeta" + + "data\022\017\n\007version\030\003 \001(\t\"\352\001\n\021PipelineJobDet" + + "ail\022B\n\020pipeline_context\030\001 \001(\0132#.google.c" + + "loud.aiplatform.v1.ContextB\003\340A\003\022F\n\024pipel" + + "ine_run_context\030\002 \001(\0132#.google.cloud.aip" + + "latform.v1.ContextB\003\340A\003\022I\n\014task_details\030" + + "\003 \003(\0132..google.cloud.aiplatform.v1.Pipel" + + "ineTaskDetailB\003\340A\003\"\235\013\n\022PipelineTaskDetai" + + "l\022\024\n\007task_id\030\001 \001(\003B\003\340A\003\022\033\n\016parent_task_i" + + "d\030\014 \001(\003B\003\340A\003\022\026\n\ttask_name\030\002 \001(\tB\003\340A\003\0224\n\013" + + "create_time\030\003 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\0223\n\nstart_time\030\004 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\005 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022T\n\017ex" + + "ecutor_detail\030\006 \001(\01326.google.cloud.aipla" + + "tform.v1.PipelineTaskExecutorDetailB\003\340A\003" + + "\022H\n\005state\030\007 \001(\01624.google.cloud.aiplatfor" + + "m.v1.PipelineTaskDetail.StateB\003\340A\003\022=\n\tex" + + "ecution\030\010 \001(\0132%.google.cloud.aiplatform." + + "v1.ExecutionB\003\340A\003\022&\n\005error\030\t \001(\0132\022.googl" + + "e.rpc.StatusB\003\340A\003\022d\n\024pipeline_task_statu" + + "s\030\r \003(\0132A.google.cloud.aiplatform.v1.Pip" + + "elineTaskDetail.PipelineTaskStatusB\003\340A\003\022" + + "O\n\006inputs\030\n \003(\0132:.google.cloud.aiplatfor" + + "m.v1.PipelineTaskDetail.InputsEntryB\003\340A\003" + + "\022Q\n\007outputs\030\013 \003(\0132;.google.cloud.aiplatf" + + "orm.v1.PipelineTaskDetail.OutputsEntryB\003" + + "\340A\003\032\274\001\n\022PipelineTaskStatus\0224\n\013update_tim" + + "e\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\022H\n\005state\030\002 \001(\01624.google.cloud.aiplatfor" + + "m.v1.PipelineTaskDetail.StateB\003\340A\003\022&\n\005er" + + "ror\030\003 \001(\0132\022.google.rpc.StatusB\003\340A\003\032L\n\014Ar" + + "tifactList\022<\n\tartifacts\030\001 \003(\0132$.google.c" + + "loud.aiplatform.v1.ArtifactB\003\340A\003\032j\n\013Inpu" + + "tsEntry\022\013\n\003key\030\001 \001(\t\022J\n\005value\030\002 \001(\0132;.go" + + "ogle.cloud.aiplatform.v1.PipelineTaskDet" + + "ail.ArtifactList:\0028\001\032k\n\014OutputsEntry\022\013\n\003" + + "key\030\001 \001(\t\022J\n\005value\030\002 \001(\0132;.google.cloud." + + "aiplatform.v1.PipelineTaskDetail.Artifac" + + "tList:\0028\001\"\246\001\n\005State\022\025\n\021STATE_UNSPECIFIED" + + "\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\r\n\tSUCCEEDE" + + "D\020\003\022\022\n\016CANCEL_PENDING\020\004\022\016\n\nCANCELLING\020\005\022" + + "\r\n\tCANCELLED\020\006\022\n\n\006FAILED\020\007\022\013\n\007SKIPPED\020\010\022" + + "\021\n\rNOT_TRIGGERED\020\t\"\354\003\n\032PipelineTaskExecu" + + "torDetail\022g\n\020container_detail\030\001 \001(\0132F.go" + + "ogle.cloud.aiplatform.v1.PipelineTaskExe" + + "cutorDetail.ContainerDetailB\003\340A\003H\000\022j\n\021cu" + + "stom_job_detail\030\002 \001(\0132F.google.cloud.aip" + + "latform.v1.PipelineTaskExecutorDetail.Cu" + + "stomJobDetailB\005\030\001\340A\003H\000\032\234\001\n\017ContainerDeta" + + "il\022=\n\010main_job\030\001 \001(\tB+\340A\003\372A%\n#aiplatform" + + ".googleapis.com/CustomJob\022J\n\025pre_caching" + + "_check_job\030\002 \001(\tB+\340A\003\372A%\n#aiplatform.goo" + + "gleapis.com/CustomJob\032O\n\017CustomJobDetail" + + "\0228\n\003job\030\001 \001(\tB+\340A\003\372A%\n#aiplatform.google" + + "apis.com/CustomJob:\002\030\001B\t\n\007detailsB\235\002\n\036co" + + "m.google.cloud.aiplatform.v1B\010PipelineP\001" + + "ZDgoogle.golang.org/genproto/googleapis/" + + "cloud/aiplatform/v1;aiplatform\252\002\032Google." + + "Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPla" + + "tform\\V1\352\002\035Google::Cloud::AIPlatform::V1" + + "\352AN\n\036compute.googleapis.com/Network\022,pro" + + "jects/{project}/global/networks/{network" + + "}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -212,6 +223,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.aiplatform.v1.ContextProto.getDescriptor(), com.google.cloud.aiplatform.v1.EncryptionSpecProto.getDescriptor(), com.google.cloud.aiplatform.v1.ExecutionProto.getDescriptor(), + com.google.cloud.aiplatform.v1.PipelineFailurePolicyProto.getDescriptor(), com.google.cloud.aiplatform.v1.PipelineStateProto.getDescriptor(), com.google.cloud.aiplatform.v1.ValueProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), @@ -239,6 +251,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EncryptionSpec", "ServiceAccount", "Network", + "TemplateUri", + "TemplateMetadata", }); internal_static_google_cloud_aiplatform_v1_PipelineJob_RuntimeConfig_descriptor = internal_static_google_cloud_aiplatform_v1_PipelineJob_descriptor.getNestedTypes().get(0); @@ -246,7 +260,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_PipelineJob_RuntimeConfig_descriptor, new java.lang.String[] { - "Parameters", "GcsOutputDirectory", "ParameterValues", + "Parameters", "GcsOutputDirectory", "ParameterValues", "FailurePolicy", }); internal_static_google_cloud_aiplatform_v1_PipelineJob_RuntimeConfig_ParametersEntry_descriptor = internal_static_google_cloud_aiplatform_v1_PipelineJob_RuntimeConfig_descriptor @@ -276,8 +290,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_aiplatform_v1_PipelineJobDetail_descriptor = + internal_static_google_cloud_aiplatform_v1_PipelineTemplateMetadata_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_aiplatform_v1_PipelineTemplateMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_PipelineTemplateMetadata_descriptor, + new java.lang.String[] { + "Version", + }); + internal_static_google_cloud_aiplatform_v1_PipelineJobDetail_descriptor = + getDescriptor().getMessageTypes().get(2); internal_static_google_cloud_aiplatform_v1_PipelineJobDetail_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_PipelineJobDetail_descriptor, @@ -285,7 +307,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PipelineContext", "PipelineRunContext", "TaskDetails", }); internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(3); internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_descriptor, @@ -345,7 +367,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_aiplatform_v1_PipelineTaskExecutorDetail_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_aiplatform_v1_PipelineTaskExecutorDetail_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_PipelineTaskExecutorDetail_descriptor, @@ -386,6 +408,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.aiplatform.v1.ContextProto.getDescriptor(); com.google.cloud.aiplatform.v1.EncryptionSpecProto.getDescriptor(); com.google.cloud.aiplatform.v1.ExecutionProto.getDescriptor(); + com.google.cloud.aiplatform.v1.PipelineFailurePolicyProto.getDescriptor(); com.google.cloud.aiplatform.v1.PipelineStateProto.getDescriptor(); com.google.cloud.aiplatform.v1.ValueProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineFailurePolicy.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineFailurePolicy.java new file mode 100644 index 000000000000..3443dff2ae22 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineFailurePolicy.java @@ -0,0 +1,190 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/pipeline_failure_policy.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Reperesents the failure policy of a pipeline. Currently, the default of a
+ * pipeline is that the pipeline will continue to run until no more tasks can be
+ * executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW. However, if a
+ * pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it will stop scheduling
+ * any new tasks when a task has failed. Any scheduled tasks will continue to
+ * completion.
+ * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1.PipelineFailurePolicy} + */ +public enum PipelineFailurePolicy implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value, and follows fail slow behavior.
+   * 
+ * + * PIPELINE_FAILURE_POLICY_UNSPECIFIED = 0; + */ + PIPELINE_FAILURE_POLICY_UNSPECIFIED(0), + /** + * + * + *
+   * Indicates that the pipeline should continue to run until all possible
+   * tasks have been scheduled and completed.
+   * 
+ * + * PIPELINE_FAILURE_POLICY_FAIL_SLOW = 1; + */ + PIPELINE_FAILURE_POLICY_FAIL_SLOW(1), + /** + * + * + *
+   * Indicates that the pipeline should stop scheduling new tasks after a task
+   * has failed.
+   * 
+ * + * PIPELINE_FAILURE_POLICY_FAIL_FAST = 2; + */ + PIPELINE_FAILURE_POLICY_FAIL_FAST(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value, and follows fail slow behavior.
+   * 
+ * + * PIPELINE_FAILURE_POLICY_UNSPECIFIED = 0; + */ + public static final int PIPELINE_FAILURE_POLICY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Indicates that the pipeline should continue to run until all possible
+   * tasks have been scheduled and completed.
+   * 
+ * + * PIPELINE_FAILURE_POLICY_FAIL_SLOW = 1; + */ + public static final int PIPELINE_FAILURE_POLICY_FAIL_SLOW_VALUE = 1; + /** + * + * + *
+   * Indicates that the pipeline should stop scheduling new tasks after a task
+   * has failed.
+   * 
+ * + * PIPELINE_FAILURE_POLICY_FAIL_FAST = 2; + */ + public static final int PIPELINE_FAILURE_POLICY_FAIL_FAST_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PipelineFailurePolicy valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static PipelineFailurePolicy forNumber(int value) { + switch (value) { + case 0: + return PIPELINE_FAILURE_POLICY_UNSPECIFIED; + case 1: + return PIPELINE_FAILURE_POLICY_FAIL_SLOW; + case 2: + return PIPELINE_FAILURE_POLICY_FAIL_FAST; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PipelineFailurePolicy findValueByNumber(int number) { + return PipelineFailurePolicy.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.PipelineFailurePolicyProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final PipelineFailurePolicy[] VALUES = values(); + + public static PipelineFailurePolicy valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private PipelineFailurePolicy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.PipelineFailurePolicy) +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineFailurePolicyProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineFailurePolicyProto.java new file mode 100644 index 000000000000..6ca59be1d83d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineFailurePolicyProto.java @@ -0,0 +1,57 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/pipeline_failure_policy.proto + +package com.google.cloud.aiplatform.v1; + +public final class PipelineFailurePolicyProto { + private PipelineFailurePolicyProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/aiplatform/v1/pipeline_fa" + + "ilure_policy.proto\022\032google.cloud.aiplatf" + + "orm.v1*\216\001\n\025PipelineFailurePolicy\022\'\n#PIPE" + + "LINE_FAILURE_POLICY_UNSPECIFIED\020\000\022%\n!PIP" + + "ELINE_FAILURE_POLICY_FAIL_SLOW\020\001\022%\n!PIPE" + + "LINE_FAILURE_POLICY_FAIL_FAST\020\002B\336\001\n\036com." + + "google.cloud.aiplatform.v1B\032PipelineFail" + + "urePolicyProtoP\001ZDgoogle.golang.org/genp" + + "roto/googleapis/cloud/aiplatform/v1;aipl" + + "atform\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Go" + + "ogle\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud" + + "::AIPlatform::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJob.java index 02d11460cf8b..b16f0b215b42 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJob.java @@ -43,6 +43,7 @@ private PipelineJob() { state_ = 0; serviceAccount_ = ""; network_ = ""; + templateUri_ = ""; } @java.lang.Override @@ -259,6 +260,30 @@ private PipelineJob( java.lang.String s = input.readStringRequireUtf8(); network_ = s; + break; + } + case 154: + { + java.lang.String s = input.readStringRequireUtf8(); + + templateUri_ = s; + break; + } + case 162: + { + com.google.cloud.aiplatform.v1.PipelineTemplateMetadata.Builder subBuilder = null; + if (templateMetadata_ != null) { + subBuilder = templateMetadata_.toBuilder(); + } + templateMetadata_ = + input.readMessage( + com.google.cloud.aiplatform.v1.PipelineTemplateMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(templateMetadata_); + templateMetadata_ = subBuilder.buildPartial(); + } + break; } default: @@ -526,6 +551,41 @@ com.google.protobuf.Value getParameterValuesOrDefault( * map<string, .google.protobuf.Value> parameter_values = 3; */ com.google.protobuf.Value getParameterValuesOrThrow(java.lang.String key); + + /** + * + * + *
+     * Represents the failure policy of a pipeline. Currently, the default of a
+     * pipeline is that the pipeline will continue to run until no more tasks
+     * can be executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW.
+     * However, if a pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it
+     * will stop scheduling any new tasks when a task has failed. Any scheduled
+     * tasks will continue to completion.
+     * 
+ * + * .google.cloud.aiplatform.v1.PipelineFailurePolicy failure_policy = 4; + * + * @return The enum numeric value on the wire for failurePolicy. + */ + int getFailurePolicyValue(); + /** + * + * + *
+     * Represents the failure policy of a pipeline. Currently, the default of a
+     * pipeline is that the pipeline will continue to run until no more tasks
+     * can be executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW.
+     * However, if a pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it
+     * will stop scheduling any new tasks when a task has failed. Any scheduled
+     * tasks will continue to completion.
+     * 
+ * + * .google.cloud.aiplatform.v1.PipelineFailurePolicy failure_policy = 4; + * + * @return The failurePolicy. + */ + com.google.cloud.aiplatform.v1.PipelineFailurePolicy getFailurePolicy(); } /** * @@ -548,6 +608,7 @@ private RuntimeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) private RuntimeConfig() { gcsOutputDirectory_ = ""; + failurePolicy_ = 0; } @java.lang.Override @@ -621,6 +682,13 @@ private RuntimeConfig( .put(parameterValues__.getKey(), parameterValues__.getValue()); break; } + case 32: + { + int rawValue = input.readEnum(); + + failurePolicy_ = rawValue; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -994,6 +1062,54 @@ public com.google.protobuf.Value getParameterValuesOrThrow(java.lang.String key) return map.get(key); } + public static final int FAILURE_POLICY_FIELD_NUMBER = 4; + private int failurePolicy_; + /** + * + * + *
+     * Represents the failure policy of a pipeline. Currently, the default of a
+     * pipeline is that the pipeline will continue to run until no more tasks
+     * can be executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW.
+     * However, if a pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it
+     * will stop scheduling any new tasks when a task has failed. Any scheduled
+     * tasks will continue to completion.
+     * 
+ * + * .google.cloud.aiplatform.v1.PipelineFailurePolicy failure_policy = 4; + * + * @return The enum numeric value on the wire for failurePolicy. + */ + @java.lang.Override + public int getFailurePolicyValue() { + return failurePolicy_; + } + /** + * + * + *
+     * Represents the failure policy of a pipeline. Currently, the default of a
+     * pipeline is that the pipeline will continue to run until no more tasks
+     * can be executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW.
+     * However, if a pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it
+     * will stop scheduling any new tasks when a task has failed. Any scheduled
+     * tasks will continue to completion.
+     * 
+ * + * .google.cloud.aiplatform.v1.PipelineFailurePolicy failure_policy = 4; + * + * @return The failurePolicy. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineFailurePolicy getFailurePolicy() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1.PipelineFailurePolicy result = + com.google.cloud.aiplatform.v1.PipelineFailurePolicy.valueOf(failurePolicy_); + return result == null + ? com.google.cloud.aiplatform.v1.PipelineFailurePolicy.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1015,6 +1131,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetParameterValues(), ParameterValuesDefaultEntryHolder.defaultEntry, 3); + if (failurePolicy_ + != com.google.cloud.aiplatform.v1.PipelineFailurePolicy + .PIPELINE_FAILURE_POLICY_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, failurePolicy_); + } unknownFields.writeTo(output); } @@ -1049,6 +1171,12 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, parameterValues__); } + if (failurePolicy_ + != com.google.cloud.aiplatform.v1.PipelineFailurePolicy + .PIPELINE_FAILURE_POLICY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, failurePolicy_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1068,6 +1196,7 @@ public boolean equals(final java.lang.Object obj) { if (!internalGetParameters().equals(other.internalGetParameters())) return false; if (!getGcsOutputDirectory().equals(other.getGcsOutputDirectory())) return false; if (!internalGetParameterValues().equals(other.internalGetParameterValues())) return false; + if (failurePolicy_ != other.failurePolicy_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1089,6 +1218,8 @@ public int hashCode() { hash = (37 * hash) + PARAMETER_VALUES_FIELD_NUMBER; hash = (53 * hash) + internalGetParameterValues().hashCode(); } + hash = (37 * hash) + FAILURE_POLICY_FIELD_NUMBER; + hash = (53 * hash) + failurePolicy_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1265,6 +1396,8 @@ public Builder clear() { gcsOutputDirectory_ = ""; internalGetMutableParameterValues().clear(); + failurePolicy_ = 0; + return this; } @@ -1298,6 +1431,7 @@ public com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig buildPartial() { result.gcsOutputDirectory_ = gcsOutputDirectory_; result.parameterValues_ = internalGetParameterValues(); result.parameterValues_.makeImmutable(); + result.failurePolicy_ = failurePolicy_; onBuilt(); return result; } @@ -1356,6 +1490,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfi onChanged(); } internalGetMutableParameterValues().mergeFrom(other.internalGetParameterValues()); + if (other.failurePolicy_ != 0) { + setFailurePolicyValue(other.getFailurePolicyValue()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1945,6 +2082,124 @@ public Builder putAllParameterValues( return this; } + private int failurePolicy_ = 0; + /** + * + * + *
+       * Represents the failure policy of a pipeline. Currently, the default of a
+       * pipeline is that the pipeline will continue to run until no more tasks
+       * can be executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW.
+       * However, if a pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it
+       * will stop scheduling any new tasks when a task has failed. Any scheduled
+       * tasks will continue to completion.
+       * 
+ * + * .google.cloud.aiplatform.v1.PipelineFailurePolicy failure_policy = 4; + * + * @return The enum numeric value on the wire for failurePolicy. + */ + @java.lang.Override + public int getFailurePolicyValue() { + return failurePolicy_; + } + /** + * + * + *
+       * Represents the failure policy of a pipeline. Currently, the default of a
+       * pipeline is that the pipeline will continue to run until no more tasks
+       * can be executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW.
+       * However, if a pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it
+       * will stop scheduling any new tasks when a task has failed. Any scheduled
+       * tasks will continue to completion.
+       * 
+ * + * .google.cloud.aiplatform.v1.PipelineFailurePolicy failure_policy = 4; + * + * @param value The enum numeric value on the wire for failurePolicy to set. + * @return This builder for chaining. + */ + public Builder setFailurePolicyValue(int value) { + + failurePolicy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Represents the failure policy of a pipeline. Currently, the default of a
+       * pipeline is that the pipeline will continue to run until no more tasks
+       * can be executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW.
+       * However, if a pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it
+       * will stop scheduling any new tasks when a task has failed. Any scheduled
+       * tasks will continue to completion.
+       * 
+ * + * .google.cloud.aiplatform.v1.PipelineFailurePolicy failure_policy = 4; + * + * @return The failurePolicy. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineFailurePolicy getFailurePolicy() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1.PipelineFailurePolicy result = + com.google.cloud.aiplatform.v1.PipelineFailurePolicy.valueOf(failurePolicy_); + return result == null + ? com.google.cloud.aiplatform.v1.PipelineFailurePolicy.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Represents the failure policy of a pipeline. Currently, the default of a
+       * pipeline is that the pipeline will continue to run until no more tasks
+       * can be executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW.
+       * However, if a pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it
+       * will stop scheduling any new tasks when a task has failed. Any scheduled
+       * tasks will continue to completion.
+       * 
+ * + * .google.cloud.aiplatform.v1.PipelineFailurePolicy failure_policy = 4; + * + * @param value The failurePolicy to set. + * @return This builder for chaining. + */ + public Builder setFailurePolicy(com.google.cloud.aiplatform.v1.PipelineFailurePolicy value) { + if (value == null) { + throw new NullPointerException(); + } + + failurePolicy_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Represents the failure policy of a pipeline. Currently, the default of a
+       * pipeline is that the pipeline will continue to run until no more tasks
+       * can be executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW.
+       * However, if a pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it
+       * will stop scheduling any new tasks when a task has failed. Any scheduled
+       * tasks will continue to completion.
+       * 
+ * + * .google.cloud.aiplatform.v1.PipelineFailurePolicy failure_policy = 4; + * + * @return This builder for chaining. + */ + public Builder clearFailurePolicy() { + + failurePolicy_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2832,6 +3087,115 @@ public com.google.protobuf.ByteString getNetworkBytes() { } } + public static final int TEMPLATE_URI_FIELD_NUMBER = 19; + private volatile java.lang.Object templateUri_; + /** + * + * + *
+   * A template uri from where the [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec], if empty, will
+   * be downloaded.
+   * 
+ * + * string template_uri = 19; + * + * @return The templateUri. + */ + @java.lang.Override + public java.lang.String getTemplateUri() { + java.lang.Object ref = templateUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + templateUri_ = s; + return s; + } + } + /** + * + * + *
+   * A template uri from where the [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec], if empty, will
+   * be downloaded.
+   * 
+ * + * string template_uri = 19; + * + * @return The bytes for templateUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTemplateUriBytes() { + java.lang.Object ref = templateUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + templateUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEMPLATE_METADATA_FIELD_NUMBER = 20; + private com.google.cloud.aiplatform.v1.PipelineTemplateMetadata templateMetadata_; + /** + * + * + *
+   * Output only. Pipeline template metadata. Will fill up fields if
+   * [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is from supported template registry.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTemplateMetadata template_metadata = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the templateMetadata field is set. + */ + @java.lang.Override + public boolean hasTemplateMetadata() { + return templateMetadata_ != null; + } + /** + * + * + *
+   * Output only. Pipeline template metadata. Will fill up fields if
+   * [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is from supported template registry.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTemplateMetadata template_metadata = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The templateMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTemplateMetadata getTemplateMetadata() { + return templateMetadata_ == null + ? com.google.cloud.aiplatform.v1.PipelineTemplateMetadata.getDefaultInstance() + : templateMetadata_; + } + /** + * + * + *
+   * Output only. Pipeline template metadata. Will fill up fields if
+   * [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is from supported template registry.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTemplateMetadata template_metadata = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTemplateMetadataOrBuilder + getTemplateMetadataOrBuilder() { + return getTemplateMetadata(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2891,6 +3255,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 18, network_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(templateUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, templateUri_); + } + if (templateMetadata_ != null) { + output.writeMessage(20, getTemplateMetadata()); + } unknownFields.writeTo(output); } @@ -2953,6 +3323,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, network_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(templateUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, templateUri_); + } + if (templateMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getTemplateMetadata()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -3011,6 +3387,11 @@ public boolean equals(final java.lang.Object obj) { } if (!getServiceAccount().equals(other.getServiceAccount())) return false; if (!getNetwork().equals(other.getNetwork())) return false; + if (!getTemplateUri().equals(other.getTemplateUri())) return false; + if (hasTemplateMetadata() != other.hasTemplateMetadata()) return false; + if (hasTemplateMetadata()) { + if (!getTemplateMetadata().equals(other.getTemplateMetadata())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3072,6 +3453,12 @@ public int hashCode() { hash = (53 * hash) + getServiceAccount().hashCode(); hash = (37 * hash) + NETWORK_FIELD_NUMBER; hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + TEMPLATE_URI_FIELD_NUMBER; + hash = (53 * hash) + getTemplateUri().hashCode(); + if (hasTemplateMetadata()) { + hash = (37 * hash) + TEMPLATE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getTemplateMetadata().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -3302,6 +3689,14 @@ public Builder clear() { network_ = ""; + templateUri_ = ""; + + if (templateMetadataBuilder_ == null) { + templateMetadata_ = null; + } else { + templateMetadata_ = null; + templateMetadataBuilder_ = null; + } return this; } @@ -3382,6 +3777,12 @@ public com.google.cloud.aiplatform.v1.PipelineJob buildPartial() { } result.serviceAccount_ = serviceAccount_; result.network_ = network_; + result.templateUri_ = templateUri_; + if (templateMetadataBuilder_ == null) { + result.templateMetadata_ = templateMetadata_; + } else { + result.templateMetadata_ = templateMetadataBuilder_.build(); + } onBuilt(); return result; } @@ -3478,6 +3879,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.PipelineJob other) { network_ = other.network_; onChanged(); } + if (!other.getTemplateUri().isEmpty()) { + templateUri_ = other.templateUri_; + onChanged(); + } + if (other.hasTemplateMetadata()) { + mergeTemplateMetadata(other.getTemplateMetadata()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -6052,6 +6460,334 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object templateUri_ = ""; + /** + * + * + *
+     * A template uri from where the [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec], if empty, will
+     * be downloaded.
+     * 
+ * + * string template_uri = 19; + * + * @return The templateUri. + */ + public java.lang.String getTemplateUri() { + java.lang.Object ref = templateUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + templateUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A template uri from where the [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec], if empty, will
+     * be downloaded.
+     * 
+ * + * string template_uri = 19; + * + * @return The bytes for templateUri. + */ + public com.google.protobuf.ByteString getTemplateUriBytes() { + java.lang.Object ref = templateUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + templateUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A template uri from where the [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec], if empty, will
+     * be downloaded.
+     * 
+ * + * string template_uri = 19; + * + * @param value The templateUri to set. + * @return This builder for chaining. + */ + public Builder setTemplateUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + templateUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A template uri from where the [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec], if empty, will
+     * be downloaded.
+     * 
+ * + * string template_uri = 19; + * + * @return This builder for chaining. + */ + public Builder clearTemplateUri() { + + templateUri_ = getDefaultInstance().getTemplateUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * A template uri from where the [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec], if empty, will
+     * be downloaded.
+     * 
+ * + * string template_uri = 19; + * + * @param value The bytes for templateUri to set. + * @return This builder for chaining. + */ + public Builder setTemplateUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + templateUri_ = value; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1.PipelineTemplateMetadata templateMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineTemplateMetadata, + com.google.cloud.aiplatform.v1.PipelineTemplateMetadata.Builder, + com.google.cloud.aiplatform.v1.PipelineTemplateMetadataOrBuilder> + templateMetadataBuilder_; + /** + * + * + *
+     * Output only. Pipeline template metadata. Will fill up fields if
+     * [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is from supported template registry.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTemplateMetadata template_metadata = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the templateMetadata field is set. + */ + public boolean hasTemplateMetadata() { + return templateMetadataBuilder_ != null || templateMetadata_ != null; + } + /** + * + * + *
+     * Output only. Pipeline template metadata. Will fill up fields if
+     * [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is from supported template registry.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTemplateMetadata template_metadata = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The templateMetadata. + */ + public com.google.cloud.aiplatform.v1.PipelineTemplateMetadata getTemplateMetadata() { + if (templateMetadataBuilder_ == null) { + return templateMetadata_ == null + ? com.google.cloud.aiplatform.v1.PipelineTemplateMetadata.getDefaultInstance() + : templateMetadata_; + } else { + return templateMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Pipeline template metadata. Will fill up fields if
+     * [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is from supported template registry.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTemplateMetadata template_metadata = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTemplateMetadata( + com.google.cloud.aiplatform.v1.PipelineTemplateMetadata value) { + if (templateMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + templateMetadata_ = value; + onChanged(); + } else { + templateMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Pipeline template metadata. Will fill up fields if
+     * [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is from supported template registry.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTemplateMetadata template_metadata = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTemplateMetadata( + com.google.cloud.aiplatform.v1.PipelineTemplateMetadata.Builder builderForValue) { + if (templateMetadataBuilder_ == null) { + templateMetadata_ = builderForValue.build(); + onChanged(); + } else { + templateMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Pipeline template metadata. Will fill up fields if
+     * [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is from supported template registry.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTemplateMetadata template_metadata = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeTemplateMetadata( + com.google.cloud.aiplatform.v1.PipelineTemplateMetadata value) { + if (templateMetadataBuilder_ == null) { + if (templateMetadata_ != null) { + templateMetadata_ = + com.google.cloud.aiplatform.v1.PipelineTemplateMetadata.newBuilder(templateMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + templateMetadata_ = value; + } + onChanged(); + } else { + templateMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Pipeline template metadata. Will fill up fields if
+     * [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is from supported template registry.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTemplateMetadata template_metadata = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTemplateMetadata() { + if (templateMetadataBuilder_ == null) { + templateMetadata_ = null; + onChanged(); + } else { + templateMetadata_ = null; + templateMetadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Pipeline template metadata. Will fill up fields if
+     * [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is from supported template registry.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTemplateMetadata template_metadata = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.PipelineTemplateMetadata.Builder + getTemplateMetadataBuilder() { + + onChanged(); + return getTemplateMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Pipeline template metadata. Will fill up fields if
+     * [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is from supported template registry.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTemplateMetadata template_metadata = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.PipelineTemplateMetadataOrBuilder + getTemplateMetadataOrBuilder() { + if (templateMetadataBuilder_ != null) { + return templateMetadataBuilder_.getMessageOrBuilder(); + } else { + return templateMetadata_ == null + ? com.google.cloud.aiplatform.v1.PipelineTemplateMetadata.getDefaultInstance() + : templateMetadata_; + } + } + /** + * + * + *
+     * Output only. Pipeline template metadata. Will fill up fields if
+     * [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is from supported template registry.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTemplateMetadata template_metadata = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineTemplateMetadata, + com.google.cloud.aiplatform.v1.PipelineTemplateMetadata.Builder, + com.google.cloud.aiplatform.v1.PipelineTemplateMetadataOrBuilder> + getTemplateMetadataFieldBuilder() { + if (templateMetadataBuilder_ == null) { + templateMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineTemplateMetadata, + com.google.cloud.aiplatform.v1.PipelineTemplateMetadata.Builder, + com.google.cloud.aiplatform.v1.PipelineTemplateMetadataOrBuilder>( + getTemplateMetadata(), getParentForChildren(), isClean()); + templateMetadata_ = null; + } + return templateMetadataBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobName.java index 1a496f3b5ec8..4cafcbe7af88 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobOrBuilder.java index 45f2be6dc8b8..0eb77e2aa9b7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobOrBuilder.java @@ -609,4 +609,75 @@ java.lang.String getLabelsOrDefault( * @return The bytes for network. */ com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
+   * A template uri from where the [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec], if empty, will
+   * be downloaded.
+   * 
+ * + * string template_uri = 19; + * + * @return The templateUri. + */ + java.lang.String getTemplateUri(); + /** + * + * + *
+   * A template uri from where the [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec], if empty, will
+   * be downloaded.
+   * 
+ * + * string template_uri = 19; + * + * @return The bytes for templateUri. + */ + com.google.protobuf.ByteString getTemplateUriBytes(); + + /** + * + * + *
+   * Output only. Pipeline template metadata. Will fill up fields if
+   * [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is from supported template registry.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTemplateMetadata template_metadata = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the templateMetadata field is set. + */ + boolean hasTemplateMetadata(); + /** + * + * + *
+   * Output only. Pipeline template metadata. Will fill up fields if
+   * [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is from supported template registry.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTemplateMetadata template_metadata = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The templateMetadata. + */ + com.google.cloud.aiplatform.v1.PipelineTemplateMetadata getTemplateMetadata(); + /** + * + * + *
+   * Output only. Pipeline template metadata. Will fill up fields if
+   * [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is from supported template registry.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTemplateMetadata template_metadata = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.PipelineTemplateMetadataOrBuilder getTemplateMetadataOrBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskExecutorDetail.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskExecutorDetail.java index ffa2e68d34ec..60e527d03ab5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskExecutorDetail.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskExecutorDetail.java @@ -1921,7 +1921,7 @@ public boolean hasContainerDetail() { *
* * @deprecated google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.custom_job_detail is - * deprecated. See google/cloud/aiplatform/v1/pipeline_job.proto;l=313 + * deprecated. See google/cloud/aiplatform/v1/pipeline_job.proto;l=343 * @return Whether the customJobDetail field is set. */ @java.lang.Override @@ -1941,7 +1941,7 @@ public boolean hasCustomJobDetail() { *
* * @deprecated google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.custom_job_detail is - * deprecated. See google/cloud/aiplatform/v1/pipeline_job.proto;l=313 + * deprecated. See google/cloud/aiplatform/v1/pipeline_job.proto;l=343 * @return The customJobDetail. */ @java.lang.Override @@ -2631,7 +2631,7 @@ public Builder clearContainerDetail() { *
* * @deprecated google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.custom_job_detail is - * deprecated. See google/cloud/aiplatform/v1/pipeline_job.proto;l=313 + * deprecated. See google/cloud/aiplatform/v1/pipeline_job.proto;l=343 * @return Whether the customJobDetail field is set. */ @java.lang.Override @@ -2651,7 +2651,7 @@ public boolean hasCustomJobDetail() { *
* * @deprecated google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.custom_job_detail is - * deprecated. See google/cloud/aiplatform/v1/pipeline_job.proto;l=313 + * deprecated. See google/cloud/aiplatform/v1/pipeline_job.proto;l=343 * @return The customJobDetail. */ @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskExecutorDetailOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskExecutorDetailOrBuilder.java index 3bbf2c8e9e97..19a55844d3b9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskExecutorDetailOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskExecutorDetailOrBuilder.java @@ -77,7 +77,7 @@ public interface PipelineTaskExecutorDetailOrBuilder *
* * @deprecated google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.custom_job_detail is - * deprecated. See google/cloud/aiplatform/v1/pipeline_job.proto;l=313 + * deprecated. See google/cloud/aiplatform/v1/pipeline_job.proto;l=343 * @return Whether the customJobDetail field is set. */ @java.lang.Deprecated @@ -94,7 +94,7 @@ public interface PipelineTaskExecutorDetailOrBuilder *
* * @deprecated google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.custom_job_detail is - * deprecated. See google/cloud/aiplatform/v1/pipeline_job.proto;l=313 + * deprecated. See google/cloud/aiplatform/v1/pipeline_job.proto;l=343 * @return The customJobDetail. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTemplateMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTemplateMetadata.java new file mode 100644 index 000000000000..bf995761d7b8 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTemplateMetadata.java @@ -0,0 +1,664 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/pipeline_job.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Pipeline template metadata if [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is from supported
+ * template registry. Currently, the only supported registry is Artifact
+ * Registry.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.PipelineTemplateMetadata} + */ +public final class PipelineTemplateMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.PipelineTemplateMetadata) + PipelineTemplateMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use PipelineTemplateMetadata.newBuilder() to construct. + private PipelineTemplateMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PipelineTemplateMetadata() { + version_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PipelineTemplateMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PipelineTemplateMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineTemplateMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineTemplateMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.PipelineTemplateMetadata.class, + com.google.cloud.aiplatform.v1.PipelineTemplateMetadata.Builder.class); + } + + public static final int VERSION_FIELD_NUMBER = 3; + private volatile java.lang.Object version_; + /** + * + * + *
+   * The version_name in artifact registry.
+   * Will always be presented in output if the [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is
+   * from supported template registry.
+   * Format is "sha256:abcdef123456...".
+   * 
+ * + * string version = 3; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + * + * + *
+   * The version_name in artifact registry.
+   * Will always be presented in output if the [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is
+   * from supported template registry.
+   * Format is "sha256:abcdef123456...".
+   * 
+ * + * string version = 3; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, version_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, version_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.PipelineTemplateMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.PipelineTemplateMetadata other = + (com.google.cloud.aiplatform.v1.PipelineTemplateMetadata) obj; + + if (!getVersion().equals(other.getVersion())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.PipelineTemplateMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PipelineTemplateMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.PipelineTemplateMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PipelineTemplateMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.PipelineTemplateMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PipelineTemplateMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.PipelineTemplateMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.PipelineTemplateMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.PipelineTemplateMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.PipelineTemplateMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.PipelineTemplateMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.PipelineTemplateMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.PipelineTemplateMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Pipeline template metadata if [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is from supported
+   * template registry. Currently, the only supported registry is Artifact
+   * Registry.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.PipelineTemplateMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.PipelineTemplateMetadata) + com.google.cloud.aiplatform.v1.PipelineTemplateMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineTemplateMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineTemplateMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.PipelineTemplateMetadata.class, + com.google.cloud.aiplatform.v1.PipelineTemplateMetadata.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.PipelineTemplateMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + version_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineTemplateMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTemplateMetadata getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.PipelineTemplateMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTemplateMetadata build() { + com.google.cloud.aiplatform.v1.PipelineTemplateMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTemplateMetadata buildPartial() { + com.google.cloud.aiplatform.v1.PipelineTemplateMetadata result = + new com.google.cloud.aiplatform.v1.PipelineTemplateMetadata(this); + result.version_ = version_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.PipelineTemplateMetadata) { + return mergeFrom((com.google.cloud.aiplatform.v1.PipelineTemplateMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.PipelineTemplateMetadata other) { + if (other == com.google.cloud.aiplatform.v1.PipelineTemplateMetadata.getDefaultInstance()) + return this; + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1.PipelineTemplateMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1.PipelineTemplateMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object version_ = ""; + /** + * + * + *
+     * The version_name in artifact registry.
+     * Will always be presented in output if the [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is
+     * from supported template registry.
+     * Format is "sha256:abcdef123456...".
+     * 
+ * + * string version = 3; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The version_name in artifact registry.
+     * Will always be presented in output if the [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is
+     * from supported template registry.
+     * Format is "sha256:abcdef123456...".
+     * 
+ * + * string version = 3; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The version_name in artifact registry.
+     * Will always be presented in output if the [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is
+     * from supported template registry.
+     * Format is "sha256:abcdef123456...".
+     * 
+ * + * string version = 3; + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The version_name in artifact registry.
+     * Will always be presented in output if the [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is
+     * from supported template registry.
+     * Format is "sha256:abcdef123456...".
+     * 
+ * + * string version = 3; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * The version_name in artifact registry.
+     * Will always be presented in output if the [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is
+     * from supported template registry.
+     * Format is "sha256:abcdef123456...".
+     * 
+ * + * string version = 3; + * + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.PipelineTemplateMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.PipelineTemplateMetadata) + private static final com.google.cloud.aiplatform.v1.PipelineTemplateMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.PipelineTemplateMetadata(); + } + + public static com.google.cloud.aiplatform.v1.PipelineTemplateMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PipelineTemplateMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PipelineTemplateMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTemplateMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTemplateMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTemplateMetadataOrBuilder.java new file mode 100644 index 000000000000..494cb168df4e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTemplateMetadataOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/pipeline_job.proto + +package com.google.cloud.aiplatform.v1; + +public interface PipelineTemplateMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.PipelineTemplateMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The version_name in artifact registry.
+   * Will always be presented in output if the [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is
+   * from supported template registry.
+   * Format is "sha256:abcdef123456...".
+   * 
+ * + * string version = 3; + * + * @return The version. + */ + java.lang.String getVersion(); + /** + * + * + *
+   * The version_name in artifact registry.
+   * Will always be presented in output if the [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is
+   * from supported template registry.
+   * Format is "sha256:abcdef123456...".
+   * 
+ * + * string version = 3; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolName.java index e3593b3c3976..9f1cc7c483e2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudyName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudyName.java index a09b055924b4..f35b9fb82f4f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudyName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudyName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardExperimentName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardExperimentName.java index 3a08c55e16b0..272a4545b2cf 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardExperimentName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardExperimentName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardName.java index a404c86c2a8d..534daa75b1f8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardRunName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardRunName.java index 1a4b072255d3..9f8588fbf9ff 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardRunName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardRunName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardTimeSeriesName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardTimeSeriesName.java index dc8938053e8b..bebeb33ba504 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardTimeSeriesName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardTimeSeriesName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipeline.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipeline.java index ba0aee1ea4c4..26f627f62e14 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipeline.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipeline.java @@ -45,6 +45,8 @@ private TrainingPipeline() { name_ = ""; displayName_ = ""; trainingTaskDefinition_ = ""; + modelId_ = ""; + parentModel_ = ""; state_ = 0; } @@ -269,6 +271,20 @@ private TrainingPipeline( encryptionSpec_ = subBuilder.buildPartial(); } + break; + } + case 170: + { + java.lang.String s = input.readStringRequireUtf8(); + + parentModel_ = s; + break; + } + case 178: + { + java.lang.String s = input.readStringRequireUtf8(); + + modelId_ = s; break; } default: @@ -752,6 +768,112 @@ public com.google.cloud.aiplatform.v1.ModelOrBuilder getModelToUploadOrBuilder() return getModelToUpload(); } + public static final int MODEL_ID_FIELD_NUMBER = 22; + private volatile java.lang.Object modelId_; + /** + * + * + *
+   * Optional. The ID to use for the uploaded Model, which will become the final
+   * component of the model resource name.
+   * This value may be up to 63 characters, and valid characters are
+   * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+   * 
+ * + * string model_id = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelId. + */ + @java.lang.Override + public java.lang.String getModelId() { + java.lang.Object ref = modelId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The ID to use for the uploaded Model, which will become the final
+   * component of the model resource name.
+   * This value may be up to 63 characters, and valid characters are
+   * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+   * 
+ * + * string model_id = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelIdBytes() { + java.lang.Object ref = modelId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_MODEL_FIELD_NUMBER = 21; + private volatile java.lang.Object parentModel_; + /** + * + * + *
+   * Optional. When specify this field, the `model_to_upload` will not be uploaded as a
+   * new model, instead, it will become a new version of this `parent_model`.
+   * 
+ * + * string parent_model = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The parentModel. + */ + @java.lang.Override + public java.lang.String getParentModel() { + java.lang.Object ref = parentModel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parentModel_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. When specify this field, the `model_to_upload` will not be uploaded as a
+   * new model, instead, it will become a new version of this `parent_model`.
+   * 
+ * + * string parent_model = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for parentModel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentModelBytes() { + java.lang.Object ref = parentModel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parentModel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int STATE_FIELD_NUMBER = 9; private int state_; /** @@ -1276,6 +1398,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (encryptionSpec_ != null) { output.writeMessage(18, getEncryptionSpec()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentModel_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 21, parentModel_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 22, modelId_); + } unknownFields.writeTo(output); } @@ -1339,6 +1467,12 @@ public int getSerializedSize() { if (encryptionSpec_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getEncryptionSpec()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentModel_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, parentModel_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, modelId_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1374,6 +1508,8 @@ public boolean equals(final java.lang.Object obj) { if (hasModelToUpload()) { if (!getModelToUpload().equals(other.getModelToUpload())) return false; } + if (!getModelId().equals(other.getModelId())) return false; + if (!getParentModel().equals(other.getParentModel())) return false; if (state_ != other.state_) return false; if (hasError() != other.hasError()) return false; if (hasError()) { @@ -1433,6 +1569,10 @@ public int hashCode() { hash = (37 * hash) + MODEL_TO_UPLOAD_FIELD_NUMBER; hash = (53 * hash) + getModelToUpload().hashCode(); } + hash = (37 * hash) + MODEL_ID_FIELD_NUMBER; + hash = (53 * hash) + getModelId().hashCode(); + hash = (37 * hash) + PARENT_MODEL_FIELD_NUMBER; + hash = (53 * hash) + getParentModel().hashCode(); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; if (hasError()) { @@ -1662,6 +1802,10 @@ public Builder clear() { modelToUpload_ = null; modelToUploadBuilder_ = null; } + modelId_ = ""; + + parentModel_ = ""; + state_ = 0; if (errorBuilder_ == null) { @@ -1752,6 +1896,8 @@ public com.google.cloud.aiplatform.v1.TrainingPipeline buildPartial() { } else { result.modelToUpload_ = modelToUploadBuilder_.build(); } + result.modelId_ = modelId_; + result.parentModel_ = parentModel_; result.state_ = state_; if (errorBuilder_ == null) { result.error_ = error_; @@ -1859,6 +2005,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.TrainingPipeline other) if (other.hasModelToUpload()) { mergeModelToUpload(other.getModelToUpload()); } + if (!other.getModelId().isEmpty()) { + modelId_ = other.modelId_; + onChanged(); + } + if (!other.getParentModel().isEmpty()) { + parentModel_ = other.parentModel_; + onChanged(); + } if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -3249,6 +3403,238 @@ public com.google.cloud.aiplatform.v1.ModelOrBuilder getModelToUploadOrBuilder() return modelToUploadBuilder_; } + private java.lang.Object modelId_ = ""; + /** + * + * + *
+     * Optional. The ID to use for the uploaded Model, which will become the final
+     * component of the model resource name.
+     * This value may be up to 63 characters, and valid characters are
+     * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+     * 
+ * + * string model_id = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelId. + */ + public java.lang.String getModelId() { + java.lang.Object ref = modelId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The ID to use for the uploaded Model, which will become the final
+     * component of the model resource name.
+     * This value may be up to 63 characters, and valid characters are
+     * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+     * 
+ * + * string model_id = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelId. + */ + public com.google.protobuf.ByteString getModelIdBytes() { + java.lang.Object ref = modelId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The ID to use for the uploaded Model, which will become the final
+     * component of the model resource name.
+     * This value may be up to 63 characters, and valid characters are
+     * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+     * 
+ * + * string model_id = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The modelId to set. + * @return This builder for chaining. + */ + public Builder setModelId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + modelId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The ID to use for the uploaded Model, which will become the final
+     * component of the model resource name.
+     * This value may be up to 63 characters, and valid characters are
+     * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+     * 
+ * + * string model_id = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearModelId() { + + modelId_ = getDefaultInstance().getModelId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The ID to use for the uploaded Model, which will become the final
+     * component of the model resource name.
+     * This value may be up to 63 characters, and valid characters are
+     * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+     * 
+ * + * string model_id = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for modelId to set. + * @return This builder for chaining. + */ + public Builder setModelIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + modelId_ = value; + onChanged(); + return this; + } + + private java.lang.Object parentModel_ = ""; + /** + * + * + *
+     * Optional. When specify this field, the `model_to_upload` will not be uploaded as a
+     * new model, instead, it will become a new version of this `parent_model`.
+     * 
+ * + * string parent_model = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The parentModel. + */ + public java.lang.String getParentModel() { + java.lang.Object ref = parentModel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parentModel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. When specify this field, the `model_to_upload` will not be uploaded as a
+     * new model, instead, it will become a new version of this `parent_model`.
+     * 
+ * + * string parent_model = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for parentModel. + */ + public com.google.protobuf.ByteString getParentModelBytes() { + java.lang.Object ref = parentModel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parentModel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. When specify this field, the `model_to_upload` will not be uploaded as a
+     * new model, instead, it will become a new version of this `parent_model`.
+     * 
+ * + * string parent_model = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The parentModel to set. + * @return This builder for chaining. + */ + public Builder setParentModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parentModel_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. When specify this field, the `model_to_upload` will not be uploaded as a
+     * new model, instead, it will become a new version of this `parent_model`.
+     * 
+ * + * string parent_model = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearParentModel() { + + parentModel_ = getDefaultInstance().getParentModel(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. When specify this field, the `model_to_upload` will not be uploaded as a
+     * new model, instead, it will become a new version of this `parent_model`.
+     * 
+ * + * string parent_model = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for parentModel to set. + * @return This builder for chaining. + */ + public Builder setParentModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parentModel_ = value; + onChanged(); + return this; + } + private int state_ = 0; /** * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineName.java index 8167322bb963..55b73eab3491 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineOrBuilder.java index e692f7cdb72f..48b8e1ddc095 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineOrBuilder.java @@ -333,6 +333,64 @@ public interface TrainingPipelineOrBuilder */ com.google.cloud.aiplatform.v1.ModelOrBuilder getModelToUploadOrBuilder(); + /** + * + * + *
+   * Optional. The ID to use for the uploaded Model, which will become the final
+   * component of the model resource name.
+   * This value may be up to 63 characters, and valid characters are
+   * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+   * 
+ * + * string model_id = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelId. + */ + java.lang.String getModelId(); + /** + * + * + *
+   * Optional. The ID to use for the uploaded Model, which will become the final
+   * component of the model resource name.
+   * This value may be up to 63 characters, and valid characters are
+   * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+   * 
+ * + * string model_id = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelId. + */ + com.google.protobuf.ByteString getModelIdBytes(); + + /** + * + * + *
+   * Optional. When specify this field, the `model_to_upload` will not be uploaded as a
+   * new model, instead, it will become a new version of this `parent_model`.
+   * 
+ * + * string parent_model = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The parentModel. + */ + java.lang.String getParentModel(); + /** + * + * + *
+   * Optional. When specify this field, the `model_to_upload` will not be uploaded as a
+   * new model, instead, it will become a new version of this `parent_model`.
+   * 
+ * + * string parent_model = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for parentModel. + */ + com.google.protobuf.ByteString getParentModelBytes(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineProto.java index ff8420903543..6719b2a5032f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineProto.java @@ -78,7 +78,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "d/aiplatform/v1/pipeline_state.proto\032\034go" + "ogle/protobuf/struct.proto\032\037google/proto" + "buf/timestamp.proto\032\027google/rpc/status.p" - + "roto\"\334\007\n\020TrainingPipeline\022\021\n\004name\030\001 \001(\tB" + + "roto\"\216\010\n\020TrainingPipeline\022\021\n\004name\030\001 \001(\tB" + "\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022F\n\021input" + "_data_config\030\003 \001(\0132+.google.cloud.aiplat" + "form.v1.InputDataConfig\022%\n\030training_task" @@ -87,56 +87,57 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002\022;\n\026training_task_metadata\030\006 \001(\0132\026.goog" + "le.protobuf.ValueB\003\340A\003\022:\n\017model_to_uploa" + "d\030\007 \001(\0132!.google.cloud.aiplatform.v1.Mod" - + "el\022=\n\005state\030\t \001(\0162).google.cloud.aiplatf" - + "orm.v1.PipelineStateB\003\340A\003\022&\n\005error\030\n \001(\013" - + "2\022.google.rpc.StatusB\003\340A\003\0224\n\013create_time" - + "\030\013 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "3\n\nstart_time\030\014 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003\0221\n\010end_time\030\r \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\003\0224\n\013update_time\030\016" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022H\n" - + "\006labels\030\017 \003(\01328.google.cloud.aiplatform." - + "v1.TrainingPipeline.LabelsEntry\022C\n\017encry" - + "ption_spec\030\022 \001(\0132*.google.cloud.aiplatfo" - + "rm.v1.EncryptionSpec\032-\n\013LabelsEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:~\352A{\n*aiplat" - + "form.googleapis.com/TrainingPipeline\022Mpr" - + "ojects/{project}/locations/{location}/tr" - + "ainingPipelines/{training_pipeline}\"\364\004\n\017" - + "InputDataConfig\022C\n\016fraction_split\030\002 \001(\0132" - + ").google.cloud.aiplatform.v1.FractionSpl" - + "itH\000\022?\n\014filter_split\030\003 \001(\0132\'.google.clou" - + "d.aiplatform.v1.FilterSplitH\000\022G\n\020predefi" - + "ned_split\030\004 \001(\0132+.google.cloud.aiplatfor" - + "m.v1.PredefinedSplitH\000\022E\n\017timestamp_spli" - + "t\030\005 \001(\0132*.google.cloud.aiplatform.v1.Tim" - + "estampSplitH\000\022G\n\020stratified_split\030\014 \001(\0132" - + "+.google.cloud.aiplatform.v1.StratifiedS" - + "plitH\000\022E\n\017gcs_destination\030\010 \001(\0132*.google" - + ".cloud.aiplatform.v1.GcsDestinationH\001\022O\n" - + "\024bigquery_destination\030\n \001(\0132/.google.clo" - + "ud.aiplatform.v1.BigQueryDestinationH\001\022\027" - + "\n\ndataset_id\030\001 \001(\tB\003\340A\002\022\032\n\022annotations_f" - + "ilter\030\006 \001(\t\022\035\n\025annotation_schema_uri\030\t \001" - + "(\tB\007\n\005splitB\r\n\013destination\"^\n\rFractionSp" - + "lit\022\031\n\021training_fraction\030\001 \001(\001\022\033\n\023valida" - + "tion_fraction\030\002 \001(\001\022\025\n\rtest_fraction\030\003 \001" - + "(\001\"e\n\013FilterSplit\022\034\n\017training_filter\030\001 \001" - + "(\tB\003\340A\002\022\036\n\021validation_filter\030\002 \001(\tB\003\340A\002\022" - + "\030\n\013test_filter\030\003 \001(\tB\003\340A\002\"#\n\017PredefinedS" - + "plit\022\020\n\003key\030\001 \001(\tB\003\340A\002\"q\n\016TimestampSplit" - + "\022\031\n\021training_fraction\030\001 \001(\001\022\033\n\023validatio" - + "n_fraction\030\002 \001(\001\022\025\n\rtest_fraction\030\003 \001(\001\022" - + "\020\n\003key\030\004 \001(\tB\003\340A\002\"r\n\017StratifiedSplit\022\031\n\021" - + "training_fraction\030\001 \001(\001\022\033\n\023validation_fr" - + "action\030\002 \001(\001\022\025\n\rtest_fraction\030\003 \001(\001\022\020\n\003k" - + "ey\030\004 \001(\tB\003\340A\002B\331\001\n\036com.google.cloud.aipla" - + "tform.v1B\025TrainingPipelineProtoP\001ZDgoogl" - + "e.golang.org/genproto/googleapis/cloud/a" - + "iplatform/v1;aiplatform\252\002\032Google.Cloud.A" - + "IPlatform.V1\312\002\032Google\\Cloud\\AIPlatform\\V" - + "1\352\002\035Google::Cloud::AIPlatform::V1b\006proto" - + "3" + + "el\022\025\n\010model_id\030\026 \001(\tB\003\340A\001\022\031\n\014parent_mode" + + "l\030\025 \001(\tB\003\340A\001\022=\n\005state\030\t \001(\0162).google.clo" + + "ud.aiplatform.v1.PipelineStateB\003\340A\003\022&\n\005e" + + "rror\030\n \001(\0132\022.google.rpc.StatusB\003\340A\003\0224\n\013c" + + "reate_time\030\013 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\0223\n\nstart_time\030\014 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\0221\n\010end_time\030\r \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upd" + + "ate_time\030\016 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\022H\n\006labels\030\017 \003(\01328.google.cloud.a" + + "iplatform.v1.TrainingPipeline.LabelsEntr" + + "y\022C\n\017encryption_spec\030\022 \001(\0132*.google.clou" + + "d.aiplatform.v1.EncryptionSpec\032-\n\013Labels" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:~\352" + + "A{\n*aiplatform.googleapis.com/TrainingPi" + + "peline\022Mprojects/{project}/locations/{lo" + + "cation}/trainingPipelines/{training_pipe" + + "line}\"\364\004\n\017InputDataConfig\022C\n\016fraction_sp" + + "lit\030\002 \001(\0132).google.cloud.aiplatform.v1.F" + + "ractionSplitH\000\022?\n\014filter_split\030\003 \001(\0132\'.g" + + "oogle.cloud.aiplatform.v1.FilterSplitH\000\022" + + "G\n\020predefined_split\030\004 \001(\0132+.google.cloud" + + ".aiplatform.v1.PredefinedSplitH\000\022E\n\017time" + + "stamp_split\030\005 \001(\0132*.google.cloud.aiplatf" + + "orm.v1.TimestampSplitH\000\022G\n\020stratified_sp" + + "lit\030\014 \001(\0132+.google.cloud.aiplatform.v1.S" + + "tratifiedSplitH\000\022E\n\017gcs_destination\030\010 \001(" + + "\0132*.google.cloud.aiplatform.v1.GcsDestin" + + "ationH\001\022O\n\024bigquery_destination\030\n \001(\0132/." + + "google.cloud.aiplatform.v1.BigQueryDesti" + + "nationH\001\022\027\n\ndataset_id\030\001 \001(\tB\003\340A\002\022\032\n\022ann" + + "otations_filter\030\006 \001(\t\022\035\n\025annotation_sche" + + "ma_uri\030\t \001(\tB\007\n\005splitB\r\n\013destination\"^\n\r" + + "FractionSplit\022\031\n\021training_fraction\030\001 \001(\001" + + "\022\033\n\023validation_fraction\030\002 \001(\001\022\025\n\rtest_fr" + + "action\030\003 \001(\001\"e\n\013FilterSplit\022\034\n\017training_" + + "filter\030\001 \001(\tB\003\340A\002\022\036\n\021validation_filter\030\002" + + " \001(\tB\003\340A\002\022\030\n\013test_filter\030\003 \001(\tB\003\340A\002\"#\n\017P" + + "redefinedSplit\022\020\n\003key\030\001 \001(\tB\003\340A\002\"q\n\016Time" + + "stampSplit\022\031\n\021training_fraction\030\001 \001(\001\022\033\n" + + "\023validation_fraction\030\002 \001(\001\022\025\n\rtest_fract" + + "ion\030\003 \001(\001\022\020\n\003key\030\004 \001(\tB\003\340A\002\"r\n\017Stratifie" + + "dSplit\022\031\n\021training_fraction\030\001 \001(\001\022\033\n\023val" + + "idation_fraction\030\002 \001(\001\022\025\n\rtest_fraction\030" + + "\003 \001(\001\022\020\n\003key\030\004 \001(\tB\003\340A\002B\331\001\n\036com.google.c" + + "loud.aiplatform.v1B\025TrainingPipelineProt" + + "oP\001ZDgoogle.golang.org/genproto/googleap" + + "is/cloud/aiplatform/v1;aiplatform\252\002\032Goog" + + "le.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AI" + + "Platform\\V1\352\002\035Google::Cloud::AIPlatform:" + + ":V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -165,6 +166,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TrainingTaskInputs", "TrainingTaskMetadata", "ModelToUpload", + "ModelId", + "ParentModel", "State", "Error", "CreateTime", diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrialName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrialName.java index 81fd0d8c4274..44995611003c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrialName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrialName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeaturestoreRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeaturestoreRequest.java index 306312c366e7..81de2dbb011b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeaturestoreRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeaturestoreRequest.java @@ -214,6 +214,7 @@ public com.google.cloud.aiplatform.v1.FeaturestoreOrBuilder getFeaturestoreOrBui * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * * * .google.protobuf.FieldMask update_mask = 2; @@ -238,6 +239,7 @@ public boolean hasUpdateMask() { * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * * * .google.protobuf.FieldMask update_mask = 2; @@ -262,6 +264,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * * * .google.protobuf.FieldMask update_mask = 2; @@ -881,6 +884,7 @@ public com.google.cloud.aiplatform.v1.FeaturestoreOrBuilder getFeaturestoreOrBui * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * * * .google.protobuf.FieldMask update_mask = 2; @@ -904,6 +908,7 @@ public boolean hasUpdateMask() { * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * * * .google.protobuf.FieldMask update_mask = 2; @@ -933,6 +938,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * * * .google.protobuf.FieldMask update_mask = 2; @@ -964,6 +970,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * * * .google.protobuf.FieldMask update_mask = 2; @@ -992,6 +999,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1025,6 +1033,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1054,6 +1063,7 @@ public Builder clearUpdateMask() { * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1077,6 +1087,7 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1104,6 +1115,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * * * .google.protobuf.FieldMask update_mask = 2; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeaturestoreRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeaturestoreRequestOrBuilder.java index 01de374906da..f2f3692f9a59 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeaturestoreRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateFeaturestoreRequestOrBuilder.java @@ -87,6 +87,7 @@ public interface UpdateFeaturestoreRequestOrBuilder * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * * * .google.protobuf.FieldMask update_mask = 2; @@ -108,6 +109,7 @@ public interface UpdateFeaturestoreRequestOrBuilder * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * * * .google.protobuf.FieldMask update_mask = 2; @@ -129,6 +131,7 @@ public interface UpdateFeaturestoreRequestOrBuilder * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * * * .google.protobuf.FieldMask update_mask = 2; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelRequest.java index 9889de53a27e..cdaf4a91044b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelRequest.java @@ -39,6 +39,8 @@ private UploadModelRequest(com.google.protobuf.GeneratedMessageV3.Builder bui private UploadModelRequest() { parent_ = ""; + parentModel_ = ""; + modelId_ = ""; } @java.lang.Override @@ -91,6 +93,20 @@ private UploadModelRequest( model_ = subBuilder.buildPartial(); } + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + parentModel_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + modelId_ = s; break; } default: @@ -184,6 +200,112 @@ public com.google.protobuf.ByteString getParentBytes() { } } + public static final int PARENT_MODEL_FIELD_NUMBER = 4; + private volatile java.lang.Object parentModel_; + /** + * + * + *
+   * Optional. The resource name of the model into which to upload the version. Only
+   * specify this field when uploading a new version.
+   * 
+ * + * string parent_model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The parentModel. + */ + @java.lang.Override + public java.lang.String getParentModel() { + java.lang.Object ref = parentModel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parentModel_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The resource name of the model into which to upload the version. Only
+   * specify this field when uploading a new version.
+   * 
+ * + * string parent_model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for parentModel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentModelBytes() { + java.lang.Object ref = parentModel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parentModel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODEL_ID_FIELD_NUMBER = 5; + private volatile java.lang.Object modelId_; + /** + * + * + *
+   * Optional. The ID to use for the uploaded Model, which will become the final
+   * component of the model resource name.
+   * This value may be up to 63 characters, and valid characters are
+   * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+   * 
+ * + * string model_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelId. + */ + @java.lang.Override + public java.lang.String getModelId() { + java.lang.Object ref = modelId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The ID to use for the uploaded Model, which will become the final
+   * component of the model resource name.
+   * This value may be up to 63 characters, and valid characters are
+   * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+   * 
+ * + * string model_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelIdBytes() { + java.lang.Object ref = modelId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int MODEL_FIELD_NUMBER = 2; private com.google.cloud.aiplatform.v1.Model model_; /** @@ -253,6 +375,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (model_ != null) { output.writeMessage(2, getModel()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentModel_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parentModel_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, modelId_); + } unknownFields.writeTo(output); } @@ -268,6 +396,12 @@ public int getSerializedSize() { if (model_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getModel()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentModel_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parentModel_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, modelId_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -285,6 +419,8 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.aiplatform.v1.UploadModelRequest) obj; if (!getParent().equals(other.getParent())) return false; + if (!getParentModel().equals(other.getParentModel())) return false; + if (!getModelId().equals(other.getModelId())) return false; if (hasModel() != other.hasModel()) return false; if (hasModel()) { if (!getModel().equals(other.getModel())) return false; @@ -302,6 +438,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PARENT_MODEL_FIELD_NUMBER; + hash = (53 * hash) + getParentModel().hashCode(); + hash = (37 * hash) + MODEL_ID_FIELD_NUMBER; + hash = (53 * hash) + getModelId().hashCode(); if (hasModel()) { hash = (37 * hash) + MODEL_FIELD_NUMBER; hash = (53 * hash) + getModel().hashCode(); @@ -453,6 +593,10 @@ public Builder clear() { super.clear(); parent_ = ""; + parentModel_ = ""; + + modelId_ = ""; + if (modelBuilder_ == null) { model_ = null; } else { @@ -487,6 +631,8 @@ public com.google.cloud.aiplatform.v1.UploadModelRequest buildPartial() { com.google.cloud.aiplatform.v1.UploadModelRequest result = new com.google.cloud.aiplatform.v1.UploadModelRequest(this); result.parent_ = parent_; + result.parentModel_ = parentModel_; + result.modelId_ = modelId_; if (modelBuilder_ == null) { result.model_ = model_; } else { @@ -546,6 +692,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.UploadModelRequest other parent_ = other.parent_; onChanged(); } + if (!other.getParentModel().isEmpty()) { + parentModel_ = other.parentModel_; + onChanged(); + } + if (!other.getModelId().isEmpty()) { + modelId_ = other.modelId_; + onChanged(); + } if (other.hasModel()) { mergeModel(other.getModel()); } @@ -700,6 +854,238 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object parentModel_ = ""; + /** + * + * + *
+     * Optional. The resource name of the model into which to upload the version. Only
+     * specify this field when uploading a new version.
+     * 
+ * + * string parent_model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The parentModel. + */ + public java.lang.String getParentModel() { + java.lang.Object ref = parentModel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parentModel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The resource name of the model into which to upload the version. Only
+     * specify this field when uploading a new version.
+     * 
+ * + * string parent_model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for parentModel. + */ + public com.google.protobuf.ByteString getParentModelBytes() { + java.lang.Object ref = parentModel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parentModel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The resource name of the model into which to upload the version. Only
+     * specify this field when uploading a new version.
+     * 
+ * + * string parent_model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The parentModel to set. + * @return This builder for chaining. + */ + public Builder setParentModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parentModel_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The resource name of the model into which to upload the version. Only
+     * specify this field when uploading a new version.
+     * 
+ * + * string parent_model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearParentModel() { + + parentModel_ = getDefaultInstance().getParentModel(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The resource name of the model into which to upload the version. Only
+     * specify this field when uploading a new version.
+     * 
+ * + * string parent_model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for parentModel to set. + * @return This builder for chaining. + */ + public Builder setParentModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parentModel_ = value; + onChanged(); + return this; + } + + private java.lang.Object modelId_ = ""; + /** + * + * + *
+     * Optional. The ID to use for the uploaded Model, which will become the final
+     * component of the model resource name.
+     * This value may be up to 63 characters, and valid characters are
+     * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+     * 
+ * + * string model_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelId. + */ + public java.lang.String getModelId() { + java.lang.Object ref = modelId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The ID to use for the uploaded Model, which will become the final
+     * component of the model resource name.
+     * This value may be up to 63 characters, and valid characters are
+     * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+     * 
+ * + * string model_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelId. + */ + public com.google.protobuf.ByteString getModelIdBytes() { + java.lang.Object ref = modelId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The ID to use for the uploaded Model, which will become the final
+     * component of the model resource name.
+     * This value may be up to 63 characters, and valid characters are
+     * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+     * 
+ * + * string model_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The modelId to set. + * @return This builder for chaining. + */ + public Builder setModelId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + modelId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The ID to use for the uploaded Model, which will become the final
+     * component of the model resource name.
+     * This value may be up to 63 characters, and valid characters are
+     * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+     * 
+ * + * string model_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearModelId() { + + modelId_ = getDefaultInstance().getModelId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The ID to use for the uploaded Model, which will become the final
+     * component of the model resource name.
+     * This value may be up to 63 characters, and valid characters are
+     * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+     * 
+ * + * string model_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for modelId to set. + * @return This builder for chaining. + */ + public Builder setModelIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + modelId_ = value; + onChanged(); + return this; + } + private com.google.cloud.aiplatform.v1.Model model_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.Model, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelRequestOrBuilder.java index 52778884c24e..8d56f7c9dc3f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelRequestOrBuilder.java @@ -54,6 +54,64 @@ public interface UploadModelRequestOrBuilder */ com.google.protobuf.ByteString getParentBytes(); + /** + * + * + *
+   * Optional. The resource name of the model into which to upload the version. Only
+   * specify this field when uploading a new version.
+   * 
+ * + * string parent_model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The parentModel. + */ + java.lang.String getParentModel(); + /** + * + * + *
+   * Optional. The resource name of the model into which to upload the version. Only
+   * specify this field when uploading a new version.
+   * 
+ * + * string parent_model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for parentModel. + */ + com.google.protobuf.ByteString getParentModelBytes(); + + /** + * + * + *
+   * Optional. The ID to use for the uploaded Model, which will become the final
+   * component of the model resource name.
+   * This value may be up to 63 characters, and valid characters are
+   * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+   * 
+ * + * string model_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelId. + */ + java.lang.String getModelId(); + /** + * + * + *
+   * Optional. The ID to use for the uploaded Model, which will become the final
+   * component of the model resource name.
+   * This value may be up to 63 characters, and valid characters are
+   * `[a-z0-9_-]`. The first character cannot be a number or hyphen.
+   * 
+ * + * string model_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelId. + */ + com.google.protobuf.ByteString getModelIdBytes(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelResponse.java index 5579c3ffa57b..64695e4c3516 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelResponse.java @@ -39,6 +39,7 @@ private UploadModelResponse(com.google.protobuf.GeneratedMessageV3.Builder bu private UploadModelResponse() { model_ = ""; + modelVersionId_ = ""; } @java.lang.Override @@ -77,6 +78,13 @@ private UploadModelResponse( model_ = s; break; } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + modelVersionId_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -164,6 +172,55 @@ public com.google.protobuf.ByteString getModelBytes() { } } + public static final int MODEL_VERSION_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object modelVersionId_; + /** + * + * + *
+   * Output only. The version ID of the model that is uploaded.
+   * 
+ * + * string model_version_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The modelVersionId. + */ + @java.lang.Override + public java.lang.String getModelVersionId() { + java.lang.Object ref = modelVersionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelVersionId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The version ID of the model that is uploaded.
+   * 
+ * + * string model_version_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for modelVersionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelVersionIdBytes() { + java.lang.Object ref = modelVersionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelVersionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -181,6 +238,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, model_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, modelVersionId_); + } unknownFields.writeTo(output); } @@ -193,6 +253,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, model_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, modelVersionId_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -210,6 +273,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.aiplatform.v1.UploadModelResponse) obj; if (!getModel().equals(other.getModel())) return false; + if (!getModelVersionId().equals(other.getModelVersionId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -223,6 +287,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MODEL_FIELD_NUMBER; hash = (53 * hash) + getModel().hashCode(); + hash = (37 * hash) + MODEL_VERSION_ID_FIELD_NUMBER; + hash = (53 * hash) + getModelVersionId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -370,6 +436,8 @@ public Builder clear() { super.clear(); model_ = ""; + modelVersionId_ = ""; + return this; } @@ -398,6 +466,7 @@ public com.google.cloud.aiplatform.v1.UploadModelResponse buildPartial() { com.google.cloud.aiplatform.v1.UploadModelResponse result = new com.google.cloud.aiplatform.v1.UploadModelResponse(this); result.model_ = model_; + result.modelVersionId_ = modelVersionId_; onBuilt(); return result; } @@ -452,6 +521,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.UploadModelResponse othe model_ = other.model_; onChanged(); } + if (!other.getModelVersionId().isEmpty()) { + modelVersionId_ = other.modelVersionId_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -593,6 +666,112 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object modelVersionId_ = ""; + /** + * + * + *
+     * Output only. The version ID of the model that is uploaded.
+     * 
+ * + * string model_version_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The modelVersionId. + */ + public java.lang.String getModelVersionId() { + java.lang.Object ref = modelVersionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelVersionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The version ID of the model that is uploaded.
+     * 
+ * + * string model_version_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for modelVersionId. + */ + public com.google.protobuf.ByteString getModelVersionIdBytes() { + java.lang.Object ref = modelVersionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelVersionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The version ID of the model that is uploaded.
+     * 
+ * + * string model_version_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The modelVersionId to set. + * @return This builder for chaining. + */ + public Builder setModelVersionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + modelVersionId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The version ID of the model that is uploaded.
+     * 
+ * + * string model_version_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearModelVersionId() { + + modelVersionId_ = getDefaultInstance().getModelVersionId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The version ID of the model that is uploaded.
+     * 
+ * + * string model_version_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for modelVersionId to set. + * @return This builder for chaining. + */ + public Builder setModelVersionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + modelVersionId_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelResponseOrBuilder.java index 9f76d41ff044..6f70e1d38dfc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelResponseOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelResponseOrBuilder.java @@ -49,4 +49,29 @@ public interface UploadModelResponseOrBuilder * @return The bytes for model. */ com.google.protobuf.ByteString getModelBytes(); + + /** + * + * + *
+   * Output only. The version ID of the model that is uploaded.
+   * 
+ * + * string model_version_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The modelVersionId. + */ + java.lang.String getModelVersionId(); + /** + * + * + *
+   * Output only. The version ID of the model that is uploaded.
+   * 
+ * + * string model_version_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for modelVersionId. + */ + com.google.protobuf.ByteString getModelVersionIdBytes(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/batch_prediction_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/batch_prediction_job.proto index fc92ff0bc34f..528ef5becbb5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/batch_prediction_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/batch_prediction_job.proto @@ -159,6 +159,9 @@ message BatchPredictionJob { // Starting this job has no impact on any existing deployments of the Model // and their resources. // Exactly one of model and unmanaged_container_model must be set. + // + // The model resource name may contain version id or version alias to specify + // the version, if no version is specified, the default version will be used. string model = 3 [(google.api.resource_reference) = { type: "aiplatform.googleapis.com/Model" }]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/completion_stats.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/completion_stats.proto index 16310ef835b6..a1d7b3238b7d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/completion_stats.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/completion_stats.proto @@ -41,4 +41,8 @@ message CompletionStats { // Set to -1 if the number is unknown (for example, the operation failed // before the total entity number could be collected). int64 incomplete_count = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of the successful forecast points that are generated by the + // forecasting model. This is ONLY used by the forecasting batch prediction. + int64 successful_forecast_point_count = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto index 453cc89a9357..e252817732f6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto @@ -154,8 +154,11 @@ message DeployedModel { // This value should be 1-10 characters, and valid characters are /[0-9]/. string id = 1 [(google.api.field_behavior) = IMMUTABLE]; - // Required. The name of the Model that this is the deployment of. Note that the Model - // may be in a different location than the DeployedModel's Endpoint. + // Required. The resource name of the Model that this is the deployment of. Note that + // the Model may be in a different location than the DeployedModel's Endpoint. + // + // The resource name may contain version id or version alias to specify the + // version, if no version is specified, the default version will be deployed. string model = 2 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/explanation.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/explanation.proto index 55fd8394d174..e0a418388031 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/explanation.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/explanation.proto @@ -46,6 +46,12 @@ message Explanation { // the attributions are stored by [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index] in the same // order as they appear in the output_indices. repeated Attribution attributions = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of the nearest neighbors for example-based explanations. + // + // For models deployed with the examples explanations feature enabled, the + // attributions field is empty and instead the neighbors field is populated. + repeated Neighbor neighbors = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Aggregated explanation metrics for a Model over a set of instances. @@ -162,6 +168,15 @@ message Attribution { string output_name = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Neighbors for example-based explanations. +message Neighbor { + // Output only. The neighbor id. + string neighbor_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The neighbor distance. + double neighbor_distance = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Specification of Model explanation. message ExplanationSpec { // Required. Parameters that configure explaining of the Model's predictions. @@ -375,6 +390,9 @@ message ExplanationSpecOverride { // The metadata to be overridden. If not specified, no metadata is overridden. ExplanationMetadataOverride metadata = 2; + + // The example-based explanations parameter overrides. + ExamplesOverride examples_override = 3; } // The [ExplanationMetadata][google.cloud.aiplatform.v1.ExplanationMetadata] entries that can be overridden at @@ -399,3 +417,45 @@ message ExplanationMetadataOverride { // overridden. map inputs = 1 [(google.api.field_behavior) = REQUIRED]; } + +// Overrides for example-based explanations. +message ExamplesOverride { + // Data format enum. + enum DataFormat { + // Unspecified format. Must not be used. + DATA_FORMAT_UNSPECIFIED = 0; + + // Provided data is a set of model inputs. + INSTANCES = 1; + + // Provided data is a set of embeddings. + EMBEDDINGS = 2; + } + + // The number of neighbors to return. + int32 neighbor_count = 1; + + // The number of neighbors to return that have the same crowding tag. + int32 crowding_count = 2; + + // Restrict the resulting nearest neighbors to respect these constraints. + repeated ExamplesRestrictionsNamespace restrictions = 3; + + // If true, return the embeddings instead of neighbors. + bool return_embeddings = 4; + + // The format of the data being provided with each call. + DataFormat data_format = 5; +} + +// Restrictions namespace for example-based explanations overrides. +message ExamplesRestrictionsNamespace { + // The namespace name. + string namespace_name = 1; + + // The list of allowed tags. + repeated string allow = 2; + + // The list of deny tags. + repeated string deny = 3; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/explanation_metadata.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/explanation_metadata.proto index f0da95fe9759..5ee0c1ce33e6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/explanation_metadata.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/explanation_metadata.proto @@ -392,4 +392,7 @@ message ExplanationMetadata { // than the one given on input. The output URI will point to a location where // the user only has a read access. string feature_attributions_schema_uri = 3; + + // Name of the source to generate embeddings for example based explanations. + string latent_space_source = 5; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore.proto index 535ca6b9404c..4c8a72f59f89 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore.proto @@ -41,11 +41,29 @@ message Featurestore { // OnlineServingConfig specifies the details for provisioning online serving // resources. message OnlineServingConfig { + // Online serving scaling configuration. If min_node_count and + // max_node_count are set to the same value, the cluster will be configured + // with the fixed number of node (no auto-scaling). + message Scaling { + // 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]; + + // The maximum number of nodes to scale up to. Must be greater than + // min_node_count, and less than or equal to 10 times of 'min_node_count'. + int32 max_node_count = 2; + } + // The number of nodes for the online store. The number of nodes doesn't // scale automatically, but you can manually update the number of // nodes. If set to 0, the featurestore will not have an // online store and cannot be used for online serving. int32 fixed_node_count = 2; + + // Online serving scaling configuration. + // Only one of `fixed_node_count` and `scaling` can be set. Setting one will + // reset the other. + Scaling scaling = 4; } // Possible states a featurestore can have. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore_online_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore_online_service.proto index db1dc7755646..915c4c3fb978 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore_online_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore_online_service.proto @@ -171,7 +171,6 @@ message StreamingReadFeatureValuesRequest { } // Value for a feature. -// NEXT ID: 15 message FeatureValue { // Metadata of feature value. message Metadata { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore_service.proto index 706ee62dd847..9adfec3fe844 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore_service.proto @@ -418,6 +418,7 @@ message UpdateFeaturestoreRequest { // // * `labels` // * `online_serving_config.fixed_node_count` + // * `online_serving_config.scaling` google.protobuf.FieldMask update_mask = 2; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto index 54002126e24f..e469d45eb107 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto @@ -34,6 +34,6 @@ message ManualBatchTuningParameters { // speeds up the batch operation's execution, but too high value will result // in a whole batch not fitting in a machine's memory, and the whole // operation will fail. - // The default value is 4. + // The default value is 64. int32 batch_size = 1 [(google.api.field_behavior) = IMMUTABLE]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model.proto index 32e617ddb175..ed0a002515e7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model.proto @@ -103,6 +103,32 @@ message Model { // The resource name of the Model. string name = 1; + // Output only. Immutable. The version ID of the model. + // A new version is committed when a new model version is uploaded or + // trained under an existing model id. It is an auto-incrementing decimal + // number in string representation. + string version_id = 28 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // User provided version aliases so that a model version can be referenced via + // alias (i.e. + // projects/{project}/locations/{location}/models/{model_id}@{version_alias} + // instead of auto-generated version id (i.e. + // projects/{project}/locations/{location}/models/{model_id}@{version_id}). + // The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from + // version_id. A default version alias will be created for the first version + // of the model, and there must be exactly one default version alias for a + // model. + repeated string version_aliases = 29; + + // Output only. Timestamp when this version was created. + google.protobuf.Timestamp version_create_time = 31 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this version was most recently updated. + google.protobuf.Timestamp version_update_time = 32 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Required. The display name of the Model. // The name can be up to 128 characters long and can be consist of any UTF-8 // characters. @@ -111,6 +137,9 @@ message Model { // The description of the Model. string description = 3; + // The description of this version. + string version_description = 30; + // The schemata that describe formats of the Model's predictions and // explanations as given and returned via // [PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict] and [PredictionService.Explain][google.cloud.aiplatform.v1.PredictionService.Explain]. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto index 822e59263715..87252239df43 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto @@ -266,6 +266,16 @@ message ModelDeploymentMonitoringScheduleConfig { // Required. The model monitoring job scheduling interval. It will be rounded up to next // full hour. This defines how often the monitoring jobs are triggered. google.protobuf.Duration monitor_interval = 1 [(google.api.field_behavior) = REQUIRED]; + + // The time window of the prediction data being included in each prediction + // dataset. This window specifies how long the data should be collected from + // historical model results for each run. If not set, + // [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used. + // e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the + // monitor_window is set to be 3600, then data from 2022-01-08 13:30:00 + // to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the + // monitoring statistics. + google.protobuf.Duration monitor_window = 2; } // Statistics and anomalies generated by Model Monitoring. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_evaluation.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_evaluation.proto index 8d86509b87bc..5fc333e66937 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_evaluation.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_evaluation.proto @@ -54,6 +54,9 @@ message ModelEvaluation { // Output only. The resource name of the ModelEvaluation. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // The display name of the ModelEvaluation. + string display_name = 10; + // Points to a YAML file stored on Google Cloud Storage describing the // [metrics][google.cloud.aiplatform.v1.ModelEvaluation.metrics] of this ModelEvaluation. The schema is // defined as an OpenAPI 3.0.2 [Schema @@ -104,4 +107,10 @@ message ModelEvaluation { // Describes the values of [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] that are used for explaining // the predicted values on the evaluated data. repeated ModelEvaluationExplanationSpec explanation_specs = 9; + + // The metadata of the ModelEvaluation. + // For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a + // structured value with keys of "pipeline_job_id", "evaluation_dataset_type", + // "evaluation_dataset_path". + google.protobuf.Value metadata = 11; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_monitoring.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_monitoring.proto index 0daff79d7069..8c806403cc3d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_monitoring.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_monitoring.proto @@ -55,6 +55,8 @@ message ModelMonitoringObjectiveConfig { // // "csv" // The source file is a CSV file. + // "jsonl" + // The source file is a JSONL file. string data_format = 2; // The target field name the model is to predict. @@ -80,6 +82,11 @@ message ModelMonitoringObjectiveConfig { // against attribution score distance between the training and prediction // feature. map attribution_score_skew_thresholds = 2; + + // Skew anomaly detection threshold used by all features. + // When the per-feature thresholds are not set, this field can be used to + // specify a threshold for all features. + ThresholdConfig default_skew_threshold = 6; } // The config for Prediction data drift detection. @@ -93,6 +100,11 @@ message ModelMonitoringObjectiveConfig { // Key is the feature name and value is the threshold. The threshold here is // against attribution score distance between different time windows. map attribution_score_drift_thresholds = 2; + + // Drift anomaly detection threshold used by all features. + // When the per-feature thresholds are not set, this field can be used to + // specify a threshold for all features. + ThresholdConfig default_drift_threshold = 5; } // The config for integrating with Vertex Explainable AI. Only applicable if diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto index 726d3ec2ed68..4c4641b1d63c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto @@ -70,6 +70,14 @@ service ModelService { option (google.api.method_signature) = "parent"; } + // Lists versions of the specified model. + rpc ListModelVersions(ListModelVersionsRequest) returns (ListModelVersionsResponse) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/models/*}:listVersions" + }; + option (google.api.method_signature) = "name"; + } + // Updates a Model. rpc UpdateModel(UpdateModelRequest) returns (Model) { option (google.api.http) = { @@ -95,6 +103,31 @@ service ModelService { }; } + // Deletes a Model version. + // + // Model version can only be deleted if there are no [DeployedModels][] + // created from it. Deleting the only version in the Model is not allowed. Use + // [DeleteModel][google.cloud.aiplatform.v1.ModelService.DeleteModel] for deleting the Model instead. + rpc DeleteModelVersion(DeleteModelVersionRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/models/*}:deleteVersion" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Merges a set of aliases for a Model version. + rpc MergeVersionAliases(MergeVersionAliasesRequest) returns (Model) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/models/*}:mergeVersionAliases" + body: "*" + }; + option (google.api.method_signature) = "name,version_aliases"; + } + // Exports a trained, exportable Model to a location specified by the // user. A Model is considered to be exportable if it has at least one // [supported export format][google.cloud.aiplatform.v1.Model.supported_export_formats]. @@ -163,6 +196,17 @@ message UploadModelRequest { } ]; + // Optional. The resource name of the model into which to upload the version. Only + // specify this field when uploading a new version. + string parent_model = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The ID to use for the uploaded Model, which will become the final + // component of the model resource name. + // + // This value may be up to 63 characters, and valid characters are + // `[a-z0-9_-]`. The first character cannot be a number or hyphen. + string model_id = 5 [(google.api.field_behavior) = OPTIONAL]; + // Required. The Model to create. Model model = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -180,12 +224,25 @@ message UploadModelResponse { string model = 1 [(google.api.resource_reference) = { type: "aiplatform.googleapis.com/Model" }]; + + // Output only. The version ID of the model that is uploaded. + string model_version_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Request message for [ModelService.GetModel][google.cloud.aiplatform.v1.ModelService.GetModel]. message GetModelRequest { // Required. The name of the Model resource. // Format: `projects/{project}/locations/{location}/models/{model}` + // + // In order to retrieve a specific version of the model, also provide + // the version ID or version alias. + // Example: `projects/{project}/locations/{location}/models/{model}@2` + // or + // `projects/{project}/locations/{location}/models/{model}@golden` + // If no version ID or alias is specified, the "default" version will be + // returned. The "default" version alias is created for the first version of + // the model, and can be moved to other versions later on. There will be + // exactly one default version. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -255,6 +312,53 @@ message ListModelsResponse { string next_page_token = 2; } +// Request message for [ModelService.ListModelVersions][google.cloud.aiplatform.v1.ModelService.ListModelVersions]. +message ListModelVersionsRequest { + // Required. The name of the model to list versions for. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; + + // The standard list page size. + int32 page_size = 2; + + // The standard list page token. + // Typically obtained via + // [ListModelVersionsResponse.next_page_token][google.cloud.aiplatform.v1.ListModelVersionsResponse.next_page_token] of the previous + // [ModelService.ListModelversions][] call. + string page_token = 3; + + // An expression for filtering the results of the request. For field names + // both snake_case and camelCase are supported. + // + // * `labels` supports general map functions that is: + // * `labels.key=value` - key:value equality + // * `labels.key:* or labels:key - key existence + // * A key including a space must be quoted. `labels."a key"`. + // + // Some examples: + // * `labels.myKey="myValue"` + string filter = 4; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 5; +} + +// Response message for [ModelService.ListModelVersions][google.cloud.aiplatform.v1.ModelService.ListModelVersions] +message ListModelVersionsResponse { + // List of Model versions in the requested page. + // In the returned Model name field, version ID instead of regvision tag will + // be included. + repeated Model models = 1; + + // A token to retrieve the next page of results. + // Pass to [ListModelVersionsRequest.page_token][google.cloud.aiplatform.v1.ListModelVersionsRequest.page_token] to obtain that page. + string next_page_token = 2; +} + // Request message for [ModelService.UpdateModel][google.cloud.aiplatform.v1.ModelService.UpdateModel]. message UpdateModelRequest { // Required. The Model which replaces the resource on the server. @@ -294,6 +398,48 @@ message DeleteModelRequest { ]; } +// Request message for [ModelService.DeleteModelVersion][google.cloud.aiplatform.v1.ModelService.DeleteModelVersion]. +message DeleteModelVersionRequest { + // Required. The name of the model version to be deleted, with a version ID explicitly + // included. + // + // Example: `projects/{project}/locations/{location}/models/{model}@1234` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; +} + +// Request message for [ModelService.MergeVersionAliases][google.cloud.aiplatform.v1.ModelService.MergeVersionAliases]. +message MergeVersionAliasesRequest { + // Required. The name of the model version to merge aliases, with a version ID + // explicitly included. + // + // Example: `projects/{project}/locations/{location}/models/{model}@1234` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; + + // Required. The set of version aliases to merge. + // The alias should be at most 128 characters, and match + // `[a-z][a-z0-9-]{0,126}[a-z-0-9]`. + // Add the `-` prefix to an alias means removing that alias from the version. + // `-` is NOT counted in the 128 characters. Example: `-golden` means removing + // the `golden` alias from the version. + // + // There is NO ordering in aliases, which means + // 1) The aliases returned from GetModel API might not have the exactly same + // order from this MergeVersionAliases API. 2) Adding and deleting the same + // alias in the request is not recommended, and the 2 operations will be + // cancelled out. + repeated string version_aliases = 2 [(google.api.field_behavior) = REQUIRED]; +} + // Request message for [ModelService.ExportModel][google.cloud.aiplatform.v1.ModelService.ExportModel]. message ExportModelRequest { // Output configuration for the Model export. @@ -322,6 +468,8 @@ message ExportModelRequest { } // Required. The resource name of the Model to export. + // The resource name may contain version id or version alias to specify the + // version, if no version is specified, the default version will be exported. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_failure_policy.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_failure_policy.proto new file mode 100644 index 000000000000..f82b1befbede --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_failure_policy.proto @@ -0,0 +1,44 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "PipelineFailurePolicyProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// Reperesents the failure policy of a pipeline. Currently, the default of a +// pipeline is that the pipeline will continue to run until no more tasks can be +// executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW. However, if a +// pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it will stop scheduling +// any new tasks when a task has failed. Any scheduled tasks will continue to +// completion. +enum PipelineFailurePolicy { + // Default value, and follows fail slow behavior. + PIPELINE_FAILURE_POLICY_UNSPECIFIED = 0; + + // Indicates that the pipeline should continue to run until all possible + // tasks have been scheduled and completed. + PIPELINE_FAILURE_POLICY_FAIL_SLOW = 1; + + // Indicates that the pipeline should stop scheduling new tasks after a task + // has failed. + PIPELINE_FAILURE_POLICY_FAIL_FAST = 2; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_job.proto index 21f9292641af..eb12aabfef13 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_job.proto @@ -22,6 +22,7 @@ import "google/cloud/aiplatform/v1/artifact.proto"; import "google/cloud/aiplatform/v1/context.proto"; import "google/cloud/aiplatform/v1/encryption_spec.proto"; import "google/cloud/aiplatform/v1/execution.proto"; +import "google/cloud/aiplatform/v1/pipeline_failure_policy.proto"; import "google/cloud/aiplatform/v1/pipeline_state.proto"; import "google/cloud/aiplatform/v1/value.proto"; import "google/protobuf/struct.proto"; @@ -72,6 +73,14 @@ message PipelineJob { // `PipelineJob.pipeline_spec.schema_version` 2.1.0, such as pipelines built // using Kubeflow Pipelines SDK 1.9 or higher and the v2 DSL. map parameter_values = 3; + + // Represents the failure policy of a pipeline. Currently, the default of a + // pipeline is that the pipeline will continue to run until no more tasks + // can be executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW. + // However, if a pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it + // will stop scheduling any new tasks when a task has failed. Any scheduled + // tasks will continue to completion. + PipelineFailurePolicy failure_policy = 4; } // Output only. The resource name of the PipelineJob. @@ -150,6 +159,27 @@ message PipelineJob { string network = 18 [(google.api.resource_reference) = { type: "compute.googleapis.com/Network" }]; + + // A template uri from where the [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec], if empty, will + // be downloaded. + string template_uri = 19; + + // Output only. Pipeline template metadata. Will fill up fields if + // [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is from supported template registry. + PipelineTemplateMetadata template_metadata = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Pipeline template metadata if [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is from supported +// template registry. Currently, the only supported registry is Artifact +// Registry. +message PipelineTemplateMetadata { + // The version_name in artifact registry. + // + // Will always be presented in output if the [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is + // from supported template registry. + // + // Format is "sha256:abcdef123456...". + string version = 3; } // The runtime detail of PipelineJob. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_service.proto index d749ecc8adfd..fa6c5bf12abe 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_service.proto @@ -323,7 +323,7 @@ message ListPipelineJobsRequest { // Values must be in RFC 3339 format. // * `labels`: Supports key-value equality and key presence. // * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. - // * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + // * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` // wildcard. // // Filter expressions can be combined together using logical operators diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/training_pipeline.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/training_pipeline.proto index 0660f82ee07f..8d775b0ba0df 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/training_pipeline.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/training_pipeline.proto @@ -96,6 +96,17 @@ message TrainingPipeline { // is. Model model_to_upload = 7; + // Optional. The ID to use for the uploaded Model, which will become the final + // component of the model resource name. + // + // This value may be up to 63 characters, and valid characters are + // `[a-z0-9_-]`. The first character cannot be a number or hyphen. + string model_id = 22 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. When specify this field, the `model_to_upload` will not be uploaded as a + // new model, instead, it will become a new version of this `parent_model`. + string parent_model = 21 [(google.api.field_behavior) = OPTIONAL]; + // Output only. The detailed state of the pipeline. PipelineState state = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpecName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpecName.java index 6fcd2fe90130..a59ef768a32b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpecName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpecName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ArtifactName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ArtifactName.java index d25f356cf6d5..6dd22bb371a8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ArtifactName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ArtifactName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJob.java index ab8735d5cf31..b0f14ec5a75d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJob.java @@ -380,6 +380,23 @@ private BatchPredictionJob( explanationSpec_ = subBuilder.buildPartial(); } + break; + } + case 210: + { + com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.Builder subBuilder = null; + if (modelMonitoringConfig_ != null) { + subBuilder = modelMonitoringConfig_.toBuilder(); + } + modelMonitoringConfig_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(modelMonitoringConfig_); + modelMonitoringConfig_ = subBuilder.buildPartial(); + } + break; } case 226: @@ -5456,6 +5473,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * Starting this job has no impact on any existing deployments of the Model * and their resources. * Exactly one of model and unmanaged_container_model must be set. + * The model resource name may contain version id or version alias to specify + * the version, if no version is specified, the default version will be used. * * * string model = 3 [(.google.api.resource_reference) = { ... } @@ -5483,6 +5502,8 @@ public java.lang.String getModel() { * Starting this job has no impact on any existing deployments of the Model * and their resources. * Exactly one of model and unmanaged_container_model must be set. + * The model resource name may contain version id or version alias to specify + * the version, if no version is specified, the default version will be used. * * * string model = 3 [(.google.api.resource_reference) = { ... } @@ -6815,6 +6836,64 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryption return getEncryptionSpec(); } + public static final int MODEL_MONITORING_CONFIG_FIELD_NUMBER = 26; + private com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig modelMonitoringConfig_; + /** + * + * + *
+   * Model monitoring config will be used for analysis model behaviors, based on
+   * the input and output to the batch prediction job, as well as the provided
+   * training dataset.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringConfig model_monitoring_config = 26; + * + * + * @return Whether the modelMonitoringConfig field is set. + */ + @java.lang.Override + public boolean hasModelMonitoringConfig() { + return modelMonitoringConfig_ != null; + } + /** + * + * + *
+   * Model monitoring config will be used for analysis model behaviors, based on
+   * the input and output to the batch prediction job, as well as the provided
+   * training dataset.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringConfig model_monitoring_config = 26; + * + * + * @return The modelMonitoringConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig getModelMonitoringConfig() { + return modelMonitoringConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.getDefaultInstance() + : modelMonitoringConfig_; + } + /** + * + * + *
+   * Model monitoring config will be used for analysis model behaviors, based on
+   * the input and output to the batch prediction job, as well as the provided
+   * training dataset.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringConfig model_monitoring_config = 26; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfigOrBuilder + getModelMonitoringConfigOrBuilder() { + return getModelMonitoringConfig(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -6894,6 +6973,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (explanationSpec_ != null) { output.writeMessage(25, getExplanationSpec()); } + if (modelMonitoringConfig_ != null) { + output.writeMessage(26, getModelMonitoringConfig()); + } if (unmanagedContainerModel_ != null) { output.writeMessage(28, getUnmanagedContainerModel()); } @@ -6987,6 +7069,10 @@ public int getSerializedSize() { if (explanationSpec_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getExplanationSpec()); } + if (modelMonitoringConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(26, getModelMonitoringConfig()); + } if (unmanagedContainerModel_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -7088,6 +7174,10 @@ public boolean equals(final java.lang.Object obj) { if (hasEncryptionSpec()) { if (!getEncryptionSpec().equals(other.getEncryptionSpec())) return false; } + if (hasModelMonitoringConfig() != other.hasModelMonitoringConfig()) return false; + if (hasModelMonitoringConfig()) { + if (!getModelMonitoringConfig().equals(other.getModelMonitoringConfig())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -7185,6 +7275,10 @@ public int hashCode() { hash = (37 * hash) + ENCRYPTION_SPEC_FIELD_NUMBER; hash = (53 * hash) + getEncryptionSpec().hashCode(); } + if (hasModelMonitoringConfig()) { + hash = (37 * hash) + MODEL_MONITORING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getModelMonitoringConfig().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -7473,6 +7567,12 @@ public Builder clear() { encryptionSpec_ = null; encryptionSpecBuilder_ = null; } + if (modelMonitoringConfigBuilder_ == null) { + modelMonitoringConfig_ = null; + } else { + modelMonitoringConfig_ = null; + modelMonitoringConfigBuilder_ = null; + } return this; } @@ -7599,6 +7699,11 @@ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob buildPartial() { } else { result.encryptionSpec_ = encryptionSpecBuilder_.build(); } + if (modelMonitoringConfigBuilder_ == null) { + result.modelMonitoringConfig_ = modelMonitoringConfig_; + } else { + result.modelMonitoringConfig_ = modelMonitoringConfigBuilder_.build(); + } onBuilt(); return result; } @@ -7751,6 +7856,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.BatchPredictionJob if (other.hasEncryptionSpec()) { mergeEncryptionSpec(other.getEncryptionSpec()); } + if (other.hasModelMonitoringConfig()) { + mergeModelMonitoringConfig(other.getModelMonitoringConfig()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -8005,6 +8113,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * Starting this job has no impact on any existing deployments of the Model * and their resources. * Exactly one of model and unmanaged_container_model must be set. + * The model resource name may contain version id or version alias to specify + * the version, if no version is specified, the default version will be used. * * * string model = 3 [(.google.api.resource_reference) = { ... } @@ -8031,6 +8141,8 @@ public java.lang.String getModel() { * Starting this job has no impact on any existing deployments of the Model * and their resources. * Exactly one of model and unmanaged_container_model must be set. + * The model resource name may contain version id or version alias to specify + * the version, if no version is specified, the default version will be used. * * * string model = 3 [(.google.api.resource_reference) = { ... } @@ -8057,6 +8169,8 @@ public com.google.protobuf.ByteString getModelBytes() { * Starting this job has no impact on any existing deployments of the Model * and their resources. * Exactly one of model and unmanaged_container_model must be set. + * The model resource name may contain version id or version alias to specify + * the version, if no version is specified, the default version will be used. * * * string model = 3 [(.google.api.resource_reference) = { ... } @@ -8082,6 +8196,8 @@ public Builder setModel(java.lang.String value) { * Starting this job has no impact on any existing deployments of the Model * and their resources. * Exactly one of model and unmanaged_container_model must be set. + * The model resource name may contain version id or version alias to specify + * the version, if no version is specified, the default version will be used. * * * string model = 3 [(.google.api.resource_reference) = { ... } @@ -8103,6 +8219,8 @@ public Builder clearModel() { * Starting this job has no impact on any existing deployments of the Model * and their resources. * Exactly one of model and unmanaged_container_model must be set. + * The model resource name may contain version id or version alias to specify + * the version, if no version is specified, the default version will be used. * * * string model = 3 [(.google.api.resource_reference) = { ... } @@ -12675,6 +12793,224 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionS return encryptionSpecBuilder_; } + private com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig modelMonitoringConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfigOrBuilder> + modelMonitoringConfigBuilder_; + /** + * + * + *
+     * Model monitoring config will be used for analysis model behaviors, based on
+     * the input and output to the batch prediction job, as well as the provided
+     * training dataset.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringConfig model_monitoring_config = 26; + * + * + * @return Whether the modelMonitoringConfig field is set. + */ + public boolean hasModelMonitoringConfig() { + return modelMonitoringConfigBuilder_ != null || modelMonitoringConfig_ != null; + } + /** + * + * + *
+     * Model monitoring config will be used for analysis model behaviors, based on
+     * the input and output to the batch prediction job, as well as the provided
+     * training dataset.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringConfig model_monitoring_config = 26; + * + * + * @return The modelMonitoringConfig. + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig getModelMonitoringConfig() { + if (modelMonitoringConfigBuilder_ == null) { + return modelMonitoringConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.getDefaultInstance() + : modelMonitoringConfig_; + } else { + return modelMonitoringConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Model monitoring config will be used for analysis model behaviors, based on
+     * the input and output to the batch prediction job, as well as the provided
+     * training dataset.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringConfig model_monitoring_config = 26; + * + */ + public Builder setModelMonitoringConfig( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig value) { + if (modelMonitoringConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelMonitoringConfig_ = value; + onChanged(); + } else { + modelMonitoringConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Model monitoring config will be used for analysis model behaviors, based on
+     * the input and output to the batch prediction job, as well as the provided
+     * training dataset.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringConfig model_monitoring_config = 26; + * + */ + public Builder setModelMonitoringConfig( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.Builder builderForValue) { + if (modelMonitoringConfigBuilder_ == null) { + modelMonitoringConfig_ = builderForValue.build(); + onChanged(); + } else { + modelMonitoringConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Model monitoring config will be used for analysis model behaviors, based on
+     * the input and output to the batch prediction job, as well as the provided
+     * training dataset.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringConfig model_monitoring_config = 26; + * + */ + public Builder mergeModelMonitoringConfig( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig value) { + if (modelMonitoringConfigBuilder_ == null) { + if (modelMonitoringConfig_ != null) { + modelMonitoringConfig_ = + com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.newBuilder( + modelMonitoringConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + modelMonitoringConfig_ = value; + } + onChanged(); + } else { + modelMonitoringConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Model monitoring config will be used for analysis model behaviors, based on
+     * the input and output to the batch prediction job, as well as the provided
+     * training dataset.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringConfig model_monitoring_config = 26; + * + */ + public Builder clearModelMonitoringConfig() { + if (modelMonitoringConfigBuilder_ == null) { + modelMonitoringConfig_ = null; + onChanged(); + } else { + modelMonitoringConfig_ = null; + modelMonitoringConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Model monitoring config will be used for analysis model behaviors, based on
+     * the input and output to the batch prediction job, as well as the provided
+     * training dataset.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringConfig model_monitoring_config = 26; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.Builder + getModelMonitoringConfigBuilder() { + + onChanged(); + return getModelMonitoringConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Model monitoring config will be used for analysis model behaviors, based on
+     * the input and output to the batch prediction job, as well as the provided
+     * training dataset.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringConfig model_monitoring_config = 26; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfigOrBuilder + getModelMonitoringConfigOrBuilder() { + if (modelMonitoringConfigBuilder_ != null) { + return modelMonitoringConfigBuilder_.getMessageOrBuilder(); + } else { + return modelMonitoringConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.getDefaultInstance() + : modelMonitoringConfig_; + } + } + /** + * + * + *
+     * Model monitoring config will be used for analysis model behaviors, based on
+     * the input and output to the batch prediction job, as well as the provided
+     * training dataset.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringConfig model_monitoring_config = 26; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfigOrBuilder> + getModelMonitoringConfigFieldBuilder() { + if (modelMonitoringConfigBuilder_ == null) { + modelMonitoringConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfigOrBuilder>( + getModelMonitoringConfig(), getParentForChildren(), isClean()); + modelMonitoringConfig_ = null; + } + return modelMonitoringConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobName.java index 61d2704fc356..4f84a4cf5c5d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobOrBuilder.java index 1d8c43cb6923..2181a752e4a3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobOrBuilder.java @@ -82,6 +82,8 @@ public interface BatchPredictionJobOrBuilder * Starting this job has no impact on any existing deployments of the Model * and their resources. * Exactly one of model and unmanaged_container_model must be set. + * The model resource name may contain version id or version alias to specify + * the version, if no version is specified, the default version will be used. * * * string model = 3 [(.google.api.resource_reference) = { ... } @@ -98,6 +100,8 @@ public interface BatchPredictionJobOrBuilder * Starting this job has no impact on any existing deployments of the Model * and their resources. * Exactly one of model and unmanaged_container_model must be set. + * The model resource name may contain version id or version alias to specify + * the version, if no version is specified, the default version will be used. * * * string model = 3 [(.google.api.resource_reference) = { ... } @@ -1098,4 +1102,49 @@ java.lang.String getLabelsOrDefault( * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 24; */ com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder(); + + /** + * + * + *
+   * Model monitoring config will be used for analysis model behaviors, based on
+   * the input and output to the batch prediction job, as well as the provided
+   * training dataset.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringConfig model_monitoring_config = 26; + * + * + * @return Whether the modelMonitoringConfig field is set. + */ + boolean hasModelMonitoringConfig(); + /** + * + * + *
+   * Model monitoring config will be used for analysis model behaviors, based on
+   * the input and output to the batch prediction job, as well as the provided
+   * training dataset.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringConfig model_monitoring_config = 26; + * + * + * @return The modelMonitoringConfig. + */ + com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig getModelMonitoringConfig(); + /** + * + * + *
+   * Model monitoring config will be used for analysis model behaviors, based on
+   * the input and output to the batch prediction job, as well as the provided
+   * training dataset.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringConfig model_monitoring_config = 26; + * + */ + com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfigOrBuilder + getModelMonitoringConfigOrBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobProto.java index c421d56a7ff3..37ca9b46d464 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobProto.java @@ -69,76 +69,79 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".proto\0327google/cloud/aiplatform/v1beta1/" + "machine_resources.proto\032Dgoogle/cloud/ai" + "platform/v1beta1/manual_batch_tuning_par" - + "ameters.proto\032?google/cloud/aiplatform/v" - + "1beta1/unmanaged_container_model.proto\032\034" - + "google/protobuf/struct.proto\032\037google/pro" - + "tobuf/timestamp.proto\032\027google/rpc/status" - + ".proto\"\242\022\n\022BatchPredictionJob\022\021\n\004name\030\001 " - + "\001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\0223\n\005m" - + "odel\030\003 \001(\tB$\372A!\n\037aiplatform.googleapis.c" - + "om/Model\022\035\n\020model_version_id\030\036 \001(\tB\003\340A\003\022" - + "[\n\031unmanaged_container_model\030\034 \001(\01328.goo" - + "gle.cloud.aiplatform.v1beta1.UnmanagedCo" - + "ntainerModel\022Z\n\014input_config\030\004 \001(\0132?.goo" - + "gle.cloud.aiplatform.v1beta1.BatchPredic" - + "tionJob.InputConfigB\003\340A\002\0220\n\020model_parame" - + "ters\030\005 \001(\0132\026.google.protobuf.Value\022\\\n\rou" - + "tput_config\030\006 \001(\0132@.google.cloud.aiplatf" - + "orm.v1beta1.BatchPredictionJob.OutputCon" - + "figB\003\340A\002\022U\n\023dedicated_resources\030\007 \001(\01328." - + "google.cloud.aiplatform.v1beta1.BatchDed" - + "icatedResources\022\027\n\017service_account\030\035 \001(\t" - + "\022i\n\036manual_batch_tuning_parameters\030\010 \001(\013" - + "2<.google.cloud.aiplatform.v1beta1.Manua" - + "lBatchTuningParametersB\003\340A\005\022\034\n\024generate_" - + "explanation\030\027 \001(\010\022J\n\020explanation_spec\030\031 " - + "\001(\01320.google.cloud.aiplatform.v1beta1.Ex" - + "planationSpec\022X\n\013output_info\030\t \001(\0132>.goo" - + "gle.cloud.aiplatform.v1beta1.BatchPredic" - + "tionJob.OutputInfoB\003\340A\003\022=\n\005state\030\n \001(\0162)" - + ".google.cloud.aiplatform.v1beta1.JobStat" - + "eB\003\340A\003\022&\n\005error\030\013 \001(\0132\022.google.rpc.Statu" - + "sB\003\340A\003\0221\n\020partial_failures\030\014 \003(\0132\022.googl" - + "e.rpc.StatusB\003\340A\003\022S\n\022resources_consumed\030" - + "\r \001(\01322.google.cloud.aiplatform.v1beta1." - + "ResourcesConsumedB\003\340A\003\022O\n\020completion_sta" - + "ts\030\016 \001(\01320.google.cloud.aiplatform.v1bet" - + "a1.CompletionStatsB\003\340A\003\0224\n\013create_time\030\017" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0223\n" - + "\nstart_time\030\020 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\0221\n\010end_time\030\021 \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\003\0224\n\013update_time\030\022 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022O\n\006l" - + "abels\030\023 \003(\0132?.google.cloud.aiplatform.v1" - + "beta1.BatchPredictionJob.LabelsEntry\022H\n\017" - + "encryption_spec\030\030 \001(\0132/.google.cloud.aip" - + "latform.v1beta1.EncryptionSpec\032\304\001\n\013Input" - + "Config\022@\n\ngcs_source\030\002 \001(\0132*.google.clou" - + "d.aiplatform.v1beta1.GcsSourceH\000\022J\n\017bigq" - + "uery_source\030\003 \001(\0132/.google.cloud.aiplatf" - + "orm.v1beta1.BigQuerySourceH\000\022\035\n\020instance" - + "s_format\030\001 \001(\tB\003\340A\002B\010\n\006source\032\340\001\n\014Output" - + "Config\022J\n\017gcs_destination\030\002 \001(\0132/.google" - + ".cloud.aiplatform.v1beta1.GcsDestination" - + "H\000\022T\n\024bigquery_destination\030\003 \001(\01324.googl" - + "e.cloud.aiplatform.v1beta1.BigQueryDesti" - + "nationH\000\022\037\n\022predictions_format\030\001 \001(\tB\003\340A" - + "\002B\r\n\013destination\032\220\001\n\nOutputInfo\022#\n\024gcs_o" - + "utput_directory\030\001 \001(\tB\003\340A\003H\000\022&\n\027bigquery" - + "_output_dataset\030\002 \001(\tB\003\340A\003H\000\022\"\n\025bigquery" - + "_output_table\030\004 \001(\tB\003\340A\003B\021\n\017output_locat" - + "ion\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" - + "\030\002 \001(\t:\0028\001:\206\001\352A\202\001\n,aiplatform.googleapis" - + ".com/BatchPredictionJob\022Rprojects/{proje" - + "ct}/locations/{location}/batchPrediction" - + "Jobs/{batch_prediction_job}B\364\001\n#com.goog" - + "le.cloud.aiplatform.v1beta1B\027BatchPredic" - + "tionJobProtoP\001ZIgoogle.golang.org/genpro" - + "to/googleapis/cloud/aiplatform/v1beta1;a" - + "iplatform\252\002\037Google.Cloud.AIPlatform.V1Be" - + "ta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"" - + "Google::Cloud::AIPlatform::V1beta1b\006prot" - + "o3" + + "ameters.proto\0326google/cloud/aiplatform/v" + + "1beta1/model_monitoring.proto\032?google/cl" + + "oud/aiplatform/v1beta1/unmanaged_contain" + + "er_model.proto\032\034google/protobuf/struct.p" + + "roto\032\037google/protobuf/timestamp.proto\032\027g" + + "oogle/rpc/status.proto\"\373\022\n\022BatchPredicti" + + "onJob\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display_name" + + "\030\002 \001(\tB\003\340A\002\0223\n\005model\030\003 \001(\tB$\372A!\n\037aiplatf" + + "orm.googleapis.com/Model\022\035\n\020model_versio" + + "n_id\030\036 \001(\tB\003\340A\003\022[\n\031unmanaged_container_m" + + "odel\030\034 \001(\01328.google.cloud.aiplatform.v1b" + + "eta1.UnmanagedContainerModel\022Z\n\014input_co" + + "nfig\030\004 \001(\0132?.google.cloud.aiplatform.v1b" + + "eta1.BatchPredictionJob.InputConfigB\003\340A\002" + + "\0220\n\020model_parameters\030\005 \001(\0132\026.google.prot" + + "obuf.Value\022\\\n\routput_config\030\006 \001(\0132@.goog" + + "le.cloud.aiplatform.v1beta1.BatchPredict" + + "ionJob.OutputConfigB\003\340A\002\022U\n\023dedicated_re" + + "sources\030\007 \001(\01328.google.cloud.aiplatform." + + "v1beta1.BatchDedicatedResources\022\027\n\017servi" + + "ce_account\030\035 \001(\t\022i\n\036manual_batch_tuning_" + + "parameters\030\010 \001(\0132<.google.cloud.aiplatfo" + + "rm.v1beta1.ManualBatchTuningParametersB\003" + + "\340A\005\022\034\n\024generate_explanation\030\027 \001(\010\022J\n\020exp" + + "lanation_spec\030\031 \001(\01320.google.cloud.aipla" + + "tform.v1beta1.ExplanationSpec\022X\n\013output_" + + "info\030\t \001(\0132>.google.cloud.aiplatform.v1b" + + "eta1.BatchPredictionJob.OutputInfoB\003\340A\003\022" + + "=\n\005state\030\n \001(\0162).google.cloud.aiplatform" + + ".v1beta1.JobStateB\003\340A\003\022&\n\005error\030\013 \001(\0132\022." + + "google.rpc.StatusB\003\340A\003\0221\n\020partial_failur" + + "es\030\014 \003(\0132\022.google.rpc.StatusB\003\340A\003\022S\n\022res" + + "ources_consumed\030\r \001(\01322.google.cloud.aip" + + "latform.v1beta1.ResourcesConsumedB\003\340A\003\022O" + + "\n\020completion_stats\030\016 \001(\01320.google.cloud." + + "aiplatform.v1beta1.CompletionStatsB\003\340A\003\022" + + "4\n\013create_time\030\017 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\0223\n\nstart_time\030\020 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\021" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\022 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\022O\n\006labels\030\023 \003(\0132?.google.clo" + + "ud.aiplatform.v1beta1.BatchPredictionJob" + + ".LabelsEntry\022H\n\017encryption_spec\030\030 \001(\0132/." + + "google.cloud.aiplatform.v1beta1.Encrypti" + + "onSpec\022W\n\027model_monitoring_config\030\032 \001(\0132" + + "6.google.cloud.aiplatform.v1beta1.ModelM" + + "onitoringConfig\032\304\001\n\013InputConfig\022@\n\ngcs_s" + + "ource\030\002 \001(\0132*.google.cloud.aiplatform.v1" + + "beta1.GcsSourceH\000\022J\n\017bigquery_source\030\003 \001" + + "(\0132/.google.cloud.aiplatform.v1beta1.Big" + + "QuerySourceH\000\022\035\n\020instances_format\030\001 \001(\tB" + + "\003\340A\002B\010\n\006source\032\340\001\n\014OutputConfig\022J\n\017gcs_d" + + "estination\030\002 \001(\0132/.google.cloud.aiplatfo" + + "rm.v1beta1.GcsDestinationH\000\022T\n\024bigquery_" + + "destination\030\003 \001(\01324.google.cloud.aiplatf" + + "orm.v1beta1.BigQueryDestinationH\000\022\037\n\022pre" + + "dictions_format\030\001 \001(\tB\003\340A\002B\r\n\013destinatio" + + "n\032\220\001\n\nOutputInfo\022#\n\024gcs_output_directory" + + "\030\001 \001(\tB\003\340A\003H\000\022&\n\027bigquery_output_dataset" + + "\030\002 \001(\tB\003\340A\003H\000\022\"\n\025bigquery_output_table\030\004" + + " \001(\tB\003\340A\003B\021\n\017output_location\032-\n\013LabelsEn" + + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\206\001\352A" + + "\202\001\n,aiplatform.googleapis.com/BatchPredi" + + "ctionJob\022Rprojects/{project}/locations/{" + + "location}/batchPredictionJobs/{batch_pre" + + "diction_job}B\364\001\n#com.google.cloud.aiplat" + + "form.v1beta1B\027BatchPredictionJobProtoP\001Z" + + "Igoogle.golang.org/genproto/googleapis/c" + + "loud/aiplatform/v1beta1;aiplatform\252\002\037Goo" + + "gle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cl" + + "oud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::" + + "AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -153,6 +156,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.JobStateProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.MachineResourcesProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.ManualBatchTuningParametersProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.UnmanagedContainerModelProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -189,6 +193,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateTime", "Labels", "EncryptionSpec", + "ModelMonitoringConfig", }); internal_static_google_cloud_aiplatform_v1beta1_BatchPredictionJob_InputConfig_descriptor = internal_static_google_cloud_aiplatform_v1beta1_BatchPredictionJob_descriptor @@ -249,6 +254,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.JobStateProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.MachineResourcesProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.ManualBatchTuningParametersProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.UnmanagedContainerModelProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompletionStats.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompletionStats.java index dadba6eee3db..bae386b8b726 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompletionStats.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompletionStats.java @@ -84,6 +84,11 @@ private CompletionStats( incompleteCount_ = input.readInt64(); break; } + case 40: + { + successfulForecastPointCount_ = input.readInt64(); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -178,6 +183,26 @@ public long getIncompleteCount() { return incompleteCount_; } + public static final int SUCCESSFUL_FORECAST_POINT_COUNT_FIELD_NUMBER = 5; + private long successfulForecastPointCount_; + /** + * + * + *
+   * Output only. The number of the successful forecast points that are generated by the
+   * forecasting model. This is ONLY used by the forecasting batch prediction.
+   * 
+ * + * int64 successful_forecast_point_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The successfulForecastPointCount. + */ + @java.lang.Override + public long getSuccessfulForecastPointCount() { + return successfulForecastPointCount_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -201,6 +226,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (incompleteCount_ != 0L) { output.writeInt64(3, incompleteCount_); } + if (successfulForecastPointCount_ != 0L) { + output.writeInt64(5, successfulForecastPointCount_); + } unknownFields.writeTo(output); } @@ -219,6 +247,10 @@ public int getSerializedSize() { if (incompleteCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, incompleteCount_); } + if (successfulForecastPointCount_ != 0L) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size(5, successfulForecastPointCount_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -238,6 +270,7 @@ public boolean equals(final java.lang.Object obj) { if (getSuccessfulCount() != other.getSuccessfulCount()) return false; if (getFailedCount() != other.getFailedCount()) return false; if (getIncompleteCount() != other.getIncompleteCount()) return false; + if (getSuccessfulForecastPointCount() != other.getSuccessfulForecastPointCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -255,6 +288,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCount()); hash = (37 * hash) + INCOMPLETE_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIncompleteCount()); + hash = (37 * hash) + SUCCESSFUL_FORECAST_POINT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSuccessfulForecastPointCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -407,6 +442,8 @@ public Builder clear() { incompleteCount_ = 0L; + successfulForecastPointCount_ = 0L; + return this; } @@ -437,6 +474,7 @@ public com.google.cloud.aiplatform.v1beta1.CompletionStats buildPartial() { result.successfulCount_ = successfulCount_; result.failedCount_ = failedCount_; result.incompleteCount_ = incompleteCount_; + result.successfulForecastPointCount_ = successfulForecastPointCount_; onBuilt(); return result; } @@ -496,6 +534,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CompletionStats oth if (other.getIncompleteCount() != 0L) { setIncompleteCount(other.getIncompleteCount()); } + if (other.getSuccessfulForecastPointCount() != 0L) { + setSuccessfulForecastPointCount(other.getSuccessfulForecastPointCount()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -694,6 +735,64 @@ public Builder clearIncompleteCount() { return this; } + private long successfulForecastPointCount_; + /** + * + * + *
+     * Output only. The number of the successful forecast points that are generated by the
+     * forecasting model. This is ONLY used by the forecasting batch prediction.
+     * 
+ * + * int64 successful_forecast_point_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The successfulForecastPointCount. + */ + @java.lang.Override + public long getSuccessfulForecastPointCount() { + return successfulForecastPointCount_; + } + /** + * + * + *
+     * Output only. The number of the successful forecast points that are generated by the
+     * forecasting model. This is ONLY used by the forecasting batch prediction.
+     * 
+ * + * int64 successful_forecast_point_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The successfulForecastPointCount to set. + * @return This builder for chaining. + */ + public Builder setSuccessfulForecastPointCount(long value) { + + successfulForecastPointCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The number of the successful forecast points that are generated by the
+     * forecasting model. This is ONLY used by the forecasting batch prediction.
+     * 
+ * + * int64 successful_forecast_point_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearSuccessfulForecastPointCount() { + + successfulForecastPointCount_ = 0L; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompletionStatsOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompletionStatsOrBuilder.java index e54d0bbc4204..b53ce20c521e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompletionStatsOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompletionStatsOrBuilder.java @@ -65,4 +65,19 @@ public interface CompletionStatsOrBuilder * @return The incompleteCount. */ long getIncompleteCount(); + + /** + * + * + *
+   * Output only. The number of the successful forecast points that are generated by the
+   * forecasting model. This is ONLY used by the forecasting batch prediction.
+   * 
+ * + * int64 successful_forecast_point_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The successfulForecastPointCount. + */ + long getSuccessfulForecastPointCount(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompletionStatsProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompletionStatsProto.java index 2453376c349e..e372bf084499 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompletionStatsProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompletionStatsProto.java @@ -43,16 +43,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n6google/cloud/aiplatform/v1beta1/comple" + "tion_stats.proto\022\037google.cloud.aiplatfor" + "m.v1beta1\032\037google/api/field_behavior.pro" - + "to\"j\n\017CompletionStats\022\035\n\020successful_coun" - + "t\030\001 \001(\003B\003\340A\003\022\031\n\014failed_count\030\002 \001(\003B\003\340A\003\022" - + "\035\n\020incomplete_count\030\003 \001(\003B\003\340A\003B\361\001\n#com.g" - + "oogle.cloud.aiplatform.v1beta1B\024Completi" - + "onStatsProtoP\001ZIgoogle.golang.org/genpro" - + "to/googleapis/cloud/aiplatform/v1beta1;a" - + "iplatform\252\002\037Google.Cloud.AIPlatform.V1Be" - + "ta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"" - + "Google::Cloud::AIPlatform::V1beta1b\006prot" - + "o3" + + "to\"\230\001\n\017CompletionStats\022\035\n\020successful_cou" + + "nt\030\001 \001(\003B\003\340A\003\022\031\n\014failed_count\030\002 \001(\003B\003\340A\003" + + "\022\035\n\020incomplete_count\030\003 \001(\003B\003\340A\003\022,\n\037succe" + + "ssful_forecast_point_count\030\005 \001(\003B\003\340A\003B\361\001" + + "\n#com.google.cloud.aiplatform.v1beta1B\024C" + + "ompletionStatsProtoP\001ZIgoogle.golang.org" + + "/genproto/googleapis/cloud/aiplatform/v1" + + "beta1;aiplatform\252\002\037Google.Cloud.AIPlatfo" + + "rm.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1b" + + "eta1\352\002\"Google::Cloud::AIPlatform::V1beta" + + "1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -66,7 +67,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_CompletionStats_descriptor, new java.lang.String[] { - "SuccessfulCount", "FailedCount", "IncompleteCount", + "SuccessfulCount", "FailedCount", "IncompleteCount", "SuccessfulForecastPointCount", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContainerSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContainerSpec.java index af9bc27bb3f9..88861eb1694e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContainerSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContainerSpec.java @@ -41,6 +41,7 @@ private ContainerSpec() { imageUri_ = ""; command_ = com.google.protobuf.LazyStringArrayList.EMPTY; args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + env_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -100,6 +101,17 @@ private ContainerSpec( args_.add(s); break; } + case 34: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + env_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + env_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.EnvVar.parser(), extensionRegistry)); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -122,6 +134,9 @@ private ContainerSpec( if (((mutable_bitField0_ & 0x00000002) != 0)) { args_ = args_.getUnmodifiableView(); } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + env_ = java.util.Collections.unmodifiableList(env_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -319,6 +334,80 @@ public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } + public static final int ENV_FIELD_NUMBER = 4; + private java.util.List env_; + /** + * + * + *
+   * Environment variables to be passed to the container.
+   * Maximum limit is 100.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4; + */ + @java.lang.Override + public java.util.List getEnvList() { + return env_; + } + /** + * + * + *
+   * Environment variables to be passed to the container.
+   * Maximum limit is 100.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4; + */ + @java.lang.Override + public java.util.List + getEnvOrBuilderList() { + return env_; + } + /** + * + * + *
+   * Environment variables to be passed to the container.
+   * Maximum limit is 100.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4; + */ + @java.lang.Override + public int getEnvCount() { + return env_.size(); + } + /** + * + * + *
+   * Environment variables to be passed to the container.
+   * Maximum limit is 100.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EnvVar getEnv(int index) { + return env_.get(index); + } + /** + * + * + *
+   * Environment variables to be passed to the container.
+   * Maximum limit is 100.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EnvVarOrBuilder getEnvOrBuilder(int index) { + return env_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -342,6 +431,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < args_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, args_.getRaw(i)); } + for (int i = 0; i < env_.size(); i++) { + output.writeMessage(4, env_.get(i)); + } unknownFields.writeTo(output); } @@ -370,6 +462,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getArgsList().size(); } + for (int i = 0; i < env_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, env_.get(i)); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -389,6 +484,7 @@ public boolean equals(final java.lang.Object obj) { if (!getImageUri().equals(other.getImageUri())) return false; if (!getCommandList().equals(other.getCommandList())) return false; if (!getArgsList().equals(other.getArgsList())) return false; + if (!getEnvList().equals(other.getEnvList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -410,6 +506,10 @@ public int hashCode() { hash = (37 * hash) + ARGS_FIELD_NUMBER; hash = (53 * hash) + getArgsList().hashCode(); } + if (getEnvCount() > 0) { + hash = (37 * hash) + ENV_FIELD_NUMBER; + hash = (53 * hash) + getEnvList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -549,7 +649,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEnvFieldBuilder(); + } } @java.lang.Override @@ -561,6 +663,12 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000001); args_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); + if (envBuilder_ == null) { + env_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + envBuilder_.clear(); + } return this; } @@ -600,6 +708,15 @@ public com.google.cloud.aiplatform.v1beta1.ContainerSpec buildPartial() { bitField0_ = (bitField0_ & ~0x00000002); } result.args_ = args_; + if (envBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + env_ = java.util.Collections.unmodifiableList(env_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.env_ = env_; + } else { + result.env_ = envBuilder_.build(); + } onBuilt(); return result; } @@ -674,6 +791,33 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ContainerSpec other } onChanged(); } + if (envBuilder_ == null) { + if (!other.env_.isEmpty()) { + if (env_.isEmpty()) { + env_ = other.env_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureEnvIsMutable(); + env_.addAll(other.env_); + } + onChanged(); + } + } else { + if (!other.env_.isEmpty()) { + if (envBuilder_.isEmpty()) { + envBuilder_.dispose(); + envBuilder_ = null; + env_ = other.env_; + bitField0_ = (bitField0_ & ~0x00000004); + envBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEnvFieldBuilder() + : null; + } else { + envBuilder_.addAllMessages(other.env_); + } + } + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1162,6 +1306,372 @@ public Builder addArgsBytes(com.google.protobuf.ByteString value) { return this; } + private java.util.List env_ = + java.util.Collections.emptyList(); + + private void ensureEnvIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + env_ = new java.util.ArrayList(env_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EnvVar, + com.google.cloud.aiplatform.v1beta1.EnvVar.Builder, + com.google.cloud.aiplatform.v1beta1.EnvVarOrBuilder> + envBuilder_; + + /** + * + * + *
+     * Environment variables to be passed to the container.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4; + */ + public java.util.List getEnvList() { + if (envBuilder_ == null) { + return java.util.Collections.unmodifiableList(env_); + } else { + return envBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Environment variables to be passed to the container.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4; + */ + public int getEnvCount() { + if (envBuilder_ == null) { + return env_.size(); + } else { + return envBuilder_.getCount(); + } + } + /** + * + * + *
+     * Environment variables to be passed to the container.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4; + */ + public com.google.cloud.aiplatform.v1beta1.EnvVar getEnv(int index) { + if (envBuilder_ == null) { + return env_.get(index); + } else { + return envBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Environment variables to be passed to the container.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4; + */ + public Builder setEnv(int index, com.google.cloud.aiplatform.v1beta1.EnvVar value) { + if (envBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvIsMutable(); + env_.set(index, value); + onChanged(); + } else { + envBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Environment variables to be passed to the container.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4; + */ + public Builder setEnv( + int index, com.google.cloud.aiplatform.v1beta1.EnvVar.Builder builderForValue) { + if (envBuilder_ == null) { + ensureEnvIsMutable(); + env_.set(index, builderForValue.build()); + onChanged(); + } else { + envBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Environment variables to be passed to the container.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4; + */ + public Builder addEnv(com.google.cloud.aiplatform.v1beta1.EnvVar value) { + if (envBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvIsMutable(); + env_.add(value); + onChanged(); + } else { + envBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Environment variables to be passed to the container.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4; + */ + public Builder addEnv(int index, com.google.cloud.aiplatform.v1beta1.EnvVar value) { + if (envBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvIsMutable(); + env_.add(index, value); + onChanged(); + } else { + envBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Environment variables to be passed to the container.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4; + */ + public Builder addEnv(com.google.cloud.aiplatform.v1beta1.EnvVar.Builder builderForValue) { + if (envBuilder_ == null) { + ensureEnvIsMutable(); + env_.add(builderForValue.build()); + onChanged(); + } else { + envBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Environment variables to be passed to the container.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4; + */ + public Builder addEnv( + int index, com.google.cloud.aiplatform.v1beta1.EnvVar.Builder builderForValue) { + if (envBuilder_ == null) { + ensureEnvIsMutable(); + env_.add(index, builderForValue.build()); + onChanged(); + } else { + envBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Environment variables to be passed to the container.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4; + */ + public Builder addAllEnv( + java.lang.Iterable values) { + if (envBuilder_ == null) { + ensureEnvIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, env_); + onChanged(); + } else { + envBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Environment variables to be passed to the container.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4; + */ + public Builder clearEnv() { + if (envBuilder_ == null) { + env_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + envBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Environment variables to be passed to the container.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4; + */ + public Builder removeEnv(int index) { + if (envBuilder_ == null) { + ensureEnvIsMutable(); + env_.remove(index); + onChanged(); + } else { + envBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Environment variables to be passed to the container.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4; + */ + public com.google.cloud.aiplatform.v1beta1.EnvVar.Builder getEnvBuilder(int index) { + return getEnvFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Environment variables to be passed to the container.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4; + */ + public com.google.cloud.aiplatform.v1beta1.EnvVarOrBuilder getEnvOrBuilder(int index) { + if (envBuilder_ == null) { + return env_.get(index); + } else { + return envBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Environment variables to be passed to the container.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4; + */ + public java.util.List + getEnvOrBuilderList() { + if (envBuilder_ != null) { + return envBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(env_); + } + } + /** + * + * + *
+     * Environment variables to be passed to the container.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4; + */ + public com.google.cloud.aiplatform.v1beta1.EnvVar.Builder addEnvBuilder() { + return getEnvFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.EnvVar.getDefaultInstance()); + } + /** + * + * + *
+     * Environment variables to be passed to the container.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4; + */ + public com.google.cloud.aiplatform.v1beta1.EnvVar.Builder addEnvBuilder(int index) { + return getEnvFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.EnvVar.getDefaultInstance()); + } + /** + * + * + *
+     * Environment variables to be passed to the container.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4; + */ + public java.util.List getEnvBuilderList() { + return getEnvFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EnvVar, + com.google.cloud.aiplatform.v1beta1.EnvVar.Builder, + com.google.cloud.aiplatform.v1beta1.EnvVarOrBuilder> + getEnvFieldBuilder() { + if (envBuilder_ == null) { + envBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EnvVar, + com.google.cloud.aiplatform.v1beta1.EnvVar.Builder, + com.google.cloud.aiplatform.v1beta1.EnvVarOrBuilder>( + env_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + env_ = null; + } + return envBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContainerSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContainerSpecOrBuilder.java index 16a1fe734345..258af1e8d906 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContainerSpecOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContainerSpecOrBuilder.java @@ -155,4 +155,61 @@ public interface ContainerSpecOrBuilder * @return The bytes of the args at the given index. */ com.google.protobuf.ByteString getArgsBytes(int index); + + /** + * + * + *
+   * Environment variables to be passed to the container.
+   * Maximum limit is 100.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4; + */ + java.util.List getEnvList(); + /** + * + * + *
+   * Environment variables to be passed to the container.
+   * Maximum limit is 100.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4; + */ + com.google.cloud.aiplatform.v1beta1.EnvVar getEnv(int index); + /** + * + * + *
+   * Environment variables to be passed to the container.
+   * Maximum limit is 100.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4; + */ + int getEnvCount(); + /** + * + * + *
+   * Environment variables to be passed to the container.
+   * Maximum limit is 100.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4; + */ + java.util.List + getEnvOrBuilderList(); + /** + * + * + *
+   * Environment variables to be passed to the container.
+   * Maximum limit is 100.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4; + */ + com.google.cloud.aiplatform.v1beta1.EnvVarOrBuilder getEnvOrBuilder(int index); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextName.java index 834a4121bb74..05247d95f1cf 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobName.java index bc46bc7ddeeb..18b51b870989 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java index d7c6756d1f51..cf01db573cd2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java @@ -72,71 +72,75 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_job.proto\022\037google.cloud.aiplatform.v1be" + "ta1\032\037google/api/field_behavior.proto\032\031go" + "ogle/api/resource.proto\0325google/cloud/ai" - + "platform/v1beta1/encryption_spec.proto\032(" - + "google/cloud/aiplatform/v1beta1/io.proto" - + "\032/google/cloud/aiplatform/v1beta1/job_st" - + "ate.proto\0327google/cloud/aiplatform/v1bet" - + "a1/machine_resources.proto\032\036google/proto" - + "buf/duration.proto\032\037google/protobuf/time" - + "stamp.proto\032\027google/rpc/status.proto\"\372\006\n" - + "\tCustomJob\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display" - + "_name\030\002 \001(\tB\003\340A\002\022E\n\010job_spec\030\004 \001(\0132..goo" - + "gle.cloud.aiplatform.v1beta1.CustomJobSp" - + "ecB\003\340A\002\022=\n\005state\030\005 \001(\0162).google.cloud.ai" - + "platform.v1beta1.JobStateB\003\340A\003\0224\n\013create" - + "_time\030\006 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\0223\n\nstart_time\030\007 \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\003\0221\n\010end_time\030\010 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013update_t" - + "ime\030\t \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\022&\n\005error\030\n \001(\0132\022.google.rpc.StatusB\003\340" - + "A\003\022F\n\006labels\030\013 \003(\01326.google.cloud.aiplat" - + "form.v1beta1.CustomJob.LabelsEntry\022H\n\017en" - + "cryption_spec\030\014 \001(\0132/.google.cloud.aipla" - + "tform.v1beta1.EncryptionSpec\022[\n\017web_acce" - + "ss_uris\030\020 \003(\0132=.google.cloud.aiplatform." - + "v1beta1.CustomJob.WebAccessUrisEntryB\003\340A" - + "\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t:\0028\001\0324\n\022WebAccessUrisEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:i\352Af\n#aiplatform." - + "googleapis.com/CustomJob\022?projects/{proj" - + "ect}/locations/{location}/customJobs/{cu" - + "stom_job}\"\305\003\n\rCustomJobSpec\022O\n\021worker_po" - + "ol_specs\030\001 \003(\0132/.google.cloud.aiplatform" - + ".v1beta1.WorkerPoolSpecB\003\340A\002\022?\n\nscheduli" - + "ng\030\003 \001(\0132+.google.cloud.aiplatform.v1bet" - + "a1.Scheduling\022\027\n\017service_account\030\004 \001(\t\0224" - + "\n\007network\030\005 \001(\tB#\372A \n\036compute.googleapis" - + ".com/Network\022\037\n\022reserved_ip_ranges\030\r \003(\t" - + "B\003\340A\001\022N\n\025base_output_directory\030\006 \001(\0132/.g" - + "oogle.cloud.aiplatform.v1beta1.GcsDestin" - + "ation\022B\n\013tensorboard\030\007 \001(\tB-\340A\001\372A\'\n%aipl" - + "atform.googleapis.com/Tensorboard\022\036\n\021ena" - + "ble_web_access\030\n \001(\010B\003\340A\001\"\237\003\n\016WorkerPool" - + "Spec\022H\n\016container_spec\030\006 \001(\0132..google.cl" - + "oud.aiplatform.v1beta1.ContainerSpecH\000\022Q" - + "\n\023python_package_spec\030\007 \001(\01322.google.clo" - + "ud.aiplatform.v1beta1.PythonPackageSpecH" - + "\000\022J\n\014machine_spec\030\001 \001(\0132,.google.cloud.a" - + "iplatform.v1beta1.MachineSpecB\006\340A\001\340A\005\022\032\n" - + "\rreplica_count\030\002 \001(\003B\003\340A\001\022B\n\nnfs_mounts\030" - + "\004 \003(\0132).google.cloud.aiplatform.v1beta1." - + "NfsMountB\003\340A\001\022<\n\tdisk_spec\030\005 \001(\0132).googl" - + "e.cloud.aiplatform.v1beta1.DiskSpecB\006\n\004t" - + "ask\"F\n\rContainerSpec\022\026\n\timage_uri\030\001 \001(\tB" - + "\003\340A\002\022\017\n\007command\030\002 \003(\t\022\014\n\004args\030\003 \003(\t\"y\n\021P" - + "ythonPackageSpec\022\037\n\022executor_image_uri\030\001" - + " \001(\tB\003\340A\002\022\031\n\014package_uris\030\002 \003(\tB\003\340A\002\022\032\n\r" - + "python_module\030\003 \001(\tB\003\340A\002\022\014\n\004args\030\004 \003(\t\"_" - + "\n\nScheduling\022*\n\007timeout\030\001 \001(\0132\031.google.p" - + "rotobuf.Duration\022%\n\035restart_job_on_worke" - + "r_restart\030\003 \001(\010B\353\001\n#com.google.cloud.aip" - + "latform.v1beta1B\016CustomJobProtoP\001ZIgoogl" - + "e.golang.org/genproto/googleapis/cloud/a" - + "iplatform/v1beta1;aiplatform\252\002\037Google.Cl" - + "oud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AI" - + "Platform\\V1beta1\352\002\"Google::Cloud::AIPlat" - + "form::V1beta1b\006proto3" + + "platform/v1beta1/encryption_spec.proto\032-" + + "google/cloud/aiplatform/v1beta1/env_var." + + "proto\032(google/cloud/aiplatform/v1beta1/i" + + "o.proto\032/google/cloud/aiplatform/v1beta1" + + "/job_state.proto\0327google/cloud/aiplatfor" + + "m/v1beta1/machine_resources.proto\032\036googl" + + "e/protobuf/duration.proto\032\037google/protob" + + "uf/timestamp.proto\032\027google/rpc/status.pr" + + "oto\"\372\006\n\tCustomJob\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014" + + "display_name\030\002 \001(\tB\003\340A\002\022E\n\010job_spec\030\004 \001(" + + "\0132..google.cloud.aiplatform.v1beta1.Cust" + + "omJobSpecB\003\340A\002\022=\n\005state\030\005 \001(\0162).google.c" + + "loud.aiplatform.v1beta1.JobStateB\003\340A\003\0224\n" + + "\013create_time\030\006 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\0223\n\nstart_time\030\007 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\010 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013u" + + "pdate_time\030\t \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\022&\n\005error\030\n \001(\0132\022.google.rpc.St" + + "atusB\003\340A\003\022F\n\006labels\030\013 \003(\01326.google.cloud" + + ".aiplatform.v1beta1.CustomJob.LabelsEntr" + + "y\022H\n\017encryption_spec\030\014 \001(\0132/.google.clou" + + "d.aiplatform.v1beta1.EncryptionSpec\022[\n\017w" + + "eb_access_uris\030\020 \003(\0132=.google.cloud.aipl" + + "atform.v1beta1.CustomJob.WebAccessUrisEn" + + "tryB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\0324\n\022WebAccessUrisEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:i\352Af\n#aipl" + + "atform.googleapis.com/CustomJob\022?project" + + "s/{project}/locations/{location}/customJ" + + "obs/{custom_job}\"\305\003\n\rCustomJobSpec\022O\n\021wo" + + "rker_pool_specs\030\001 \003(\0132/.google.cloud.aip" + + "latform.v1beta1.WorkerPoolSpecB\003\340A\002\022?\n\ns" + + "cheduling\030\003 \001(\0132+.google.cloud.aiplatfor" + + "m.v1beta1.Scheduling\022\027\n\017service_account\030" + + "\004 \001(\t\0224\n\007network\030\005 \001(\tB#\372A \n\036compute.goo" + + "gleapis.com/Network\022\037\n\022reserved_ip_range" + + "s\030\r \003(\tB\003\340A\001\022N\n\025base_output_directory\030\006 " + + "\001(\0132/.google.cloud.aiplatform.v1beta1.Gc" + + "sDestination\022B\n\013tensorboard\030\007 \001(\tB-\340A\001\372A" + + "\'\n%aiplatform.googleapis.com/Tensorboard" + + "\022\036\n\021enable_web_access\030\n \001(\010B\003\340A\001\"\237\003\n\016Wor" + + "kerPoolSpec\022H\n\016container_spec\030\006 \001(\0132..go" + + "ogle.cloud.aiplatform.v1beta1.ContainerS" + + "pecH\000\022Q\n\023python_package_spec\030\007 \001(\01322.goo" + + "gle.cloud.aiplatform.v1beta1.PythonPacka" + + "geSpecH\000\022J\n\014machine_spec\030\001 \001(\0132,.google." + + "cloud.aiplatform.v1beta1.MachineSpecB\006\340A" + + "\001\340A\005\022\032\n\rreplica_count\030\002 \001(\003B\003\340A\001\022B\n\nnfs_" + + "mounts\030\004 \003(\0132).google.cloud.aiplatform.v" + + "1beta1.NfsMountB\003\340A\001\022<\n\tdisk_spec\030\005 \001(\0132" + + ").google.cloud.aiplatform.v1beta1.DiskSp" + + "ecB\006\n\004task\"|\n\rContainerSpec\022\026\n\timage_uri" + + "\030\001 \001(\tB\003\340A\002\022\017\n\007command\030\002 \003(\t\022\014\n\004args\030\003 \003" + + "(\t\0224\n\003env\030\004 \003(\0132\'.google.cloud.aiplatfor" + + "m.v1beta1.EnvVar\"\257\001\n\021PythonPackageSpec\022\037" + + "\n\022executor_image_uri\030\001 \001(\tB\003\340A\002\022\031\n\014packa" + + "ge_uris\030\002 \003(\tB\003\340A\002\022\032\n\rpython_module\030\003 \001(" + + "\tB\003\340A\002\022\014\n\004args\030\004 \003(\t\0224\n\003env\030\005 \003(\0132\'.goog" + + "le.cloud.aiplatform.v1beta1.EnvVar\"_\n\nSc" + + "heduling\022*\n\007timeout\030\001 \001(\0132\031.google.proto" + + "buf.Duration\022%\n\035restart_job_on_worker_re" + + "start\030\003 \001(\010B\353\001\n#com.google.cloud.aiplatf" + + "orm.v1beta1B\016CustomJobProtoP\001ZIgoogle.go" + + "lang.org/genproto/googleapis/cloud/aipla" + + "tform/v1beta1;aiplatform\252\002\037Google.Cloud." + + "AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPlat" + + "form\\V1beta1\352\002\"Google::Cloud::AIPlatform" + + "::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -145,6 +149,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.EnvVarProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.JobStateProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.MachineResourcesProto.getDescriptor(), @@ -226,7 +231,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ContainerSpec_descriptor, new java.lang.String[] { - "ImageUri", "Command", "Args", + "ImageUri", "Command", "Args", "Env", }); internal_static_google_cloud_aiplatform_v1beta1_PythonPackageSpec_descriptor = getDescriptor().getMessageTypes().get(4); @@ -234,7 +239,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_PythonPackageSpec_descriptor, new java.lang.String[] { - "ExecutorImageUri", "PackageUris", "PythonModule", "Args", + "ExecutorImageUri", "PackageUris", "PythonModule", "Args", "Env", }); internal_static_google_cloud_aiplatform_v1beta1_Scheduling_descriptor = getDescriptor().getMessageTypes().get(5); @@ -254,6 +259,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.EnvVarProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.JobStateProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.MachineResourcesProto.getDescriptor(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemName.java index c9e25e49ecd4..d7cf44cfc634 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobName.java index 2b5c684a59c4..6adf7242c790 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetName.java index 73fcd43110f2..0b96166be099 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModel.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModel.java index 3ee57d249906..cb0df5f670c3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModel.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModel.java @@ -460,8 +460,10 @@ public com.google.protobuf.ByteString getIdBytes() { * * *
-   * Required. The name of the Model that this is the deployment of. Note that the Model
-   * may be in a different location than the DeployedModel's Endpoint.
+   * Required. The resource name of the Model that this is the deployment of. Note that
+   * the Model may be in a different location than the DeployedModel's Endpoint.
+   * The resource name may contain version id or version alias to specify the
+   * version, if no version is specified, the default version will be deployed.
    * 
* * @@ -486,8 +488,10 @@ public java.lang.String getModel() { * * *
-   * Required. The name of the Model that this is the deployment of. Note that the Model
-   * may be in a different location than the DeployedModel's Endpoint.
+   * Required. The resource name of the Model that this is the deployment of. Note that
+   * the Model may be in a different location than the DeployedModel's Endpoint.
+   * The resource name may contain version id or version alias to specify the
+   * version, if no version is specified, the default version will be deployed.
    * 
* * @@ -2045,8 +2049,10 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The name of the Model that this is the deployment of. Note that the Model
-     * may be in a different location than the DeployedModel's Endpoint.
+     * Required. The resource name of the Model that this is the deployment of. Note that
+     * the Model may be in a different location than the DeployedModel's Endpoint.
+     * The resource name may contain version id or version alias to specify the
+     * version, if no version is specified, the default version will be deployed.
      * 
* * @@ -2070,8 +2076,10 @@ public java.lang.String getModel() { * * *
-     * Required. The name of the Model that this is the deployment of. Note that the Model
-     * may be in a different location than the DeployedModel's Endpoint.
+     * Required. The resource name of the Model that this is the deployment of. Note that
+     * the Model may be in a different location than the DeployedModel's Endpoint.
+     * The resource name may contain version id or version alias to specify the
+     * version, if no version is specified, the default version will be deployed.
      * 
* * @@ -2095,8 +2103,10 @@ public com.google.protobuf.ByteString getModelBytes() { * * *
-     * Required. The name of the Model that this is the deployment of. Note that the Model
-     * may be in a different location than the DeployedModel's Endpoint.
+     * Required. The resource name of the Model that this is the deployment of. Note that
+     * the Model may be in a different location than the DeployedModel's Endpoint.
+     * The resource name may contain version id or version alias to specify the
+     * version, if no version is specified, the default version will be deployed.
      * 
* * @@ -2119,8 +2129,10 @@ public Builder setModel(java.lang.String value) { * * *
-     * Required. The name of the Model that this is the deployment of. Note that the Model
-     * may be in a different location than the DeployedModel's Endpoint.
+     * Required. The resource name of the Model that this is the deployment of. Note that
+     * the Model may be in a different location than the DeployedModel's Endpoint.
+     * The resource name may contain version id or version alias to specify the
+     * version, if no version is specified, the default version will be deployed.
      * 
* * @@ -2139,8 +2151,10 @@ public Builder clearModel() { * * *
-     * Required. The name of the Model that this is the deployment of. Note that the Model
-     * may be in a different location than the DeployedModel's Endpoint.
+     * Required. The resource name of the Model that this is the deployment of. Note that
+     * the Model may be in a different location than the DeployedModel's Endpoint.
+     * The resource name may contain version id or version alias to specify the
+     * version, if no version is specified, the default version will be deployed.
      * 
* * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelOrBuilder.java index 435d8ec686b4..67dcb95c2b1b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelOrBuilder.java @@ -132,8 +132,10 @@ public interface DeployedModelOrBuilder * * *
-   * Required. The name of the Model that this is the deployment of. Note that the Model
-   * may be in a different location than the DeployedModel's Endpoint.
+   * Required. The resource name of the Model that this is the deployment of. Note that
+   * the Model may be in a different location than the DeployedModel's Endpoint.
+   * The resource name may contain version id or version alias to specify the
+   * version, if no version is specified, the default version will be deployed.
    * 
* * @@ -147,8 +149,10 @@ public interface DeployedModelOrBuilder * * *
-   * Required. The name of the Model that this is the deployment of. Note that the Model
-   * may be in a different location than the DeployedModel's Endpoint.
+   * Required. The resource name of the Model that this is the deployment of. Note that
+   * the Model may be in a different location than the DeployedModel's Endpoint.
+   * The resource name may contain version id or version alias to specify the
+   * version, if no version is specified, the default version will be deployed.
    * 
* * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointName.java index 3f615498ecce..d7eb15616724 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeName.java index 93b085dacaea..dc705b5db4e0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Examples.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Examples.java index e21669e2be1a..9b5158a2b6e0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Examples.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Examples.java @@ -88,16 +88,15 @@ private Examples( case 18: { com.google.protobuf.Value.Builder subBuilder = null; - if (nearestNeighborSearchConfig_ != null) { - subBuilder = nearestNeighborSearchConfig_.toBuilder(); + if (configCase_ == 2) { + subBuilder = ((com.google.protobuf.Value) config_).toBuilder(); } - nearestNeighborSearchConfig_ = - input.readMessage(com.google.protobuf.Value.parser(), extensionRegistry); + config_ = input.readMessage(com.google.protobuf.Value.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(nearestNeighborSearchConfig_); - nearestNeighborSearchConfig_ = subBuilder.buildPartial(); + subBuilder.mergeFrom((com.google.protobuf.Value) config_); + config_ = subBuilder.buildPartial(); } - + configCase_ = 2; break; } case 24: @@ -105,6 +104,22 @@ private Examples( neighborCount_ = input.readInt32(); break; } + case 34: + { + com.google.cloud.aiplatform.v1beta1.Presets.Builder subBuilder = null; + if (configCase_ == 4) { + subBuilder = ((com.google.cloud.aiplatform.v1beta1.Presets) config_).toBuilder(); + } + config_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Presets.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.aiplatform.v1beta1.Presets) config_); + config_ = subBuilder.buildPartial(); + } + configCase_ = 4; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -141,103 +156,207 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.Examples.Builder.class); } - public static final int GCS_SOURCE_FIELD_NUMBER = 1; - private com.google.cloud.aiplatform.v1beta1.GcsSource gcsSource_; + private int configCase_ = 0; + private java.lang.Object config_; + + public enum ConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + NEAREST_NEIGHBOR_SEARCH_CONFIG(2), + PRESETS(4), + CONFIG_NOT_SET(0); + private final int value; + + private ConfigCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ConfigCase valueOf(int value) { + return forNumber(value); + } + + public static ConfigCase forNumber(int value) { + switch (value) { + case 2: + return NEAREST_NEIGHBOR_SEARCH_CONFIG; + case 4: + return PRESETS; + case 0: + return CONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ConfigCase getConfigCase() { + return ConfigCase.forNumber(configCase_); + } + + public static final int NEAREST_NEIGHBOR_SEARCH_CONFIG_FIELD_NUMBER = 2; /** * * *
-   * The Cloud Storage location for the input instances.
+   * The configuration for the generated index, the semantics are the same as
+   * [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig.
    * 
* - * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; + * .google.protobuf.Value nearest_neighbor_search_config = 2; * - * @return Whether the gcsSource field is set. + * @return Whether the nearestNeighborSearchConfig field is set. */ @java.lang.Override - public boolean hasGcsSource() { - return gcsSource_ != null; + public boolean hasNearestNeighborSearchConfig() { + return configCase_ == 2; } /** * * *
-   * The Cloud Storage location for the input instances.
+   * The configuration for the generated index, the semantics are the same as
+   * [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig.
    * 
* - * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; + * .google.protobuf.Value nearest_neighbor_search_config = 2; * - * @return The gcsSource. + * @return The nearestNeighborSearchConfig. */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.GcsSource getGcsSource() { - return gcsSource_ == null - ? com.google.cloud.aiplatform.v1beta1.GcsSource.getDefaultInstance() - : gcsSource_; + public com.google.protobuf.Value getNearestNeighborSearchConfig() { + if (configCase_ == 2) { + return (com.google.protobuf.Value) config_; + } + return com.google.protobuf.Value.getDefaultInstance(); } /** * * *
-   * The Cloud Storage location for the input instances.
+   * The configuration for the generated index, the semantics are the same as
+   * [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig.
    * 
* - * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; + * .google.protobuf.Value nearest_neighbor_search_config = 2; */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() { - return getGcsSource(); + public com.google.protobuf.ValueOrBuilder getNearestNeighborSearchConfigOrBuilder() { + if (configCase_ == 2) { + return (com.google.protobuf.Value) config_; + } + return com.google.protobuf.Value.getDefaultInstance(); } - public static final int NEAREST_NEIGHBOR_SEARCH_CONFIG_FIELD_NUMBER = 2; - private com.google.protobuf.Value nearestNeighborSearchConfig_; + public static final int PRESETS_FIELD_NUMBER = 4; /** * * *
-   * The configuration for the generated index, the semantics are the same as
-   * [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig.
+   * Preset config based on the desired query speed-precision trade-off
+   * and modality
    * 
* - * .google.protobuf.Value nearest_neighbor_search_config = 2; + * .google.cloud.aiplatform.v1beta1.Presets presets = 4; * - * @return Whether the nearestNeighborSearchConfig field is set. + * @return Whether the presets field is set. */ @java.lang.Override - public boolean hasNearestNeighborSearchConfig() { - return nearestNeighborSearchConfig_ != null; + public boolean hasPresets() { + return configCase_ == 4; } /** * * *
-   * The configuration for the generated index, the semantics are the same as
-   * [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig.
+   * Preset config based on the desired query speed-precision trade-off
+   * and modality
    * 
* - * .google.protobuf.Value nearest_neighbor_search_config = 2; + * .google.cloud.aiplatform.v1beta1.Presets presets = 4; * - * @return The nearestNeighborSearchConfig. + * @return The presets. */ @java.lang.Override - public com.google.protobuf.Value getNearestNeighborSearchConfig() { - return nearestNeighborSearchConfig_ == null - ? com.google.protobuf.Value.getDefaultInstance() - : nearestNeighborSearchConfig_; + public com.google.cloud.aiplatform.v1beta1.Presets getPresets() { + if (configCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.Presets) config_; + } + return com.google.cloud.aiplatform.v1beta1.Presets.getDefaultInstance(); } /** * * *
-   * The configuration for the generated index, the semantics are the same as
-   * [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig.
+   * Preset config based on the desired query speed-precision trade-off
+   * and modality
    * 
* - * .google.protobuf.Value nearest_neighbor_search_config = 2; + * .google.cloud.aiplatform.v1beta1.Presets presets = 4; */ @java.lang.Override - public com.google.protobuf.ValueOrBuilder getNearestNeighborSearchConfigOrBuilder() { - return getNearestNeighborSearchConfig(); + public com.google.cloud.aiplatform.v1beta1.PresetsOrBuilder getPresetsOrBuilder() { + if (configCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.Presets) config_; + } + return com.google.cloud.aiplatform.v1beta1.Presets.getDefaultInstance(); + } + + public static final int GCS_SOURCE_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GcsSource gcsSource_; + /** + * + * + *
+   * The Cloud Storage location for the input instances.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; + * + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return gcsSource_ != null; + } + /** + * + * + *
+   * The Cloud Storage location for the input instances.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; + * + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GcsSource getGcsSource() { + return gcsSource_ == null + ? com.google.cloud.aiplatform.v1beta1.GcsSource.getDefaultInstance() + : gcsSource_; + } + /** + * + * + *
+   * The Cloud Storage location for the input instances.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() { + return getGcsSource(); } public static final int NEIGHBOR_COUNT_FIELD_NUMBER = 3; @@ -275,12 +394,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (gcsSource_ != null) { output.writeMessage(1, getGcsSource()); } - if (nearestNeighborSearchConfig_ != null) { - output.writeMessage(2, getNearestNeighborSearchConfig()); + if (configCase_ == 2) { + output.writeMessage(2, (com.google.protobuf.Value) config_); } if (neighborCount_ != 0) { output.writeInt32(3, neighborCount_); } + if (configCase_ == 4) { + output.writeMessage(4, (com.google.cloud.aiplatform.v1beta1.Presets) config_); + } unknownFields.writeTo(output); } @@ -293,14 +415,19 @@ public int getSerializedSize() { if (gcsSource_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcsSource()); } - if (nearestNeighborSearchConfig_ != null) { + if (configCase_ == 2) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getNearestNeighborSearchConfig()); + 2, (com.google.protobuf.Value) config_); } if (neighborCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, neighborCount_); } + if (configCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.aiplatform.v1beta1.Presets) config_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -321,12 +448,19 @@ public boolean equals(final java.lang.Object obj) { if (hasGcsSource()) { if (!getGcsSource().equals(other.getGcsSource())) return false; } - if (hasNearestNeighborSearchConfig() != other.hasNearestNeighborSearchConfig()) return false; - if (hasNearestNeighborSearchConfig()) { - if (!getNearestNeighborSearchConfig().equals(other.getNearestNeighborSearchConfig())) - return false; - } if (getNeighborCount() != other.getNeighborCount()) return false; + if (!getConfigCase().equals(other.getConfigCase())) return false; + switch (configCase_) { + case 2: + if (!getNearestNeighborSearchConfig().equals(other.getNearestNeighborSearchConfig())) + return false; + break; + case 4: + if (!getPresets().equals(other.getPresets())) return false; + break; + case 0: + default: + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -342,12 +476,20 @@ public int hashCode() { hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; hash = (53 * hash) + getGcsSource().hashCode(); } - if (hasNearestNeighborSearchConfig()) { - hash = (37 * hash) + NEAREST_NEIGHBOR_SEARCH_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getNearestNeighborSearchConfig().hashCode(); - } hash = (37 * hash) + NEIGHBOR_COUNT_FIELD_NUMBER; hash = (53 * hash) + getNeighborCount(); + switch (configCase_) { + case 2: + hash = (37 * hash) + NEAREST_NEIGHBOR_SEARCH_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNearestNeighborSearchConfig().hashCode(); + break; + case 4: + hash = (37 * hash) + PRESETS_FIELD_NUMBER; + hash = (53 * hash) + getPresets().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -500,14 +642,10 @@ public Builder clear() { gcsSource_ = null; gcsSourceBuilder_ = null; } - if (nearestNeighborSearchConfigBuilder_ == null) { - nearestNeighborSearchConfig_ = null; - } else { - nearestNeighborSearchConfig_ = null; - nearestNeighborSearchConfigBuilder_ = null; - } neighborCount_ = 0; + configCase_ = 0; + config_ = null; return this; } @@ -535,17 +673,27 @@ public com.google.cloud.aiplatform.v1beta1.Examples build() { public com.google.cloud.aiplatform.v1beta1.Examples buildPartial() { com.google.cloud.aiplatform.v1beta1.Examples result = new com.google.cloud.aiplatform.v1beta1.Examples(this); + if (configCase_ == 2) { + if (nearestNeighborSearchConfigBuilder_ == null) { + result.config_ = config_; + } else { + result.config_ = nearestNeighborSearchConfigBuilder_.build(); + } + } + if (configCase_ == 4) { + if (presetsBuilder_ == null) { + result.config_ = config_; + } else { + result.config_ = presetsBuilder_.build(); + } + } if (gcsSourceBuilder_ == null) { result.gcsSource_ = gcsSource_; } else { result.gcsSource_ = gcsSourceBuilder_.build(); } - if (nearestNeighborSearchConfigBuilder_ == null) { - result.nearestNeighborSearchConfig_ = nearestNeighborSearchConfig_; - } else { - result.nearestNeighborSearchConfig_ = nearestNeighborSearchConfigBuilder_.build(); - } result.neighborCount_ = neighborCount_; + result.configCase_ = configCase_; onBuilt(); return result; } @@ -598,12 +746,25 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Examples other) { if (other.hasGcsSource()) { mergeGcsSource(other.getGcsSource()); } - if (other.hasNearestNeighborSearchConfig()) { - mergeNearestNeighborSearchConfig(other.getNearestNeighborSearchConfig()); - } if (other.getNeighborCount() != 0) { setNeighborCount(other.getNeighborCount()); } + switch (other.getConfigCase()) { + case NEAREST_NEIGHBOR_SEARCH_CONFIG: + { + mergeNearestNeighborSearchConfig(other.getNearestNeighborSearchConfig()); + break; + } + case PRESETS: + { + mergePresets(other.getPresets()); + break; + } + case CONFIG_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -633,253 +794,511 @@ public Builder mergeFrom( return this; } - private com.google.cloud.aiplatform.v1beta1.GcsSource gcsSource_; + private int configCase_ = 0; + private java.lang.Object config_; + + public ConfigCase getConfigCase() { + return ConfigCase.forNumber(configCase_); + } + + public Builder clearConfig() { + configCase_ = 0; + config_ = null; + onChanged(); + return this; + } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.GcsSource, - com.google.cloud.aiplatform.v1beta1.GcsSource.Builder, - com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + nearestNeighborSearchConfigBuilder_; /** * * *
-     * The Cloud Storage location for the input instances.
+     * The configuration for the generated index, the semantics are the same as
+     * [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig.
      * 
* - * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; + * .google.protobuf.Value nearest_neighbor_search_config = 2; * - * @return Whether the gcsSource field is set. + * @return Whether the nearestNeighborSearchConfig field is set. */ - public boolean hasGcsSource() { - return gcsSourceBuilder_ != null || gcsSource_ != null; + @java.lang.Override + public boolean hasNearestNeighborSearchConfig() { + return configCase_ == 2; } /** * * *
-     * The Cloud Storage location for the input instances.
+     * The configuration for the generated index, the semantics are the same as
+     * [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig.
      * 
* - * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; + * .google.protobuf.Value nearest_neighbor_search_config = 2; * - * @return The gcsSource. + * @return The nearestNeighborSearchConfig. */ - public com.google.cloud.aiplatform.v1beta1.GcsSource getGcsSource() { - if (gcsSourceBuilder_ == null) { - return gcsSource_ == null - ? com.google.cloud.aiplatform.v1beta1.GcsSource.getDefaultInstance() - : gcsSource_; + @java.lang.Override + public com.google.protobuf.Value getNearestNeighborSearchConfig() { + if (nearestNeighborSearchConfigBuilder_ == null) { + if (configCase_ == 2) { + return (com.google.protobuf.Value) config_; + } + return com.google.protobuf.Value.getDefaultInstance(); } else { - return gcsSourceBuilder_.getMessage(); + if (configCase_ == 2) { + return nearestNeighborSearchConfigBuilder_.getMessage(); + } + return com.google.protobuf.Value.getDefaultInstance(); } } /** * * *
-     * The Cloud Storage location for the input instances.
+     * The configuration for the generated index, the semantics are the same as
+     * [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig.
      * 
* - * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; + * .google.protobuf.Value nearest_neighbor_search_config = 2; */ - public Builder setGcsSource(com.google.cloud.aiplatform.v1beta1.GcsSource value) { - if (gcsSourceBuilder_ == null) { + public Builder setNearestNeighborSearchConfig(com.google.protobuf.Value value) { + if (nearestNeighborSearchConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - gcsSource_ = value; + config_ = value; onChanged(); } else { - gcsSourceBuilder_.setMessage(value); + nearestNeighborSearchConfigBuilder_.setMessage(value); } - + configCase_ = 2; return this; } /** * * *
-     * The Cloud Storage location for the input instances.
+     * The configuration for the generated index, the semantics are the same as
+     * [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig.
      * 
* - * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; + * .google.protobuf.Value nearest_neighbor_search_config = 2; */ - public Builder setGcsSource( - com.google.cloud.aiplatform.v1beta1.GcsSource.Builder builderForValue) { - if (gcsSourceBuilder_ == null) { - gcsSource_ = builderForValue.build(); + public Builder setNearestNeighborSearchConfig( + com.google.protobuf.Value.Builder builderForValue) { + if (nearestNeighborSearchConfigBuilder_ == null) { + config_ = builderForValue.build(); onChanged(); } else { - gcsSourceBuilder_.setMessage(builderForValue.build()); + nearestNeighborSearchConfigBuilder_.setMessage(builderForValue.build()); } - + configCase_ = 2; return this; } /** * * *
-     * The Cloud Storage location for the input instances.
+     * The configuration for the generated index, the semantics are the same as
+     * [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig.
      * 
* - * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; + * .google.protobuf.Value nearest_neighbor_search_config = 2; */ - public Builder mergeGcsSource(com.google.cloud.aiplatform.v1beta1.GcsSource value) { - if (gcsSourceBuilder_ == null) { - if (gcsSource_ != null) { - gcsSource_ = - com.google.cloud.aiplatform.v1beta1.GcsSource.newBuilder(gcsSource_) + public Builder mergeNearestNeighborSearchConfig(com.google.protobuf.Value value) { + if (nearestNeighborSearchConfigBuilder_ == null) { + if (configCase_ == 2 && config_ != com.google.protobuf.Value.getDefaultInstance()) { + config_ = + com.google.protobuf.Value.newBuilder((com.google.protobuf.Value) config_) .mergeFrom(value) .buildPartial(); } else { - gcsSource_ = value; + config_ = value; } onChanged(); } else { - gcsSourceBuilder_.mergeFrom(value); + if (configCase_ == 2) { + nearestNeighborSearchConfigBuilder_.mergeFrom(value); + } else { + nearestNeighborSearchConfigBuilder_.setMessage(value); + } } - + configCase_ = 2; return this; } /** * * *
-     * The Cloud Storage location for the input instances.
+     * The configuration for the generated index, the semantics are the same as
+     * [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig.
      * 
* - * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; + * .google.protobuf.Value nearest_neighbor_search_config = 2; */ - public Builder clearGcsSource() { - if (gcsSourceBuilder_ == null) { - gcsSource_ = null; - onChanged(); + public Builder clearNearestNeighborSearchConfig() { + if (nearestNeighborSearchConfigBuilder_ == null) { + if (configCase_ == 2) { + configCase_ = 0; + config_ = null; + onChanged(); + } } else { - gcsSource_ = null; - gcsSourceBuilder_ = null; + if (configCase_ == 2) { + configCase_ = 0; + config_ = null; + } + nearestNeighborSearchConfigBuilder_.clear(); } - return this; } /** * * *
-     * The Cloud Storage location for the input instances.
+     * The configuration for the generated index, the semantics are the same as
+     * [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig.
      * 
* - * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; + * .google.protobuf.Value nearest_neighbor_search_config = 2; */ - public com.google.cloud.aiplatform.v1beta1.GcsSource.Builder getGcsSourceBuilder() { - + public com.google.protobuf.Value.Builder getNearestNeighborSearchConfigBuilder() { + return getNearestNeighborSearchConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The configuration for the generated index, the semantics are the same as
+     * [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig.
+     * 
+ * + * .google.protobuf.Value nearest_neighbor_search_config = 2; + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getNearestNeighborSearchConfigOrBuilder() { + if ((configCase_ == 2) && (nearestNeighborSearchConfigBuilder_ != null)) { + return nearestNeighborSearchConfigBuilder_.getMessageOrBuilder(); + } else { + if (configCase_ == 2) { + return (com.google.protobuf.Value) config_; + } + return com.google.protobuf.Value.getDefaultInstance(); + } + } + /** + * + * + *
+     * The configuration for the generated index, the semantics are the same as
+     * [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig.
+     * 
+ * + * .google.protobuf.Value nearest_neighbor_search_config = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + getNearestNeighborSearchConfigFieldBuilder() { + if (nearestNeighborSearchConfigBuilder_ == null) { + if (!(configCase_ == 2)) { + config_ = com.google.protobuf.Value.getDefaultInstance(); + } + nearestNeighborSearchConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>( + (com.google.protobuf.Value) config_, getParentForChildren(), isClean()); + config_ = null; + } + configCase_ = 2; onChanged(); - return getGcsSourceFieldBuilder().getBuilder(); + ; + return nearestNeighborSearchConfigBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Presets, + com.google.cloud.aiplatform.v1beta1.Presets.Builder, + com.google.cloud.aiplatform.v1beta1.PresetsOrBuilder> + presetsBuilder_; /** * * *
-     * The Cloud Storage location for the input instances.
+     * Preset config based on the desired query speed-precision trade-off
+     * and modality
      * 
* - * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; + * .google.cloud.aiplatform.v1beta1.Presets presets = 4; + * + * @return Whether the presets field is set. */ - public com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() { - if (gcsSourceBuilder_ != null) { - return gcsSourceBuilder_.getMessageOrBuilder(); + @java.lang.Override + public boolean hasPresets() { + return configCase_ == 4; + } + /** + * + * + *
+     * Preset config based on the desired query speed-precision trade-off
+     * and modality
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Presets presets = 4; + * + * @return The presets. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Presets getPresets() { + if (presetsBuilder_ == null) { + if (configCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.Presets) config_; + } + return com.google.cloud.aiplatform.v1beta1.Presets.getDefaultInstance(); } else { - return gcsSource_ == null - ? com.google.cloud.aiplatform.v1beta1.GcsSource.getDefaultInstance() - : gcsSource_; + if (configCase_ == 4) { + return presetsBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.Presets.getDefaultInstance(); } } /** * * *
-     * The Cloud Storage location for the input instances.
+     * Preset config based on the desired query speed-precision trade-off
+     * and modality
      * 
* - * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; + * .google.cloud.aiplatform.v1beta1.Presets presets = 4; + */ + public Builder setPresets(com.google.cloud.aiplatform.v1beta1.Presets value) { + if (presetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + onChanged(); + } else { + presetsBuilder_.setMessage(value); + } + configCase_ = 4; + return this; + } + /** + * + * + *
+     * Preset config based on the desired query speed-precision trade-off
+     * and modality
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Presets presets = 4; + */ + public Builder setPresets(com.google.cloud.aiplatform.v1beta1.Presets.Builder builderForValue) { + if (presetsBuilder_ == null) { + config_ = builderForValue.build(); + onChanged(); + } else { + presetsBuilder_.setMessage(builderForValue.build()); + } + configCase_ = 4; + return this; + } + /** + * + * + *
+     * Preset config based on the desired query speed-precision trade-off
+     * and modality
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Presets presets = 4; + */ + public Builder mergePresets(com.google.cloud.aiplatform.v1beta1.Presets value) { + if (presetsBuilder_ == null) { + if (configCase_ == 4 + && config_ != com.google.cloud.aiplatform.v1beta1.Presets.getDefaultInstance()) { + config_ = + com.google.cloud.aiplatform.v1beta1.Presets.newBuilder( + (com.google.cloud.aiplatform.v1beta1.Presets) config_) + .mergeFrom(value) + .buildPartial(); + } else { + config_ = value; + } + onChanged(); + } else { + if (configCase_ == 4) { + presetsBuilder_.mergeFrom(value); + } else { + presetsBuilder_.setMessage(value); + } + } + configCase_ = 4; + return this; + } + /** + * + * + *
+     * Preset config based on the desired query speed-precision trade-off
+     * and modality
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Presets presets = 4; + */ + public Builder clearPresets() { + if (presetsBuilder_ == null) { + if (configCase_ == 4) { + configCase_ = 0; + config_ = null; + onChanged(); + } + } else { + if (configCase_ == 4) { + configCase_ = 0; + config_ = null; + } + presetsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Preset config based on the desired query speed-precision trade-off
+     * and modality
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Presets presets = 4; + */ + public com.google.cloud.aiplatform.v1beta1.Presets.Builder getPresetsBuilder() { + return getPresetsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Preset config based on the desired query speed-precision trade-off
+     * and modality
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Presets presets = 4; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PresetsOrBuilder getPresetsOrBuilder() { + if ((configCase_ == 4) && (presetsBuilder_ != null)) { + return presetsBuilder_.getMessageOrBuilder(); + } else { + if (configCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.Presets) config_; + } + return com.google.cloud.aiplatform.v1beta1.Presets.getDefaultInstance(); + } + } + /** + * + * + *
+     * Preset config based on the desired query speed-precision trade-off
+     * and modality
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Presets presets = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.GcsSource, - com.google.cloud.aiplatform.v1beta1.GcsSource.Builder, - com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder> - getGcsSourceFieldBuilder() { - if (gcsSourceBuilder_ == null) { - gcsSourceBuilder_ = + com.google.cloud.aiplatform.v1beta1.Presets, + com.google.cloud.aiplatform.v1beta1.Presets.Builder, + com.google.cloud.aiplatform.v1beta1.PresetsOrBuilder> + getPresetsFieldBuilder() { + if (presetsBuilder_ == null) { + if (!(configCase_ == 4)) { + config_ = com.google.cloud.aiplatform.v1beta1.Presets.getDefaultInstance(); + } + presetsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.GcsSource, - com.google.cloud.aiplatform.v1beta1.GcsSource.Builder, - com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder>( - getGcsSource(), getParentForChildren(), isClean()); - gcsSource_ = null; + com.google.cloud.aiplatform.v1beta1.Presets, + com.google.cloud.aiplatform.v1beta1.Presets.Builder, + com.google.cloud.aiplatform.v1beta1.PresetsOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.Presets) config_, + getParentForChildren(), + isClean()); + config_ = null; } - return gcsSourceBuilder_; + configCase_ = 4; + onChanged(); + ; + return presetsBuilder_; } - private com.google.protobuf.Value nearestNeighborSearchConfig_; + private com.google.cloud.aiplatform.v1beta1.GcsSource gcsSource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Value, - com.google.protobuf.Value.Builder, - com.google.protobuf.ValueOrBuilder> - nearestNeighborSearchConfigBuilder_; + com.google.cloud.aiplatform.v1beta1.GcsSource, + com.google.cloud.aiplatform.v1beta1.GcsSource.Builder, + com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder> + gcsSourceBuilder_; /** * * *
-     * The configuration for the generated index, the semantics are the same as
-     * [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig.
+     * The Cloud Storage location for the input instances.
      * 
* - * .google.protobuf.Value nearest_neighbor_search_config = 2; + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; * - * @return Whether the nearestNeighborSearchConfig field is set. + * @return Whether the gcsSource field is set. */ - public boolean hasNearestNeighborSearchConfig() { - return nearestNeighborSearchConfigBuilder_ != null || nearestNeighborSearchConfig_ != null; + public boolean hasGcsSource() { + return gcsSourceBuilder_ != null || gcsSource_ != null; } /** * * *
-     * The configuration for the generated index, the semantics are the same as
-     * [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig.
+     * The Cloud Storage location for the input instances.
      * 
* - * .google.protobuf.Value nearest_neighbor_search_config = 2; + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; * - * @return The nearestNeighborSearchConfig. + * @return The gcsSource. */ - public com.google.protobuf.Value getNearestNeighborSearchConfig() { - if (nearestNeighborSearchConfigBuilder_ == null) { - return nearestNeighborSearchConfig_ == null - ? com.google.protobuf.Value.getDefaultInstance() - : nearestNeighborSearchConfig_; + public com.google.cloud.aiplatform.v1beta1.GcsSource getGcsSource() { + if (gcsSourceBuilder_ == null) { + return gcsSource_ == null + ? com.google.cloud.aiplatform.v1beta1.GcsSource.getDefaultInstance() + : gcsSource_; } else { - return nearestNeighborSearchConfigBuilder_.getMessage(); + return gcsSourceBuilder_.getMessage(); } } /** * * *
-     * The configuration for the generated index, the semantics are the same as
-     * [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig.
+     * The Cloud Storage location for the input instances.
      * 
* - * .google.protobuf.Value nearest_neighbor_search_config = 2; + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; */ - public Builder setNearestNeighborSearchConfig(com.google.protobuf.Value value) { - if (nearestNeighborSearchConfigBuilder_ == null) { + public Builder setGcsSource(com.google.cloud.aiplatform.v1beta1.GcsSource value) { + if (gcsSourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - nearestNeighborSearchConfig_ = value; + gcsSource_ = value; onChanged(); } else { - nearestNeighborSearchConfigBuilder_.setMessage(value); + gcsSourceBuilder_.setMessage(value); } return this; @@ -888,19 +1307,18 @@ public Builder setNearestNeighborSearchConfig(com.google.protobuf.Value value) { * * *
-     * The configuration for the generated index, the semantics are the same as
-     * [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig.
+     * The Cloud Storage location for the input instances.
      * 
* - * .google.protobuf.Value nearest_neighbor_search_config = 2; + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; */ - public Builder setNearestNeighborSearchConfig( - com.google.protobuf.Value.Builder builderForValue) { - if (nearestNeighborSearchConfigBuilder_ == null) { - nearestNeighborSearchConfig_ = builderForValue.build(); + public Builder setGcsSource( + com.google.cloud.aiplatform.v1beta1.GcsSource.Builder builderForValue) { + if (gcsSourceBuilder_ == null) { + gcsSource_ = builderForValue.build(); onChanged(); } else { - nearestNeighborSearchConfigBuilder_.setMessage(builderForValue.build()); + gcsSourceBuilder_.setMessage(builderForValue.build()); } return this; @@ -909,25 +1327,24 @@ public Builder setNearestNeighborSearchConfig( * * *
-     * The configuration for the generated index, the semantics are the same as
-     * [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig.
+     * The Cloud Storage location for the input instances.
      * 
* - * .google.protobuf.Value nearest_neighbor_search_config = 2; + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; */ - public Builder mergeNearestNeighborSearchConfig(com.google.protobuf.Value value) { - if (nearestNeighborSearchConfigBuilder_ == null) { - if (nearestNeighborSearchConfig_ != null) { - nearestNeighborSearchConfig_ = - com.google.protobuf.Value.newBuilder(nearestNeighborSearchConfig_) + public Builder mergeGcsSource(com.google.cloud.aiplatform.v1beta1.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (gcsSource_ != null) { + gcsSource_ = + com.google.cloud.aiplatform.v1beta1.GcsSource.newBuilder(gcsSource_) .mergeFrom(value) .buildPartial(); } else { - nearestNeighborSearchConfig_ = value; + gcsSource_ = value; } onChanged(); } else { - nearestNeighborSearchConfigBuilder_.mergeFrom(value); + gcsSourceBuilder_.mergeFrom(value); } return this; @@ -936,19 +1353,18 @@ public Builder mergeNearestNeighborSearchConfig(com.google.protobuf.Value value) * * *
-     * The configuration for the generated index, the semantics are the same as
-     * [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig.
+     * The Cloud Storage location for the input instances.
      * 
* - * .google.protobuf.Value nearest_neighbor_search_config = 2; + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; */ - public Builder clearNearestNeighborSearchConfig() { - if (nearestNeighborSearchConfigBuilder_ == null) { - nearestNeighborSearchConfig_ = null; + public Builder clearGcsSource() { + if (gcsSourceBuilder_ == null) { + gcsSource_ = null; onChanged(); } else { - nearestNeighborSearchConfig_ = null; - nearestNeighborSearchConfigBuilder_ = null; + gcsSource_ = null; + gcsSourceBuilder_ = null; } return this; @@ -957,61 +1373,58 @@ public Builder clearNearestNeighborSearchConfig() { * * *
-     * The configuration for the generated index, the semantics are the same as
-     * [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig.
+     * The Cloud Storage location for the input instances.
      * 
* - * .google.protobuf.Value nearest_neighbor_search_config = 2; + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; */ - public com.google.protobuf.Value.Builder getNearestNeighborSearchConfigBuilder() { + public com.google.cloud.aiplatform.v1beta1.GcsSource.Builder getGcsSourceBuilder() { onChanged(); - return getNearestNeighborSearchConfigFieldBuilder().getBuilder(); + return getGcsSourceFieldBuilder().getBuilder(); } /** * * *
-     * The configuration for the generated index, the semantics are the same as
-     * [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig.
+     * The Cloud Storage location for the input instances.
      * 
* - * .google.protobuf.Value nearest_neighbor_search_config = 2; + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; */ - public com.google.protobuf.ValueOrBuilder getNearestNeighborSearchConfigOrBuilder() { - if (nearestNeighborSearchConfigBuilder_ != null) { - return nearestNeighborSearchConfigBuilder_.getMessageOrBuilder(); + public com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if (gcsSourceBuilder_ != null) { + return gcsSourceBuilder_.getMessageOrBuilder(); } else { - return nearestNeighborSearchConfig_ == null - ? com.google.protobuf.Value.getDefaultInstance() - : nearestNeighborSearchConfig_; + return gcsSource_ == null + ? com.google.cloud.aiplatform.v1beta1.GcsSource.getDefaultInstance() + : gcsSource_; } } /** * * *
-     * The configuration for the generated index, the semantics are the same as
-     * [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig.
+     * The Cloud Storage location for the input instances.
      * 
* - * .google.protobuf.Value nearest_neighbor_search_config = 2; + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Value, - com.google.protobuf.Value.Builder, - com.google.protobuf.ValueOrBuilder> - getNearestNeighborSearchConfigFieldBuilder() { - if (nearestNeighborSearchConfigBuilder_ == null) { - nearestNeighborSearchConfigBuilder_ = + com.google.cloud.aiplatform.v1beta1.GcsSource, + com.google.cloud.aiplatform.v1beta1.GcsSource.Builder, + com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder> + getGcsSourceFieldBuilder() { + if (gcsSourceBuilder_ == null) { + gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Value, - com.google.protobuf.Value.Builder, - com.google.protobuf.ValueOrBuilder>( - getNearestNeighborSearchConfig(), getParentForChildren(), isClean()); - nearestNeighborSearchConfig_ = null; + com.google.cloud.aiplatform.v1beta1.GcsSource, + com.google.cloud.aiplatform.v1beta1.GcsSource.Builder, + com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder>( + getGcsSource(), getParentForChildren(), isClean()); + gcsSource_ = null; } - return nearestNeighborSearchConfigBuilder_; + return gcsSourceBuilder_; } private int neighborCount_; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExamplesOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExamplesOrBuilder.java index 17d320876d55..87d32fef9dc3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExamplesOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExamplesOrBuilder.java @@ -27,74 +27,112 @@ public interface ExamplesOrBuilder * * *
-   * The Cloud Storage location for the input instances.
+   * The configuration for the generated index, the semantics are the same as
+   * [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig.
    * 
* - * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; + * .google.protobuf.Value nearest_neighbor_search_config = 2; * - * @return Whether the gcsSource field is set. + * @return Whether the nearestNeighborSearchConfig field is set. */ - boolean hasGcsSource(); + boolean hasNearestNeighborSearchConfig(); /** * * *
-   * The Cloud Storage location for the input instances.
+   * The configuration for the generated index, the semantics are the same as
+   * [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig.
    * 
* - * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; + * .google.protobuf.Value nearest_neighbor_search_config = 2; * - * @return The gcsSource. + * @return The nearestNeighborSearchConfig. */ - com.google.cloud.aiplatform.v1beta1.GcsSource getGcsSource(); + com.google.protobuf.Value getNearestNeighborSearchConfig(); /** * * *
-   * The Cloud Storage location for the input instances.
+   * The configuration for the generated index, the semantics are the same as
+   * [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig.
    * 
* - * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; + * .google.protobuf.Value nearest_neighbor_search_config = 2; */ - com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder(); + com.google.protobuf.ValueOrBuilder getNearestNeighborSearchConfigOrBuilder(); /** * * *
-   * The configuration for the generated index, the semantics are the same as
-   * [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig.
+   * Preset config based on the desired query speed-precision trade-off
+   * and modality
    * 
* - * .google.protobuf.Value nearest_neighbor_search_config = 2; + * .google.cloud.aiplatform.v1beta1.Presets presets = 4; * - * @return Whether the nearestNeighborSearchConfig field is set. + * @return Whether the presets field is set. */ - boolean hasNearestNeighborSearchConfig(); + boolean hasPresets(); /** * * *
-   * The configuration for the generated index, the semantics are the same as
-   * [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig.
+   * Preset config based on the desired query speed-precision trade-off
+   * and modality
    * 
* - * .google.protobuf.Value nearest_neighbor_search_config = 2; + * .google.cloud.aiplatform.v1beta1.Presets presets = 4; * - * @return The nearestNeighborSearchConfig. + * @return The presets. */ - com.google.protobuf.Value getNearestNeighborSearchConfig(); + com.google.cloud.aiplatform.v1beta1.Presets getPresets(); /** * * *
-   * The configuration for the generated index, the semantics are the same as
-   * [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig.
+   * Preset config based on the desired query speed-precision trade-off
+   * and modality
    * 
* - * .google.protobuf.Value nearest_neighbor_search_config = 2; + * .google.cloud.aiplatform.v1beta1.Presets presets = 4; */ - com.google.protobuf.ValueOrBuilder getNearestNeighborSearchConfigOrBuilder(); + com.google.cloud.aiplatform.v1beta1.PresetsOrBuilder getPresetsOrBuilder(); + + /** + * + * + *
+   * The Cloud Storage location for the input instances.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; + * + * @return Whether the gcsSource field is set. + */ + boolean hasGcsSource(); + /** + * + * + *
+   * The Cloud Storage location for the input instances.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; + * + * @return The gcsSource. + */ + com.google.cloud.aiplatform.v1beta1.GcsSource getGcsSource(); + /** + * + * + *
+   * The Cloud Storage location for the input instances.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1; + */ + com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder(); /** * @@ -108,4 +146,6 @@ public interface ExamplesOrBuilder * @return The neighborCount. */ int getNeighborCount(); + + public com.google.cloud.aiplatform.v1beta1.Examples.ConfigCase getConfigCase(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExamplesOverride.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExamplesOverride.java new file mode 100644 index 000000000000..6df0899116fc --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExamplesOverride.java @@ -0,0 +1,1610 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/explanation.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Overrides for example-based explanations.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ExamplesOverride} + */ +public final class ExamplesOverride extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ExamplesOverride) + ExamplesOverrideOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExamplesOverride.newBuilder() to construct. + private ExamplesOverride(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExamplesOverride() { + restrictions_ = java.util.Collections.emptyList(); + dataFormat_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExamplesOverride(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExamplesOverride( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + neighborCount_ = input.readInt32(); + break; + } + case 16: + { + crowdingCount_ = input.readInt32(); + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + restrictions_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace>(); + mutable_bitField0_ |= 0x00000001; + } + restrictions_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace.parser(), + extensionRegistry)); + break; + } + case 32: + { + returnEmbeddings_ = input.readBool(); + break; + } + case 40: + { + int rawValue = input.readEnum(); + + dataFormat_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + restrictions_ = java.util.Collections.unmodifiableList(restrictions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1beta1_ExamplesOverride_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1beta1_ExamplesOverride_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ExamplesOverride.class, + com.google.cloud.aiplatform.v1beta1.ExamplesOverride.Builder.class); + } + + /** + * + * + *
+   * Data format enum.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat} + */ + public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified format. Must not be used.
+     * 
+ * + * DATA_FORMAT_UNSPECIFIED = 0; + */ + DATA_FORMAT_UNSPECIFIED(0), + /** + * + * + *
+     * Provided data is a set of model inputs.
+     * 
+ * + * INSTANCES = 1; + */ + INSTANCES(1), + /** + * + * + *
+     * Provided data is a set of embeddings.
+     * 
+ * + * EMBEDDINGS = 2; + */ + EMBEDDINGS(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified format. Must not be used.
+     * 
+ * + * DATA_FORMAT_UNSPECIFIED = 0; + */ + public static final int DATA_FORMAT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Provided data is a set of model inputs.
+     * 
+ * + * INSTANCES = 1; + */ + public static final int INSTANCES_VALUE = 1; + /** + * + * + *
+     * Provided data is a set of embeddings.
+     * 
+ * + * EMBEDDINGS = 2; + */ + public static final int EMBEDDINGS_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DataFormat valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DataFormat forNumber(int value) { + switch (value) { + case 0: + return DATA_FORMAT_UNSPECIFIED; + case 1: + return INSTANCES; + case 2: + return EMBEDDINGS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DataFormat findValueByNumber(int number) { + return DataFormat.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ExamplesOverride.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final DataFormat[] VALUES = values(); + + public static DataFormat valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DataFormat(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat) + } + + public static final int NEIGHBOR_COUNT_FIELD_NUMBER = 1; + private int neighborCount_; + /** + * + * + *
+   * The number of neighbors to return.
+   * 
+ * + * int32 neighbor_count = 1; + * + * @return The neighborCount. + */ + @java.lang.Override + public int getNeighborCount() { + return neighborCount_; + } + + public static final int CROWDING_COUNT_FIELD_NUMBER = 2; + private int crowdingCount_; + /** + * + * + *
+   * The number of neighbors to return that have the same crowding tag.
+   * 
+ * + * int32 crowding_count = 2; + * + * @return The crowdingCount. + */ + @java.lang.Override + public int getCrowdingCount() { + return crowdingCount_; + } + + public static final int RESTRICTIONS_FIELD_NUMBER = 3; + private java.util.List + restrictions_; + /** + * + * + *
+   * Restrict the resulting nearest neighbors to respect these constraints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + @java.lang.Override + public java.util.List + getRestrictionsList() { + return restrictions_; + } + /** + * + * + *
+   * Restrict the resulting nearest neighbors to respect these constraints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespaceOrBuilder> + getRestrictionsOrBuilderList() { + return restrictions_; + } + /** + * + * + *
+   * Restrict the resulting nearest neighbors to respect these constraints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + @java.lang.Override + public int getRestrictionsCount() { + return restrictions_.size(); + } + /** + * + * + *
+   * Restrict the resulting nearest neighbors to respect these constraints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace getRestrictions( + int index) { + return restrictions_.get(index); + } + /** + * + * + *
+   * Restrict the resulting nearest neighbors to respect these constraints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespaceOrBuilder + getRestrictionsOrBuilder(int index) { + return restrictions_.get(index); + } + + public static final int RETURN_EMBEDDINGS_FIELD_NUMBER = 4; + private boolean returnEmbeddings_; + /** + * + * + *
+   * If true, return the embeddings instead of neighbors.
+   * 
+ * + * bool return_embeddings = 4; + * + * @return The returnEmbeddings. + */ + @java.lang.Override + public boolean getReturnEmbeddings() { + return returnEmbeddings_; + } + + public static final int DATA_FORMAT_FIELD_NUMBER = 5; + private int dataFormat_; + /** + * + * + *
+   * The format of the data being provided with each call.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat data_format = 5; + * + * @return The enum numeric value on the wire for dataFormat. + */ + @java.lang.Override + public int getDataFormatValue() { + return dataFormat_; + } + /** + * + * + *
+   * The format of the data being provided with each call.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat data_format = 5; + * + * @return The dataFormat. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat getDataFormat() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat result = + com.google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat.valueOf(dataFormat_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (neighborCount_ != 0) { + output.writeInt32(1, neighborCount_); + } + if (crowdingCount_ != 0) { + output.writeInt32(2, crowdingCount_); + } + for (int i = 0; i < restrictions_.size(); i++) { + output.writeMessage(3, restrictions_.get(i)); + } + if (returnEmbeddings_ != false) { + output.writeBool(4, returnEmbeddings_); + } + if (dataFormat_ + != com.google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat.DATA_FORMAT_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, dataFormat_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (neighborCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, neighborCount_); + } + if (crowdingCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, crowdingCount_); + } + for (int i = 0; i < restrictions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, restrictions_.get(i)); + } + if (returnEmbeddings_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, returnEmbeddings_); + } + if (dataFormat_ + != com.google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat.DATA_FORMAT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, dataFormat_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.ExamplesOverride)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ExamplesOverride other = + (com.google.cloud.aiplatform.v1beta1.ExamplesOverride) obj; + + if (getNeighborCount() != other.getNeighborCount()) return false; + if (getCrowdingCount() != other.getCrowdingCount()) return false; + if (!getRestrictionsList().equals(other.getRestrictionsList())) return false; + if (getReturnEmbeddings() != other.getReturnEmbeddings()) return false; + if (dataFormat_ != other.dataFormat_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NEIGHBOR_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getNeighborCount(); + hash = (37 * hash) + CROWDING_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCrowdingCount(); + if (getRestrictionsCount() > 0) { + hash = (37 * hash) + RESTRICTIONS_FIELD_NUMBER; + hash = (53 * hash) + getRestrictionsList().hashCode(); + } + hash = (37 * hash) + RETURN_EMBEDDINGS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnEmbeddings()); + hash = (37 * hash) + DATA_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + dataFormat_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ExamplesOverride parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ExamplesOverride parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ExamplesOverride parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ExamplesOverride parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ExamplesOverride parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ExamplesOverride parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ExamplesOverride parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ExamplesOverride parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ExamplesOverride parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ExamplesOverride parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ExamplesOverride parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ExamplesOverride parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.ExamplesOverride prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Overrides for example-based explanations.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ExamplesOverride} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ExamplesOverride) + com.google.cloud.aiplatform.v1beta1.ExamplesOverrideOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1beta1_ExamplesOverride_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1beta1_ExamplesOverride_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ExamplesOverride.class, + com.google.cloud.aiplatform.v1beta1.ExamplesOverride.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ExamplesOverride.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRestrictionsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + neighborCount_ = 0; + + crowdingCount_ = 0; + + if (restrictionsBuilder_ == null) { + restrictions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + restrictionsBuilder_.clear(); + } + returnEmbeddings_ = false; + + dataFormat_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1beta1_ExamplesOverride_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExamplesOverride getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ExamplesOverride.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExamplesOverride build() { + com.google.cloud.aiplatform.v1beta1.ExamplesOverride result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExamplesOverride buildPartial() { + com.google.cloud.aiplatform.v1beta1.ExamplesOverride result = + new com.google.cloud.aiplatform.v1beta1.ExamplesOverride(this); + int from_bitField0_ = bitField0_; + result.neighborCount_ = neighborCount_; + result.crowdingCount_ = crowdingCount_; + if (restrictionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + restrictions_ = java.util.Collections.unmodifiableList(restrictions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.restrictions_ = restrictions_; + } else { + result.restrictions_ = restrictionsBuilder_.build(); + } + result.returnEmbeddings_ = returnEmbeddings_; + result.dataFormat_ = dataFormat_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ExamplesOverride) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ExamplesOverride) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ExamplesOverride other) { + if (other == com.google.cloud.aiplatform.v1beta1.ExamplesOverride.getDefaultInstance()) + return this; + if (other.getNeighborCount() != 0) { + setNeighborCount(other.getNeighborCount()); + } + if (other.getCrowdingCount() != 0) { + setCrowdingCount(other.getCrowdingCount()); + } + if (restrictionsBuilder_ == null) { + if (!other.restrictions_.isEmpty()) { + if (restrictions_.isEmpty()) { + restrictions_ = other.restrictions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRestrictionsIsMutable(); + restrictions_.addAll(other.restrictions_); + } + onChanged(); + } + } else { + if (!other.restrictions_.isEmpty()) { + if (restrictionsBuilder_.isEmpty()) { + restrictionsBuilder_.dispose(); + restrictionsBuilder_ = null; + restrictions_ = other.restrictions_; + bitField0_ = (bitField0_ & ~0x00000001); + restrictionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRestrictionsFieldBuilder() + : null; + } else { + restrictionsBuilder_.addAllMessages(other.restrictions_); + } + } + } + if (other.getReturnEmbeddings() != false) { + setReturnEmbeddings(other.getReturnEmbeddings()); + } + if (other.dataFormat_ != 0) { + setDataFormatValue(other.getDataFormatValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.ExamplesOverride parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ExamplesOverride) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int neighborCount_; + /** + * + * + *
+     * The number of neighbors to return.
+     * 
+ * + * int32 neighbor_count = 1; + * + * @return The neighborCount. + */ + @java.lang.Override + public int getNeighborCount() { + return neighborCount_; + } + /** + * + * + *
+     * The number of neighbors to return.
+     * 
+ * + * int32 neighbor_count = 1; + * + * @param value The neighborCount to set. + * @return This builder for chaining. + */ + public Builder setNeighborCount(int value) { + + neighborCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of neighbors to return.
+     * 
+ * + * int32 neighbor_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearNeighborCount() { + + neighborCount_ = 0; + onChanged(); + return this; + } + + private int crowdingCount_; + /** + * + * + *
+     * The number of neighbors to return that have the same crowding tag.
+     * 
+ * + * int32 crowding_count = 2; + * + * @return The crowdingCount. + */ + @java.lang.Override + public int getCrowdingCount() { + return crowdingCount_; + } + /** + * + * + *
+     * The number of neighbors to return that have the same crowding tag.
+     * 
+ * + * int32 crowding_count = 2; + * + * @param value The crowdingCount to set. + * @return This builder for chaining. + */ + public Builder setCrowdingCount(int value) { + + crowdingCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of neighbors to return that have the same crowding tag.
+     * 
+ * + * int32 crowding_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearCrowdingCount() { + + crowdingCount_ = 0; + onChanged(); + return this; + } + + private java.util.List + restrictions_ = java.util.Collections.emptyList(); + + private void ensureRestrictionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + restrictions_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace>(restrictions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace, + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace.Builder, + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespaceOrBuilder> + restrictionsBuilder_; + + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public java.util.List + getRestrictionsList() { + if (restrictionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(restrictions_); + } else { + return restrictionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public int getRestrictionsCount() { + if (restrictionsBuilder_ == null) { + return restrictions_.size(); + } else { + return restrictionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace getRestrictions( + int index) { + if (restrictionsBuilder_ == null) { + return restrictions_.get(index); + } else { + return restrictionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public Builder setRestrictions( + int index, com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace value) { + if (restrictionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRestrictionsIsMutable(); + restrictions_.set(index, value); + onChanged(); + } else { + restrictionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public Builder setRestrictions( + int index, + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace.Builder builderForValue) { + if (restrictionsBuilder_ == null) { + ensureRestrictionsIsMutable(); + restrictions_.set(index, builderForValue.build()); + onChanged(); + } else { + restrictionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public Builder addRestrictions( + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace value) { + if (restrictionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRestrictionsIsMutable(); + restrictions_.add(value); + onChanged(); + } else { + restrictionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public Builder addRestrictions( + int index, com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace value) { + if (restrictionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRestrictionsIsMutable(); + restrictions_.add(index, value); + onChanged(); + } else { + restrictionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public Builder addRestrictions( + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace.Builder builderForValue) { + if (restrictionsBuilder_ == null) { + ensureRestrictionsIsMutable(); + restrictions_.add(builderForValue.build()); + onChanged(); + } else { + restrictionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public Builder addRestrictions( + int index, + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace.Builder builderForValue) { + if (restrictionsBuilder_ == null) { + ensureRestrictionsIsMutable(); + restrictions_.add(index, builderForValue.build()); + onChanged(); + } else { + restrictionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public Builder addAllRestrictions( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace> + values) { + if (restrictionsBuilder_ == null) { + ensureRestrictionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, restrictions_); + onChanged(); + } else { + restrictionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public Builder clearRestrictions() { + if (restrictionsBuilder_ == null) { + restrictions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + restrictionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public Builder removeRestrictions(int index) { + if (restrictionsBuilder_ == null) { + ensureRestrictionsIsMutable(); + restrictions_.remove(index); + onChanged(); + } else { + restrictionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace.Builder + getRestrictionsBuilder(int index) { + return getRestrictionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespaceOrBuilder + getRestrictionsOrBuilder(int index) { + if (restrictionsBuilder_ == null) { + return restrictions_.get(index); + } else { + return restrictionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespaceOrBuilder> + getRestrictionsOrBuilderList() { + if (restrictionsBuilder_ != null) { + return restrictionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(restrictions_); + } + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace.Builder + addRestrictionsBuilder() { + return getRestrictionsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace + .getDefaultInstance()); + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace.Builder + addRestrictionsBuilder(int index) { + return getRestrictionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace + .getDefaultInstance()); + } + /** + * + * + *
+     * Restrict the resulting nearest neighbors to respect these constraints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + public java.util.List + getRestrictionsBuilderList() { + return getRestrictionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace, + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace.Builder, + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespaceOrBuilder> + getRestrictionsFieldBuilder() { + if (restrictionsBuilder_ == null) { + restrictionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace, + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace.Builder, + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespaceOrBuilder>( + restrictions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + restrictions_ = null; + } + return restrictionsBuilder_; + } + + private boolean returnEmbeddings_; + /** + * + * + *
+     * If true, return the embeddings instead of neighbors.
+     * 
+ * + * bool return_embeddings = 4; + * + * @return The returnEmbeddings. + */ + @java.lang.Override + public boolean getReturnEmbeddings() { + return returnEmbeddings_; + } + /** + * + * + *
+     * If true, return the embeddings instead of neighbors.
+     * 
+ * + * bool return_embeddings = 4; + * + * @param value The returnEmbeddings to set. + * @return This builder for chaining. + */ + public Builder setReturnEmbeddings(boolean value) { + + returnEmbeddings_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If true, return the embeddings instead of neighbors.
+     * 
+ * + * bool return_embeddings = 4; + * + * @return This builder for chaining. + */ + public Builder clearReturnEmbeddings() { + + returnEmbeddings_ = false; + onChanged(); + return this; + } + + private int dataFormat_ = 0; + /** + * + * + *
+     * The format of the data being provided with each call.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat data_format = 5; + * + * @return The enum numeric value on the wire for dataFormat. + */ + @java.lang.Override + public int getDataFormatValue() { + return dataFormat_; + } + /** + * + * + *
+     * The format of the data being provided with each call.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat data_format = 5; + * + * @param value The enum numeric value on the wire for dataFormat to set. + * @return This builder for chaining. + */ + public Builder setDataFormatValue(int value) { + + dataFormat_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The format of the data being provided with each call.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat data_format = 5; + * + * @return The dataFormat. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat getDataFormat() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat result = + com.google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat.valueOf(dataFormat_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The format of the data being provided with each call.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat data_format = 5; + * + * @param value The dataFormat to set. + * @return This builder for chaining. + */ + public Builder setDataFormat( + com.google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat value) { + if (value == null) { + throw new NullPointerException(); + } + + dataFormat_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The format of the data being provided with each call.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat data_format = 5; + * + * @return This builder for chaining. + */ + public Builder clearDataFormat() { + + dataFormat_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ExamplesOverride) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ExamplesOverride) + private static final com.google.cloud.aiplatform.v1beta1.ExamplesOverride DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ExamplesOverride(); + } + + public static com.google.cloud.aiplatform.v1beta1.ExamplesOverride getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExamplesOverride parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExamplesOverride(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExamplesOverride getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExamplesOverrideOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExamplesOverrideOrBuilder.java new file mode 100644 index 000000000000..e19f3b7730e5 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExamplesOverrideOrBuilder.java @@ -0,0 +1,149 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/explanation.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ExamplesOverrideOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ExamplesOverride) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The number of neighbors to return.
+   * 
+ * + * int32 neighbor_count = 1; + * + * @return The neighborCount. + */ + int getNeighborCount(); + + /** + * + * + *
+   * The number of neighbors to return that have the same crowding tag.
+   * 
+ * + * int32 crowding_count = 2; + * + * @return The crowdingCount. + */ + int getCrowdingCount(); + + /** + * + * + *
+   * Restrict the resulting nearest neighbors to respect these constraints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + java.util.List + getRestrictionsList(); + /** + * + * + *
+   * Restrict the resulting nearest neighbors to respect these constraints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace getRestrictions(int index); + /** + * + * + *
+   * Restrict the resulting nearest neighbors to respect these constraints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + int getRestrictionsCount(); + /** + * + * + *
+   * Restrict the resulting nearest neighbors to respect these constraints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespaceOrBuilder> + getRestrictionsOrBuilderList(); + /** + * + * + *
+   * Restrict the resulting nearest neighbors to respect these constraints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace restrictions = 3; + * + */ + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespaceOrBuilder + getRestrictionsOrBuilder(int index); + + /** + * + * + *
+   * If true, return the embeddings instead of neighbors.
+   * 
+ * + * bool return_embeddings = 4; + * + * @return The returnEmbeddings. + */ + boolean getReturnEmbeddings(); + + /** + * + * + *
+   * The format of the data being provided with each call.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat data_format = 5; + * + * @return The enum numeric value on the wire for dataFormat. + */ + int getDataFormatValue(); + /** + * + * + *
+   * The format of the data being provided with each call.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat data_format = 5; + * + * @return The dataFormat. + */ + com.google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat getDataFormat(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExamplesRestrictionsNamespace.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExamplesRestrictionsNamespace.java new file mode 100644 index 000000000000..7ace8b9b3aa2 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExamplesRestrictionsNamespace.java @@ -0,0 +1,1204 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/explanation.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Restrictions namespace for example-based explanations overrides.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace} + */ +public final class ExamplesRestrictionsNamespace extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace) + ExamplesRestrictionsNamespaceOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExamplesRestrictionsNamespace.newBuilder() to construct. + private ExamplesRestrictionsNamespace(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExamplesRestrictionsNamespace() { + namespaceName_ = ""; + allow_ = com.google.protobuf.LazyStringArrayList.EMPTY; + deny_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExamplesRestrictionsNamespace(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExamplesRestrictionsNamespace( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + namespaceName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + allow_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + allow_.add(s); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + deny_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + deny_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + allow_ = allow_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + deny_ = deny_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1beta1_ExamplesRestrictionsNamespace_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1beta1_ExamplesRestrictionsNamespace_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace.class, + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace.Builder.class); + } + + public static final int NAMESPACE_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object namespaceName_; + /** + * + * + *
+   * The namespace name.
+   * 
+ * + * string namespace_name = 1; + * + * @return The namespaceName. + */ + @java.lang.Override + public java.lang.String getNamespaceName() { + java.lang.Object ref = namespaceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + namespaceName_ = s; + return s; + } + } + /** + * + * + *
+   * The namespace name.
+   * 
+ * + * string namespace_name = 1; + * + * @return The bytes for namespaceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNamespaceNameBytes() { + java.lang.Object ref = namespaceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + namespaceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList allow_; + /** + * + * + *
+   * The list of allowed tags.
+   * 
+ * + * repeated string allow = 2; + * + * @return A list containing the allow. + */ + public com.google.protobuf.ProtocolStringList getAllowList() { + return allow_; + } + /** + * + * + *
+   * The list of allowed tags.
+   * 
+ * + * repeated string allow = 2; + * + * @return The count of allow. + */ + public int getAllowCount() { + return allow_.size(); + } + /** + * + * + *
+   * The list of allowed tags.
+   * 
+ * + * repeated string allow = 2; + * + * @param index The index of the element to return. + * @return The allow at the given index. + */ + public java.lang.String getAllow(int index) { + return allow_.get(index); + } + /** + * + * + *
+   * The list of allowed tags.
+   * 
+ * + * repeated string allow = 2; + * + * @param index The index of the value to return. + * @return The bytes of the allow at the given index. + */ + public com.google.protobuf.ByteString getAllowBytes(int index) { + return allow_.getByteString(index); + } + + public static final int DENY_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList deny_; + /** + * + * + *
+   * The list of deny tags.
+   * 
+ * + * repeated string deny = 3; + * + * @return A list containing the deny. + */ + public com.google.protobuf.ProtocolStringList getDenyList() { + return deny_; + } + /** + * + * + *
+   * The list of deny tags.
+   * 
+ * + * repeated string deny = 3; + * + * @return The count of deny. + */ + public int getDenyCount() { + return deny_.size(); + } + /** + * + * + *
+   * The list of deny tags.
+   * 
+ * + * repeated string deny = 3; + * + * @param index The index of the element to return. + * @return The deny at the given index. + */ + public java.lang.String getDeny(int index) { + return deny_.get(index); + } + /** + * + * + *
+   * The list of deny tags.
+   * 
+ * + * repeated string deny = 3; + * + * @param index The index of the value to return. + * @return The bytes of the deny at the given index. + */ + public com.google.protobuf.ByteString getDenyBytes(int index) { + return deny_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespaceName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namespaceName_); + } + for (int i = 0; i < allow_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, allow_.getRaw(i)); + } + for (int i = 0; i < deny_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, deny_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespaceName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, namespaceName_); + } + { + int dataSize = 0; + for (int i = 0; i < allow_.size(); i++) { + dataSize += computeStringSizeNoTag(allow_.getRaw(i)); + } + size += dataSize; + size += 1 * getAllowList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < deny_.size(); i++) { + dataSize += computeStringSizeNoTag(deny_.getRaw(i)); + } + size += dataSize; + size += 1 * getDenyList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace other = + (com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace) obj; + + if (!getNamespaceName().equals(other.getNamespaceName())) return false; + if (!getAllowList().equals(other.getAllowList())) return false; + if (!getDenyList().equals(other.getDenyList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAMESPACE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getNamespaceName().hashCode(); + if (getAllowCount() > 0) { + hash = (37 * hash) + ALLOW_FIELD_NUMBER; + hash = (53 * hash) + getAllowList().hashCode(); + } + if (getDenyCount() > 0) { + hash = (37 * hash) + DENY_FIELD_NUMBER; + hash = (53 * hash) + getDenyList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Restrictions namespace for example-based explanations overrides.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace) + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespaceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1beta1_ExamplesRestrictionsNamespace_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1beta1_ExamplesRestrictionsNamespace_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace.class, + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + namespaceName_ = ""; + + allow_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + deny_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1beta1_ExamplesRestrictionsNamespace_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace build() { + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace buildPartial() { + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace result = + new com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace(this); + int from_bitField0_ = bitField0_; + result.namespaceName_ = namespaceName_; + if (((bitField0_ & 0x00000001) != 0)) { + allow_ = allow_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.allow_ = allow_; + if (((bitField0_ & 0x00000002) != 0)) { + deny_ = deny_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.deny_ = deny_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace.getDefaultInstance()) + return this; + if (!other.getNamespaceName().isEmpty()) { + namespaceName_ = other.namespaceName_; + onChanged(); + } + if (!other.allow_.isEmpty()) { + if (allow_.isEmpty()) { + allow_ = other.allow_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAllowIsMutable(); + allow_.addAll(other.allow_); + } + onChanged(); + } + if (!other.deny_.isEmpty()) { + if (deny_.isEmpty()) { + deny_ = other.deny_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureDenyIsMutable(); + deny_.addAll(other.deny_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object namespaceName_ = ""; + /** + * + * + *
+     * The namespace name.
+     * 
+ * + * string namespace_name = 1; + * + * @return The namespaceName. + */ + public java.lang.String getNamespaceName() { + java.lang.Object ref = namespaceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + namespaceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The namespace name.
+     * 
+ * + * string namespace_name = 1; + * + * @return The bytes for namespaceName. + */ + public com.google.protobuf.ByteString getNamespaceNameBytes() { + java.lang.Object ref = namespaceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + namespaceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The namespace name.
+     * 
+ * + * string namespace_name = 1; + * + * @param value The namespaceName to set. + * @return This builder for chaining. + */ + public Builder setNamespaceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + namespaceName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The namespace name.
+     * 
+ * + * string namespace_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearNamespaceName() { + + namespaceName_ = getDefaultInstance().getNamespaceName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The namespace name.
+     * 
+ * + * string namespace_name = 1; + * + * @param value The bytes for namespaceName to set. + * @return This builder for chaining. + */ + public Builder setNamespaceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + namespaceName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList allow_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAllowIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + allow_ = new com.google.protobuf.LazyStringArrayList(allow_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * The list of allowed tags.
+     * 
+ * + * repeated string allow = 2; + * + * @return A list containing the allow. + */ + public com.google.protobuf.ProtocolStringList getAllowList() { + return allow_.getUnmodifiableView(); + } + /** + * + * + *
+     * The list of allowed tags.
+     * 
+ * + * repeated string allow = 2; + * + * @return The count of allow. + */ + public int getAllowCount() { + return allow_.size(); + } + /** + * + * + *
+     * The list of allowed tags.
+     * 
+ * + * repeated string allow = 2; + * + * @param index The index of the element to return. + * @return The allow at the given index. + */ + public java.lang.String getAllow(int index) { + return allow_.get(index); + } + /** + * + * + *
+     * The list of allowed tags.
+     * 
+ * + * repeated string allow = 2; + * + * @param index The index of the value to return. + * @return The bytes of the allow at the given index. + */ + public com.google.protobuf.ByteString getAllowBytes(int index) { + return allow_.getByteString(index); + } + /** + * + * + *
+     * The list of allowed tags.
+     * 
+ * + * repeated string allow = 2; + * + * @param index The index to set the value at. + * @param value The allow to set. + * @return This builder for chaining. + */ + public Builder setAllow(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowIsMutable(); + allow_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of allowed tags.
+     * 
+ * + * repeated string allow = 2; + * + * @param value The allow to add. + * @return This builder for chaining. + */ + public Builder addAllow(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowIsMutable(); + allow_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of allowed tags.
+     * 
+ * + * repeated string allow = 2; + * + * @param values The allow to add. + * @return This builder for chaining. + */ + public Builder addAllAllow(java.lang.Iterable values) { + ensureAllowIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allow_); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of allowed tags.
+     * 
+ * + * repeated string allow = 2; + * + * @return This builder for chaining. + */ + public Builder clearAllow() { + allow_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of allowed tags.
+     * 
+ * + * repeated string allow = 2; + * + * @param value The bytes of the allow to add. + * @return This builder for chaining. + */ + public Builder addAllowBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAllowIsMutable(); + allow_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList deny_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureDenyIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + deny_ = new com.google.protobuf.LazyStringArrayList(deny_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * The list of deny tags.
+     * 
+ * + * repeated string deny = 3; + * + * @return A list containing the deny. + */ + public com.google.protobuf.ProtocolStringList getDenyList() { + return deny_.getUnmodifiableView(); + } + /** + * + * + *
+     * The list of deny tags.
+     * 
+ * + * repeated string deny = 3; + * + * @return The count of deny. + */ + public int getDenyCount() { + return deny_.size(); + } + /** + * + * + *
+     * The list of deny tags.
+     * 
+ * + * repeated string deny = 3; + * + * @param index The index of the element to return. + * @return The deny at the given index. + */ + public java.lang.String getDeny(int index) { + return deny_.get(index); + } + /** + * + * + *
+     * The list of deny tags.
+     * 
+ * + * repeated string deny = 3; + * + * @param index The index of the value to return. + * @return The bytes of the deny at the given index. + */ + public com.google.protobuf.ByteString getDenyBytes(int index) { + return deny_.getByteString(index); + } + /** + * + * + *
+     * The list of deny tags.
+     * 
+ * + * repeated string deny = 3; + * + * @param index The index to set the value at. + * @param value The deny to set. + * @return This builder for chaining. + */ + public Builder setDeny(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDenyIsMutable(); + deny_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of deny tags.
+     * 
+ * + * repeated string deny = 3; + * + * @param value The deny to add. + * @return This builder for chaining. + */ + public Builder addDeny(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDenyIsMutable(); + deny_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of deny tags.
+     * 
+ * + * repeated string deny = 3; + * + * @param values The deny to add. + * @return This builder for chaining. + */ + public Builder addAllDeny(java.lang.Iterable values) { + ensureDenyIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deny_); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of deny tags.
+     * 
+ * + * repeated string deny = 3; + * + * @return This builder for chaining. + */ + public Builder clearDeny() { + deny_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of deny tags.
+     * 
+ * + * repeated string deny = 3; + * + * @param value The bytes of the deny to add. + * @return This builder for chaining. + */ + public Builder addDenyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDenyIsMutable(); + deny_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace) + private static final com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace(); + } + + public static com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExamplesRestrictionsNamespace parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExamplesRestrictionsNamespace(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExamplesRestrictionsNamespaceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExamplesRestrictionsNamespaceOrBuilder.java new file mode 100644 index 000000000000..e538143f2f78 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExamplesRestrictionsNamespaceOrBuilder.java @@ -0,0 +1,152 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/explanation.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ExamplesRestrictionsNamespaceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The namespace name.
+   * 
+ * + * string namespace_name = 1; + * + * @return The namespaceName. + */ + java.lang.String getNamespaceName(); + /** + * + * + *
+   * The namespace name.
+   * 
+ * + * string namespace_name = 1; + * + * @return The bytes for namespaceName. + */ + com.google.protobuf.ByteString getNamespaceNameBytes(); + + /** + * + * + *
+   * The list of allowed tags.
+   * 
+ * + * repeated string allow = 2; + * + * @return A list containing the allow. + */ + java.util.List getAllowList(); + /** + * + * + *
+   * The list of allowed tags.
+   * 
+ * + * repeated string allow = 2; + * + * @return The count of allow. + */ + int getAllowCount(); + /** + * + * + *
+   * The list of allowed tags.
+   * 
+ * + * repeated string allow = 2; + * + * @param index The index of the element to return. + * @return The allow at the given index. + */ + java.lang.String getAllow(int index); + /** + * + * + *
+   * The list of allowed tags.
+   * 
+ * + * repeated string allow = 2; + * + * @param index The index of the value to return. + * @return The bytes of the allow at the given index. + */ + com.google.protobuf.ByteString getAllowBytes(int index); + + /** + * + * + *
+   * The list of deny tags.
+   * 
+ * + * repeated string deny = 3; + * + * @return A list containing the deny. + */ + java.util.List getDenyList(); + /** + * + * + *
+   * The list of deny tags.
+   * 
+ * + * repeated string deny = 3; + * + * @return The count of deny. + */ + int getDenyCount(); + /** + * + * + *
+   * The list of deny tags.
+   * 
+ * + * repeated string deny = 3; + * + * @param index The index of the element to return. + * @return The deny at the given index. + */ + java.lang.String getDeny(int index); + /** + * + * + *
+   * The list of deny tags.
+   * 
+ * + * repeated string deny = 3; + * + * @param index The index of the value to return. + * @return The bytes of the deny at the given index. + */ + com.google.protobuf.ByteString getDenyBytes(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExecutionName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExecutionName.java index b70256ebfd30..e3ee8ecbe91a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExecutionName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExecutionName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Explanation.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Explanation.java index 397f0447b498..d547869199cb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Explanation.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Explanation.java @@ -40,6 +40,7 @@ private Explanation(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Explanation() { attributions_ = java.util.Collections.emptyList(); + neighbors_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -84,6 +85,18 @@ private Explanation( com.google.cloud.aiplatform.v1beta1.Attribution.parser(), extensionRegistry)); break; } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + neighbors_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + neighbors_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Neighbor.parser(), extensionRegistry)); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -103,6 +116,9 @@ private Explanation( if (((mutable_bitField0_ & 0x00000001) != 0)) { attributions_ = java.util.Collections.unmodifiableList(attributions_); } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + neighbors_ = java.util.Collections.unmodifiableList(neighbors_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -258,6 +274,95 @@ public com.google.cloud.aiplatform.v1beta1.AttributionOrBuilder getAttributionsO return attributions_.get(index); } + public static final int NEIGHBORS_FIELD_NUMBER = 2; + private java.util.List neighbors_; + /** + * + * + *
+   * Output only. List of the nearest neighbors for example-based explanations.
+   * For models deployed with the examples explanations feature enabled, the
+   * attributions field is empty and instead the neighbors field is populated.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getNeighborsList() { + return neighbors_; + } + /** + * + * + *
+   * Output only. List of the nearest neighbors for example-based explanations.
+   * For models deployed with the examples explanations feature enabled, the
+   * attributions field is empty and instead the neighbors field is populated.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getNeighborsOrBuilderList() { + return neighbors_; + } + /** + * + * + *
+   * Output only. List of the nearest neighbors for example-based explanations.
+   * For models deployed with the examples explanations feature enabled, the
+   * attributions field is empty and instead the neighbors field is populated.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getNeighborsCount() { + return neighbors_.size(); + } + /** + * + * + *
+   * Output only. List of the nearest neighbors for example-based explanations.
+   * For models deployed with the examples explanations feature enabled, the
+   * attributions field is empty and instead the neighbors field is populated.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Neighbor getNeighbors(int index) { + return neighbors_.get(index); + } + /** + * + * + *
+   * Output only. List of the nearest neighbors for example-based explanations.
+   * For models deployed with the examples explanations feature enabled, the
+   * attributions field is empty and instead the neighbors field is populated.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NeighborOrBuilder getNeighborsOrBuilder(int index) { + return neighbors_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -275,6 +380,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < attributions_.size(); i++) { output.writeMessage(1, attributions_.get(i)); } + for (int i = 0; i < neighbors_.size(); i++) { + output.writeMessage(2, neighbors_.get(i)); + } unknownFields.writeTo(output); } @@ -287,6 +395,9 @@ public int getSerializedSize() { for (int i = 0; i < attributions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, attributions_.get(i)); } + for (int i = 0; i < neighbors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, neighbors_.get(i)); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -304,6 +415,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.aiplatform.v1beta1.Explanation) obj; if (!getAttributionsList().equals(other.getAttributionsList())) return false; + if (!getNeighborsList().equals(other.getNeighborsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -319,6 +431,10 @@ public int hashCode() { hash = (37 * hash) + ATTRIBUTIONS_FIELD_NUMBER; hash = (53 * hash) + getAttributionsList().hashCode(); } + if (getNeighborsCount() > 0) { + hash = (37 * hash) + NEIGHBORS_FIELD_NUMBER; + hash = (53 * hash) + getNeighborsList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -461,6 +577,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAttributionsFieldBuilder(); + getNeighborsFieldBuilder(); } } @@ -473,6 +590,12 @@ public Builder clear() { } else { attributionsBuilder_.clear(); } + if (neighborsBuilder_ == null) { + neighbors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + neighborsBuilder_.clear(); + } return this; } @@ -510,6 +633,15 @@ public com.google.cloud.aiplatform.v1beta1.Explanation buildPartial() { } else { result.attributions_ = attributionsBuilder_.build(); } + if (neighborsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + neighbors_ = java.util.Collections.unmodifiableList(neighbors_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.neighbors_ = neighbors_; + } else { + result.neighbors_ = neighborsBuilder_.build(); + } onBuilt(); return result; } @@ -587,6 +719,33 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Explanation other) } } } + if (neighborsBuilder_ == null) { + if (!other.neighbors_.isEmpty()) { + if (neighbors_.isEmpty()) { + neighbors_ = other.neighbors_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureNeighborsIsMutable(); + neighbors_.addAll(other.neighbors_); + } + onChanged(); + } + } else { + if (!other.neighbors_.isEmpty()) { + if (neighborsBuilder_.isEmpty()) { + neighborsBuilder_.dispose(); + neighborsBuilder_ = null; + neighbors_ = other.neighbors_; + bitField0_ = (bitField0_ & ~0x00000002); + neighborsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNeighborsFieldBuilder() + : null; + } else { + neighborsBuilder_.addAllMessages(other.neighbors_); + } + } + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1208,6 +1367,429 @@ public com.google.cloud.aiplatform.v1beta1.Attribution.Builder addAttributionsBu return attributionsBuilder_; } + private java.util.List neighbors_ = + java.util.Collections.emptyList(); + + private void ensureNeighborsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + neighbors_ = + new java.util.ArrayList(neighbors_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Neighbor, + com.google.cloud.aiplatform.v1beta1.Neighbor.Builder, + com.google.cloud.aiplatform.v1beta1.NeighborOrBuilder> + neighborsBuilder_; + + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getNeighborsList() { + if (neighborsBuilder_ == null) { + return java.util.Collections.unmodifiableList(neighbors_); + } else { + return neighborsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getNeighborsCount() { + if (neighborsBuilder_ == null) { + return neighbors_.size(); + } else { + return neighborsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Neighbor getNeighbors(int index) { + if (neighborsBuilder_ == null) { + return neighbors_.get(index); + } else { + return neighborsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setNeighbors(int index, com.google.cloud.aiplatform.v1beta1.Neighbor value) { + if (neighborsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNeighborsIsMutable(); + neighbors_.set(index, value); + onChanged(); + } else { + neighborsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setNeighbors( + int index, com.google.cloud.aiplatform.v1beta1.Neighbor.Builder builderForValue) { + if (neighborsBuilder_ == null) { + ensureNeighborsIsMutable(); + neighbors_.set(index, builderForValue.build()); + onChanged(); + } else { + neighborsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addNeighbors(com.google.cloud.aiplatform.v1beta1.Neighbor value) { + if (neighborsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNeighborsIsMutable(); + neighbors_.add(value); + onChanged(); + } else { + neighborsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addNeighbors(int index, com.google.cloud.aiplatform.v1beta1.Neighbor value) { + if (neighborsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNeighborsIsMutable(); + neighbors_.add(index, value); + onChanged(); + } else { + neighborsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addNeighbors( + com.google.cloud.aiplatform.v1beta1.Neighbor.Builder builderForValue) { + if (neighborsBuilder_ == null) { + ensureNeighborsIsMutable(); + neighbors_.add(builderForValue.build()); + onChanged(); + } else { + neighborsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addNeighbors( + int index, com.google.cloud.aiplatform.v1beta1.Neighbor.Builder builderForValue) { + if (neighborsBuilder_ == null) { + ensureNeighborsIsMutable(); + neighbors_.add(index, builderForValue.build()); + onChanged(); + } else { + neighborsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllNeighbors( + java.lang.Iterable values) { + if (neighborsBuilder_ == null) { + ensureNeighborsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, neighbors_); + onChanged(); + } else { + neighborsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearNeighbors() { + if (neighborsBuilder_ == null) { + neighbors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + neighborsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeNeighbors(int index) { + if (neighborsBuilder_ == null) { + ensureNeighborsIsMutable(); + neighbors_.remove(index); + onChanged(); + } else { + neighborsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Neighbor.Builder getNeighborsBuilder(int index) { + return getNeighborsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.NeighborOrBuilder getNeighborsOrBuilder(int index) { + if (neighborsBuilder_ == null) { + return neighbors_.get(index); + } else { + return neighborsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getNeighborsOrBuilderList() { + if (neighborsBuilder_ != null) { + return neighborsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(neighbors_); + } + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Neighbor.Builder addNeighborsBuilder() { + return getNeighborsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Neighbor.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Neighbor.Builder addNeighborsBuilder(int index) { + return getNeighborsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Neighbor.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. List of the nearest neighbors for example-based explanations.
+     * For models deployed with the examples explanations feature enabled, the
+     * attributions field is empty and instead the neighbors field is populated.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getNeighborsBuilderList() { + return getNeighborsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Neighbor, + com.google.cloud.aiplatform.v1beta1.Neighbor.Builder, + com.google.cloud.aiplatform.v1beta1.NeighborOrBuilder> + getNeighborsFieldBuilder() { + if (neighborsBuilder_ == null) { + neighborsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Neighbor, + com.google.cloud.aiplatform.v1beta1.Neighbor.Builder, + com.google.cloud.aiplatform.v1beta1.NeighborOrBuilder>( + neighbors_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + neighbors_ = null; + } + return neighborsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadata.java index a63aa0bcea8d..d0d457915ce4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadata.java @@ -39,6 +39,7 @@ private ExplanationMetadata(com.google.protobuf.GeneratedMessageV3.Builder bu private ExplanationMetadata() { featureAttributionsSchemaUri_ = ""; + latentSpaceSource_ = ""; } @java.lang.Override @@ -113,6 +114,13 @@ private ExplanationMetadata( featureAttributionsSchemaUri_ = s; break; } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + latentSpaceSource_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -10669,6 +10677,55 @@ public com.google.protobuf.ByteString getFeatureAttributionsSchemaUriBytes() { } } + public static final int LATENT_SPACE_SOURCE_FIELD_NUMBER = 5; + private volatile java.lang.Object latentSpaceSource_; + /** + * + * + *
+   * Name of the source to generate embeddings for example based explanations.
+   * 
+ * + * string latent_space_source = 5; + * + * @return The latentSpaceSource. + */ + @java.lang.Override + public java.lang.String getLatentSpaceSource() { + java.lang.Object ref = latentSpaceSource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + latentSpaceSource_ = s; + return s; + } + } + /** + * + * + *
+   * Name of the source to generate embeddings for example based explanations.
+   * 
+ * + * string latent_space_source = 5; + * + * @return The bytes for latentSpaceSource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLatentSpaceSourceBytes() { + java.lang.Object ref = latentSpaceSource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + latentSpaceSource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -10690,6 +10747,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(featureAttributionsSchemaUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, featureAttributionsSchemaUri_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(latentSpaceSource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, latentSpaceSource_); + } unknownFields.writeTo(output); } @@ -10733,6 +10793,9 @@ public int getSerializedSize() { com.google.protobuf.GeneratedMessageV3.computeStringSize( 3, featureAttributionsSchemaUri_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(latentSpaceSource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, latentSpaceSource_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -10753,6 +10816,7 @@ public boolean equals(final java.lang.Object obj) { if (!internalGetOutputs().equals(other.internalGetOutputs())) return false; if (!getFeatureAttributionsSchemaUri().equals(other.getFeatureAttributionsSchemaUri())) return false; + if (!getLatentSpaceSource().equals(other.getLatentSpaceSource())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -10774,6 +10838,8 @@ public int hashCode() { } hash = (37 * hash) + FEATURE_ATTRIBUTIONS_SCHEMA_URI_FIELD_NUMBER; hash = (53 * hash) + getFeatureAttributionsSchemaUri().hashCode(); + hash = (37 * hash) + LATENT_SPACE_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getLatentSpaceSource().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -10948,6 +11014,8 @@ public Builder clear() { internalGetMutableOutputs().clear(); featureAttributionsSchemaUri_ = ""; + latentSpaceSource_ = ""; + return this; } @@ -10981,6 +11049,7 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationMetadata buildPartial() { result.outputs_ = internalGetOutputs(); result.outputs_.makeImmutable(); result.featureAttributionsSchemaUri_ = featureAttributionsSchemaUri_; + result.latentSpaceSource_ = latentSpaceSource_; onBuilt(); return result; } @@ -11037,6 +11106,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ExplanationMetadata featureAttributionsSchemaUri_ = other.featureAttributionsSchemaUri_; onChanged(); } + if (!other.getLatentSpaceSource().isEmpty()) { + latentSpaceSource_ = other.latentSpaceSource_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -11716,6 +11789,112 @@ public Builder setFeatureAttributionsSchemaUriBytes(com.google.protobuf.ByteStri return this; } + private java.lang.Object latentSpaceSource_ = ""; + /** + * + * + *
+     * Name of the source to generate embeddings for example based explanations.
+     * 
+ * + * string latent_space_source = 5; + * + * @return The latentSpaceSource. + */ + public java.lang.String getLatentSpaceSource() { + java.lang.Object ref = latentSpaceSource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + latentSpaceSource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of the source to generate embeddings for example based explanations.
+     * 
+ * + * string latent_space_source = 5; + * + * @return The bytes for latentSpaceSource. + */ + public com.google.protobuf.ByteString getLatentSpaceSourceBytes() { + java.lang.Object ref = latentSpaceSource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + latentSpaceSource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of the source to generate embeddings for example based explanations.
+     * 
+ * + * string latent_space_source = 5; + * + * @param value The latentSpaceSource to set. + * @return This builder for chaining. + */ + public Builder setLatentSpaceSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + latentSpaceSource_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the source to generate embeddings for example based explanations.
+     * 
+ * + * string latent_space_source = 5; + * + * @return This builder for chaining. + */ + public Builder clearLatentSpaceSource() { + + latentSpaceSource_ = getDefaultInstance().getLatentSpaceSource(); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the source to generate embeddings for example based explanations.
+     * 
+ * + * string latent_space_source = 5; + * + * @param value The bytes for latentSpaceSource to set. + * @return This builder for chaining. + */ + public Builder setLatentSpaceSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + latentSpaceSource_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataOrBuilder.java index 5f34964a1c20..7c243158c692 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataOrBuilder.java @@ -284,4 +284,29 @@ com.google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata getOutput * @return The bytes for featureAttributionsSchemaUri. */ com.google.protobuf.ByteString getFeatureAttributionsSchemaUriBytes(); + + /** + * + * + *
+   * Name of the source to generate embeddings for example based explanations.
+   * 
+ * + * string latent_space_source = 5; + * + * @return The latentSpaceSource. + */ + java.lang.String getLatentSpaceSource(); + /** + * + * + *
+   * Name of the source to generate embeddings for example based explanations.
+   * 
+ * + * string latent_space_source = 5; + * + * @return The bytes for latentSpaceSource. + */ + com.google.protobuf.ByteString getLatentSpaceSourceBytes(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataProto.java index 5ebfb58b83a1..b1ee163d6bf7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataProto.java @@ -67,74 +67,75 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n:google/cloud/aiplatform/v1beta1/explan" + "ation_metadata.proto\022\037google.cloud.aipla" + "tform.v1beta1\032\037google/api/field_behavior" - + ".proto\032\034google/protobuf/struct.proto\"\351\022\n" + + ".proto\032\034google/protobuf/struct.proto\"\206\023\n" + "\023ExplanationMetadata\022U\n\006inputs\030\001 \003(\0132@.g" + "oogle.cloud.aiplatform.v1beta1.Explanati" + "onMetadata.InputsEntryB\003\340A\002\022W\n\007outputs\030\002" + " \003(\0132A.google.cloud.aiplatform.v1beta1.E" + "xplanationMetadata.OutputsEntryB\003\340A\002\022\'\n\037" - + "feature_attributions_schema_uri\030\003 \001(\t\032\347\r" - + "\n\rInputMetadata\022/\n\017input_baselines\030\001 \003(\013" - + "2\026.google.protobuf.Value\022\031\n\021input_tensor" - + "_name\030\002 \001(\t\022]\n\010encoding\030\003 \001(\0162K.google.c" - + "loud.aiplatform.v1beta1.ExplanationMetad" - + "ata.InputMetadata.Encoding\022\020\n\010modality\030\004" - + " \001(\t\022s\n\024feature_value_domain\030\005 \001(\0132U.goo" - + "gle.cloud.aiplatform.v1beta1.Explanation" - + "Metadata.InputMetadata.FeatureValueDomai" - + "n\022\033\n\023indices_tensor_name\030\006 \001(\t\022\037\n\027dense_" - + "shape_tensor_name\030\007 \001(\t\022\035\n\025index_feature" - + "_mapping\030\010 \003(\t\022\033\n\023encoded_tensor_name\030\t " - + "\001(\t\0221\n\021encoded_baselines\030\n \003(\0132\026.google." - + "protobuf.Value\022g\n\rvisualization\030\013 \001(\0132P." - + "google.cloud.aiplatform.v1beta1.Explanat" - + "ionMetadata.InputMetadata.Visualization\022" - + "\022\n\ngroup_name\030\014 \001(\t\032j\n\022FeatureValueDomai" - + "n\022\021\n\tmin_value\030\001 \001(\002\022\021\n\tmax_value\030\002 \001(\002\022" - + "\025\n\roriginal_mean\030\003 \001(\002\022\027\n\017original_stdde" - + "v\030\004 \001(\002\032\352\006\n\rVisualization\022c\n\004type\030\001 \001(\0162" - + "U.google.cloud.aiplatform.v1beta1.Explan" - + "ationMetadata.InputMetadata.Visualizatio" - + "n.Type\022k\n\010polarity\030\002 \001(\0162Y.google.cloud." - + "aiplatform.v1beta1.ExplanationMetadata.I" - + "nputMetadata.Visualization.Polarity\022l\n\tc" - + "olor_map\030\003 \001(\0162Y.google.cloud.aiplatform" - + ".v1beta1.ExplanationMetadata.InputMetada" - + "ta.Visualization.ColorMap\022\037\n\027clip_percen" - + "t_upperbound\030\004 \001(\002\022\037\n\027clip_percent_lower" - + "bound\030\005 \001(\002\022r\n\014overlay_type\030\006 \001(\0162\\.goog" - + "le.cloud.aiplatform.v1beta1.ExplanationM" - + "etadata.InputMetadata.Visualization.Over" - + "layType\"6\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n" - + "\006PIXELS\020\001\022\014\n\010OUTLINES\020\002\"J\n\010Polarity\022\030\n\024P" - + "OLARITY_UNSPECIFIED\020\000\022\014\n\010POSITIVE\020\001\022\014\n\010N" - + "EGATIVE\020\002\022\010\n\004BOTH\020\003\"{\n\010ColorMap\022\031\n\025COLOR" - + "_MAP_UNSPECIFIED\020\000\022\016\n\nPINK_GREEN\020\001\022\013\n\007VI" - + "RIDIS\020\002\022\007\n\003RED\020\003\022\t\n\005GREEN\020\004\022\r\n\tRED_GREEN" - + "\020\006\022\024\n\020PINK_WHITE_GREEN\020\005\"b\n\013OverlayType\022" - + "\034\n\030OVERLAY_TYPE_UNSPECIFIED\020\000\022\010\n\004NONE\020\001\022" - + "\014\n\010ORIGINAL\020\002\022\r\n\tGRAYSCALE\020\003\022\016\n\nMASK_BLA" - + "CK\020\004\"\240\001\n\010Encoding\022\030\n\024ENCODING_UNSPECIFIE" - + "D\020\000\022\014\n\010IDENTITY\020\001\022\023\n\017BAG_OF_FEATURES\020\002\022\032" - + "\n\026BAG_OF_FEATURES_SPARSE\020\003\022\r\n\tINDICATOR\020" - + "\004\022\026\n\022COMBINED_EMBEDDING\020\005\022\024\n\020CONCAT_EMBE" - + "DDING\020\006\032\246\001\n\016OutputMetadata\022<\n\032index_disp" - + "lay_name_mapping\030\001 \001(\0132\026.google.protobuf" - + ".ValueH\000\022\"\n\030display_name_mapping_key\030\002 \001" - + "(\tH\000\022\032\n\022output_tensor_name\030\003 \001(\tB\026\n\024disp" - + "lay_name_mapping\032q\n\013InputsEntry\022\013\n\003key\030\001" - + " \001(\t\022Q\n\005value\030\002 \001(\0132B.google.cloud.aipla" - + "tform.v1beta1.ExplanationMetadata.InputM" - + "etadata:\0028\001\032s\n\014OutputsEntry\022\013\n\003key\030\001 \001(\t" - + "\022R\n\005value\030\002 \001(\0132C.google.cloud.aiplatfor" - + "m.v1beta1.ExplanationMetadata.OutputMeta" - + "data:\0028\001B\365\001\n#com.google.cloud.aiplatform" - + ".v1beta1B\030ExplanationMetadataProtoP\001ZIgo" - + "ogle.golang.org/genproto/googleapis/clou" - + "d/aiplatform/v1beta1;aiplatform\252\002\037Google" - + ".Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cloud" - + "\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIP" - + "latform::V1beta1b\006proto3" + + "feature_attributions_schema_uri\030\003 \001(\t\022\033\n" + + "\023latent_space_source\030\005 \001(\t\032\347\r\n\rInputMeta" + + "data\022/\n\017input_baselines\030\001 \003(\0132\026.google.p" + + "rotobuf.Value\022\031\n\021input_tensor_name\030\002 \001(\t" + + "\022]\n\010encoding\030\003 \001(\0162K.google.cloud.aiplat" + + "form.v1beta1.ExplanationMetadata.InputMe" + + "tadata.Encoding\022\020\n\010modality\030\004 \001(\t\022s\n\024fea" + + "ture_value_domain\030\005 \001(\0132U.google.cloud.a" + + "iplatform.v1beta1.ExplanationMetadata.In" + + "putMetadata.FeatureValueDomain\022\033\n\023indice" + + "s_tensor_name\030\006 \001(\t\022\037\n\027dense_shape_tenso" + + "r_name\030\007 \001(\t\022\035\n\025index_feature_mapping\030\010 " + + "\003(\t\022\033\n\023encoded_tensor_name\030\t \001(\t\0221\n\021enco" + + "ded_baselines\030\n \003(\0132\026.google.protobuf.Va" + + "lue\022g\n\rvisualization\030\013 \001(\0132P.google.clou" + + "d.aiplatform.v1beta1.ExplanationMetadata" + + ".InputMetadata.Visualization\022\022\n\ngroup_na" + + "me\030\014 \001(\t\032j\n\022FeatureValueDomain\022\021\n\tmin_va" + + "lue\030\001 \001(\002\022\021\n\tmax_value\030\002 \001(\002\022\025\n\roriginal" + + "_mean\030\003 \001(\002\022\027\n\017original_stddev\030\004 \001(\002\032\352\006\n" + + "\rVisualization\022c\n\004type\030\001 \001(\0162U.google.cl" + + "oud.aiplatform.v1beta1.ExplanationMetada" + + "ta.InputMetadata.Visualization.Type\022k\n\010p" + + "olarity\030\002 \001(\0162Y.google.cloud.aiplatform." + + "v1beta1.ExplanationMetadata.InputMetadat" + + "a.Visualization.Polarity\022l\n\tcolor_map\030\003 " + + "\001(\0162Y.google.cloud.aiplatform.v1beta1.Ex" + + "planationMetadata.InputMetadata.Visualiz" + + "ation.ColorMap\022\037\n\027clip_percent_upperboun" + + "d\030\004 \001(\002\022\037\n\027clip_percent_lowerbound\030\005 \001(\002" + + "\022r\n\014overlay_type\030\006 \001(\0162\\.google.cloud.ai" + + "platform.v1beta1.ExplanationMetadata.Inp" + + "utMetadata.Visualization.OverlayType\"6\n\004" + + "Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n\006PIXELS\020\001\022\014" + + "\n\010OUTLINES\020\002\"J\n\010Polarity\022\030\n\024POLARITY_UNS" + + "PECIFIED\020\000\022\014\n\010POSITIVE\020\001\022\014\n\010NEGATIVE\020\002\022\010" + + "\n\004BOTH\020\003\"{\n\010ColorMap\022\031\n\025COLOR_MAP_UNSPEC" + + "IFIED\020\000\022\016\n\nPINK_GREEN\020\001\022\013\n\007VIRIDIS\020\002\022\007\n\003" + + "RED\020\003\022\t\n\005GREEN\020\004\022\r\n\tRED_GREEN\020\006\022\024\n\020PINK_" + + "WHITE_GREEN\020\005\"b\n\013OverlayType\022\034\n\030OVERLAY_" + + "TYPE_UNSPECIFIED\020\000\022\010\n\004NONE\020\001\022\014\n\010ORIGINAL" + + "\020\002\022\r\n\tGRAYSCALE\020\003\022\016\n\nMASK_BLACK\020\004\"\240\001\n\010En" + + "coding\022\030\n\024ENCODING_UNSPECIFIED\020\000\022\014\n\010IDEN" + + "TITY\020\001\022\023\n\017BAG_OF_FEATURES\020\002\022\032\n\026BAG_OF_FE" + + "ATURES_SPARSE\020\003\022\r\n\tINDICATOR\020\004\022\026\n\022COMBIN" + + "ED_EMBEDDING\020\005\022\024\n\020CONCAT_EMBEDDING\020\006\032\246\001\n" + + "\016OutputMetadata\022<\n\032index_display_name_ma" + + "pping\030\001 \001(\0132\026.google.protobuf.ValueH\000\022\"\n" + + "\030display_name_mapping_key\030\002 \001(\tH\000\022\032\n\022out" + + "put_tensor_name\030\003 \001(\tB\026\n\024display_name_ma" + + "pping\032q\n\013InputsEntry\022\013\n\003key\030\001 \001(\t\022Q\n\005val" + + "ue\030\002 \001(\0132B.google.cloud.aiplatform.v1bet" + + "a1.ExplanationMetadata.InputMetadata:\0028\001" + + "\032s\n\014OutputsEntry\022\013\n\003key\030\001 \001(\t\022R\n\005value\030\002" + + " \001(\0132C.google.cloud.aiplatform.v1beta1.E" + + "xplanationMetadata.OutputMetadata:\0028\001B\365\001" + + "\n#com.google.cloud.aiplatform.v1beta1B\030E" + + "xplanationMetadataProtoP\001ZIgoogle.golang" + + ".org/genproto/googleapis/cloud/aiplatfor" + + "m/v1beta1;aiplatform\252\002\037Google.Cloud.AIPl" + + "atform.V1Beta1\312\002\037Google\\Cloud\\AIPlatform" + + "\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1" + + "beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -149,7 +150,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ExplanationMetadata_descriptor, new java.lang.String[] { - "Inputs", "Outputs", "FeatureAttributionsSchemaUri", + "Inputs", "Outputs", "FeatureAttributionsSchemaUri", "LatentSpaceSource", }); internal_static_google_cloud_aiplatform_v1beta1_ExplanationMetadata_InputMetadata_descriptor = internal_static_google_cloud_aiplatform_v1beta1_ExplanationMetadata_descriptor diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationOrBuilder.java index c2f85dbc49f7..f8833d8f878c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationOrBuilder.java @@ -139,4 +139,76 @@ public interface ExplanationOrBuilder *
*/ com.google.cloud.aiplatform.v1beta1.AttributionOrBuilder getAttributionsOrBuilder(int index); + + /** + * + * + *
+   * Output only. List of the nearest neighbors for example-based explanations.
+   * For models deployed with the examples explanations feature enabled, the
+   * attributions field is empty and instead the neighbors field is populated.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getNeighborsList(); + /** + * + * + *
+   * Output only. List of the nearest neighbors for example-based explanations.
+   * For models deployed with the examples explanations feature enabled, the
+   * attributions field is empty and instead the neighbors field is populated.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.Neighbor getNeighbors(int index); + /** + * + * + *
+   * Output only. List of the nearest neighbors for example-based explanations.
+   * For models deployed with the examples explanations feature enabled, the
+   * attributions field is empty and instead the neighbors field is populated.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getNeighborsCount(); + /** + * + * + *
+   * Output only. List of the nearest neighbors for example-based explanations.
+   * For models deployed with the examples explanations feature enabled, the
+   * attributions field is empty and instead the neighbors field is populated.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getNeighborsOrBuilderList(); + /** + * + * + *
+   * Output only. List of the nearest neighbors for example-based explanations.
+   * For models deployed with the examples explanations feature enabled, the
+   * attributions field is empty and instead the neighbors field is populated.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.Neighbor neighbors = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.NeighborOrBuilder getNeighborsOrBuilder(int index); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationProto.java index e094a4ea20aa..b44b10529440 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationProto.java @@ -39,6 +39,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_Attribution_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_Attribution_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_Neighbor_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Neighbor_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_ExplanationSpec_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -79,6 +83,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_Examples_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_Examples_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_Presets_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Presets_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_ExplanationSpecOverride_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -95,6 +103,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_ExplanationMetadataOverride_InputsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_ExplanationMetadataOverride_InputsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ExamplesOverride_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ExamplesOverride_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ExamplesRestrictionsNamespace_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ExamplesRestrictionsNamespace_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -110,79 +126,103 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oogle/cloud/aiplatform/v1beta1/explanati" + "on_metadata.proto\032(google/cloud/aiplatfo" + "rm/v1beta1/io.proto\032\034google/protobuf/str" - + "uct.proto\"V\n\013Explanation\022G\n\014attributions" - + "\030\001 \003(\0132,.google.cloud.aiplatform.v1beta1" - + ".AttributionB\003\340A\003\"`\n\020ModelExplanation\022L\n" - + "\021mean_attributions\030\001 \003(\0132,.google.cloud." - + "aiplatform.v1beta1.AttributionB\003\340A\003\"\211\002\n\013" - + "Attribution\022\"\n\025baseline_output_value\030\001 \001" - + "(\001B\003\340A\003\022\"\n\025instance_output_value\030\002 \001(\001B\003" - + "\340A\003\0229\n\024feature_attributions\030\003 \001(\0132\026.goog" - + "le.protobuf.ValueB\003\340A\003\022\031\n\014output_index\030\004" - + " \003(\005B\003\340A\003\022 \n\023output_display_name\030\005 \001(\tB\003" - + "\340A\003\022 \n\023approximation_error\030\006 \001(\001B\003\340A\003\022\030\n" - + "\013output_name\030\007 \001(\tB\003\340A\003\"\257\001\n\017ExplanationS" - + "pec\022O\n\nparameters\030\001 \001(\01326.google.cloud.a" - + "iplatform.v1beta1.ExplanationParametersB" - + "\003\340A\002\022K\n\010metadata\030\002 \001(\01324.google.cloud.ai" - + "platform.v1beta1.ExplanationMetadataB\003\340A" - + "\002\"\301\003\n\025ExplanationParameters\022a\n\033sampled_s" - + "hapley_attribution\030\001 \001(\0132:.google.cloud." - + "aiplatform.v1beta1.SampledShapleyAttribu" - + "tionH\000\022k\n integrated_gradients_attributi" - + "on\030\002 \001(\0132?.google.cloud.aiplatform.v1bet" - + "a1.IntegratedGradientsAttributionH\000\022L\n\020x" - + "rai_attribution\030\003 \001(\01320.google.cloud.aip" - + "latform.v1beta1.XraiAttributionH\000\022=\n\010exa" - + "mples\030\007 \001(\0132).google.cloud.aiplatform.v1" - + "beta1.ExamplesH\000\022\r\n\005top_k\030\004 \001(\005\0222\n\016outpu" - + "t_indices\030\005 \001(\0132\032.google.protobuf.ListVa" - + "lueB\010\n\006method\"4\n\031SampledShapleyAttributi" - + "on\022\027\n\npath_count\030\001 \001(\005B\003\340A\002\"\333\001\n\036Integrat" - + "edGradientsAttribution\022\027\n\nstep_count\030\001 \001" - + "(\005B\003\340A\002\022M\n\022smooth_grad_config\030\002 \001(\01321.go" - + "ogle.cloud.aiplatform.v1beta1.SmoothGrad" - + "Config\022Q\n\024blur_baseline_config\030\003 \001(\01323.g" - + "oogle.cloud.aiplatform.v1beta1.BlurBasel" - + "ineConfig\"\314\001\n\017XraiAttribution\022\027\n\nstep_co" - + "unt\030\001 \001(\005B\003\340A\002\022M\n\022smooth_grad_config\030\002 \001" - + "(\01321.google.cloud.aiplatform.v1beta1.Smo" - + "othGradConfig\022Q\n\024blur_baseline_config\030\003 " - + "\001(\01323.google.cloud.aiplatform.v1beta1.Bl" - + "urBaselineConfig\"\256\001\n\020SmoothGradConfig\022\025\n" - + "\013noise_sigma\030\001 \001(\002H\000\022Q\n\023feature_noise_si" - + "gma\030\002 \001(\01322.google.cloud.aiplatform.v1be" - + "ta1.FeatureNoiseSigmaH\000\022\032\n\022noisy_sample_" - + "count\030\003 \001(\005B\024\n\022GradientNoiseSigma\"\246\001\n\021Fe" - + "atureNoiseSigma\022\\\n\013noise_sigma\030\001 \003(\0132G.g" - + "oogle.cloud.aiplatform.v1beta1.FeatureNo" - + "iseSigma.NoiseSigmaForFeature\0323\n\024NoiseSi" - + "gmaForFeature\022\014\n\004name\030\001 \001(\t\022\r\n\005sigma\030\002 \001" - + "(\002\",\n\022BlurBaselineConfig\022\026\n\016max_blur_sig" - + "ma\030\001 \001(\002\"\242\001\n\010Examples\022>\n\ngcs_source\030\001 \001(" - + "\0132*.google.cloud.aiplatform.v1beta1.GcsS" - + "ource\022>\n\036nearest_neighbor_search_config\030" - + "\002 \001(\0132\026.google.protobuf.Value\022\026\n\016neighbo" - + "r_count\030\003 \001(\005\"\265\001\n\027ExplanationSpecOverrid" - + "e\022J\n\nparameters\030\001 \001(\01326.google.cloud.aip" - + "latform.v1beta1.ExplanationParameters\022N\n" - + "\010metadata\030\002 \001(\0132<.google.cloud.aiplatfor" - + "m.v1beta1.ExplanationMetadataOverride\"\312\002" - + "\n\033ExplanationMetadataOverride\022]\n\006inputs\030" - + "\001 \003(\0132H.google.cloud.aiplatform.v1beta1." - + "ExplanationMetadataOverride.InputsEntryB" - + "\003\340A\002\032H\n\025InputMetadataOverride\022/\n\017input_b" - + "aselines\030\001 \003(\0132\026.google.protobuf.Value\032\201" - + "\001\n\013InputsEntry\022\013\n\003key\030\001 \001(\t\022a\n\005value\030\002 \001" - + "(\0132R.google.cloud.aiplatform.v1beta1.Exp" - + "lanationMetadataOverride.InputMetadataOv" - + "erride:\0028\001B\355\001\n#com.google.cloud.aiplatfo" - + "rm.v1beta1B\020ExplanationProtoP\001ZIgoogle.g" - + "olang.org/genproto/googleapis/cloud/aipl" - + "atform/v1beta1;aiplatform\252\002\037Google.Cloud" - + ".AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPla" - + "tform\\V1beta1\352\002\"Google::Cloud::AIPlatfor" - + "m::V1beta1b\006proto3" + + "uct.proto\"\231\001\n\013Explanation\022G\n\014attribution" + + "s\030\001 \003(\0132,.google.cloud.aiplatform.v1beta" + + "1.AttributionB\003\340A\003\022A\n\tneighbors\030\002 \003(\0132)." + + "google.cloud.aiplatform.v1beta1.Neighbor" + + "B\003\340A\003\"`\n\020ModelExplanation\022L\n\021mean_attrib" + + "utions\030\001 \003(\0132,.google.cloud.aiplatform.v" + + "1beta1.AttributionB\003\340A\003\"\211\002\n\013Attribution\022" + + "\"\n\025baseline_output_value\030\001 \001(\001B\003\340A\003\022\"\n\025i" + + "nstance_output_value\030\002 \001(\001B\003\340A\003\0229\n\024featu" + + "re_attributions\030\003 \001(\0132\026.google.protobuf." + + "ValueB\003\340A\003\022\031\n\014output_index\030\004 \003(\005B\003\340A\003\022 \n" + + "\023output_display_name\030\005 \001(\tB\003\340A\003\022 \n\023appro" + + "ximation_error\030\006 \001(\001B\003\340A\003\022\030\n\013output_name" + + "\030\007 \001(\tB\003\340A\003\"D\n\010Neighbor\022\030\n\013neighbor_id\030\001" + + " \001(\tB\003\340A\003\022\036\n\021neighbor_distance\030\002 \001(\001B\003\340A" + + "\003\"\257\001\n\017ExplanationSpec\022O\n\nparameters\030\001 \001(" + + "\01326.google.cloud.aiplatform.v1beta1.Expl" + + "anationParametersB\003\340A\002\022K\n\010metadata\030\002 \001(\013" + + "24.google.cloud.aiplatform.v1beta1.Expla" + + "nationMetadataB\003\340A\002\"\301\003\n\025ExplanationParam" + + "eters\022a\n\033sampled_shapley_attribution\030\001 \001" + + "(\0132:.google.cloud.aiplatform.v1beta1.Sam" + + "pledShapleyAttributionH\000\022k\n integrated_g" + + "radients_attribution\030\002 \001(\0132?.google.clou" + + "d.aiplatform.v1beta1.IntegratedGradients" + + "AttributionH\000\022L\n\020xrai_attribution\030\003 \001(\0132" + + "0.google.cloud.aiplatform.v1beta1.XraiAt" + + "tributionH\000\022=\n\010examples\030\007 \001(\0132).google.c" + + "loud.aiplatform.v1beta1.ExamplesH\000\022\r\n\005to" + + "p_k\030\004 \001(\005\0222\n\016output_indices\030\005 \001(\0132\032.goog" + + "le.protobuf.ListValueB\010\n\006method\"4\n\031Sampl" + + "edShapleyAttribution\022\027\n\npath_count\030\001 \001(\005" + + "B\003\340A\002\"\333\001\n\036IntegratedGradientsAttribution" + + "\022\027\n\nstep_count\030\001 \001(\005B\003\340A\002\022M\n\022smooth_grad" + + "_config\030\002 \001(\01321.google.cloud.aiplatform." + + "v1beta1.SmoothGradConfig\022Q\n\024blur_baselin" + + "e_config\030\003 \001(\01323.google.cloud.aiplatform" + + ".v1beta1.BlurBaselineConfig\"\314\001\n\017XraiAttr" + + "ibution\022\027\n\nstep_count\030\001 \001(\005B\003\340A\002\022M\n\022smoo" + + "th_grad_config\030\002 \001(\01321.google.cloud.aipl" + + "atform.v1beta1.SmoothGradConfig\022Q\n\024blur_" + + "baseline_config\030\003 \001(\01323.google.cloud.aip" + + "latform.v1beta1.BlurBaselineConfig\"\256\001\n\020S" + + "moothGradConfig\022\025\n\013noise_sigma\030\001 \001(\002H\000\022Q" + + "\n\023feature_noise_sigma\030\002 \001(\01322.google.clo" + + "ud.aiplatform.v1beta1.FeatureNoiseSigmaH" + + "\000\022\032\n\022noisy_sample_count\030\003 \001(\005B\024\n\022Gradien" + + "tNoiseSigma\"\246\001\n\021FeatureNoiseSigma\022\\\n\013noi" + + "se_sigma\030\001 \003(\0132G.google.cloud.aiplatform" + + ".v1beta1.FeatureNoiseSigma.NoiseSigmaFor" + + "Feature\0323\n\024NoiseSigmaForFeature\022\014\n\004name\030" + + "\001 \001(\t\022\r\n\005sigma\030\002 \001(\002\",\n\022BlurBaselineConf" + + "ig\022\026\n\016max_blur_sigma\030\001 \001(\002\"\353\001\n\010Examples\022" + + "@\n\036nearest_neighbor_search_config\030\002 \001(\0132" + + "\026.google.protobuf.ValueH\000\022;\n\007presets\030\004 \001" + + "(\0132(.google.cloud.aiplatform.v1beta1.Pre" + + "setsH\000\022>\n\ngcs_source\030\001 \001(\0132*.google.clou" + + "d.aiplatform.v1beta1.GcsSource\022\026\n\016neighb" + + "or_count\030\003 \001(\005B\010\n\006config\"\204\002\n\007Presets\022B\n\005" + + "query\030\001 \001(\0162..google.cloud.aiplatform.v1" + + "beta1.Presets.QueryH\000\210\001\001\022C\n\010modality\030\002 \001" + + "(\01621.google.cloud.aiplatform.v1beta1.Pre" + + "sets.Modality\"\036\n\005Query\022\013\n\007PRECISE\020\000\022\010\n\004F" + + "AST\020\001\"F\n\010Modality\022\030\n\024MODALITY_UNSPECIFIE" + + "D\020\000\022\t\n\005IMAGE\020\001\022\010\n\004TEXT\020\002\022\013\n\007TABULAR\020\003B\010\n" + + "\006_query\"\203\002\n\027ExplanationSpecOverride\022J\n\np" + + "arameters\030\001 \001(\01326.google.cloud.aiplatfor" + + "m.v1beta1.ExplanationParameters\022N\n\010metad" + + "ata\030\002 \001(\0132<.google.cloud.aiplatform.v1be" + + "ta1.ExplanationMetadataOverride\022L\n\021examp" + + "les_override\030\003 \001(\01321.google.cloud.aiplat" + + "form.v1beta1.ExamplesOverride\"\312\002\n\033Explan" + + "ationMetadataOverride\022]\n\006inputs\030\001 \003(\0132H." + + "google.cloud.aiplatform.v1beta1.Explanat" + + "ionMetadataOverride.InputsEntryB\003\340A\002\032H\n\025" + + "InputMetadataOverride\022/\n\017input_baselines" + + "\030\001 \003(\0132\026.google.protobuf.Value\032\201\001\n\013Input" + + "sEntry\022\013\n\003key\030\001 \001(\t\022a\n\005value\030\002 \001(\0132R.goo" + + "gle.cloud.aiplatform.v1beta1.Explanation" + + "MetadataOverride.InputMetadataOverride:\002" + + "8\001\"\320\002\n\020ExamplesOverride\022\026\n\016neighbor_coun" + + "t\030\001 \001(\005\022\026\n\016crowding_count\030\002 \001(\005\022T\n\014restr" + + "ictions\030\003 \003(\0132>.google.cloud.aiplatform." + + "v1beta1.ExamplesRestrictionsNamespace\022\031\n" + + "\021return_embeddings\030\004 \001(\010\022Q\n\013data_format\030" + + "\005 \001(\0162<.google.cloud.aiplatform.v1beta1." + + "ExamplesOverride.DataFormat\"H\n\nDataForma" + + "t\022\033\n\027DATA_FORMAT_UNSPECIFIED\020\000\022\r\n\tINSTAN" + + "CES\020\001\022\016\n\nEMBEDDINGS\020\002\"T\n\035ExamplesRestric" + + "tionsNamespace\022\026\n\016namespace_name\030\001 \001(\t\022\r" + + "\n\005allow\030\002 \003(\t\022\014\n\004deny\030\003 \003(\tB\355\001\n#com.goog" + + "le.cloud.aiplatform.v1beta1B\020Explanation" + + "ProtoP\001ZIgoogle.golang.org/genproto/goog" + + "leapis/cloud/aiplatform/v1beta1;aiplatfo" + + "rm\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037G" + + "oogle\\Cloud\\AIPlatform\\V1beta1\352\002\"Google:" + + ":Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -199,7 +239,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_Explanation_descriptor, new java.lang.String[] { - "Attributions", + "Attributions", "Neighbors", }); internal_static_google_cloud_aiplatform_v1beta1_ModelExplanation_descriptor = getDescriptor().getMessageTypes().get(1); @@ -223,8 +263,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApproximationError", "OutputName", }); - internal_static_google_cloud_aiplatform_v1beta1_ExplanationSpec_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_Neighbor_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_aiplatform_v1beta1_Neighbor_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_Neighbor_descriptor, + new java.lang.String[] { + "NeighborId", "NeighborDistance", + }); + internal_static_google_cloud_aiplatform_v1beta1_ExplanationSpec_descriptor = + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_aiplatform_v1beta1_ExplanationSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ExplanationSpec_descriptor, @@ -232,7 +280,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parameters", "Metadata", }); internal_static_google_cloud_aiplatform_v1beta1_ExplanationParameters_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_aiplatform_v1beta1_ExplanationParameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ExplanationParameters_descriptor, @@ -246,7 +294,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Method", }); internal_static_google_cloud_aiplatform_v1beta1_SampledShapleyAttribution_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_aiplatform_v1beta1_SampledShapleyAttribution_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_SampledShapleyAttribution_descriptor, @@ -254,7 +302,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PathCount", }); internal_static_google_cloud_aiplatform_v1beta1_IntegratedGradientsAttribution_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_aiplatform_v1beta1_IntegratedGradientsAttribution_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_IntegratedGradientsAttribution_descriptor, @@ -262,7 +310,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StepCount", "SmoothGradConfig", "BlurBaselineConfig", }); internal_static_google_cloud_aiplatform_v1beta1_XraiAttribution_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_aiplatform_v1beta1_XraiAttribution_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_XraiAttribution_descriptor, @@ -270,7 +318,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StepCount", "SmoothGradConfig", "BlurBaselineConfig", }); internal_static_google_cloud_aiplatform_v1beta1_SmoothGradConfig_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_aiplatform_v1beta1_SmoothGradConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_SmoothGradConfig_descriptor, @@ -278,7 +326,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NoiseSigma", "FeatureNoiseSigma", "NoisySampleCount", "GradientNoiseSigma", }); internal_static_google_cloud_aiplatform_v1beta1_FeatureNoiseSigma_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_aiplatform_v1beta1_FeatureNoiseSigma_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_FeatureNoiseSigma_descriptor, @@ -296,7 +344,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Sigma", }); internal_static_google_cloud_aiplatform_v1beta1_BlurBaselineConfig_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_aiplatform_v1beta1_BlurBaselineConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_BlurBaselineConfig_descriptor, @@ -304,23 +352,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaxBlurSigma", }); internal_static_google_cloud_aiplatform_v1beta1_Examples_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_aiplatform_v1beta1_Examples_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_Examples_descriptor, new java.lang.String[] { - "GcsSource", "NearestNeighborSearchConfig", "NeighborCount", + "NearestNeighborSearchConfig", "Presets", "GcsSource", "NeighborCount", "Config", + }); + internal_static_google_cloud_aiplatform_v1beta1_Presets_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_aiplatform_v1beta1_Presets_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_Presets_descriptor, + new java.lang.String[] { + "Query", "Modality", "Query", }); internal_static_google_cloud_aiplatform_v1beta1_ExplanationSpecOverride_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_aiplatform_v1beta1_ExplanationSpecOverride_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ExplanationSpecOverride_descriptor, new java.lang.String[] { - "Parameters", "Metadata", + "Parameters", "Metadata", "ExamplesOverride", }); internal_static_google_cloud_aiplatform_v1beta1_ExplanationMetadataOverride_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_aiplatform_v1beta1_ExplanationMetadataOverride_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ExplanationMetadataOverride_descriptor, @@ -347,6 +403,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_aiplatform_v1beta1_ExamplesOverride_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_aiplatform_v1beta1_ExamplesOverride_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ExamplesOverride_descriptor, + new java.lang.String[] { + "NeighborCount", "CrowdingCount", "Restrictions", "ReturnEmbeddings", "DataFormat", + }); + internal_static_google_cloud_aiplatform_v1beta1_ExamplesRestrictionsNamespace_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_aiplatform_v1beta1_ExamplesRestrictionsNamespace_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ExamplesRestrictionsNamespace_descriptor, + new java.lang.String[] { + "NamespaceName", "Allow", "Deny", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationSpecOverride.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationSpecOverride.java index 4d6c7c79b885..110a59ff7a93 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationSpecOverride.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationSpecOverride.java @@ -102,6 +102,23 @@ private ExplanationSpecOverride( metadata_ = subBuilder.buildPartial(); } + break; + } + case 26: + { + com.google.cloud.aiplatform.v1beta1.ExamplesOverride.Builder subBuilder = null; + if (examplesOverride_ != null) { + subBuilder = examplesOverride_.toBuilder(); + } + examplesOverride_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ExamplesOverride.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(examplesOverride_); + examplesOverride_ = subBuilder.buildPartial(); + } + break; } default: @@ -244,6 +261,55 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride getMetada return getMetadata(); } + public static final int EXAMPLES_OVERRIDE_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1beta1.ExamplesOverride examplesOverride_; + /** + * + * + *
+   * The example-based explanations parameter overrides.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ExamplesOverride examples_override = 3; + * + * @return Whether the examplesOverride field is set. + */ + @java.lang.Override + public boolean hasExamplesOverride() { + return examplesOverride_ != null; + } + /** + * + * + *
+   * The example-based explanations parameter overrides.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ExamplesOverride examples_override = 3; + * + * @return The examplesOverride. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExamplesOverride getExamplesOverride() { + return examplesOverride_ == null + ? com.google.cloud.aiplatform.v1beta1.ExamplesOverride.getDefaultInstance() + : examplesOverride_; + } + /** + * + * + *
+   * The example-based explanations parameter overrides.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ExamplesOverride examples_override = 3; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExamplesOverrideOrBuilder + getExamplesOverrideOrBuilder() { + return getExamplesOverride(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -264,6 +330,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (metadata_ != null) { output.writeMessage(2, getMetadata()); } + if (examplesOverride_ != null) { + output.writeMessage(3, getExamplesOverride()); + } unknownFields.writeTo(output); } @@ -279,6 +348,9 @@ public int getSerializedSize() { if (metadata_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetadata()); } + if (examplesOverride_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExamplesOverride()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -303,6 +375,10 @@ public boolean equals(final java.lang.Object obj) { if (hasMetadata()) { if (!getMetadata().equals(other.getMetadata())) return false; } + if (hasExamplesOverride() != other.hasExamplesOverride()) return false; + if (hasExamplesOverride()) { + if (!getExamplesOverride().equals(other.getExamplesOverride())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -322,6 +398,10 @@ public int hashCode() { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } + if (hasExamplesOverride()) { + hash = (37 * hash) + EXAMPLES_OVERRIDE_FIELD_NUMBER; + hash = (53 * hash) + getExamplesOverride().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -481,6 +561,12 @@ public Builder clear() { metadata_ = null; metadataBuilder_ = null; } + if (examplesOverrideBuilder_ == null) { + examplesOverride_ = null; + } else { + examplesOverride_ = null; + examplesOverrideBuilder_ = null; + } return this; } @@ -518,6 +604,11 @@ public com.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride buildPartial( } else { result.metadata_ = metadataBuilder_.build(); } + if (examplesOverrideBuilder_ == null) { + result.examplesOverride_ = examplesOverride_; + } else { + result.examplesOverride_ = examplesOverrideBuilder_.build(); + } onBuilt(); return result; } @@ -574,6 +665,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ExplanationSpecOver if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } + if (other.hasExamplesOverride()) { + mergeExamplesOverride(other.getExamplesOverride()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1001,6 +1095,195 @@ public Builder clearMetadata() { return metadataBuilder_; } + private com.google.cloud.aiplatform.v1beta1.ExamplesOverride examplesOverride_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ExamplesOverride, + com.google.cloud.aiplatform.v1beta1.ExamplesOverride.Builder, + com.google.cloud.aiplatform.v1beta1.ExamplesOverrideOrBuilder> + examplesOverrideBuilder_; + /** + * + * + *
+     * The example-based explanations parameter overrides.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ExamplesOverride examples_override = 3; + * + * @return Whether the examplesOverride field is set. + */ + public boolean hasExamplesOverride() { + return examplesOverrideBuilder_ != null || examplesOverride_ != null; + } + /** + * + * + *
+     * The example-based explanations parameter overrides.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ExamplesOverride examples_override = 3; + * + * @return The examplesOverride. + */ + public com.google.cloud.aiplatform.v1beta1.ExamplesOverride getExamplesOverride() { + if (examplesOverrideBuilder_ == null) { + return examplesOverride_ == null + ? com.google.cloud.aiplatform.v1beta1.ExamplesOverride.getDefaultInstance() + : examplesOverride_; + } else { + return examplesOverrideBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The example-based explanations parameter overrides.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ExamplesOverride examples_override = 3; + */ + public Builder setExamplesOverride(com.google.cloud.aiplatform.v1beta1.ExamplesOverride value) { + if (examplesOverrideBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + examplesOverride_ = value; + onChanged(); + } else { + examplesOverrideBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The example-based explanations parameter overrides.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ExamplesOverride examples_override = 3; + */ + public Builder setExamplesOverride( + com.google.cloud.aiplatform.v1beta1.ExamplesOverride.Builder builderForValue) { + if (examplesOverrideBuilder_ == null) { + examplesOverride_ = builderForValue.build(); + onChanged(); + } else { + examplesOverrideBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The example-based explanations parameter overrides.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ExamplesOverride examples_override = 3; + */ + public Builder mergeExamplesOverride( + com.google.cloud.aiplatform.v1beta1.ExamplesOverride value) { + if (examplesOverrideBuilder_ == null) { + if (examplesOverride_ != null) { + examplesOverride_ = + com.google.cloud.aiplatform.v1beta1.ExamplesOverride.newBuilder(examplesOverride_) + .mergeFrom(value) + .buildPartial(); + } else { + examplesOverride_ = value; + } + onChanged(); + } else { + examplesOverrideBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The example-based explanations parameter overrides.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ExamplesOverride examples_override = 3; + */ + public Builder clearExamplesOverride() { + if (examplesOverrideBuilder_ == null) { + examplesOverride_ = null; + onChanged(); + } else { + examplesOverride_ = null; + examplesOverrideBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The example-based explanations parameter overrides.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ExamplesOverride examples_override = 3; + */ + public com.google.cloud.aiplatform.v1beta1.ExamplesOverride.Builder + getExamplesOverrideBuilder() { + + onChanged(); + return getExamplesOverrideFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The example-based explanations parameter overrides.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ExamplesOverride examples_override = 3; + */ + public com.google.cloud.aiplatform.v1beta1.ExamplesOverrideOrBuilder + getExamplesOverrideOrBuilder() { + if (examplesOverrideBuilder_ != null) { + return examplesOverrideBuilder_.getMessageOrBuilder(); + } else { + return examplesOverride_ == null + ? com.google.cloud.aiplatform.v1beta1.ExamplesOverride.getDefaultInstance() + : examplesOverride_; + } + } + /** + * + * + *
+     * The example-based explanations parameter overrides.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ExamplesOverride examples_override = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ExamplesOverride, + com.google.cloud.aiplatform.v1beta1.ExamplesOverride.Builder, + com.google.cloud.aiplatform.v1beta1.ExamplesOverrideOrBuilder> + getExamplesOverrideFieldBuilder() { + if (examplesOverrideBuilder_ == null) { + examplesOverrideBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ExamplesOverride, + com.google.cloud.aiplatform.v1beta1.ExamplesOverride.Builder, + com.google.cloud.aiplatform.v1beta1.ExamplesOverrideOrBuilder>( + getExamplesOverride(), getParentForChildren(), isClean()); + examplesOverride_ = null; + } + return examplesOverrideBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationSpecOverrideOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationSpecOverrideOrBuilder.java index 390082aab662..363614417de2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationSpecOverrideOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationSpecOverrideOrBuilder.java @@ -98,4 +98,39 @@ public interface ExplanationSpecOverrideOrBuilder * .google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride metadata = 2; */ com.google.cloud.aiplatform.v1beta1.ExplanationMetadataOverrideOrBuilder getMetadataOrBuilder(); + + /** + * + * + *
+   * The example-based explanations parameter overrides.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ExamplesOverride examples_override = 3; + * + * @return Whether the examplesOverride field is set. + */ + boolean hasExamplesOverride(); + /** + * + * + *
+   * The example-based explanations parameter overrides.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ExamplesOverride examples_override = 3; + * + * @return The examplesOverride. + */ + com.google.cloud.aiplatform.v1beta1.ExamplesOverride getExamplesOverride(); + /** + * + * + *
+   * The example-based explanations parameter overrides.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ExamplesOverride examples_override = 3; + */ + com.google.cloud.aiplatform.v1beta1.ExamplesOverrideOrBuilder getExamplesOverrideOrBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportModelRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportModelRequest.java index 208ac592ef7b..623dbd197571 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportModelRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportModelRequest.java @@ -1642,6 +1642,8 @@ public com.google.protobuf.Parser getParserForType() { * *
    * Required. The resource name of the Model to export.
+   * The resource name may contain version id or version alias to specify the
+   * version, if no version is specified, the default version will be exported.
    * 
* * @@ -1667,6 +1669,8 @@ public java.lang.String getName() { * *
    * Required. The resource name of the Model to export.
+   * The resource name may contain version id or version alias to specify the
+   * version, if no version is specified, the default version will be exported.
    * 
* * @@ -2096,6 +2100,8 @@ public Builder mergeFrom( * *
      * Required. The resource name of the Model to export.
+     * The resource name may contain version id or version alias to specify the
+     * version, if no version is specified, the default version will be exported.
      * 
* * @@ -2120,6 +2126,8 @@ public java.lang.String getName() { * *
      * Required. The resource name of the Model to export.
+     * The resource name may contain version id or version alias to specify the
+     * version, if no version is specified, the default version will be exported.
      * 
* * @@ -2144,6 +2152,8 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. The resource name of the Model to export.
+     * The resource name may contain version id or version alias to specify the
+     * version, if no version is specified, the default version will be exported.
      * 
* * @@ -2167,6 +2177,8 @@ public Builder setName(java.lang.String value) { * *
      * Required. The resource name of the Model to export.
+     * The resource name may contain version id or version alias to specify the
+     * version, if no version is specified, the default version will be exported.
      * 
* * @@ -2186,6 +2198,8 @@ public Builder clearName() { * *
      * Required. The resource name of the Model to export.
+     * The resource name may contain version id or version alias to specify the
+     * version, if no version is specified, the default version will be exported.
      * 
* * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportModelRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportModelRequestOrBuilder.java index 28a51380b79e..b6ac499a554d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportModelRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExportModelRequestOrBuilder.java @@ -28,6 +28,8 @@ public interface ExportModelRequestOrBuilder * *
    * Required. The resource name of the Model to export.
+   * The resource name may contain version id or version alias to specify the
+   * version, if no version is specified, the default version will be exported.
    * 
* * @@ -42,6 +44,8 @@ public interface ExportModelRequestOrBuilder * *
    * Required. The resource name of the Model to export.
+   * The resource name may contain version id or version alias to specify the
+   * version, if no version is specified, the default version will be exported.
    * 
* * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureName.java index b99bf60021b3..c724045f4603 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValue.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValue.java index 6c25b07f8e54..a6acf3feed93 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValue.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValue.java @@ -23,7 +23,6 @@ * *
  * Value for a feature.
- * NEXT ID: 15
  * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.FeatureValue} @@ -1898,7 +1897,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Value for a feature.
-   * NEXT ID: 15
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.FeatureValue} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreName.java index b3c8b8e1006e..285df93e6e2f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelRequest.java index 0c17b478b9b1..d93856c684d0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelRequest.java @@ -121,6 +121,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. The name of the Model resource.
    * Format: `projects/{project}/locations/{location}/models/{model}`
+   * In order to retrieve a specific version of the model, also provide
+   * the version ID or version alias.
+   *   Example: `projects/{project}/locations/{location}/models/{model}@2`
+   *              or
+   *            `projects/{project}/locations/{location}/models/{model}@golden`
+   * If no version ID or alias is specified, the "default" version will be
+   * returned. The "default" version alias is created for the first version of
+   * the model, and can be moved to other versions later on. There will be
+   * exactly one default version.
    * 
* * @@ -147,6 +156,15 @@ public java.lang.String getName() { *
    * Required. The name of the Model resource.
    * Format: `projects/{project}/locations/{location}/models/{model}`
+   * In order to retrieve a specific version of the model, also provide
+   * the version ID or version alias.
+   *   Example: `projects/{project}/locations/{location}/models/{model}@2`
+   *              or
+   *            `projects/{project}/locations/{location}/models/{model}@golden`
+   * If no version ID or alias is specified, the "default" version will be
+   * returned. The "default" version alias is created for the first version of
+   * the model, and can be moved to other versions later on. There will be
+   * exactly one default version.
    * 
* * @@ -493,6 +511,15 @@ public Builder mergeFrom( *
      * Required. The name of the Model resource.
      * Format: `projects/{project}/locations/{location}/models/{model}`
+     * In order to retrieve a specific version of the model, also provide
+     * the version ID or version alias.
+     *   Example: `projects/{project}/locations/{location}/models/{model}@2`
+     *              or
+     *            `projects/{project}/locations/{location}/models/{model}@golden`
+     * If no version ID or alias is specified, the "default" version will be
+     * returned. The "default" version alias is created for the first version of
+     * the model, and can be moved to other versions later on. There will be
+     * exactly one default version.
      * 
* * @@ -518,6 +545,15 @@ public java.lang.String getName() { *
      * Required. The name of the Model resource.
      * Format: `projects/{project}/locations/{location}/models/{model}`
+     * In order to retrieve a specific version of the model, also provide
+     * the version ID or version alias.
+     *   Example: `projects/{project}/locations/{location}/models/{model}@2`
+     *              or
+     *            `projects/{project}/locations/{location}/models/{model}@golden`
+     * If no version ID or alias is specified, the "default" version will be
+     * returned. The "default" version alias is created for the first version of
+     * the model, and can be moved to other versions later on. There will be
+     * exactly one default version.
      * 
* * @@ -543,6 +579,15 @@ public com.google.protobuf.ByteString getNameBytes() { *
      * Required. The name of the Model resource.
      * Format: `projects/{project}/locations/{location}/models/{model}`
+     * In order to retrieve a specific version of the model, also provide
+     * the version ID or version alias.
+     *   Example: `projects/{project}/locations/{location}/models/{model}@2`
+     *              or
+     *            `projects/{project}/locations/{location}/models/{model}@golden`
+     * If no version ID or alias is specified, the "default" version will be
+     * returned. The "default" version alias is created for the first version of
+     * the model, and can be moved to other versions later on. There will be
+     * exactly one default version.
      * 
* * @@ -567,6 +612,15 @@ public Builder setName(java.lang.String value) { *
      * Required. The name of the Model resource.
      * Format: `projects/{project}/locations/{location}/models/{model}`
+     * In order to retrieve a specific version of the model, also provide
+     * the version ID or version alias.
+     *   Example: `projects/{project}/locations/{location}/models/{model}@2`
+     *              or
+     *            `projects/{project}/locations/{location}/models/{model}@golden`
+     * If no version ID or alias is specified, the "default" version will be
+     * returned. The "default" version alias is created for the first version of
+     * the model, and can be moved to other versions later on. There will be
+     * exactly one default version.
      * 
* * @@ -587,6 +641,15 @@ public Builder clearName() { *
      * Required. The name of the Model resource.
      * Format: `projects/{project}/locations/{location}/models/{model}`
+     * In order to retrieve a specific version of the model, also provide
+     * the version ID or version alias.
+     *   Example: `projects/{project}/locations/{location}/models/{model}@2`
+     *              or
+     *            `projects/{project}/locations/{location}/models/{model}@golden`
+     * If no version ID or alias is specified, the "default" version will be
+     * returned. The "default" version alias is created for the first version of
+     * the model, and can be moved to other versions later on. There will be
+     * exactly one default version.
      * 
* * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelRequestOrBuilder.java index ed6962f55715..f6eb4cfbe5bb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetModelRequestOrBuilder.java @@ -29,6 +29,15 @@ public interface GetModelRequestOrBuilder *
    * Required. The name of the Model resource.
    * Format: `projects/{project}/locations/{location}/models/{model}`
+   * In order to retrieve a specific version of the model, also provide
+   * the version ID or version alias.
+   *   Example: `projects/{project}/locations/{location}/models/{model}@2`
+   *              or
+   *            `projects/{project}/locations/{location}/models/{model}@golden`
+   * If no version ID or alias is specified, the "default" version will be
+   * returned. The "default" version alias is created for the first version of
+   * the model, and can be moved to other versions later on. There will be
+   * exactly one default version.
    * 
* * @@ -44,6 +53,15 @@ public interface GetModelRequestOrBuilder *
    * Required. The name of the Model resource.
    * Format: `projects/{project}/locations/{location}/models/{model}`
+   * In order to retrieve a specific version of the model, also provide
+   * the version ID or version alias.
+   *   Example: `projects/{project}/locations/{location}/models/{model}@2`
+   *              or
+   *            `projects/{project}/locations/{location}/models/{model}@golden`
+   * If no version ID or alias is specified, the "default" version will be
+   * returned. The "default" version alias is created for the first version of
+   * the model, and can be moved to other versions later on. There will be
+   * exactly one default version.
    * 
* * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobName.java index 5ba21188a1a7..a5d2a1f88e09 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointName.java index c1be408c5aea..ba23410a97c0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexName.java index 83672f559392..c6d2b3bcdc21 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequest.java index 7a13c03443f4..00b0918819c7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequest.java @@ -219,7 +219,7 @@ public com.google.protobuf.ByteString getParentBytes() { * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. - * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). @@ -270,7 +270,7 @@ public java.lang.String getFilter() { * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. - * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). @@ -970,7 +970,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. - * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). @@ -1020,7 +1020,7 @@ public java.lang.String getFilter() { * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. - * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). @@ -1070,7 +1070,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. - * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). @@ -1119,7 +1119,7 @@ public Builder setFilter(java.lang.String value) { * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. - * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). @@ -1164,7 +1164,7 @@ public Builder clearFilter() { * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. - * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequestOrBuilder.java index 027b756f5f3c..49e72a6bded3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequestOrBuilder.java @@ -74,7 +74,7 @@ public interface ListPipelineJobsRequestOrBuilder * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. - * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). @@ -114,7 +114,7 @@ public interface ListPipelineJobsRequestOrBuilder * Values must be in RFC 3339 format. * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. - * * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LocationName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LocationName.java index 969152db1380..16c87f2d957a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LocationName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LocationName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ManualBatchTuningParameters.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ManualBatchTuningParameters.java index 10cd38d4c494..b437d0ce529d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ManualBatchTuningParameters.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ManualBatchTuningParameters.java @@ -121,7 +121,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * speeds up the batch operation's execution, but too high value will result * in a whole batch not fitting in a machine's memory, and the whole * operation will fail. - * The default value is 4. + * The default value is 64. * * * int32 batch_size = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -466,7 +466,7 @@ public Builder mergeFrom( * speeds up the batch operation's execution, but too high value will result * in a whole batch not fitting in a machine's memory, and the whole * operation will fail. - * The default value is 4. + * The default value is 64. * * * int32 batch_size = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -487,7 +487,7 @@ public int getBatchSize() { * speeds up the batch operation's execution, but too high value will result * in a whole batch not fitting in a machine's memory, and the whole * operation will fail. - * The default value is 4. + * The default value is 64. * * * int32 batch_size = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -511,7 +511,7 @@ public Builder setBatchSize(int value) { * speeds up the batch operation's execution, but too high value will result * in a whole batch not fitting in a machine's memory, and the whole * operation will fail. - * The default value is 4. + * The default value is 64. * * * int32 batch_size = 1 [(.google.api.field_behavior) = IMMUTABLE]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ManualBatchTuningParametersOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ManualBatchTuningParametersOrBuilder.java index 71810be30026..3c63193ff0b0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ManualBatchTuningParametersOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ManualBatchTuningParametersOrBuilder.java @@ -33,7 +33,7 @@ public interface ManualBatchTuningParametersOrBuilder * speeds up the batch operation's execution, but too high value will result * in a whole batch not fitting in a machine's memory, and the whole * operation will fail. - * The default value is 4. + * The default value is 64. * * * int32 batch_size = 1 [(.google.api.field_behavior) = IMMUTABLE]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchemaName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchemaName.java index f2b171cbdf48..75b47a648920 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchemaName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchemaName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataStoreName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataStoreName.java index f720b87ef54e..884a209c1270 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataStoreName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataStoreName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobName.java index 0b91cae91ffd..d81509b74b70 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobProto.java index 99fc3ca858a4..1b70c1bd76a1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobProto.java @@ -149,36 +149,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "loymentMonitoringObjectiveConfig\022\031\n\021depl" + "oyed_model_id\030\001 \001(\t\022Y\n\020objective_config\030" + "\002 \001(\0132?.google.cloud.aiplatform.v1beta1." - + "ModelMonitoringObjectiveConfig\"c\n\'ModelD" - + "eploymentMonitoringScheduleConfig\0228\n\020mon" - + "itor_interval\030\001 \001(\0132\031.google.protobuf.Du" - + "rationB\003\340A\002\"\305\004\n\035ModelMonitoringStatsAnom" - + "alies\022Z\n\tobjective\030\001 \001(\0162G.google.cloud." - + "aiplatform.v1beta1.ModelDeploymentMonito" - + "ringObjectiveType\022\031\n\021deployed_model_id\030\002" - + " \001(\t\022\025\n\ranomaly_count\030\003 \001(\005\022s\n\rfeature_s" - + "tats\030\004 \003(\0132\\.google.cloud.aiplatform.v1b" - + "eta1.ModelMonitoringStatsAnomalies.Featu" - + "reHistoricStatsAnomalies\032\240\002\n\035FeatureHist" - + "oricStatsAnomalies\022\034\n\024feature_display_na" - + "me\030\001 \001(\t\022C\n\tthreshold\030\003 \001(\01320.google.clo" - + "ud.aiplatform.v1beta1.ThresholdConfig\022L\n" - + "\016training_stats\030\004 \001(\01324.google.cloud.aip" - + "latform.v1beta1.FeatureStatsAnomaly\022N\n\020p" - + "rediction_stats\030\005 \003(\01324.google.cloud.aip" - + "latform.v1beta1.FeatureStatsAnomaly*\316\001\n&" - + "ModelDeploymentMonitoringObjectiveType\022:" - + "\n6MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_" - + "TYPE_UNSPECIFIED\020\000\022\024\n\020RAW_FEATURE_SKEW\020\001" - + "\022\025\n\021RAW_FEATURE_DRIFT\020\002\022\034\n\030FEATURE_ATTRI" - + "BUTION_SKEW\020\003\022\035\n\031FEATURE_ATTRIBUTION_DRI" - + "FT\020\004B\376\001\n#com.google.cloud.aiplatform.v1b" - + "eta1B!ModelDeploymentMonitoringJobProtoP" - + "\001ZIgoogle.golang.org/genproto/googleapis" - + "/cloud/aiplatform/v1beta1;aiplatform\252\002\037G" - + "oogle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\" - + "Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cloud" - + "::AIPlatform::V1beta1b\006proto3" + + "ModelMonitoringObjectiveConfig\"\226\001\n\'Model" + + "DeploymentMonitoringScheduleConfig\0228\n\020mo" + + "nitor_interval\030\001 \001(\0132\031.google.protobuf.D" + + "urationB\003\340A\002\0221\n\016monitor_window\030\002 \001(\0132\031.g" + + "oogle.protobuf.Duration\"\305\004\n\035ModelMonitor" + + "ingStatsAnomalies\022Z\n\tobjective\030\001 \001(\0162G.g" + + "oogle.cloud.aiplatform.v1beta1.ModelDepl" + + "oymentMonitoringObjectiveType\022\031\n\021deploye" + + "d_model_id\030\002 \001(\t\022\025\n\ranomaly_count\030\003 \001(\005\022" + + "s\n\rfeature_stats\030\004 \003(\0132\\.google.cloud.ai" + + "platform.v1beta1.ModelMonitoringStatsAno" + + "malies.FeatureHistoricStatsAnomalies\032\240\002\n" + + "\035FeatureHistoricStatsAnomalies\022\034\n\024featur" + + "e_display_name\030\001 \001(\t\022C\n\tthreshold\030\003 \001(\0132" + + "0.google.cloud.aiplatform.v1beta1.Thresh" + + "oldConfig\022L\n\016training_stats\030\004 \001(\01324.goog" + + "le.cloud.aiplatform.v1beta1.FeatureStats" + + "Anomaly\022N\n\020prediction_stats\030\005 \003(\01324.goog" + + "le.cloud.aiplatform.v1beta1.FeatureStats" + + "Anomaly*\316\001\n&ModelDeploymentMonitoringObj" + + "ectiveType\022:\n6MODEL_DEPLOYMENT_MONITORIN" + + "G_OBJECTIVE_TYPE_UNSPECIFIED\020\000\022\024\n\020RAW_FE" + + "ATURE_SKEW\020\001\022\025\n\021RAW_FEATURE_DRIFT\020\002\022\034\n\030F" + + "EATURE_ATTRIBUTION_SKEW\020\003\022\035\n\031FEATURE_ATT" + + "RIBUTION_DRIFT\020\004B\376\001\n#com.google.cloud.ai" + + "platform.v1beta1B!ModelDeploymentMonitor" + + "ingJobProtoP\001ZIgoogle.golang.org/genprot" + + "o/googleapis/cloud/aiplatform/v1beta1;ai" + + "platform\252\002\037Google.Cloud.AIPlatform.V1Bet" + + "a1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"G" + + "oogle::Cloud::AIPlatform::V1beta1b\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -268,7 +270,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ModelDeploymentMonitoringScheduleConfig_descriptor, new java.lang.String[] { - "MonitorInterval", + "MonitorInterval", "MonitorWindow", }); internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringStatsAnomalies_descriptor = getDescriptor().getMessageTypes().get(4); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringScheduleConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringScheduleConfig.java index b7b309020fcc..5e00cd06f7a1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringScheduleConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringScheduleConfig.java @@ -83,6 +83,21 @@ private ModelDeploymentMonitoringScheduleConfig( monitorInterval_ = subBuilder.buildPartial(); } + break; + } + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (monitorWindow_ != null) { + subBuilder = monitorWindow_.toBuilder(); + } + monitorWindow_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(monitorWindow_); + monitorWindow_ = subBuilder.buildPartial(); + } + break; } default: @@ -176,6 +191,75 @@ public com.google.protobuf.DurationOrBuilder getMonitorIntervalOrBuilder() { return getMonitorInterval(); } + public static final int MONITOR_WINDOW_FIELD_NUMBER = 2; + private com.google.protobuf.Duration monitorWindow_; + /** + * + * + *
+   * The time window of the prediction data being included in each prediction
+   * dataset. This window specifies how long the data should be collected from
+   * historical model results for each run. If not set,
+   * [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used.
+   * e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the
+   * monitor_window is set to be 3600, then data from 2022-01-08 13:30:00
+   * to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the
+   * monitoring statistics.
+   * 
+ * + * .google.protobuf.Duration monitor_window = 2; + * + * @return Whether the monitorWindow field is set. + */ + @java.lang.Override + public boolean hasMonitorWindow() { + return monitorWindow_ != null; + } + /** + * + * + *
+   * The time window of the prediction data being included in each prediction
+   * dataset. This window specifies how long the data should be collected from
+   * historical model results for each run. If not set,
+   * [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used.
+   * e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the
+   * monitor_window is set to be 3600, then data from 2022-01-08 13:30:00
+   * to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the
+   * monitoring statistics.
+   * 
+ * + * .google.protobuf.Duration monitor_window = 2; + * + * @return The monitorWindow. + */ + @java.lang.Override + public com.google.protobuf.Duration getMonitorWindow() { + return monitorWindow_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : monitorWindow_; + } + /** + * + * + *
+   * The time window of the prediction data being included in each prediction
+   * dataset. This window specifies how long the data should be collected from
+   * historical model results for each run. If not set,
+   * [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used.
+   * e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the
+   * monitor_window is set to be 3600, then data from 2022-01-08 13:30:00
+   * to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the
+   * monitoring statistics.
+   * 
+ * + * .google.protobuf.Duration monitor_window = 2; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getMonitorWindowOrBuilder() { + return getMonitorWindow(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -193,6 +277,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (monitorInterval_ != null) { output.writeMessage(1, getMonitorInterval()); } + if (monitorWindow_ != null) { + output.writeMessage(2, getMonitorWindow()); + } unknownFields.writeTo(output); } @@ -205,6 +292,9 @@ public int getSerializedSize() { if (monitorInterval_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMonitorInterval()); } + if (monitorWindow_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMonitorWindow()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -226,6 +316,10 @@ public boolean equals(final java.lang.Object obj) { if (hasMonitorInterval()) { if (!getMonitorInterval().equals(other.getMonitorInterval())) return false; } + if (hasMonitorWindow() != other.hasMonitorWindow()) return false; + if (hasMonitorWindow()) { + if (!getMonitorWindow().equals(other.getMonitorWindow())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -241,6 +335,10 @@ public int hashCode() { hash = (37 * hash) + MONITOR_INTERVAL_FIELD_NUMBER; hash = (53 * hash) + getMonitorInterval().hashCode(); } + if (hasMonitorWindow()) { + hash = (37 * hash) + MONITOR_WINDOW_FIELD_NUMBER; + hash = (53 * hash) + getMonitorWindow().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -401,6 +499,12 @@ public Builder clear() { monitorInterval_ = null; monitorIntervalBuilder_ = null; } + if (monitorWindowBuilder_ == null) { + monitorWindow_ = null; + } else { + monitorWindow_ = null; + monitorWindowBuilder_ = null; + } return this; } @@ -437,6 +541,11 @@ public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConf } else { result.monitorInterval_ = monitorIntervalBuilder_.build(); } + if (monitorWindowBuilder_ == null) { + result.monitorWindow_ = monitorWindow_; + } else { + result.monitorWindow_ = monitorWindowBuilder_.build(); + } onBuilt(); return result; } @@ -494,6 +603,9 @@ public Builder mergeFrom( if (other.hasMonitorInterval()) { mergeMonitorInterval(other.getMonitorInterval()); } + if (other.hasMonitorWindow()) { + mergeMonitorWindow(other.getMonitorWindow()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -738,6 +850,254 @@ public com.google.protobuf.DurationOrBuilder getMonitorIntervalOrBuilder() { return monitorIntervalBuilder_; } + private com.google.protobuf.Duration monitorWindow_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + monitorWindowBuilder_; + /** + * + * + *
+     * The time window of the prediction data being included in each prediction
+     * dataset. This window specifies how long the data should be collected from
+     * historical model results for each run. If not set,
+     * [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used.
+     * e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the
+     * monitor_window is set to be 3600, then data from 2022-01-08 13:30:00
+     * to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the
+     * monitoring statistics.
+     * 
+ * + * .google.protobuf.Duration monitor_window = 2; + * + * @return Whether the monitorWindow field is set. + */ + public boolean hasMonitorWindow() { + return monitorWindowBuilder_ != null || monitorWindow_ != null; + } + /** + * + * + *
+     * The time window of the prediction data being included in each prediction
+     * dataset. This window specifies how long the data should be collected from
+     * historical model results for each run. If not set,
+     * [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used.
+     * e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the
+     * monitor_window is set to be 3600, then data from 2022-01-08 13:30:00
+     * to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the
+     * monitoring statistics.
+     * 
+ * + * .google.protobuf.Duration monitor_window = 2; + * + * @return The monitorWindow. + */ + public com.google.protobuf.Duration getMonitorWindow() { + if (monitorWindowBuilder_ == null) { + return monitorWindow_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : monitorWindow_; + } else { + return monitorWindowBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time window of the prediction data being included in each prediction
+     * dataset. This window specifies how long the data should be collected from
+     * historical model results for each run. If not set,
+     * [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used.
+     * e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the
+     * monitor_window is set to be 3600, then data from 2022-01-08 13:30:00
+     * to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the
+     * monitoring statistics.
+     * 
+ * + * .google.protobuf.Duration monitor_window = 2; + */ + public Builder setMonitorWindow(com.google.protobuf.Duration value) { + if (monitorWindowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + monitorWindow_ = value; + onChanged(); + } else { + monitorWindowBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time window of the prediction data being included in each prediction
+     * dataset. This window specifies how long the data should be collected from
+     * historical model results for each run. If not set,
+     * [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used.
+     * e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the
+     * monitor_window is set to be 3600, then data from 2022-01-08 13:30:00
+     * to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the
+     * monitoring statistics.
+     * 
+ * + * .google.protobuf.Duration monitor_window = 2; + */ + public Builder setMonitorWindow(com.google.protobuf.Duration.Builder builderForValue) { + if (monitorWindowBuilder_ == null) { + monitorWindow_ = builderForValue.build(); + onChanged(); + } else { + monitorWindowBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time window of the prediction data being included in each prediction
+     * dataset. This window specifies how long the data should be collected from
+     * historical model results for each run. If not set,
+     * [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used.
+     * e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the
+     * monitor_window is set to be 3600, then data from 2022-01-08 13:30:00
+     * to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the
+     * monitoring statistics.
+     * 
+ * + * .google.protobuf.Duration monitor_window = 2; + */ + public Builder mergeMonitorWindow(com.google.protobuf.Duration value) { + if (monitorWindowBuilder_ == null) { + if (monitorWindow_ != null) { + monitorWindow_ = + com.google.protobuf.Duration.newBuilder(monitorWindow_) + .mergeFrom(value) + .buildPartial(); + } else { + monitorWindow_ = value; + } + onChanged(); + } else { + monitorWindowBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time window of the prediction data being included in each prediction
+     * dataset. This window specifies how long the data should be collected from
+     * historical model results for each run. If not set,
+     * [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used.
+     * e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the
+     * monitor_window is set to be 3600, then data from 2022-01-08 13:30:00
+     * to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the
+     * monitoring statistics.
+     * 
+ * + * .google.protobuf.Duration monitor_window = 2; + */ + public Builder clearMonitorWindow() { + if (monitorWindowBuilder_ == null) { + monitorWindow_ = null; + onChanged(); + } else { + monitorWindow_ = null; + monitorWindowBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time window of the prediction data being included in each prediction
+     * dataset. This window specifies how long the data should be collected from
+     * historical model results for each run. If not set,
+     * [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used.
+     * e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the
+     * monitor_window is set to be 3600, then data from 2022-01-08 13:30:00
+     * to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the
+     * monitoring statistics.
+     * 
+ * + * .google.protobuf.Duration monitor_window = 2; + */ + public com.google.protobuf.Duration.Builder getMonitorWindowBuilder() { + + onChanged(); + return getMonitorWindowFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time window of the prediction data being included in each prediction
+     * dataset. This window specifies how long the data should be collected from
+     * historical model results for each run. If not set,
+     * [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used.
+     * e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the
+     * monitor_window is set to be 3600, then data from 2022-01-08 13:30:00
+     * to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the
+     * monitoring statistics.
+     * 
+ * + * .google.protobuf.Duration monitor_window = 2; + */ + public com.google.protobuf.DurationOrBuilder getMonitorWindowOrBuilder() { + if (monitorWindowBuilder_ != null) { + return monitorWindowBuilder_.getMessageOrBuilder(); + } else { + return monitorWindow_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : monitorWindow_; + } + } + /** + * + * + *
+     * The time window of the prediction data being included in each prediction
+     * dataset. This window specifies how long the data should be collected from
+     * historical model results for each run. If not set,
+     * [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used.
+     * e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the
+     * monitor_window is set to be 3600, then data from 2022-01-08 13:30:00
+     * to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the
+     * monitoring statistics.
+     * 
+ * + * .google.protobuf.Duration monitor_window = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getMonitorWindowFieldBuilder() { + if (monitorWindowBuilder_ == null) { + monitorWindowBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMonitorWindow(), getParentForChildren(), isClean()); + monitorWindow_ = null; + } + return monitorWindowBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringScheduleConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringScheduleConfigOrBuilder.java index 33914287fb01..db1bb96a96c7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringScheduleConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringScheduleConfigOrBuilder.java @@ -63,4 +63,60 @@ public interface ModelDeploymentMonitoringScheduleConfigOrBuilder *
*/ com.google.protobuf.DurationOrBuilder getMonitorIntervalOrBuilder(); + + /** + * + * + *
+   * The time window of the prediction data being included in each prediction
+   * dataset. This window specifies how long the data should be collected from
+   * historical model results for each run. If not set,
+   * [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used.
+   * e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the
+   * monitor_window is set to be 3600, then data from 2022-01-08 13:30:00
+   * to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the
+   * monitoring statistics.
+   * 
+ * + * .google.protobuf.Duration monitor_window = 2; + * + * @return Whether the monitorWindow field is set. + */ + boolean hasMonitorWindow(); + /** + * + * + *
+   * The time window of the prediction data being included in each prediction
+   * dataset. This window specifies how long the data should be collected from
+   * historical model results for each run. If not set,
+   * [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used.
+   * e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the
+   * monitor_window is set to be 3600, then data from 2022-01-08 13:30:00
+   * to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the
+   * monitoring statistics.
+   * 
+ * + * .google.protobuf.Duration monitor_window = 2; + * + * @return The monitorWindow. + */ + com.google.protobuf.Duration getMonitorWindow(); + /** + * + * + *
+   * The time window of the prediction data being included in each prediction
+   * dataset. This window specifies how long the data should be collected from
+   * historical model results for each run. If not set,
+   * [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used.
+   * e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the
+   * monitor_window is set to be 3600, then data from 2022-01-08 13:30:00
+   * to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the
+   * monitoring statistics.
+   * 
+ * + * .google.protobuf.Duration monitor_window = 2; + */ + com.google.protobuf.DurationOrBuilder getMonitorWindowOrBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluation.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluation.java index 2fad6e167c40..11a977800c41 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluation.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluation.java @@ -40,6 +40,7 @@ private ModelEvaluation(com.google.protobuf.GeneratedMessageV3.Builder builde private ModelEvaluation() { name_ = ""; + displayName_ = ""; metricsSchemaUri_ = ""; sliceDimensions_ = com.google.protobuf.LazyStringArrayList.EMPTY; explanationSpecs_ = java.util.Collections.emptyList(); @@ -161,6 +162,27 @@ private ModelEvaluation( extensionRegistry)); break; } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 90: + { + com.google.protobuf.Value.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(com.google.protobuf.Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -1279,6 +1301,55 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int DISPLAY_NAME_FIELD_NUMBER = 10; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * The display name of the ModelEvaluation.
+   * 
+ * + * string display_name = 10; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * The display name of the ModelEvaluation.
+   * 
+ * + * string display_name = 10; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int METRICS_SCHEMA_URI_FIELD_NUMBER = 2; private volatile java.lang.Object metricsSchemaUri_; /** @@ -1653,6 +1724,61 @@ public int getExplanationSpecsCount() { return explanationSpecs_.get(index); } + public static final int METADATA_FIELD_NUMBER = 11; + private com.google.protobuf.Value metadata_; + /** + * + * + *
+   * The metadata of the ModelEvaluation.
+   * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
+   * structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
+   * "evaluation_dataset_path".
+   * 
+ * + * .google.protobuf.Value metadata = 11; + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * + * + *
+   * The metadata of the ModelEvaluation.
+   * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
+   * structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
+   * "evaluation_dataset_path".
+   * 
+ * + * .google.protobuf.Value metadata = 11; + * + * @return The metadata. + */ + @java.lang.Override + public com.google.protobuf.Value getMetadata() { + return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_; + } + /** + * + * + *
+   * The metadata of the ModelEvaluation.
+   * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
+   * structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
+   * "evaluation_dataset_path".
+   * 
+ * + * .google.protobuf.Value metadata = 11; + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1688,6 +1814,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < explanationSpecs_.size(); i++) { output.writeMessage(9, explanationSpecs_.get(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, displayName_); + } + if (metadata_ != null) { + output.writeMessage(11, getMetadata()); + } unknownFields.writeTo(output); } @@ -1723,6 +1855,12 @@ public int getSerializedSize() { for (int i = 0; i < explanationSpecs_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, explanationSpecs_.get(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, displayName_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getMetadata()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1740,6 +1878,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.aiplatform.v1beta1.ModelEvaluation) obj; if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getMetricsSchemaUri().equals(other.getMetricsSchemaUri())) return false; if (hasMetrics() != other.hasMetrics()) return false; if (hasMetrics()) { @@ -1755,6 +1894,10 @@ public boolean equals(final java.lang.Object obj) { if (!getModelExplanation().equals(other.getModelExplanation())) return false; } if (!getExplanationSpecsList().equals(other.getExplanationSpecsList())) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata().equals(other.getMetadata())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1768,6 +1911,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + METRICS_SCHEMA_URI_FIELD_NUMBER; hash = (53 * hash) + getMetricsSchemaUri().hashCode(); if (hasMetrics()) { @@ -1790,6 +1935,10 @@ public int hashCode() { hash = (37 * hash) + EXPLANATION_SPECS_FIELD_NUMBER; hash = (53 * hash) + getExplanationSpecsList().hashCode(); } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1940,6 +2089,8 @@ public Builder clear() { super.clear(); name_ = ""; + displayName_ = ""; + metricsSchemaUri_ = ""; if (metricsBuilder_ == null) { @@ -1968,6 +2119,12 @@ public Builder clear() { } else { explanationSpecsBuilder_.clear(); } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } return this; } @@ -1997,6 +2154,7 @@ public com.google.cloud.aiplatform.v1beta1.ModelEvaluation buildPartial() { new com.google.cloud.aiplatform.v1beta1.ModelEvaluation(this); int from_bitField0_ = bitField0_; result.name_ = name_; + result.displayName_ = displayName_; result.metricsSchemaUri_ = metricsSchemaUri_; if (metricsBuilder_ == null) { result.metrics_ = metrics_; @@ -2027,6 +2185,11 @@ public com.google.cloud.aiplatform.v1beta1.ModelEvaluation buildPartial() { } else { result.explanationSpecs_ = explanationSpecsBuilder_.build(); } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } onBuilt(); return result; } @@ -2081,6 +2244,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ModelEvaluation oth name_ = other.name_; onChanged(); } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } if (!other.getMetricsSchemaUri().isEmpty()) { metricsSchemaUri_ = other.metricsSchemaUri_; onChanged(); @@ -2131,6 +2298,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ModelEvaluation oth } } } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2269,6 +2439,112 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * The display name of the ModelEvaluation.
+     * 
+ * + * string display_name = 10; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The display name of the ModelEvaluation.
+     * 
+ * + * string display_name = 10; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The display name of the ModelEvaluation.
+     * 
+ * + * string display_name = 10; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The display name of the ModelEvaluation.
+     * 
+ * + * string display_name = 10; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The display name of the ModelEvaluation.
+     * 
+ * + * string display_name = 10; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + private java.lang.Object metricsSchemaUri_ = ""; /** * @@ -3632,6 +3908,212 @@ public Builder removeExplanationSpecs(int index) { return explanationSpecsBuilder_; } + private com.google.protobuf.Value metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + metadataBuilder_; + /** + * + * + *
+     * The metadata of the ModelEvaluation.
+     * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
+     * structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
+     * "evaluation_dataset_path".
+     * 
+ * + * .google.protobuf.Value metadata = 11; + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * + * + *
+     * The metadata of the ModelEvaluation.
+     * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
+     * structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
+     * "evaluation_dataset_path".
+     * 
+ * + * .google.protobuf.Value metadata = 11; + * + * @return The metadata. + */ + public com.google.protobuf.Value getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The metadata of the ModelEvaluation.
+     * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
+     * structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
+     * "evaluation_dataset_path".
+     * 
+ * + * .google.protobuf.Value metadata = 11; + */ + public Builder setMetadata(com.google.protobuf.Value value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The metadata of the ModelEvaluation.
+     * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
+     * structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
+     * "evaluation_dataset_path".
+     * 
+ * + * .google.protobuf.Value metadata = 11; + */ + public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The metadata of the ModelEvaluation.
+     * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
+     * structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
+     * "evaluation_dataset_path".
+     * 
+ * + * .google.protobuf.Value metadata = 11; + */ + public Builder mergeMetadata(com.google.protobuf.Value value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.protobuf.Value.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The metadata of the ModelEvaluation.
+     * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
+     * structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
+     * "evaluation_dataset_path".
+     * 
+ * + * .google.protobuf.Value metadata = 11; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The metadata of the ModelEvaluation.
+     * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
+     * structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
+     * "evaluation_dataset_path".
+     * 
+ * + * .google.protobuf.Value metadata = 11; + */ + public com.google.protobuf.Value.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The metadata of the ModelEvaluation.
+     * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
+     * structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
+     * "evaluation_dataset_path".
+     * 
+ * + * .google.protobuf.Value metadata = 11; + */ + public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_; + } + } + /** + * + * + *
+     * The metadata of the ModelEvaluation.
+     * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
+     * structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
+     * "evaluation_dataset_path".
+     * 
+ * + * .google.protobuf.Value metadata = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationName.java index d577342dbf76..f9f3194cfe5a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationOrBuilder.java index bd8c30eb73e1..32043c799a91 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationOrBuilder.java @@ -48,6 +48,31 @@ public interface ModelEvaluationOrBuilder */ com.google.protobuf.ByteString getNameBytes(); + /** + * + * + *
+   * The display name of the ModelEvaluation.
+   * 
+ * + * string display_name = 10; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * The display name of the ModelEvaluation.
+   * 
+ * + * string display_name = 10; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + /** * * @@ -331,4 +356,48 @@ public interface ModelEvaluationOrBuilder */ com.google.cloud.aiplatform.v1beta1.ModelEvaluation.ModelEvaluationExplanationSpecOrBuilder getExplanationSpecsOrBuilder(int index); + + /** + * + * + *
+   * The metadata of the ModelEvaluation.
+   * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
+   * structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
+   * "evaluation_dataset_path".
+   * 
+ * + * .google.protobuf.Value metadata = 11; + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + /** + * + * + *
+   * The metadata of the ModelEvaluation.
+   * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
+   * structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
+   * "evaluation_dataset_path".
+   * 
+ * + * .google.protobuf.Value metadata = 11; + * + * @return The metadata. + */ + com.google.protobuf.Value getMetadata(); + /** + * + * + *
+   * The metadata of the ModelEvaluation.
+   * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a
+   * structured value with keys of "pipeline_job_id", "evaluation_dataset_type",
+   * "evaluation_dataset_path".
+   * 
+ * + * .google.protobuf.Value metadata = 11; + */ + com.google.protobuf.ValueOrBuilder getMetadataOrBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationProto.java index 17073cb6b3ed..0423d487c5ef 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationProto.java @@ -50,29 +50,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "to\032\031google/api/resource.proto\0321google/cl" + "oud/aiplatform/v1beta1/explanation.proto" + "\032\034google/protobuf/struct.proto\032\037google/p" - + "rotobuf/timestamp.proto\"\375\004\n\017ModelEvaluat" - + "ion\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\032\n\022metrics_schema" - + "_uri\030\002 \001(\t\022\'\n\007metrics\030\003 \001(\0132\026.google.pro" - + "tobuf.Value\0224\n\013create_time\030\004 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\003\022\030\n\020slice_dimen" - + "sions\030\005 \003(\t\022L\n\021model_explanation\030\010 \001(\01321" - + ".google.cloud.aiplatform.v1beta1.ModelEx" - + "planation\022j\n\021explanation_specs\030\t \003(\0132O.g" - + "oogle.cloud.aiplatform.v1beta1.ModelEval" - + "uation.ModelEvaluationExplanationSpec\032\206\001" - + "\n\036ModelEvaluationExplanationSpec\022\030\n\020expl" - + "anation_type\030\001 \001(\t\022J\n\020explanation_spec\030\002" - + " \001(\01320.google.cloud.aiplatform.v1beta1.E" - + "xplanationSpec:\177\352A|\n)aiplatform.googleap" - + "is.com/ModelEvaluation\022Oprojects/{projec" - + "t}/locations/{location}/models/{model}/e" - + "valuations/{evaluation}B\361\001\n#com.google.c" - + "loud.aiplatform.v1beta1B\024ModelEvaluation" - + "ProtoP\001ZIgoogle.golang.org/genproto/goog" - + "leapis/cloud/aiplatform/v1beta1;aiplatfo" - + "rm\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037G" - + "oogle\\Cloud\\AIPlatform\\V1beta1\352\002\"Google:" - + ":Cloud::AIPlatform::V1beta1b\006proto3" + + "rotobuf/timestamp.proto\"\275\005\n\017ModelEvaluat" + + "ion\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014display_name\030\n" + + " \001(\t\022\032\n\022metrics_schema_uri\030\002 \001(\t\022\'\n\007metr" + + "ics\030\003 \001(\0132\026.google.protobuf.Value\0224\n\013cre" + + "ate_time\030\004 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\022\030\n\020slice_dimensions\030\005 \003(\t\022L\n\021mod" + + "el_explanation\030\010 \001(\01321.google.cloud.aipl" + + "atform.v1beta1.ModelExplanation\022j\n\021expla" + + "nation_specs\030\t \003(\0132O.google.cloud.aiplat" + + "form.v1beta1.ModelEvaluation.ModelEvalua" + + "tionExplanationSpec\022(\n\010metadata\030\013 \001(\0132\026." + + "google.protobuf.Value\032\206\001\n\036ModelEvaluatio" + + "nExplanationSpec\022\030\n\020explanation_type\030\001 \001" + + "(\t\022J\n\020explanation_spec\030\002 \001(\01320.google.cl" + + "oud.aiplatform.v1beta1.ExplanationSpec:\177" + + "\352A|\n)aiplatform.googleapis.com/ModelEval" + + "uation\022Oprojects/{project}/locations/{lo" + + "cation}/models/{model}/evaluations/{eval" + + "uation}B\361\001\n#com.google.cloud.aiplatform." + + "v1beta1B\024ModelEvaluationProtoP\001ZIgoogle." + + "golang.org/genproto/googleapis/cloud/aip" + + "latform/v1beta1;aiplatform\252\002\037Google.Clou" + + "d.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPl" + + "atform\\V1beta1\352\002\"Google::Cloud::AIPlatfo" + + "rm::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -91,12 +93,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_aiplatform_v1beta1_ModelEvaluation_descriptor, new java.lang.String[] { "Name", + "DisplayName", "MetricsSchemaUri", "Metrics", "CreateTime", "SliceDimensions", "ModelExplanation", "ExplanationSpecs", + "Metadata", }); internal_static_google_cloud_aiplatform_v1beta1_ModelEvaluation_ModelEvaluationExplanationSpec_descriptor = internal_static_google_cloud_aiplatform_v1beta1_ModelEvaluation_descriptor diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSliceName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSliceName.java index 588f3429606e..c9217f0c9d61 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSliceName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSliceName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringConfig.java new file mode 100644 index 000000000000..e036b6a51a1a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringConfig.java @@ -0,0 +1,1537 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_monitoring.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Next ID: 5
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ModelMonitoringConfig} + */ +public final class ModelMonitoringConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ModelMonitoringConfig) + ModelMonitoringConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ModelMonitoringConfig.newBuilder() to construct. + private ModelMonitoringConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ModelMonitoringConfig() { + objectiveConfigs_ = java.util.Collections.emptyList(); + analysisInstanceSchemaUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ModelMonitoringConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ModelMonitoringConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.Builder subBuilder = + null; + if (alertConfig_ != null) { + subBuilder = alertConfig_.toBuilder(); + } + alertConfig_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(alertConfig_); + alertConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + objectiveConfigs_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig>(); + mutable_bitField0_ |= 0x00000001; + } + objectiveConfigs_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.parser(), + extensionRegistry)); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + analysisInstanceSchemaUri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + objectiveConfigs_ = java.util.Collections.unmodifiableList(objectiveConfigs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.class, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.Builder.class); + } + + public static final int OBJECTIVE_CONFIGS_FIELD_NUMBER = 3; + private java.util.List + objectiveConfigs_; + /** + * + * + *
+   * Model monitoring objective config.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3; + * + */ + @java.lang.Override + public java.util.List + getObjectiveConfigsList() { + return objectiveConfigs_; + } + /** + * + * + *
+   * Model monitoring objective config.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfigOrBuilder> + getObjectiveConfigsOrBuilderList() { + return objectiveConfigs_; + } + /** + * + * + *
+   * Model monitoring objective config.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3; + * + */ + @java.lang.Override + public int getObjectiveConfigsCount() { + return objectiveConfigs_.size(); + } + /** + * + * + *
+   * Model monitoring objective config.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig getObjectiveConfigs( + int index) { + return objectiveConfigs_.get(index); + } + /** + * + * + *
+   * Model monitoring objective config.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfigOrBuilder + getObjectiveConfigsOrBuilder(int index) { + return objectiveConfigs_.get(index); + } + + public static final int ALERT_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alertConfig_; + /** + * + * + *
+   * Model monitoring alert config.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2; + * + * @return Whether the alertConfig field is set. + */ + @java.lang.Override + public boolean hasAlertConfig() { + return alertConfig_ != null; + } + /** + * + * + *
+   * Model monitoring alert config.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2; + * + * @return The alertConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig getAlertConfig() { + return alertConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.getDefaultInstance() + : alertConfig_; + } + /** + * + * + *
+   * Model monitoring alert config.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfigOrBuilder + getAlertConfigOrBuilder() { + return getAlertConfig(); + } + + public static final int ANALYSIS_INSTANCE_SCHEMA_URI_FIELD_NUMBER = 4; + private volatile java.lang.Object analysisInstanceSchemaUri_; + /** + * + * + *
+   * YAML schema file uri in Cloud Storage describing the format of a single
+   * instance that you want Tensorflow Data Validation (TFDV) to analyze.
+   * If there are any data type differences between predict instance and TFDV
+   * instance, this field can be used to override the schema.
+   * For models trained with Vertex AI, this field must be set as all the
+   * fields in predict instance formatted as string.
+   * 
+ * + * string analysis_instance_schema_uri = 4; + * + * @return The analysisInstanceSchemaUri. + */ + @java.lang.Override + public java.lang.String getAnalysisInstanceSchemaUri() { + java.lang.Object ref = analysisInstanceSchemaUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + analysisInstanceSchemaUri_ = s; + return s; + } + } + /** + * + * + *
+   * YAML schema file uri in Cloud Storage describing the format of a single
+   * instance that you want Tensorflow Data Validation (TFDV) to analyze.
+   * If there are any data type differences between predict instance and TFDV
+   * instance, this field can be used to override the schema.
+   * For models trained with Vertex AI, this field must be set as all the
+   * fields in predict instance formatted as string.
+   * 
+ * + * string analysis_instance_schema_uri = 4; + * + * @return The bytes for analysisInstanceSchemaUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAnalysisInstanceSchemaUriBytes() { + java.lang.Object ref = analysisInstanceSchemaUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + analysisInstanceSchemaUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (alertConfig_ != null) { + output.writeMessage(2, getAlertConfig()); + } + for (int i = 0; i < objectiveConfigs_.size(); i++) { + output.writeMessage(3, objectiveConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(analysisInstanceSchemaUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, analysisInstanceSchemaUri_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (alertConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAlertConfig()); + } + for (int i = 0; i < objectiveConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, objectiveConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(analysisInstanceSchemaUri_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(4, analysisInstanceSchemaUri_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig other = + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig) obj; + + if (!getObjectiveConfigsList().equals(other.getObjectiveConfigsList())) return false; + if (hasAlertConfig() != other.hasAlertConfig()) return false; + if (hasAlertConfig()) { + if (!getAlertConfig().equals(other.getAlertConfig())) return false; + } + if (!getAnalysisInstanceSchemaUri().equals(other.getAnalysisInstanceSchemaUri())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getObjectiveConfigsCount() > 0) { + hash = (37 * hash) + OBJECTIVE_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getObjectiveConfigsList().hashCode(); + } + if (hasAlertConfig()) { + hash = (37 * hash) + ALERT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAlertConfig().hashCode(); + } + hash = (37 * hash) + ANALYSIS_INSTANCE_SCHEMA_URI_FIELD_NUMBER; + hash = (53 * hash) + getAnalysisInstanceSchemaUri().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Next ID: 5
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ModelMonitoringConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ModelMonitoringConfig) + com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.class, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getObjectiveConfigsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (objectiveConfigsBuilder_ == null) { + objectiveConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + objectiveConfigsBuilder_.clear(); + } + if (alertConfigBuilder_ == null) { + alertConfig_ = null; + } else { + alertConfig_ = null; + alertConfigBuilder_ = null; + } + analysisInstanceSchemaUri_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig build() { + com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig buildPartial() { + com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig result = + new com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig(this); + int from_bitField0_ = bitField0_; + if (objectiveConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + objectiveConfigs_ = java.util.Collections.unmodifiableList(objectiveConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.objectiveConfigs_ = objectiveConfigs_; + } else { + result.objectiveConfigs_ = objectiveConfigsBuilder_.build(); + } + if (alertConfigBuilder_ == null) { + result.alertConfig_ = alertConfig_; + } else { + result.alertConfig_ = alertConfigBuilder_.build(); + } + result.analysisInstanceSchemaUri_ = analysisInstanceSchemaUri_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig other) { + if (other == com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.getDefaultInstance()) + return this; + if (objectiveConfigsBuilder_ == null) { + if (!other.objectiveConfigs_.isEmpty()) { + if (objectiveConfigs_.isEmpty()) { + objectiveConfigs_ = other.objectiveConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureObjectiveConfigsIsMutable(); + objectiveConfigs_.addAll(other.objectiveConfigs_); + } + onChanged(); + } + } else { + if (!other.objectiveConfigs_.isEmpty()) { + if (objectiveConfigsBuilder_.isEmpty()) { + objectiveConfigsBuilder_.dispose(); + objectiveConfigsBuilder_ = null; + objectiveConfigs_ = other.objectiveConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + objectiveConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getObjectiveConfigsFieldBuilder() + : null; + } else { + objectiveConfigsBuilder_.addAllMessages(other.objectiveConfigs_); + } + } + } + if (other.hasAlertConfig()) { + mergeAlertConfig(other.getAlertConfig()); + } + if (!other.getAnalysisInstanceSchemaUri().isEmpty()) { + analysisInstanceSchemaUri_ = other.analysisInstanceSchemaUri_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + objectiveConfigs_ = java.util.Collections.emptyList(); + + private void ensureObjectiveConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + objectiveConfigs_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig>( + objectiveConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfigOrBuilder> + objectiveConfigsBuilder_; + + /** + * + * + *
+     * Model monitoring objective config.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3; + * + */ + public java.util.List + getObjectiveConfigsList() { + if (objectiveConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(objectiveConfigs_); + } else { + return objectiveConfigsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Model monitoring objective config.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3; + * + */ + public int getObjectiveConfigsCount() { + if (objectiveConfigsBuilder_ == null) { + return objectiveConfigs_.size(); + } else { + return objectiveConfigsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Model monitoring objective config.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig getObjectiveConfigs( + int index) { + if (objectiveConfigsBuilder_ == null) { + return objectiveConfigs_.get(index); + } else { + return objectiveConfigsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Model monitoring objective config.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3; + * + */ + public Builder setObjectiveConfigs( + int index, com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig value) { + if (objectiveConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureObjectiveConfigsIsMutable(); + objectiveConfigs_.set(index, value); + onChanged(); + } else { + objectiveConfigsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Model monitoring objective config.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3; + * + */ + public Builder setObjectiveConfigs( + int index, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.Builder + builderForValue) { + if (objectiveConfigsBuilder_ == null) { + ensureObjectiveConfigsIsMutable(); + objectiveConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + objectiveConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Model monitoring objective config.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3; + * + */ + public Builder addObjectiveConfigs( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig value) { + if (objectiveConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureObjectiveConfigsIsMutable(); + objectiveConfigs_.add(value); + onChanged(); + } else { + objectiveConfigsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Model monitoring objective config.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3; + * + */ + public Builder addObjectiveConfigs( + int index, com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig value) { + if (objectiveConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureObjectiveConfigsIsMutable(); + objectiveConfigs_.add(index, value); + onChanged(); + } else { + objectiveConfigsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Model monitoring objective config.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3; + * + */ + public Builder addObjectiveConfigs( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.Builder + builderForValue) { + if (objectiveConfigsBuilder_ == null) { + ensureObjectiveConfigsIsMutable(); + objectiveConfigs_.add(builderForValue.build()); + onChanged(); + } else { + objectiveConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Model monitoring objective config.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3; + * + */ + public Builder addObjectiveConfigs( + int index, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.Builder + builderForValue) { + if (objectiveConfigsBuilder_ == null) { + ensureObjectiveConfigsIsMutable(); + objectiveConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + objectiveConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Model monitoring objective config.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3; + * + */ + public Builder addAllObjectiveConfigs( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig> + values) { + if (objectiveConfigsBuilder_ == null) { + ensureObjectiveConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, objectiveConfigs_); + onChanged(); + } else { + objectiveConfigsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Model monitoring objective config.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3; + * + */ + public Builder clearObjectiveConfigs() { + if (objectiveConfigsBuilder_ == null) { + objectiveConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + objectiveConfigsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Model monitoring objective config.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3; + * + */ + public Builder removeObjectiveConfigs(int index) { + if (objectiveConfigsBuilder_ == null) { + ensureObjectiveConfigsIsMutable(); + objectiveConfigs_.remove(index); + onChanged(); + } else { + objectiveConfigsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Model monitoring objective config.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.Builder + getObjectiveConfigsBuilder(int index) { + return getObjectiveConfigsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Model monitoring objective config.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfigOrBuilder + getObjectiveConfigsOrBuilder(int index) { + if (objectiveConfigsBuilder_ == null) { + return objectiveConfigs_.get(index); + } else { + return objectiveConfigsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Model monitoring objective config.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfigOrBuilder> + getObjectiveConfigsOrBuilderList() { + if (objectiveConfigsBuilder_ != null) { + return objectiveConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(objectiveConfigs_); + } + } + /** + * + * + *
+     * Model monitoring objective config.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.Builder + addObjectiveConfigsBuilder() { + return getObjectiveConfigsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .getDefaultInstance()); + } + /** + * + * + *
+     * Model monitoring objective config.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.Builder + addObjectiveConfigsBuilder(int index) { + return getObjectiveConfigsFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .getDefaultInstance()); + } + /** + * + * + *
+     * Model monitoring objective config.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.Builder> + getObjectiveConfigsBuilderList() { + return getObjectiveConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfigOrBuilder> + getObjectiveConfigsFieldBuilder() { + if (objectiveConfigsBuilder_ == null) { + objectiveConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfigOrBuilder>( + objectiveConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + objectiveConfigs_ = null; + } + return objectiveConfigsBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alertConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfigOrBuilder> + alertConfigBuilder_; + /** + * + * + *
+     * Model monitoring alert config.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2; + * + * @return Whether the alertConfig field is set. + */ + public boolean hasAlertConfig() { + return alertConfigBuilder_ != null || alertConfig_ != null; + } + /** + * + * + *
+     * Model monitoring alert config.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2; + * + * @return The alertConfig. + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig getAlertConfig() { + if (alertConfigBuilder_ == null) { + return alertConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.getDefaultInstance() + : alertConfig_; + } else { + return alertConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Model monitoring alert config.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2; + */ + public Builder setAlertConfig( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig value) { + if (alertConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + alertConfig_ = value; + onChanged(); + } else { + alertConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Model monitoring alert config.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2; + */ + public Builder setAlertConfig( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.Builder builderForValue) { + if (alertConfigBuilder_ == null) { + alertConfig_ = builderForValue.build(); + onChanged(); + } else { + alertConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Model monitoring alert config.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2; + */ + public Builder mergeAlertConfig( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig value) { + if (alertConfigBuilder_ == null) { + if (alertConfig_ != null) { + alertConfig_ = + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.newBuilder( + alertConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + alertConfig_ = value; + } + onChanged(); + } else { + alertConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Model monitoring alert config.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2; + */ + public Builder clearAlertConfig() { + if (alertConfigBuilder_ == null) { + alertConfig_ = null; + onChanged(); + } else { + alertConfig_ = null; + alertConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Model monitoring alert config.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2; + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.Builder + getAlertConfigBuilder() { + + onChanged(); + return getAlertConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Model monitoring alert config.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2; + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfigOrBuilder + getAlertConfigOrBuilder() { + if (alertConfigBuilder_ != null) { + return alertConfigBuilder_.getMessageOrBuilder(); + } else { + return alertConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.getDefaultInstance() + : alertConfig_; + } + } + /** + * + * + *
+     * Model monitoring alert config.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfigOrBuilder> + getAlertConfigFieldBuilder() { + if (alertConfigBuilder_ == null) { + alertConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfigOrBuilder>( + getAlertConfig(), getParentForChildren(), isClean()); + alertConfig_ = null; + } + return alertConfigBuilder_; + } + + private java.lang.Object analysisInstanceSchemaUri_ = ""; + /** + * + * + *
+     * YAML schema file uri in Cloud Storage describing the format of a single
+     * instance that you want Tensorflow Data Validation (TFDV) to analyze.
+     * If there are any data type differences between predict instance and TFDV
+     * instance, this field can be used to override the schema.
+     * For models trained with Vertex AI, this field must be set as all the
+     * fields in predict instance formatted as string.
+     * 
+ * + * string analysis_instance_schema_uri = 4; + * + * @return The analysisInstanceSchemaUri. + */ + public java.lang.String getAnalysisInstanceSchemaUri() { + java.lang.Object ref = analysisInstanceSchemaUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + analysisInstanceSchemaUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * YAML schema file uri in Cloud Storage describing the format of a single
+     * instance that you want Tensorflow Data Validation (TFDV) to analyze.
+     * If there are any data type differences between predict instance and TFDV
+     * instance, this field can be used to override the schema.
+     * For models trained with Vertex AI, this field must be set as all the
+     * fields in predict instance formatted as string.
+     * 
+ * + * string analysis_instance_schema_uri = 4; + * + * @return The bytes for analysisInstanceSchemaUri. + */ + public com.google.protobuf.ByteString getAnalysisInstanceSchemaUriBytes() { + java.lang.Object ref = analysisInstanceSchemaUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + analysisInstanceSchemaUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * YAML schema file uri in Cloud Storage describing the format of a single
+     * instance that you want Tensorflow Data Validation (TFDV) to analyze.
+     * If there are any data type differences between predict instance and TFDV
+     * instance, this field can be used to override the schema.
+     * For models trained with Vertex AI, this field must be set as all the
+     * fields in predict instance formatted as string.
+     * 
+ * + * string analysis_instance_schema_uri = 4; + * + * @param value The analysisInstanceSchemaUri to set. + * @return This builder for chaining. + */ + public Builder setAnalysisInstanceSchemaUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + analysisInstanceSchemaUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * YAML schema file uri in Cloud Storage describing the format of a single
+     * instance that you want Tensorflow Data Validation (TFDV) to analyze.
+     * If there are any data type differences between predict instance and TFDV
+     * instance, this field can be used to override the schema.
+     * For models trained with Vertex AI, this field must be set as all the
+     * fields in predict instance formatted as string.
+     * 
+ * + * string analysis_instance_schema_uri = 4; + * + * @return This builder for chaining. + */ + public Builder clearAnalysisInstanceSchemaUri() { + + analysisInstanceSchemaUri_ = getDefaultInstance().getAnalysisInstanceSchemaUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * YAML schema file uri in Cloud Storage describing the format of a single
+     * instance that you want Tensorflow Data Validation (TFDV) to analyze.
+     * If there are any data type differences between predict instance and TFDV
+     * instance, this field can be used to override the schema.
+     * For models trained with Vertex AI, this field must be set as all the
+     * fields in predict instance formatted as string.
+     * 
+ * + * string analysis_instance_schema_uri = 4; + * + * @param value The bytes for analysisInstanceSchemaUri to set. + * @return This builder for chaining. + */ + public Builder setAnalysisInstanceSchemaUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + analysisInstanceSchemaUri_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ModelMonitoringConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ModelMonitoringConfig) + private static final com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelMonitoringConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ModelMonitoringConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringConfigOrBuilder.java new file mode 100644 index 000000000000..ce257681d140 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringConfigOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_monitoring.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ModelMonitoringConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ModelMonitoringConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Model monitoring objective config.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3; + * + */ + java.util.List + getObjectiveConfigsList(); + /** + * + * + *
+   * Model monitoring objective config.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3; + * + */ + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig getObjectiveConfigs(int index); + /** + * + * + *
+   * Model monitoring objective config.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3; + * + */ + int getObjectiveConfigsCount(); + /** + * + * + *
+   * Model monitoring objective config.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3; + * + */ + java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfigOrBuilder> + getObjectiveConfigsOrBuilderList(); + /** + * + * + *
+   * Model monitoring objective config.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig objective_configs = 3; + * + */ + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfigOrBuilder + getObjectiveConfigsOrBuilder(int index); + + /** + * + * + *
+   * Model monitoring alert config.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2; + * + * @return Whether the alertConfig field is set. + */ + boolean hasAlertConfig(); + /** + * + * + *
+   * Model monitoring alert config.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2; + * + * @return The alertConfig. + */ + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig getAlertConfig(); + /** + * + * + *
+   * Model monitoring alert config.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig alert_config = 2; + */ + com.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfigOrBuilder getAlertConfigOrBuilder(); + + /** + * + * + *
+   * YAML schema file uri in Cloud Storage describing the format of a single
+   * instance that you want Tensorflow Data Validation (TFDV) to analyze.
+   * If there are any data type differences between predict instance and TFDV
+   * instance, this field can be used to override the schema.
+   * For models trained with Vertex AI, this field must be set as all the
+   * fields in predict instance formatted as string.
+   * 
+ * + * string analysis_instance_schema_uri = 4; + * + * @return The analysisInstanceSchemaUri. + */ + java.lang.String getAnalysisInstanceSchemaUri(); + /** + * + * + *
+   * YAML schema file uri in Cloud Storage describing the format of a single
+   * instance that you want Tensorflow Data Validation (TFDV) to analyze.
+   * If there are any data type differences between predict instance and TFDV
+   * instance, this field can be used to override the schema.
+   * For models trained with Vertex AI, this field must be set as all the
+   * fields in predict instance formatted as string.
+   * 
+ * + * string analysis_instance_schema_uri = 4; + * + * @return The bytes for analysisInstanceSchemaUri. + */ + com.google.protobuf.ByteString getAnalysisInstanceSchemaUriBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringObjectiveConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringObjectiveConfig.java index 1a0937a208f4..b83bd2702a3f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringObjectiveConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringObjectiveConfig.java @@ -314,6 +314,8 @@ public interface TrainingDatasetOrBuilder * The source file is a TFRecord file. * "csv" * The source file is a CSV file. + * "jsonl" + * The source file is a JSONL file. * * * string data_format = 2; @@ -332,6 +334,8 @@ public interface TrainingDatasetOrBuilder * The source file is a TFRecord file. * "csv" * The source file is a CSV file. + * "jsonl" + * The source file is a JSONL file. * * * string data_format = 2; @@ -821,6 +825,8 @@ public com.google.cloud.aiplatform.v1beta1.BigQuerySource getBigquerySource() { * The source file is a TFRecord file. * "csv" * The source file is a CSV file. + * "jsonl" + * The source file is a JSONL file. * * * string data_format = 2; @@ -850,6 +856,8 @@ public java.lang.String getDataFormat() { * The source file is a TFRecord file. * "csv" * The source file is a CSV file. + * "jsonl" + * The source file is a JSONL file. * * * string data_format = 2; @@ -2068,6 +2076,8 @@ public com.google.cloud.aiplatform.v1beta1.BigQuerySource.Builder getBigquerySou * The source file is a TFRecord file. * "csv" * The source file is a CSV file. + * "jsonl" + * The source file is a JSONL file. * * * string data_format = 2; @@ -2096,6 +2106,8 @@ public java.lang.String getDataFormat() { * The source file is a TFRecord file. * "csv" * The source file is a CSV file. + * "jsonl" + * The source file is a JSONL file. * * * string data_format = 2; @@ -2124,6 +2136,8 @@ public com.google.protobuf.ByteString getDataFormatBytes() { * The source file is a TFRecord file. * "csv" * The source file is a CSV file. + * "jsonl" + * The source file is a JSONL file. * * * string data_format = 2; @@ -2151,6 +2165,8 @@ public Builder setDataFormat(java.lang.String value) { * The source file is a TFRecord file. * "csv" * The source file is a CSV file. + * "jsonl" + * The source file is a JSONL file. * * * string data_format = 2; @@ -2174,6 +2190,8 @@ public Builder clearDataFormat() { * The source file is a TFRecord file. * "csv" * The source file is a CSV file. + * "jsonl" + * The source file is a JSONL file. * * * string data_format = 2; @@ -2747,6 +2765,47 @@ com.google.cloud.aiplatform.v1beta1.ThresholdConfig getAttributionScoreSkewThres */ com.google.cloud.aiplatform.v1beta1.ThresholdConfig getAttributionScoreSkewThresholdsOrThrow( java.lang.String key); + + /** + * + * + *
+     * Skew anomaly detection threshold used by all features.
+     * When the per-feature thresholds are not set, this field can be used to
+     * specify a threshold for all features.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_skew_threshold = 6; + * + * @return Whether the defaultSkewThreshold field is set. + */ + boolean hasDefaultSkewThreshold(); + /** + * + * + *
+     * Skew anomaly detection threshold used by all features.
+     * When the per-feature thresholds are not set, this field can be used to
+     * specify a threshold for all features.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_skew_threshold = 6; + * + * @return The defaultSkewThreshold. + */ + com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDefaultSkewThreshold(); + /** + * + * + *
+     * Skew anomaly detection threshold used by all features.
+     * When the per-feature thresholds are not set, this field can be used to
+     * specify a threshold for all features.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_skew_threshold = 6; + */ + com.google.cloud.aiplatform.v1beta1.ThresholdConfigOrBuilder getDefaultSkewThresholdOrBuilder(); } /** * @@ -2844,6 +2903,23 @@ private TrainingPredictionSkewDetectionConfig( attributionScoreSkewThresholds__.getValue()); break; } + case 50: + { + com.google.cloud.aiplatform.v1beta1.ThresholdConfig.Builder subBuilder = null; + if (defaultSkewThreshold_ != null) { + subBuilder = defaultSkewThreshold_.toBuilder(); + } + defaultSkewThreshold_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ThresholdConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(defaultSkewThreshold_); + defaultSkewThreshold_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -3159,6 +3235,61 @@ public boolean containsAttributionScoreSkewThresholds(java.lang.String key) { return map.get(key); } + public static final int DEFAULT_SKEW_THRESHOLD_FIELD_NUMBER = 6; + private com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultSkewThreshold_; + /** + * + * + *
+     * Skew anomaly detection threshold used by all features.
+     * When the per-feature thresholds are not set, this field can be used to
+     * specify a threshold for all features.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_skew_threshold = 6; + * + * @return Whether the defaultSkewThreshold field is set. + */ + @java.lang.Override + public boolean hasDefaultSkewThreshold() { + return defaultSkewThreshold_ != null; + } + /** + * + * + *
+     * Skew anomaly detection threshold used by all features.
+     * When the per-feature thresholds are not set, this field can be used to
+     * specify a threshold for all features.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_skew_threshold = 6; + * + * @return The defaultSkewThreshold. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDefaultSkewThreshold() { + return defaultSkewThreshold_ == null + ? com.google.cloud.aiplatform.v1beta1.ThresholdConfig.getDefaultInstance() + : defaultSkewThreshold_; + } + /** + * + * + *
+     * Skew anomaly detection threshold used by all features.
+     * When the per-feature thresholds are not set, this field can be used to
+     * specify a threshold for all features.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_skew_threshold = 6; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ThresholdConfigOrBuilder + getDefaultSkewThresholdOrBuilder() { + return getDefaultSkewThreshold(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3180,6 +3311,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io internalGetAttributionScoreSkewThresholds(), AttributionScoreSkewThresholdsDefaultEntryHolder.defaultEntry, 2); + if (defaultSkewThreshold_ != null) { + output.writeMessage(6, getDefaultSkewThreshold()); + } unknownFields.writeTo(output); } @@ -3217,6 +3351,10 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 2, attributionScoreSkewThresholds__); } + if (defaultSkewThreshold_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDefaultSkewThreshold()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -3243,6 +3381,10 @@ public boolean equals(final java.lang.Object obj) { if (!internalGetSkewThresholds().equals(other.internalGetSkewThresholds())) return false; if (!internalGetAttributionScoreSkewThresholds() .equals(other.internalGetAttributionScoreSkewThresholds())) return false; + if (hasDefaultSkewThreshold() != other.hasDefaultSkewThreshold()) return false; + if (hasDefaultSkewThreshold()) { + if (!getDefaultSkewThreshold().equals(other.getDefaultSkewThreshold())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3262,6 +3404,10 @@ public int hashCode() { hash = (37 * hash) + ATTRIBUTION_SCORE_SKEW_THRESHOLDS_FIELD_NUMBER; hash = (53 * hash) + internalGetAttributionScoreSkewThresholds().hashCode(); } + if (hasDefaultSkewThreshold()) { + hash = (37 * hash) + DEFAULT_SKEW_THRESHOLD_FIELD_NUMBER; + hash = (53 * hash) + getDefaultSkewThreshold().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -3462,6 +3608,12 @@ public Builder clear() { super.clear(); internalGetMutableSkewThresholds().clear(); internalGetMutableAttributionScoreSkewThresholds().clear(); + if (defaultSkewThresholdBuilder_ == null) { + defaultSkewThreshold_ = null; + } else { + defaultSkewThreshold_ = null; + defaultSkewThresholdBuilder_ = null; + } return this; } @@ -3506,6 +3658,11 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result.skewThresholds_.makeImmutable(); result.attributionScoreSkewThresholds_ = internalGetAttributionScoreSkewThresholds(); result.attributionScoreSkewThresholds_.makeImmutable(); + if (defaultSkewThresholdBuilder_ == null) { + result.defaultSkewThreshold_ = defaultSkewThreshold_; + } else { + result.defaultSkewThreshold_ = defaultSkewThresholdBuilder_.build(); + } onBuilt(); return result; } @@ -3571,6 +3728,9 @@ public Builder mergeFrom( internalGetMutableSkewThresholds().mergeFrom(other.internalGetSkewThresholds()); internalGetMutableAttributionScoreSkewThresholds() .mergeFrom(other.internalGetAttributionScoreSkewThresholds()); + if (other.hasDefaultSkewThreshold()) { + mergeDefaultSkewThreshold(other.getDefaultSkewThreshold()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -4022,6 +4182,215 @@ public Builder putAllAttributionScoreSkewThresholds( return this; } + private com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultSkewThreshold_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ThresholdConfig, + com.google.cloud.aiplatform.v1beta1.ThresholdConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ThresholdConfigOrBuilder> + defaultSkewThresholdBuilder_; + /** + * + * + *
+       * Skew anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_skew_threshold = 6; + * + * @return Whether the defaultSkewThreshold field is set. + */ + public boolean hasDefaultSkewThreshold() { + return defaultSkewThresholdBuilder_ != null || defaultSkewThreshold_ != null; + } + /** + * + * + *
+       * Skew anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_skew_threshold = 6; + * + * @return The defaultSkewThreshold. + */ + public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDefaultSkewThreshold() { + if (defaultSkewThresholdBuilder_ == null) { + return defaultSkewThreshold_ == null + ? com.google.cloud.aiplatform.v1beta1.ThresholdConfig.getDefaultInstance() + : defaultSkewThreshold_; + } else { + return defaultSkewThresholdBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Skew anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_skew_threshold = 6; + */ + public Builder setDefaultSkewThreshold( + com.google.cloud.aiplatform.v1beta1.ThresholdConfig value) { + if (defaultSkewThresholdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultSkewThreshold_ = value; + onChanged(); + } else { + defaultSkewThresholdBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Skew anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_skew_threshold = 6; + */ + public Builder setDefaultSkewThreshold( + com.google.cloud.aiplatform.v1beta1.ThresholdConfig.Builder builderForValue) { + if (defaultSkewThresholdBuilder_ == null) { + defaultSkewThreshold_ = builderForValue.build(); + onChanged(); + } else { + defaultSkewThresholdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Skew anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_skew_threshold = 6; + */ + public Builder mergeDefaultSkewThreshold( + com.google.cloud.aiplatform.v1beta1.ThresholdConfig value) { + if (defaultSkewThresholdBuilder_ == null) { + if (defaultSkewThreshold_ != null) { + defaultSkewThreshold_ = + com.google.cloud.aiplatform.v1beta1.ThresholdConfig.newBuilder( + defaultSkewThreshold_) + .mergeFrom(value) + .buildPartial(); + } else { + defaultSkewThreshold_ = value; + } + onChanged(); + } else { + defaultSkewThresholdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Skew anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_skew_threshold = 6; + */ + public Builder clearDefaultSkewThreshold() { + if (defaultSkewThresholdBuilder_ == null) { + defaultSkewThreshold_ = null; + onChanged(); + } else { + defaultSkewThreshold_ = null; + defaultSkewThresholdBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Skew anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_skew_threshold = 6; + */ + public com.google.cloud.aiplatform.v1beta1.ThresholdConfig.Builder + getDefaultSkewThresholdBuilder() { + + onChanged(); + return getDefaultSkewThresholdFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Skew anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_skew_threshold = 6; + */ + public com.google.cloud.aiplatform.v1beta1.ThresholdConfigOrBuilder + getDefaultSkewThresholdOrBuilder() { + if (defaultSkewThresholdBuilder_ != null) { + return defaultSkewThresholdBuilder_.getMessageOrBuilder(); + } else { + return defaultSkewThreshold_ == null + ? com.google.cloud.aiplatform.v1beta1.ThresholdConfig.getDefaultInstance() + : defaultSkewThreshold_; + } + } + /** + * + * + *
+       * Skew anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_skew_threshold = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ThresholdConfig, + com.google.cloud.aiplatform.v1beta1.ThresholdConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ThresholdConfigOrBuilder> + getDefaultSkewThresholdFieldBuilder() { + if (defaultSkewThresholdBuilder_ == null) { + defaultSkewThresholdBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ThresholdConfig, + com.google.cloud.aiplatform.v1beta1.ThresholdConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ThresholdConfigOrBuilder>( + getDefaultSkewThreshold(), getParentForChildren(), isClean()); + defaultSkewThreshold_ = null; + } + return defaultSkewThresholdBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4250,6 +4619,48 @@ com.google.cloud.aiplatform.v1beta1.ThresholdConfig getAttributionScoreDriftThre */ com.google.cloud.aiplatform.v1beta1.ThresholdConfig getAttributionScoreDriftThresholdsOrThrow( java.lang.String key); + + /** + * + * + *
+     * Drift anomaly detection threshold used by all features.
+     * When the per-feature thresholds are not set, this field can be used to
+     * specify a threshold for all features.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_drift_threshold = 5; + * + * @return Whether the defaultDriftThreshold field is set. + */ + boolean hasDefaultDriftThreshold(); + /** + * + * + *
+     * Drift anomaly detection threshold used by all features.
+     * When the per-feature thresholds are not set, this field can be used to
+     * specify a threshold for all features.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_drift_threshold = 5; + * + * @return The defaultDriftThreshold. + */ + com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDefaultDriftThreshold(); + /** + * + * + *
+     * Drift anomaly detection threshold used by all features.
+     * When the per-feature thresholds are not set, this field can be used to
+     * specify a threshold for all features.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_drift_threshold = 5; + */ + com.google.cloud.aiplatform.v1beta1.ThresholdConfigOrBuilder + getDefaultDriftThresholdOrBuilder(); } /** * @@ -4346,6 +4757,23 @@ private PredictionDriftDetectionConfig( attributionScoreDriftThresholds__.getValue()); break; } + case 42: + { + com.google.cloud.aiplatform.v1beta1.ThresholdConfig.Builder subBuilder = null; + if (defaultDriftThreshold_ != null) { + subBuilder = defaultDriftThreshold_.toBuilder(); + } + defaultDriftThreshold_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ThresholdConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(defaultDriftThreshold_); + defaultDriftThreshold_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -4657,6 +5085,61 @@ public boolean containsAttributionScoreDriftThresholds(java.lang.String key) { return map.get(key); } + public static final int DEFAULT_DRIFT_THRESHOLD_FIELD_NUMBER = 5; + private com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultDriftThreshold_; + /** + * + * + *
+     * Drift anomaly detection threshold used by all features.
+     * When the per-feature thresholds are not set, this field can be used to
+     * specify a threshold for all features.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_drift_threshold = 5; + * + * @return Whether the defaultDriftThreshold field is set. + */ + @java.lang.Override + public boolean hasDefaultDriftThreshold() { + return defaultDriftThreshold_ != null; + } + /** + * + * + *
+     * Drift anomaly detection threshold used by all features.
+     * When the per-feature thresholds are not set, this field can be used to
+     * specify a threshold for all features.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_drift_threshold = 5; + * + * @return The defaultDriftThreshold. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDefaultDriftThreshold() { + return defaultDriftThreshold_ == null + ? com.google.cloud.aiplatform.v1beta1.ThresholdConfig.getDefaultInstance() + : defaultDriftThreshold_; + } + /** + * + * + *
+     * Drift anomaly detection threshold used by all features.
+     * When the per-feature thresholds are not set, this field can be used to
+     * specify a threshold for all features.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_drift_threshold = 5; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ThresholdConfigOrBuilder + getDefaultDriftThresholdOrBuilder() { + return getDefaultDriftThreshold(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4678,6 +5161,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io internalGetAttributionScoreDriftThresholds(), AttributionScoreDriftThresholdsDefaultEntryHolder.defaultEntry, 2); + if (defaultDriftThreshold_ != null) { + output.writeMessage(5, getDefaultDriftThreshold()); + } unknownFields.writeTo(output); } @@ -4715,6 +5201,10 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 2, attributionScoreDriftThresholds__); } + if (defaultDriftThreshold_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDefaultDriftThreshold()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -4741,6 +5231,10 @@ public boolean equals(final java.lang.Object obj) { if (!internalGetDriftThresholds().equals(other.internalGetDriftThresholds())) return false; if (!internalGetAttributionScoreDriftThresholds() .equals(other.internalGetAttributionScoreDriftThresholds())) return false; + if (hasDefaultDriftThreshold() != other.hasDefaultDriftThreshold()) return false; + if (hasDefaultDriftThreshold()) { + if (!getDefaultDriftThreshold().equals(other.getDefaultDriftThreshold())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4760,6 +5254,10 @@ public int hashCode() { hash = (37 * hash) + ATTRIBUTION_SCORE_DRIFT_THRESHOLDS_FIELD_NUMBER; hash = (53 * hash) + internalGetAttributionScoreDriftThresholds().hashCode(); } + if (hasDefaultDriftThreshold()) { + hash = (37 * hash) + DEFAULT_DRIFT_THRESHOLD_FIELD_NUMBER; + hash = (53 * hash) + getDefaultDriftThreshold().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -4959,6 +5457,12 @@ public Builder clear() { super.clear(); internalGetMutableDriftThresholds().clear(); internalGetMutableAttributionScoreDriftThresholds().clear(); + if (defaultDriftThresholdBuilder_ == null) { + defaultDriftThreshold_ = null; + } else { + defaultDriftThreshold_ = null; + defaultDriftThresholdBuilder_ = null; + } return this; } @@ -5003,6 +5507,11 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result.driftThresholds_.makeImmutable(); result.attributionScoreDriftThresholds_ = internalGetAttributionScoreDriftThresholds(); result.attributionScoreDriftThresholds_.makeImmutable(); + if (defaultDriftThresholdBuilder_ == null) { + result.defaultDriftThreshold_ = defaultDriftThreshold_; + } else { + result.defaultDriftThreshold_ = defaultDriftThresholdBuilder_.build(); + } onBuilt(); return result; } @@ -5068,6 +5577,9 @@ public Builder mergeFrom( internalGetMutableDriftThresholds().mergeFrom(other.internalGetDriftThresholds()); internalGetMutableAttributionScoreDriftThresholds() .mergeFrom(other.internalGetAttributionScoreDriftThresholds()); + if (other.hasDefaultDriftThreshold()) { + mergeDefaultDriftThreshold(other.getDefaultDriftThreshold()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -5512,6 +6024,215 @@ public Builder putAllAttributionScoreDriftThresholds( return this; } + private com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultDriftThreshold_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ThresholdConfig, + com.google.cloud.aiplatform.v1beta1.ThresholdConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ThresholdConfigOrBuilder> + defaultDriftThresholdBuilder_; + /** + * + * + *
+       * Drift anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_drift_threshold = 5; + * + * @return Whether the defaultDriftThreshold field is set. + */ + public boolean hasDefaultDriftThreshold() { + return defaultDriftThresholdBuilder_ != null || defaultDriftThreshold_ != null; + } + /** + * + * + *
+       * Drift anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_drift_threshold = 5; + * + * @return The defaultDriftThreshold. + */ + public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDefaultDriftThreshold() { + if (defaultDriftThresholdBuilder_ == null) { + return defaultDriftThreshold_ == null + ? com.google.cloud.aiplatform.v1beta1.ThresholdConfig.getDefaultInstance() + : defaultDriftThreshold_; + } else { + return defaultDriftThresholdBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Drift anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_drift_threshold = 5; + */ + public Builder setDefaultDriftThreshold( + com.google.cloud.aiplatform.v1beta1.ThresholdConfig value) { + if (defaultDriftThresholdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultDriftThreshold_ = value; + onChanged(); + } else { + defaultDriftThresholdBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Drift anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_drift_threshold = 5; + */ + public Builder setDefaultDriftThreshold( + com.google.cloud.aiplatform.v1beta1.ThresholdConfig.Builder builderForValue) { + if (defaultDriftThresholdBuilder_ == null) { + defaultDriftThreshold_ = builderForValue.build(); + onChanged(); + } else { + defaultDriftThresholdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Drift anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_drift_threshold = 5; + */ + public Builder mergeDefaultDriftThreshold( + com.google.cloud.aiplatform.v1beta1.ThresholdConfig value) { + if (defaultDriftThresholdBuilder_ == null) { + if (defaultDriftThreshold_ != null) { + defaultDriftThreshold_ = + com.google.cloud.aiplatform.v1beta1.ThresholdConfig.newBuilder( + defaultDriftThreshold_) + .mergeFrom(value) + .buildPartial(); + } else { + defaultDriftThreshold_ = value; + } + onChanged(); + } else { + defaultDriftThresholdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Drift anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_drift_threshold = 5; + */ + public Builder clearDefaultDriftThreshold() { + if (defaultDriftThresholdBuilder_ == null) { + defaultDriftThreshold_ = null; + onChanged(); + } else { + defaultDriftThreshold_ = null; + defaultDriftThresholdBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Drift anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_drift_threshold = 5; + */ + public com.google.cloud.aiplatform.v1beta1.ThresholdConfig.Builder + getDefaultDriftThresholdBuilder() { + + onChanged(); + return getDefaultDriftThresholdFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Drift anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_drift_threshold = 5; + */ + public com.google.cloud.aiplatform.v1beta1.ThresholdConfigOrBuilder + getDefaultDriftThresholdOrBuilder() { + if (defaultDriftThresholdBuilder_ != null) { + return defaultDriftThresholdBuilder_.getMessageOrBuilder(); + } else { + return defaultDriftThreshold_ == null + ? com.google.cloud.aiplatform.v1beta1.ThresholdConfig.getDefaultInstance() + : defaultDriftThreshold_; + } + } + /** + * + * + *
+       * Drift anomaly detection threshold used by all features.
+       * When the per-feature thresholds are not set, this field can be used to
+       * specify a threshold for all features.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.ThresholdConfig default_drift_threshold = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ThresholdConfig, + com.google.cloud.aiplatform.v1beta1.ThresholdConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ThresholdConfigOrBuilder> + getDefaultDriftThresholdFieldBuilder() { + if (defaultDriftThresholdBuilder_ == null) { + defaultDriftThresholdBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ThresholdConfig, + com.google.cloud.aiplatform.v1beta1.ThresholdConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ThresholdConfigOrBuilder>( + getDefaultDriftThreshold(), getParentForChildren(), isClean()); + defaultDriftThreshold_ = null; + } + return defaultDriftThresholdBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringProto.java index e9218554a05a..3c71879a4f21 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringProto.java @@ -27,6 +27,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -99,92 +103,102 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n6google/cloud/aiplatform/v1beta1/model_" + "monitoring.proto\022\037google.cloud.aiplatfor" + "m.v1beta1\032\031google/api/resource.proto\032(go" - + "ogle/cloud/aiplatform/v1beta1/io.proto\"\205" - + "\025\n\036ModelMonitoringObjectiveConfig\022i\n\020tra" - + "ining_dataset\030\001 \001(\0132O.google.cloud.aipla" - + "tform.v1beta1.ModelMonitoringObjectiveCo" - + "nfig.TrainingDataset\022\230\001\n)training_predic" - + "tion_skew_detection_config\030\002 \001(\0132e.googl" - + "e.cloud.aiplatform.v1beta1.ModelMonitori" - + "ngObjectiveConfig.TrainingPredictionSkew" - + "DetectionConfig\022\211\001\n!prediction_drift_det" - + "ection_config\030\003 \001(\0132^.google.cloud.aipla" - + "tform.v1beta1.ModelMonitoringObjectiveCo" - + "nfig.PredictionDriftDetectionConfig\022m\n\022e" - + "xplanation_config\030\005 \001(\0132Q.google.cloud.a" - + "iplatform.v1beta1.ModelMonitoringObjecti" - + "veConfig.ExplanationConfig\032\352\002\n\017TrainingD" - + "ataset\0229\n\007dataset\030\003 \001(\tB&\372A#\n!aiplatform" - + ".googleapis.com/DatasetH\000\022@\n\ngcs_source\030" - + "\004 \001(\0132*.google.cloud.aiplatform.v1beta1." - + "GcsSourceH\000\022J\n\017bigquery_source\030\005 \001(\0132/.g" - + "oogle.cloud.aiplatform.v1beta1.BigQueryS" - + "ourceH\000\022\023\n\013data_format\030\002 \001(\t\022\024\n\014target_f" - + "ield\030\006 \001(\t\022T\n\031logging_sampling_strategy\030" - + "\007 \001(\01321.google.cloud.aiplatform.v1beta1." - + "SamplingStrategyB\r\n\013data_source\032\326\004\n%Trai" - + "ningPredictionSkewDetectionConfig\022\222\001\n\017sk" - + "ew_thresholds\030\001 \003(\0132y.google.cloud.aipla" - + "tform.v1beta1.ModelMonitoringObjectiveCo" - + "nfig.TrainingPredictionSkewDetectionConf" - + "ig.SkewThresholdsEntry\022\265\001\n!attribution_s" - + "core_skew_thresholds\030\002 \003(\0132\211\001.google.clo" - + "ud.aiplatform.v1beta1.ModelMonitoringObj" - + "ectiveConfig.TrainingPredictionSkewDetec" - + "tionConfig.AttributionScoreSkewThreshold" - + "sEntry\032g\n\023SkewThresholdsEntry\022\013\n\003key\030\001 \001" - + "(\t\022?\n\005value\030\002 \001(\01320.google.cloud.aiplatf" - + "orm.v1beta1.ThresholdConfig:\0028\001\032w\n#Attri" - + "butionScoreSkewThresholdsEntry\022\013\n\003key\030\001 " - + "\001(\t\022?\n\005value\030\002 \001(\01320.google.cloud.aiplat" - + "form.v1beta1.ThresholdConfig:\0028\001\032\307\004\n\036Pre" - + "dictionDriftDetectionConfig\022\215\001\n\020drift_th" - + "resholds\030\001 \003(\0132s.google.cloud.aiplatform" - + ".v1beta1.ModelMonitoringObjectiveConfig." - + "PredictionDriftDetectionConfig.DriftThre" - + "sholdsEntry\022\260\001\n\"attribution_score_drift_" - + "thresholds\030\002 \003(\0132\203\001.google.cloud.aiplatf" - + "orm.v1beta1.ModelMonitoringObjectiveConf" - + "ig.PredictionDriftDetectionConfig.Attrib" - + "utionScoreDriftThresholdsEntry\032h\n\024DriftT" - + "hresholdsEntry\022\013\n\003key\030\001 \001(\t\022?\n\005value\030\002 \001" - + "(\01320.google.cloud.aiplatform.v1beta1.Thr" - + "esholdConfig:\0028\001\032x\n$AttributionScoreDrif" - + "tThresholdsEntry\022\013\n\003key\030\001 \001(\t\022?\n\005value\030\002" - + " \001(\01320.google.cloud.aiplatform.v1beta1.T" - + "hresholdConfig:\0028\001\032\321\004\n\021ExplanationConfig" - + "\022!\n\031enable_feature_attributes\030\001 \001(\010\022\203\001\n\024" - + "explanation_baseline\030\002 \001(\0132e.google.clou" + + "ogle/cloud/aiplatform/v1beta1/io.proto\"\354" + + "\001\n\025ModelMonitoringConfig\022Z\n\021objective_co" + + "nfigs\030\003 \003(\0132?.google.cloud.aiplatform.v1" + + "beta1.ModelMonitoringObjectiveConfig\022Q\n\014" + + "alert_config\030\002 \001(\0132;.google.cloud.aiplat" + + "form.v1beta1.ModelMonitoringAlertConfig\022" + + "$\n\034analysis_instance_schema_uri\030\004 \001(\t\"\252\026" + + "\n\036ModelMonitoringObjectiveConfig\022i\n\020trai" + + "ning_dataset\030\001 \001(\0132O.google.cloud.aiplat" + + "form.v1beta1.ModelMonitoringObjectiveCon" + + "fig.TrainingDataset\022\230\001\n)training_predict" + + "ion_skew_detection_config\030\002 \001(\0132e.google" + + ".cloud.aiplatform.v1beta1.ModelMonitorin" + + "gObjectiveConfig.TrainingPredictionSkewD" + + "etectionConfig\022\211\001\n!prediction_drift_dete" + + "ction_config\030\003 \001(\0132^.google.cloud.aiplat" + + "form.v1beta1.ModelMonitoringObjectiveCon" + + "fig.PredictionDriftDetectionConfig\022m\n\022ex" + + "planation_config\030\005 \001(\0132Q.google.cloud.ai" + + "platform.v1beta1.ModelMonitoringObjectiv" + + "eConfig.ExplanationConfig\032\352\002\n\017TrainingDa" + + "taset\0229\n\007dataset\030\003 \001(\tB&\372A#\n!aiplatform." + + "googleapis.com/DatasetH\000\022@\n\ngcs_source\030\004" + + " \001(\0132*.google.cloud.aiplatform.v1beta1.G" + + "csSourceH\000\022J\n\017bigquery_source\030\005 \001(\0132/.go" + + "ogle.cloud.aiplatform.v1beta1.BigQuerySo" + + "urceH\000\022\023\n\013data_format\030\002 \001(\t\022\024\n\014target_fi" + + "eld\030\006 \001(\t\022T\n\031logging_sampling_strategy\030\007" + + " \001(\01321.google.cloud.aiplatform.v1beta1.S" + + "amplingStrategyB\r\n\013data_source\032\250\005\n%Train" + + "ingPredictionSkewDetectionConfig\022\222\001\n\017ske" + + "w_thresholds\030\001 \003(\0132y.google.cloud.aiplat" + + "form.v1beta1.ModelMonitoringObjectiveCon" + + "fig.TrainingPredictionSkewDetectionConfi" + + "g.SkewThresholdsEntry\022\265\001\n!attribution_sc" + + "ore_skew_thresholds\030\002 \003(\0132\211\001.google.clou" + "d.aiplatform.v1beta1.ModelMonitoringObje" - + "ctiveConfig.ExplanationConfig.Explanatio" - + "nBaseline\032\222\003\n\023ExplanationBaseline\022>\n\003gcs" - + "\030\002 \001(\0132/.google.cloud.aiplatform.v1beta1" - + ".GcsDestinationH\000\022H\n\010bigquery\030\003 \001(\01324.go" - + "ogle.cloud.aiplatform.v1beta1.BigQueryDe" - + "stinationH\000\022\221\001\n\021prediction_format\030\001 \001(\0162" - + "v.google.cloud.aiplatform.v1beta1.ModelM" - + "onitoringObjectiveConfig.ExplanationConf" - + "ig.ExplanationBaseline.PredictionFormat\"" - + "N\n\020PredictionFormat\022!\n\035PREDICTION_FORMAT" - + "_UNSPECIFIED\020\000\022\t\n\005JSONL\020\002\022\014\n\010BIGQUERY\020\003B" - + "\r\n\013destination\"\322\001\n\032ModelMonitoringAlertC" - + "onfig\022j\n\022email_alert_config\030\001 \001(\0132L.goog" - + "le.cloud.aiplatform.v1beta1.ModelMonitor" - + "ingAlertConfig.EmailAlertConfigH\000\022\026\n\016ena" - + "ble_logging\030\002 \001(\010\032\'\n\020EmailAlertConfig\022\023\n" - + "\013user_emails\030\001 \003(\tB\007\n\005alert\"/\n\017Threshold" - + "Config\022\017\n\005value\030\001 \001(\001H\000B\013\n\tthreshold\"\241\001\n" - + "\020SamplingStrategy\022b\n\024random_sample_confi" - + "g\030\001 \001(\0132D.google.cloud.aiplatform.v1beta" - + "1.SamplingStrategy.RandomSampleConfig\032)\n" - + "\022RandomSampleConfig\022\023\n\013sample_rate\030\001 \001(\001" - + "B\361\001\n#com.google.cloud.aiplatform.v1beta1" - + "B\024ModelMonitoringProtoP\001ZIgoogle.golang." - + "org/genproto/googleapis/cloud/aiplatform" - + "/v1beta1;aiplatform\252\002\037Google.Cloud.AIPla" - + "tform.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\" - + "V1beta1\352\002\"Google::Cloud::AIPlatform::V1b" - + "eta1b\006proto3" + + "ctiveConfig.TrainingPredictionSkewDetect" + + "ionConfig.AttributionScoreSkewThresholds" + + "Entry\022P\n\026default_skew_threshold\030\006 \001(\01320." + + "google.cloud.aiplatform.v1beta1.Threshol" + + "dConfig\032g\n\023SkewThresholdsEntry\022\013\n\003key\030\001 " + + "\001(\t\022?\n\005value\030\002 \001(\01320.google.cloud.aiplat" + + "form.v1beta1.ThresholdConfig:\0028\001\032w\n#Attr" + + "ibutionScoreSkewThresholdsEntry\022\013\n\003key\030\001" + + " \001(\t\022?\n\005value\030\002 \001(\01320.google.cloud.aipla" + + "tform.v1beta1.ThresholdConfig:\0028\001\032\232\005\n\036Pr" + + "edictionDriftDetectionConfig\022\215\001\n\020drift_t" + + "hresholds\030\001 \003(\0132s.google.cloud.aiplatfor" + + "m.v1beta1.ModelMonitoringObjectiveConfig" + + ".PredictionDriftDetectionConfig.DriftThr" + + "esholdsEntry\022\260\001\n\"attribution_score_drift" + + "_thresholds\030\002 \003(\0132\203\001.google.cloud.aiplat" + + "form.v1beta1.ModelMonitoringObjectiveCon" + + "fig.PredictionDriftDetectionConfig.Attri" + + "butionScoreDriftThresholdsEntry\022Q\n\027defau" + + "lt_drift_threshold\030\005 \001(\01320.google.cloud." + + "aiplatform.v1beta1.ThresholdConfig\032h\n\024Dr" + + "iftThresholdsEntry\022\013\n\003key\030\001 \001(\t\022?\n\005value" + + "\030\002 \001(\01320.google.cloud.aiplatform.v1beta1" + + ".ThresholdConfig:\0028\001\032x\n$AttributionScore" + + "DriftThresholdsEntry\022\013\n\003key\030\001 \001(\t\022?\n\005val" + + "ue\030\002 \001(\01320.google.cloud.aiplatform.v1bet" + + "a1.ThresholdConfig:\0028\001\032\321\004\n\021ExplanationCo" + + "nfig\022!\n\031enable_feature_attributes\030\001 \001(\010\022" + + "\203\001\n\024explanation_baseline\030\002 \001(\0132e.google." + + "cloud.aiplatform.v1beta1.ModelMonitoring" + + "ObjectiveConfig.ExplanationConfig.Explan" + + "ationBaseline\032\222\003\n\023ExplanationBaseline\022>\n" + + "\003gcs\030\002 \001(\0132/.google.cloud.aiplatform.v1b" + + "eta1.GcsDestinationH\000\022H\n\010bigquery\030\003 \001(\0132" + + "4.google.cloud.aiplatform.v1beta1.BigQue" + + "ryDestinationH\000\022\221\001\n\021prediction_format\030\001 " + + "\001(\0162v.google.cloud.aiplatform.v1beta1.Mo" + + "delMonitoringObjectiveConfig.Explanation" + + "Config.ExplanationBaseline.PredictionFor" + + "mat\"N\n\020PredictionFormat\022!\n\035PREDICTION_FO" + + "RMAT_UNSPECIFIED\020\000\022\t\n\005JSONL\020\002\022\014\n\010BIGQUER" + + "Y\020\003B\r\n\013destination\"\322\001\n\032ModelMonitoringAl" + + "ertConfig\022j\n\022email_alert_config\030\001 \001(\0132L." + + "google.cloud.aiplatform.v1beta1.ModelMon" + + "itoringAlertConfig.EmailAlertConfigH\000\022\026\n" + + "\016enable_logging\030\002 \001(\010\032\'\n\020EmailAlertConfi" + + "g\022\023\n\013user_emails\030\001 \003(\tB\007\n\005alert\"/\n\017Thres" + + "holdConfig\022\017\n\005value\030\001 \001(\001H\000B\013\n\tthreshold" + + "\"\241\001\n\020SamplingStrategy\022b\n\024random_sample_c" + + "onfig\030\001 \001(\0132D.google.cloud.aiplatform.v1" + + "beta1.SamplingStrategy.RandomSampleConfi" + + "g\032)\n\022RandomSampleConfig\022\023\n\013sample_rate\030\001" + + " \001(\001B\361\001\n#com.google.cloud.aiplatform.v1b" + + "eta1B\024ModelMonitoringProtoP\001ZIgoogle.gol" + + "ang.org/genproto/googleapis/cloud/aiplat" + + "form/v1beta1;aiplatform\252\002\037Google.Cloud.A" + + "IPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPlatf" + + "orm\\V1beta1\352\002\"Google::Cloud::AIPlatform:" + + ":V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -193,8 +207,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor(), }); - internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringConfig_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringConfig_descriptor, + new java.lang.String[] { + "ObjectiveConfigs", "AlertConfig", "AnalysisInstanceSchemaUri", + }); + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_descriptor = + getDescriptor().getMessageTypes().get(1); internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_descriptor, @@ -228,7 +250,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_TrainingPredictionSkewDetectionConfig_descriptor, new java.lang.String[] { - "SkewThresholds", "AttributionScoreSkewThresholds", + "SkewThresholds", "AttributionScoreSkewThresholds", "DefaultSkewThreshold", }); internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_TrainingPredictionSkewDetectionConfig_SkewThresholdsEntry_descriptor = internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_TrainingPredictionSkewDetectionConfig_descriptor @@ -258,7 +280,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_descriptor, new java.lang.String[] { - "DriftThresholds", "AttributionScoreDriftThresholds", + "DriftThresholds", "AttributionScoreDriftThresholds", "DefaultDriftThreshold", }); internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_DriftThresholdsEntry_descriptor = internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_descriptor @@ -301,7 +323,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Gcs", "Bigquery", "PredictionFormat", "Destination", }); internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringAlertConfig_descriptor = - getDescriptor().getMessageTypes().get(1); + getDescriptor().getMessageTypes().get(2); internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringAlertConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringAlertConfig_descriptor, @@ -319,7 +341,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UserEmails", }); internal_static_google_cloud_aiplatform_v1beta1_ThresholdConfig_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(3); internal_static_google_cloud_aiplatform_v1beta1_ThresholdConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ThresholdConfig_descriptor, @@ -327,7 +349,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Value", "Threshold", }); internal_static_google_cloud_aiplatform_v1beta1_SamplingStrategy_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_aiplatform_v1beta1_SamplingStrategy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_SamplingStrategy_descriptor, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelName.java index 239c594a1a4d..69449c43a587 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceProto.java index 4e69245cbd40..4a8c95eff036 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceProto.java @@ -63,6 +63,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_UpdateModelRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_UpdateModelRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetOperationMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_DeleteModelRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -91,6 +99,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_ExportModelOperationMetadata_OutputInfo_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_ExportModelOperationMetadata_OutputInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_ExportModelResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -137,182 +149,199 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "1beta1\032\034google/api/annotations.proto\032\027go" + "ogle/api/client.proto\032\037google/api/field_" + "behavior.proto\032\031google/api/resource.prot" - + "o\032(google/cloud/aiplatform/v1beta1/io.pr" - + "oto\032+google/cloud/aiplatform/v1beta1/mod" - + "el.proto\0326google/cloud/aiplatform/v1beta" - + "1/model_evaluation.proto\032\202\323\344\223\0021\022//v1beta1/{name=projects/*/" - + "locations/*/models/*}\332A\004name\022\267\001\n\nListMod" - + "els\0222.google.cloud.aiplatform.v1beta1.Li" - + "stModelsRequest\0323.google.cloud.aiplatfor" - + "m.v1beta1.ListModelsResponse\"@\202\323\344\223\0021\022//v" - + "1beta1/{parent=projects/*/locations/*}/m" - + "odels\332A\006parent\022\327\001\n\021ListModelVersions\0229.g" - + "oogle.cloud.aiplatform.v1beta1.ListModel" - + "VersionsRequest\032:.google.cloud.aiplatfor" - + "m.v1beta1.ListModelVersionsResponse\"K\202\323\344" - + "\223\002>\02225/v1beta1/" - + "{model.name=projects/*/locations/*/model" - + "s/*}:\005model\332A\021model,update_mask\022\324\001\n\013Dele" - + "teModel\0223.google.cloud.aiplatform.v1beta" - + "1.DeleteModelRequest\032\035.google.longrunnin" - + "g.Operation\"q\202\323\344\223\0021*//v1beta1/{name=proj" - + "ects/*/locations/*/models/*}\332A\004name\312A0\n\025" - + "google.protobuf.Empty\022\027DeleteOperationMe" - + "tadata\022\360\001\n\022DeleteModelVersion\022:.google.c" - + "loud.aiplatform.v1beta1.DeleteModelVersi" - + "onRequest\032\035.google.longrunning.Operation" - + "\"\177\202\323\344\223\002?*=/v1beta1/{name=projects/*/loca" - + "tions/*/models/*}:deleteVersion\332A\004name\312A" - + "0\n\025google.protobuf.Empty\022\027DeleteOperatio" - + "nMetadata\022\341\001\n\023MergeVersionAliases\022;.goog" - + "le.cloud.aiplatform.v1beta1.MergeVersion" - + "AliasesRequest\032&.google.cloud.aiplatform" - + ".v1beta1.Model\"e\202\323\344\223\002H\"C/v1beta1/{name=p" - + "rojects/*/locations/*/models/*}:mergeVer" - + "sionAliases:\001*\332A\024name,version_aliases\022\360\001" - + "\n\013ExportModel\0223.google.cloud.aiplatform." - + "v1beta1.ExportModelRequest\032\035.google.long" - + "running.Operation\"\214\001\202\323\344\223\002;\"6/v1beta1/{na" - + "me=projects/*/locations/*/models/*}:expo" - + "rt:\001*\332A\022name,output_config\312A3\n\023ExportMod" - + "elResponse\022\034ExportModelOperationMetadata" - + "\022\363\001\n\025ImportModelEvaluation\022=.google.clou" - + "d.aiplatform.v1beta1.ImportModelEvaluati" - + "onRequest\0320.google.cloud.aiplatform.v1be" - + "ta1.ModelEvaluation\"i\202\323\344\223\002I\"D/v1beta1/{p" - + "arent=projects/*/locations/*/models/*}/e" - + "valuations:import:\001*\332A\027parent,model_eval" - + "uation\022\320\001\n\022GetModelEvaluation\022:.google.c" - + "loud.aiplatform.v1beta1.GetModelEvaluati" - + "onRequest\0320.google.cloud.aiplatform.v1be" - + "ta1.ModelEvaluation\"L\202\323\344\223\002?\022=/v1beta1/{n" - + "ame=projects/*/locations/*/models/*/eval" - + "uations/*}\332A\004name\022\343\001\n\024ListModelEvaluatio" - + "ns\022<.google.cloud.aiplatform.v1beta1.Lis" - + "tModelEvaluationsRequest\032=.google.cloud." - + "aiplatform.v1beta1.ListModelEvaluationsR" - + "esponse\"N\202\323\344\223\002?\022=/v1beta1/{parent=projec" - + "ts/*/locations/*/models/*}/evaluations\332A" - + "\006parent\022\350\001\n\027GetModelEvaluationSlice\022?.go" - + "ogle.cloud.aiplatform.v1beta1.GetModelEv" - + "aluationSliceRequest\0325.google.cloud.aipl" - + "atform.v1beta1.ModelEvaluationSlice\"U\202\323\344" - + "\223\002H\022F/v1beta1/{name=projects/*/locations" - + "/*/models/*/evaluations/*/slices/*}\332A\004na" - + "me\022\373\001\n\031ListModelEvaluationSlices\022A.googl" - + "e.cloud.aiplatform.v1beta1.ListModelEval" - + "uationSlicesRequest\032B.google.cloud.aipla" - + "tform.v1beta1.ListModelEvaluationSlicesR" - + "esponse\"W\202\323\344\223\002H\022F/v1beta1/{parent=projec" - + "ts/*/locations/*/models/*/evaluations/*}" - + "/slices\332A\006parent\032M\312A\031aiplatform.googleap" - + "is.com\322A.https://www.googleapis.com/auth" - + "/cloud-platformB\356\001\n#com.google.cloud.aip" - + "latform.v1beta1B\021ModelServiceProtoP\001ZIgo" - + "ogle.golang.org/genproto/googleapis/clou" - + "d/aiplatform/v1beta1;aiplatform\252\002\037Google" - + ".Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cloud" - + "\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIP" - + "latform::V1beta1b\006proto3" + + "o\0321google/cloud/aiplatform/v1beta1/expla" + + "nation.proto\032(google/cloud/aiplatform/v1" + + "beta1/io.proto\032+google/cloud/aiplatform/" + + "v1beta1/model.proto\0326google/cloud/aiplat" + + "form/v1beta1/model_evaluation.proto\032\202\323\344\223\0021\022//v1beta1/{name=" + + "projects/*/locations/*/models/*}\332A\004name\022" + + "\267\001\n\nListModels\0222.google.cloud.aiplatform" + + ".v1beta1.ListModelsRequest\0323.google.clou" + + "d.aiplatform.v1beta1.ListModelsResponse\"" + + "@\202\323\344\223\0021\022//v1beta1/{parent=projects/*/loc" + + "ations/*}/models\332A\006parent\022\327\001\n\021ListModelV" + + "ersions\0229.google.cloud.aiplatform.v1beta" + + "1.ListModelVersionsRequest\032:.google.clou" + + "d.aiplatform.v1beta1.ListModelVersionsRe" + + "sponse\"K\202\323\344\223\002>\022" + + "25/v1beta1/{model.name=projects/*/locati" + + "ons/*/models/*}:\005model\332A\021model,update_ma" + + "sk\022\252\002\n\030UpdateExplanationDataset\022@.google" + + ".cloud.aiplatform.v1beta1.UpdateExplanat" + + "ionDatasetRequest\032\035.google.longrunning.O" + + "peration\"\254\001\202\323\344\223\002N\"I/v1beta1/{model=proje" + + "cts/*/locations/*/models/*}:updateExplan" + + "ationDataset:\001*\332A\005model\312AM\n UpdateExplan" + + "ationDatasetResponse\022)UpdateExplanationD" + + "atasetOperationMetadata\022\324\001\n\013DeleteModel\022" + + "3.google.cloud.aiplatform.v1beta1.Delete" + + "ModelRequest\032\035.google.longrunning.Operat" + + "ion\"q\202\323\344\223\0021*//v1beta1/{name=projects/*/l" + + "ocations/*/models/*}\332A\004name\312A0\n\025google.p" + + "rotobuf.Empty\022\027DeleteOperationMetadata\022\360" + + "\001\n\022DeleteModelVersion\022:.google.cloud.aip" + + "latform.v1beta1.DeleteModelVersionReques" + + "t\032\035.google.longrunning.Operation\"\177\202\323\344\223\002?" + + "*=/v1beta1/{name=projects/*/locations/*/" + + "models/*}:deleteVersion\332A\004name\312A0\n\025googl" + + "e.protobuf.Empty\022\027DeleteOperationMetadat" + + "a\022\341\001\n\023MergeVersionAliases\022;.google.cloud" + + ".aiplatform.v1beta1.MergeVersionAliasesR" + + "equest\032&.google.cloud.aiplatform.v1beta1" + + ".Model\"e\202\323\344\223\002H\"C/v1beta1/{name=projects/" + + "*/locations/*/models/*}:mergeVersionAlia" + + "ses:\001*\332A\024name,version_aliases\022\360\001\n\013Export" + + "Model\0223.google.cloud.aiplatform.v1beta1." + + "ExportModelRequest\032\035.google.longrunning." + + "Operation\"\214\001\202\323\344\223\002;\"6/v1beta1/{name=proje" + + "cts/*/locations/*/models/*}:export:\001*\332A\022" + + "name,output_config\312A3\n\023ExportModelRespon" + + "se\022\034ExportModelOperationMetadata\022\363\001\n\025Imp" + + "ortModelEvaluation\022=.google.cloud.aiplat" + + "form.v1beta1.ImportModelEvaluationReques" + + "t\0320.google.cloud.aiplatform.v1beta1.Mode" + + "lEvaluation\"i\202\323\344\223\002I\"D/v1beta1/{parent=pr" + + "ojects/*/locations/*/models/*}/evaluatio" + + "ns:import:\001*\332A\027parent,model_evaluation\022\320" + + "\001\n\022GetModelEvaluation\022:.google.cloud.aip" + + "latform.v1beta1.GetModelEvaluationReques" + + "t\0320.google.cloud.aiplatform.v1beta1.Mode" + + "lEvaluation\"L\202\323\344\223\002?\022=/v1beta1/{name=proj" + + "ects/*/locations/*/models/*/evaluations/" + + "*}\332A\004name\022\343\001\n\024ListModelEvaluations\022<.goo" + + "gle.cloud.aiplatform.v1beta1.ListModelEv" + + "aluationsRequest\032=.google.cloud.aiplatfo" + + "rm.v1beta1.ListModelEvaluationsResponse\"" + + "N\202\323\344\223\002?\022=/v1beta1/{parent=projects/*/loc" + + "ations/*/models/*}/evaluations\332A\006parent\022" + + "\350\001\n\027GetModelEvaluationSlice\022?.google.clo" + + "ud.aiplatform.v1beta1.GetModelEvaluation" + + "SliceRequest\0325.google.cloud.aiplatform.v" + + "1beta1.ModelEvaluationSlice\"U\202\323\344\223\002H\022F/v1" + + "beta1/{name=projects/*/locations/*/model" + + "s/*/evaluations/*/slices/*}\332A\004name\022\373\001\n\031L" + + "istModelEvaluationSlices\022A.google.cloud." + + "aiplatform.v1beta1.ListModelEvaluationSl" + + "icesRequest\032B.google.cloud.aiplatform.v1" + + "beta1.ListModelEvaluationSlicesResponse\"" + + "W\202\323\344\223\002H\022F/v1beta1/{parent=projects/*/loc" + + "ations/*/models/*/evaluations/*}/slices\332" + + "A\006parent\032M\312A\031aiplatform.googleapis.com\322A" + + ".https://www.googleapis.com/auth/cloud-p" + + "latformB\356\001\n#com.google.cloud.aiplatform." + + "v1beta1B\021ModelServiceProtoP\001ZIgoogle.gol" + + "ang.org/genproto/googleapis/cloud/aiplat" + + "form/v1beta1;aiplatform\252\002\037Google.Cloud.A" + + "IPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPlatf" + + "orm\\V1beta1\352\002\"Google::Cloud::AIPlatform:" + + ":V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -322,6 +351,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.ExplanationProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.ModelProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.ModelEvaluationProto.getDescriptor(), @@ -402,8 +432,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Model", "UpdateMask", }); - internal_static_google_cloud_aiplatform_v1beta1_DeleteModelRequest_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetRequest_descriptor = getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetRequest_descriptor, + new java.lang.String[] { + "Model", "Examples", + }); + internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1beta1_DeleteModelRequest_descriptor = + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_aiplatform_v1beta1_DeleteModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_DeleteModelRequest_descriptor, @@ -411,7 +457,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1beta1_DeleteModelVersionRequest_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_aiplatform_v1beta1_DeleteModelVersionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_DeleteModelVersionRequest_descriptor, @@ -419,7 +465,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1beta1_MergeVersionAliasesRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_aiplatform_v1beta1_MergeVersionAliasesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_MergeVersionAliasesRequest_descriptor, @@ -427,7 +473,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "VersionAliases", }); internal_static_google_cloud_aiplatform_v1beta1_ExportModelRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_aiplatform_v1beta1_ExportModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ExportModelRequest_descriptor, @@ -445,7 +491,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExportFormatId", "ArtifactDestination", "ImageDestination", }); internal_static_google_cloud_aiplatform_v1beta1_ExportModelOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_aiplatform_v1beta1_ExportModelOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ExportModelOperationMetadata_descriptor, @@ -462,14 +508,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ArtifactOutputUri", "ImageOutputUri", }); + internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetResponse_descriptor, + new java.lang.String[] {}); internal_static_google_cloud_aiplatform_v1beta1_ExportModelResponse_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_aiplatform_v1beta1_ExportModelResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ExportModelResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_aiplatform_v1beta1_ImportModelEvaluationRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_aiplatform_v1beta1_ImportModelEvaluationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ImportModelEvaluationRequest_descriptor, @@ -477,7 +529,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ModelEvaluation", }); internal_static_google_cloud_aiplatform_v1beta1_GetModelEvaluationRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_aiplatform_v1beta1_GetModelEvaluationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_GetModelEvaluationRequest_descriptor, @@ -485,7 +537,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationsRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationsRequest_descriptor, @@ -493,7 +545,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "ReadMask", }); internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationsResponse_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationsResponse_descriptor, @@ -501,7 +553,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ModelEvaluations", "NextPageToken", }); internal_static_google_cloud_aiplatform_v1beta1_GetModelEvaluationSliceRequest_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_aiplatform_v1beta1_GetModelEvaluationSliceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_GetModelEvaluationSliceRequest_descriptor, @@ -509,7 +561,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationSlicesRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationSlicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationSlicesRequest_descriptor, @@ -517,7 +569,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "ReadMask", }); internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationSlicesResponse_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationSlicesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationSlicesResponse_descriptor, @@ -539,6 +591,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.ExplanationProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.ModelProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.ModelEvaluationProto.getDescriptor(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Neighbor.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Neighbor.java new file mode 100644 index 000000000000..b398862b2317 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Neighbor.java @@ -0,0 +1,730 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/explanation.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Neighbors for example-based explanations.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Neighbor} + */ +public final class Neighbor extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.Neighbor) + NeighborOrBuilder { + private static final long serialVersionUID = 0L; + // Use Neighbor.newBuilder() to construct. + private Neighbor(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Neighbor() { + neighborId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Neighbor(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Neighbor( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + neighborId_ = s; + break; + } + case 17: + { + neighborDistance_ = input.readDouble(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1beta1_Neighbor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1beta1_Neighbor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Neighbor.class, + com.google.cloud.aiplatform.v1beta1.Neighbor.Builder.class); + } + + public static final int NEIGHBOR_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object neighborId_; + /** + * + * + *
+   * Output only. The neighbor id.
+   * 
+ * + * string neighbor_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The neighborId. + */ + @java.lang.Override + public java.lang.String getNeighborId() { + java.lang.Object ref = neighborId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + neighborId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The neighbor id.
+   * 
+ * + * string neighbor_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for neighborId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNeighborIdBytes() { + java.lang.Object ref = neighborId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + neighborId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEIGHBOR_DISTANCE_FIELD_NUMBER = 2; + private double neighborDistance_; + /** + * + * + *
+   * Output only. The neighbor distance.
+   * 
+ * + * double neighbor_distance = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The neighborDistance. + */ + @java.lang.Override + public double getNeighborDistance() { + return neighborDistance_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(neighborId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, neighborId_); + } + if (java.lang.Double.doubleToRawLongBits(neighborDistance_) != 0) { + output.writeDouble(2, neighborDistance_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(neighborId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, neighborId_); + } + if (java.lang.Double.doubleToRawLongBits(neighborDistance_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, neighborDistance_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.Neighbor)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.Neighbor other = + (com.google.cloud.aiplatform.v1beta1.Neighbor) obj; + + if (!getNeighborId().equals(other.getNeighborId())) return false; + if (java.lang.Double.doubleToLongBits(getNeighborDistance()) + != java.lang.Double.doubleToLongBits(other.getNeighborDistance())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NEIGHBOR_ID_FIELD_NUMBER; + hash = (53 * hash) + getNeighborId().hashCode(); + hash = (37 * hash) + NEIGHBOR_DISTANCE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getNeighborDistance())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.Neighbor parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Neighbor parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Neighbor parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Neighbor parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Neighbor parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Neighbor parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Neighbor parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Neighbor parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Neighbor parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Neighbor parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Neighbor parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Neighbor parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.Neighbor prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Neighbors for example-based explanations.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Neighbor} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Neighbor) + com.google.cloud.aiplatform.v1beta1.NeighborOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1beta1_Neighbor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1beta1_Neighbor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Neighbor.class, + com.google.cloud.aiplatform.v1beta1.Neighbor.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.Neighbor.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + neighborId_ = ""; + + neighborDistance_ = 0D; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1beta1_Neighbor_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Neighbor getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.Neighbor.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Neighbor build() { + com.google.cloud.aiplatform.v1beta1.Neighbor result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Neighbor buildPartial() { + com.google.cloud.aiplatform.v1beta1.Neighbor result = + new com.google.cloud.aiplatform.v1beta1.Neighbor(this); + result.neighborId_ = neighborId_; + result.neighborDistance_ = neighborDistance_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.Neighbor) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.Neighbor) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Neighbor other) { + if (other == com.google.cloud.aiplatform.v1beta1.Neighbor.getDefaultInstance()) return this; + if (!other.getNeighborId().isEmpty()) { + neighborId_ = other.neighborId_; + onChanged(); + } + if (other.getNeighborDistance() != 0D) { + setNeighborDistance(other.getNeighborDistance()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.Neighbor parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1beta1.Neighbor) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object neighborId_ = ""; + /** + * + * + *
+     * Output only. The neighbor id.
+     * 
+ * + * string neighbor_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The neighborId. + */ + public java.lang.String getNeighborId() { + java.lang.Object ref = neighborId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + neighborId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The neighbor id.
+     * 
+ * + * string neighbor_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for neighborId. + */ + public com.google.protobuf.ByteString getNeighborIdBytes() { + java.lang.Object ref = neighborId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + neighborId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The neighbor id.
+     * 
+ * + * string neighbor_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The neighborId to set. + * @return This builder for chaining. + */ + public Builder setNeighborId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + neighborId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The neighbor id.
+     * 
+ * + * string neighbor_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearNeighborId() { + + neighborId_ = getDefaultInstance().getNeighborId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The neighbor id.
+     * 
+ * + * string neighbor_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for neighborId to set. + * @return This builder for chaining. + */ + public Builder setNeighborIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + neighborId_ = value; + onChanged(); + return this; + } + + private double neighborDistance_; + /** + * + * + *
+     * Output only. The neighbor distance.
+     * 
+ * + * double neighbor_distance = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The neighborDistance. + */ + @java.lang.Override + public double getNeighborDistance() { + return neighborDistance_; + } + /** + * + * + *
+     * Output only. The neighbor distance.
+     * 
+ * + * double neighbor_distance = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The neighborDistance to set. + * @return This builder for chaining. + */ + public Builder setNeighborDistance(double value) { + + neighborDistance_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The neighbor distance.
+     * 
+ * + * double neighbor_distance = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearNeighborDistance() { + + neighborDistance_ = 0D; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.Neighbor) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Neighbor) + private static final com.google.cloud.aiplatform.v1beta1.Neighbor DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Neighbor(); + } + + public static com.google.cloud.aiplatform.v1beta1.Neighbor getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Neighbor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Neighbor(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Neighbor getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NeighborOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NeighborOrBuilder.java new file mode 100644 index 000000000000..a1df8dc7598b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NeighborOrBuilder.java @@ -0,0 +1,63 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/explanation.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface NeighborOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Neighbor) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The neighbor id.
+   * 
+ * + * string neighbor_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The neighborId. + */ + java.lang.String getNeighborId(); + /** + * + * + *
+   * Output only. The neighbor id.
+   * 
+ * + * string neighbor_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for neighborId. + */ + com.google.protobuf.ByteString getNeighborIdBytes(); + + /** + * + * + *
+   * Output only. The neighbor distance.
+   * 
+ * + * double neighbor_distance = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The neighborDistance. + */ + double getNeighborDistance(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java index 35ef3b97a451..862eb18db1e9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java @@ -47,6 +47,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PipelineTemplateMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PipelineTemplateMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_PipelineJobDetail_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -100,111 +104,119 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e/cloud/aiplatform/v1beta1/context.proto" + "\0325google/cloud/aiplatform/v1beta1/encryp" + "tion_spec.proto\032/google/cloud/aiplatform" - + "/v1beta1/execution.proto\0324google/cloud/a" - + "iplatform/v1beta1/pipeline_state.proto\032+" - + "google/cloud/aiplatform/v1beta1/value.pr" - + "oto\032\034google/protobuf/struct.proto\032\037googl" - + "e/protobuf/timestamp.proto\032\027google/rpc/s" - + "tatus.proto\"\371\n\n\013PipelineJob\022\021\n\004name\030\001 \001(" - + "\tB\003\340A\003\022\024\n\014display_name\030\002 \001(\t\0224\n\013create_t" - + "ime\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\0223\n\nstart_time\030\004 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\0221\n\010end_time\030\005 \001(\0132\032.goog" - + "le.protobuf.TimestampB\003\340A\003\0224\n\013update_tim" - + "e\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" - + "\022.\n\rpipeline_spec\030\007 \001(\0132\027.google.protobu" - + "f.Struct\022B\n\005state\030\010 \001(\0162..google.cloud.a" - + "iplatform.v1beta1.PipelineStateB\003\340A\003\022K\n\n" - + "job_detail\030\t \001(\01322.google.cloud.aiplatfo" - + "rm.v1beta1.PipelineJobDetailB\003\340A\003\022&\n\005err" - + "or\030\n \001(\0132\022.google.rpc.StatusB\003\340A\003\022H\n\006lab" - + "els\030\013 \003(\01328.google.cloud.aiplatform.v1be" - + "ta1.PipelineJob.LabelsEntry\022R\n\016runtime_c" - + "onfig\030\014 \001(\0132:.google.cloud.aiplatform.v1" - + "beta1.PipelineJob.RuntimeConfig\022H\n\017encry" - + "ption_spec\030\020 \001(\0132/.google.cloud.aiplatfo" - + "rm.v1beta1.EncryptionSpec\022\027\n\017service_acc" - + "ount\030\021 \001(\t\0224\n\007network\030\022 \001(\tB#\372A \n\036comput" - + "e.googleapis.com/Network\032\254\003\n\rRuntimeConf" - + "ig\022b\n\nparameters\030\001 \003(\0132J.google.cloud.ai" - + "platform.v1beta1.PipelineJob.RuntimeConf" - + "ig.ParametersEntryB\002\030\001\022!\n\024gcs_output_dir" - + "ectory\030\002 \001(\tB\003\340A\002\022i\n\020parameter_values\030\003 " - + "\003(\0132O.google.cloud.aiplatform.v1beta1.Pi" - + "pelineJob.RuntimeConfig.ParameterValuesE" - + "ntry\032Y\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t\0225\n\005" - + "value\030\002 \001(\0132&.google.cloud.aiplatform.v1" - + "beta1.Value:\0028\001\032N\n\024ParameterValuesEntry\022" - + "\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.pro" - + "tobuf.Value:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:o\352Al\n%aiplatform." - + "googleapis.com/PipelineJob\022Cprojects/{pr" - + "oject}/locations/{location}/pipelineJobs" - + "/{pipeline_job}\"\371\001\n\021PipelineJobDetail\022G\n" - + "\020pipeline_context\030\001 \001(\0132(.google.cloud.a" - + "iplatform.v1beta1.ContextB\003\340A\003\022K\n\024pipeli" - + "ne_run_context\030\002 \001(\0132(.google.cloud.aipl" - + "atform.v1beta1.ContextB\003\340A\003\022N\n\014task_deta" - + "ils\030\003 \003(\01323.google.cloud.aiplatform.v1be" - + "ta1.PipelineTaskDetailB\003\340A\003\"\317\013\n\022Pipeline" - + "TaskDetail\022\024\n\007task_id\030\001 \001(\003B\003\340A\003\022\033\n\016pare" - + "nt_task_id\030\014 \001(\003B\003\340A\003\022\026\n\ttask_name\030\002 \001(\t" - + "B\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032.google.prot" - + "obuf.TimestampB\003\340A\003\0223\n\nstart_time\030\004 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003\0221\n\010end_" - + "time\030\005 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003\022Y\n\017executor_detail\030\006 \001(\0132;.google.cl" - + "oud.aiplatform.v1beta1.PipelineTaskExecu" - + "torDetailB\003\340A\003\022M\n\005state\030\007 \001(\01629.google.c" - + "loud.aiplatform.v1beta1.PipelineTaskDeta" - + "il.StateB\003\340A\003\022B\n\texecution\030\010 \001(\0132*.googl" - + "e.cloud.aiplatform.v1beta1.ExecutionB\003\340A" - + "\003\022&\n\005error\030\t \001(\0132\022.google.rpc.StatusB\003\340A" - + "\003\022i\n\024pipeline_task_status\030\r \003(\0132F.google" - + ".cloud.aiplatform.v1beta1.PipelineTaskDe" - + "tail.PipelineTaskStatusB\003\340A\003\022T\n\006inputs\030\n" - + " \003(\0132?.google.cloud.aiplatform.v1beta1.P" - + "ipelineTaskDetail.InputsEntryB\003\340A\003\022V\n\007ou" - + "tputs\030\013 \003(\0132@.google.cloud.aiplatform.v1" - + "beta1.PipelineTaskDetail.OutputsEntryB\003\340" - + "A\003\032\301\001\n\022PipelineTaskStatus\0224\n\013update_time" - + "\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "M\n\005state\030\002 \001(\01629.google.cloud.aiplatform" - + ".v1beta1.PipelineTaskDetail.StateB\003\340A\003\022&" - + "\n\005error\030\003 \001(\0132\022.google.rpc.StatusB\003\340A\003\032Q" - + "\n\014ArtifactList\022A\n\tartifacts\030\001 \003(\0132).goog" - + "le.cloud.aiplatform.v1beta1.ArtifactB\003\340A" - + "\003\032o\n\013InputsEntry\022\013\n\003key\030\001 \001(\t\022O\n\005value\030\002" - + " \001(\0132@.google.cloud.aiplatform.v1beta1.P" - + "ipelineTaskDetail.ArtifactList:\0028\001\032p\n\014Ou" - + "tputsEntry\022\013\n\003key\030\001 \001(\t\022O\n\005value\030\002 \001(\0132@" + + "/v1beta1/execution.proto\032=google/cloud/a" + + "iplatform/v1beta1/pipeline_failure_polic" + + "y.proto\0324google/cloud/aiplatform/v1beta1" + + "/pipeline_state.proto\032+google/cloud/aipl" + + "atform/v1beta1/value.proto\032\034google/proto" + + "buf/struct.proto\032\037google/protobuf/timest" + + "amp.proto\032\027google/rpc/status.proto\"\272\014\n\013P" + + "ipelineJob\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014display" + + "_name\030\002 \001(\t\0224\n\013create_time\030\003 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\0223\n\nstart_time\030" + + "\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221" + + "\n\010end_time\030\005 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\022.\n\rpipeline_spec" + + "\030\007 \001(\0132\027.google.protobuf.Struct\022B\n\005state" + + "\030\010 \001(\0162..google.cloud.aiplatform.v1beta1" + + ".PipelineStateB\003\340A\003\022K\n\njob_detail\030\t \001(\0132" + + "2.google.cloud.aiplatform.v1beta1.Pipeli" + + "neJobDetailB\003\340A\003\022&\n\005error\030\n \001(\0132\022.google" + + ".rpc.StatusB\003\340A\003\022H\n\006labels\030\013 \003(\01328.googl" + + "e.cloud.aiplatform.v1beta1.PipelineJob.L" + + "abelsEntry\022R\n\016runtime_config\030\014 \001(\0132:.goo" + + "gle.cloud.aiplatform.v1beta1.PipelineJob" + + ".RuntimeConfig\022H\n\017encryption_spec\030\020 \001(\0132" + + "/.google.cloud.aiplatform.v1beta1.Encryp" + + "tionSpec\022\027\n\017service_account\030\021 \001(\t\0224\n\007net" + + "work\030\022 \001(\tB#\372A \n\036compute.googleapis.com/" + + "Network\022\024\n\014template_uri\030\023 \001(\t\022Y\n\021templat" + + "e_metadata\030\024 \001(\01329.google.cloud.aiplatfo" + + "rm.v1beta1.PipelineTemplateMetadataB\003\340A\003" + + "\032\374\003\n\rRuntimeConfig\022b\n\nparameters\030\001 \003(\0132J" + ".google.cloud.aiplatform.v1beta1.Pipelin" - + "eTaskDetail.ArtifactList:\0028\001\"\246\001\n\005State\022\025" - + "\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RU" - + "NNING\020\002\022\r\n\tSUCCEEDED\020\003\022\022\n\016CANCEL_PENDING" - + "\020\004\022\016\n\nCANCELLING\020\005\022\r\n\tCANCELLED\020\006\022\n\n\006FAI" - + "LED\020\007\022\013\n\007SKIPPED\020\010\022\021\n\rNOT_TRIGGERED\020\t\"\366\003" - + "\n\032PipelineTaskExecutorDetail\022l\n\020containe" - + "r_detail\030\001 \001(\0132K.google.cloud.aiplatform" - + ".v1beta1.PipelineTaskExecutorDetail.Cont" - + "ainerDetailB\003\340A\003H\000\022o\n\021custom_job_detail\030" - + "\002 \001(\0132K.google.cloud.aiplatform.v1beta1." - + "PipelineTaskExecutorDetail.CustomJobDeta" - + "ilB\005\030\001\340A\003H\000\032\234\001\n\017ContainerDetail\022=\n\010main_" - + "job\030\001 \001(\tB+\340A\003\372A%\n#aiplatform.googleapis" - + ".com/CustomJob\022J\n\025pre_caching_check_job\030" - + "\002 \001(\tB+\340A\003\372A%\n#aiplatform.googleapis.com" - + "/CustomJob\032O\n\017CustomJobDetail\0228\n\003job\030\001 \001" - + "(\tB+\340A\003\372A%\n#aiplatform.googleapis.com/Cu" - + "stomJob:\002\030\001B\t\n\007detailsB\266\002\n#com.google.cl" - + "oud.aiplatform.v1beta1B\010PipelineP\001ZIgoog" - + "le.golang.org/genproto/googleapis/cloud/" - + "aiplatform/v1beta1;aiplatform\252\002\037Google.C" - + "loud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\A" - + "IPlatform\\V1beta1\352\002\"Google::Cloud::AIPla" - + "tform::V1beta1\352AN\n\036compute.googleapis.co" - + "m/Network\022,projects/{project}/global/net" - + "works/{network}b\006proto3" + + "eJob.RuntimeConfig.ParametersEntryB\002\030\001\022!" + + "\n\024gcs_output_directory\030\002 \001(\tB\003\340A\002\022i\n\020par" + + "ameter_values\030\003 \003(\0132O.google.cloud.aipla" + + "tform.v1beta1.PipelineJob.RuntimeConfig." + + "ParameterValuesEntry\022N\n\016failure_policy\030\004" + + " \001(\01626.google.cloud.aiplatform.v1beta1.P" + + "ipelineFailurePolicy\032Y\n\017ParametersEntry\022" + + "\013\n\003key\030\001 \001(\t\0225\n\005value\030\002 \001(\0132&.google.clo" + + "ud.aiplatform.v1beta1.Value:\0028\001\032N\n\024Param" + + "eterValuesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 " + + "\001(\0132\026.google.protobuf.Value:\0028\001\032-\n\013Label" + + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:o" + + "\352Al\n%aiplatform.googleapis.com/PipelineJ" + + "ob\022Cprojects/{project}/locations/{locati" + + "on}/pipelineJobs/{pipeline_job}\"+\n\030Pipel" + + "ineTemplateMetadata\022\017\n\007version\030\003 \001(\t\"\371\001\n" + + "\021PipelineJobDetail\022G\n\020pipeline_context\030\001" + + " \001(\0132(.google.cloud.aiplatform.v1beta1.C" + + "ontextB\003\340A\003\022K\n\024pipeline_run_context\030\002 \001(" + + "\0132(.google.cloud.aiplatform.v1beta1.Cont" + + "extB\003\340A\003\022N\n\014task_details\030\003 \003(\01323.google." + + "cloud.aiplatform.v1beta1.PipelineTaskDet" + + "ailB\003\340A\003\"\317\013\n\022PipelineTaskDetail\022\024\n\007task_" + + "id\030\001 \001(\003B\003\340A\003\022\033\n\016parent_task_id\030\014 \001(\003B\003\340" + + "A\003\022\026\n\ttask_name\030\002 \001(\tB\003\340A\003\0224\n\013create_tim" + + "e\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\0223\n\nstart_time\030\004 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\0221\n\010end_time\030\005 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\022Y\n\017executor_det" + + "ail\030\006 \001(\0132;.google.cloud.aiplatform.v1be" + + "ta1.PipelineTaskExecutorDetailB\003\340A\003\022M\n\005s" + + "tate\030\007 \001(\01629.google.cloud.aiplatform.v1b" + + "eta1.PipelineTaskDetail.StateB\003\340A\003\022B\n\tex" + + "ecution\030\010 \001(\0132*.google.cloud.aiplatform." + + "v1beta1.ExecutionB\003\340A\003\022&\n\005error\030\t \001(\0132\022." + + "google.rpc.StatusB\003\340A\003\022i\n\024pipeline_task_" + + "status\030\r \003(\0132F.google.cloud.aiplatform.v" + + "1beta1.PipelineTaskDetail.PipelineTaskSt" + + "atusB\003\340A\003\022T\n\006inputs\030\n \003(\0132?.google.cloud" + + ".aiplatform.v1beta1.PipelineTaskDetail.I" + + "nputsEntryB\003\340A\003\022V\n\007outputs\030\013 \003(\0132@.googl" + + "e.cloud.aiplatform.v1beta1.PipelineTaskD" + + "etail.OutputsEntryB\003\340A\003\032\301\001\n\022PipelineTask" + + "Status\0224\n\013update_time\030\001 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\022M\n\005state\030\002 \001(\01629.go" + + "ogle.cloud.aiplatform.v1beta1.PipelineTa" + + "skDetail.StateB\003\340A\003\022&\n\005error\030\003 \001(\0132\022.goo" + + "gle.rpc.StatusB\003\340A\003\032Q\n\014ArtifactList\022A\n\ta" + + "rtifacts\030\001 \003(\0132).google.cloud.aiplatform" + + ".v1beta1.ArtifactB\003\340A\003\032o\n\013InputsEntry\022\013\n" + + "\003key\030\001 \001(\t\022O\n\005value\030\002 \001(\0132@.google.cloud" + + ".aiplatform.v1beta1.PipelineTaskDetail.A" + + "rtifactList:\0028\001\032p\n\014OutputsEntry\022\013\n\003key\030\001" + + " \001(\t\022O\n\005value\030\002 \001(\0132@.google.cloud.aipla" + + "tform.v1beta1.PipelineTaskDetail.Artifac" + + "tList:\0028\001\"\246\001\n\005State\022\025\n\021STATE_UNSPECIFIED" + + "\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\r\n\tSUCCEEDE" + + "D\020\003\022\022\n\016CANCEL_PENDING\020\004\022\016\n\nCANCELLING\020\005\022" + + "\r\n\tCANCELLED\020\006\022\n\n\006FAILED\020\007\022\013\n\007SKIPPED\020\010\022" + + "\021\n\rNOT_TRIGGERED\020\t\"\366\003\n\032PipelineTaskExecu" + + "torDetail\022l\n\020container_detail\030\001 \001(\0132K.go" + + "ogle.cloud.aiplatform.v1beta1.PipelineTa" + + "skExecutorDetail.ContainerDetailB\003\340A\003H\000\022" + + "o\n\021custom_job_detail\030\002 \001(\0132K.google.clou" + + "d.aiplatform.v1beta1.PipelineTaskExecuto" + + "rDetail.CustomJobDetailB\005\030\001\340A\003H\000\032\234\001\n\017Con" + + "tainerDetail\022=\n\010main_job\030\001 \001(\tB+\340A\003\372A%\n#" + + "aiplatform.googleapis.com/CustomJob\022J\n\025p" + + "re_caching_check_job\030\002 \001(\tB+\340A\003\372A%\n#aipl" + + "atform.googleapis.com/CustomJob\032O\n\017Custo" + + "mJobDetail\0228\n\003job\030\001 \001(\tB+\340A\003\372A%\n#aiplatf" + + "orm.googleapis.com/CustomJob:\002\030\001B\t\n\007deta" + + "ilsB\266\002\n#com.google.cloud.aiplatform.v1be" + + "ta1B\010PipelineP\001ZIgoogle.golang.org/genpr" + + "oto/googleapis/cloud/aiplatform/v1beta1;" + + "aiplatform\252\002\037Google.Cloud.AIPlatform.V1B" + + "eta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002" + + "\"Google::Cloud::AIPlatform::V1beta1\352AN\n\036" + + "compute.googleapis.com/Network\022,projects" + + "/{project}/global/networks/{network}b\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -216,6 +228,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.ContextProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.ExecutionProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.PipelineFailurePolicyProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.PipelineStateProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.ValueProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), @@ -243,6 +256,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EncryptionSpec", "ServiceAccount", "Network", + "TemplateUri", + "TemplateMetadata", }); internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_descriptor = internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_descriptor @@ -252,7 +267,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_descriptor, new java.lang.String[] { - "Parameters", "GcsOutputDirectory", "ParameterValues", + "Parameters", "GcsOutputDirectory", "ParameterValues", "FailurePolicy", }); internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_ParametersEntry_descriptor = internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_descriptor @@ -284,8 +299,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_aiplatform_v1beta1_PipelineJobDetail_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_PipelineTemplateMetadata_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_aiplatform_v1beta1_PipelineTemplateMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_PipelineTemplateMetadata_descriptor, + new java.lang.String[] { + "Version", + }); + internal_static_google_cloud_aiplatform_v1beta1_PipelineJobDetail_descriptor = + getDescriptor().getMessageTypes().get(2); internal_static_google_cloud_aiplatform_v1beta1_PipelineJobDetail_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_PipelineJobDetail_descriptor, @@ -293,7 +316,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PipelineContext", "PipelineRunContext", "TaskDetails", }); internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(3); internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskDetail_descriptor, @@ -353,7 +376,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_PipelineTaskExecutorDetail_descriptor, @@ -394,6 +417,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.ContextProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.ExecutionProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.PipelineFailurePolicyProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.PipelineStateProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.ValueProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineFailurePolicy.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineFailurePolicy.java new file mode 100644 index 000000000000..94473fc3d05d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineFailurePolicy.java @@ -0,0 +1,190 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Represents the failure policy of a pipeline. Currently, the default of a
+ * pipeline is that the pipeline will continue to run until no more tasks can be
+ * executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW. However, if a
+ * pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it will stop scheduling
+ * any new tasks when a task has failed. Any scheduled tasks will continue to
+ * completion.
+ * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.PipelineFailurePolicy} + */ +public enum PipelineFailurePolicy implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value, and follows fail slow behavior.
+   * 
+ * + * PIPELINE_FAILURE_POLICY_UNSPECIFIED = 0; + */ + PIPELINE_FAILURE_POLICY_UNSPECIFIED(0), + /** + * + * + *
+   * Indicates that the pipeline should continue to run until all possible
+   * tasks have been scheduled and completed.
+   * 
+ * + * PIPELINE_FAILURE_POLICY_FAIL_SLOW = 1; + */ + PIPELINE_FAILURE_POLICY_FAIL_SLOW(1), + /** + * + * + *
+   * Indicates that the pipeline should stop scheduling new tasks after a task
+   * has failed.
+   * 
+ * + * PIPELINE_FAILURE_POLICY_FAIL_FAST = 2; + */ + PIPELINE_FAILURE_POLICY_FAIL_FAST(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value, and follows fail slow behavior.
+   * 
+ * + * PIPELINE_FAILURE_POLICY_UNSPECIFIED = 0; + */ + public static final int PIPELINE_FAILURE_POLICY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Indicates that the pipeline should continue to run until all possible
+   * tasks have been scheduled and completed.
+   * 
+ * + * PIPELINE_FAILURE_POLICY_FAIL_SLOW = 1; + */ + public static final int PIPELINE_FAILURE_POLICY_FAIL_SLOW_VALUE = 1; + /** + * + * + *
+   * Indicates that the pipeline should stop scheduling new tasks after a task
+   * has failed.
+   * 
+ * + * PIPELINE_FAILURE_POLICY_FAIL_FAST = 2; + */ + public static final int PIPELINE_FAILURE_POLICY_FAIL_FAST_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PipelineFailurePolicy valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static PipelineFailurePolicy forNumber(int value) { + switch (value) { + case 0: + return PIPELINE_FAILURE_POLICY_UNSPECIFIED; + case 1: + return PIPELINE_FAILURE_POLICY_FAIL_SLOW; + case 2: + return PIPELINE_FAILURE_POLICY_FAIL_FAST; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PipelineFailurePolicy findValueByNumber(int number) { + return PipelineFailurePolicy.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PipelineFailurePolicyProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final PipelineFailurePolicy[] VALUES = values(); + + public static PipelineFailurePolicy valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private PipelineFailurePolicy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.PipelineFailurePolicy) +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineFailurePolicyProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineFailurePolicyProto.java new file mode 100644 index 000000000000..8869e7da3524 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineFailurePolicyProto.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class PipelineFailurePolicyProto { + private PipelineFailurePolicyProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n=google/cloud/aiplatform/v1beta1/pipeli" + + "ne_failure_policy.proto\022\037google.cloud.ai" + + "platform.v1beta1*\216\001\n\025PipelineFailurePoli" + + "cy\022\'\n#PIPELINE_FAILURE_POLICY_UNSPECIFIE" + + "D\020\000\022%\n!PIPELINE_FAILURE_POLICY_FAIL_SLOW" + + "\020\001\022%\n!PIPELINE_FAILURE_POLICY_FAIL_FAST\020" + + "\002B\367\001\n#com.google.cloud.aiplatform.v1beta" + + "1B\032PipelineFailurePolicyProtoP\001ZIgoogle." + + "golang.org/genproto/googleapis/cloud/aip" + + "latform/v1beta1;aiplatform\252\002\037Google.Clou" + + "d.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPl" + + "atform\\V1beta1\352\002\"Google::Cloud::AIPlatfo" + + "rm::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java index d4e565af7ede..389d21628a96 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java @@ -43,6 +43,7 @@ private PipelineJob() { state_ = 0; serviceAccount_ = ""; network_ = ""; + templateUri_ = ""; } @java.lang.Override @@ -262,6 +263,31 @@ private PipelineJob( java.lang.String s = input.readStringRequireUtf8(); network_ = s; + break; + } + case 154: + { + java.lang.String s = input.readStringRequireUtf8(); + + templateUri_ = s; + break; + } + case 162: + { + com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.Builder subBuilder = + null; + if (templateMetadata_ != null) { + subBuilder = templateMetadata_.toBuilder(); + } + templateMetadata_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(templateMetadata_); + templateMetadata_ = subBuilder.buildPartial(); + } + break; } default: @@ -529,6 +555,41 @@ com.google.protobuf.Value getParameterValuesOrDefault( * map<string, .google.protobuf.Value> parameter_values = 3; */ com.google.protobuf.Value getParameterValuesOrThrow(java.lang.String key); + + /** + * + * + *
+     * Represents the failure policy of a pipeline. Currently, the default of a
+     * pipeline is that the pipeline will continue to run until no more tasks
+     * can be executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW.
+     * However, if a pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it
+     * will stop scheduling any new tasks when a task has failed. Any scheduled
+     * tasks will continue to completion.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PipelineFailurePolicy failure_policy = 4; + * + * @return The enum numeric value on the wire for failurePolicy. + */ + int getFailurePolicyValue(); + /** + * + * + *
+     * Represents the failure policy of a pipeline. Currently, the default of a
+     * pipeline is that the pipeline will continue to run until no more tasks
+     * can be executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW.
+     * However, if a pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it
+     * will stop scheduling any new tasks when a task has failed. Any scheduled
+     * tasks will continue to completion.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PipelineFailurePolicy failure_policy = 4; + * + * @return The failurePolicy. + */ + com.google.cloud.aiplatform.v1beta1.PipelineFailurePolicy getFailurePolicy(); } /** * @@ -551,6 +612,7 @@ private RuntimeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) private RuntimeConfig() { gcsOutputDirectory_ = ""; + failurePolicy_ = 0; } @java.lang.Override @@ -625,6 +687,13 @@ private RuntimeConfig( .put(parameterValues__.getKey(), parameterValues__.getValue()); break; } + case 32: + { + int rawValue = input.readEnum(); + + failurePolicy_ = rawValue; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -1001,6 +1070,54 @@ public com.google.protobuf.Value getParameterValuesOrThrow(java.lang.String key) return map.get(key); } + public static final int FAILURE_POLICY_FIELD_NUMBER = 4; + private int failurePolicy_; + /** + * + * + *
+     * Represents the failure policy of a pipeline. Currently, the default of a
+     * pipeline is that the pipeline will continue to run until no more tasks
+     * can be executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW.
+     * However, if a pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it
+     * will stop scheduling any new tasks when a task has failed. Any scheduled
+     * tasks will continue to completion.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PipelineFailurePolicy failure_policy = 4; + * + * @return The enum numeric value on the wire for failurePolicy. + */ + @java.lang.Override + public int getFailurePolicyValue() { + return failurePolicy_; + } + /** + * + * + *
+     * Represents the failure policy of a pipeline. Currently, the default of a
+     * pipeline is that the pipeline will continue to run until no more tasks
+     * can be executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW.
+     * However, if a pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it
+     * will stop scheduling any new tasks when a task has failed. Any scheduled
+     * tasks will continue to completion.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.PipelineFailurePolicy failure_policy = 4; + * + * @return The failurePolicy. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineFailurePolicy getFailurePolicy() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.PipelineFailurePolicy result = + com.google.cloud.aiplatform.v1beta1.PipelineFailurePolicy.valueOf(failurePolicy_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.PipelineFailurePolicy.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1022,6 +1139,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetParameterValues(), ParameterValuesDefaultEntryHolder.defaultEntry, 3); + if (failurePolicy_ + != com.google.cloud.aiplatform.v1beta1.PipelineFailurePolicy + .PIPELINE_FAILURE_POLICY_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, failurePolicy_); + } unknownFields.writeTo(output); } @@ -1056,6 +1179,12 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, parameterValues__); } + if (failurePolicy_ + != com.google.cloud.aiplatform.v1beta1.PipelineFailurePolicy + .PIPELINE_FAILURE_POLICY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, failurePolicy_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1075,6 +1204,7 @@ public boolean equals(final java.lang.Object obj) { if (!internalGetParameters().equals(other.internalGetParameters())) return false; if (!getGcsOutputDirectory().equals(other.getGcsOutputDirectory())) return false; if (!internalGetParameterValues().equals(other.internalGetParameterValues())) return false; + if (failurePolicy_ != other.failurePolicy_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1096,6 +1226,8 @@ public int hashCode() { hash = (37 * hash) + PARAMETER_VALUES_FIELD_NUMBER; hash = (53 * hash) + internalGetParameterValues().hashCode(); } + hash = (37 * hash) + FAILURE_POLICY_FIELD_NUMBER; + hash = (53 * hash) + failurePolicy_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1272,6 +1404,8 @@ public Builder clear() { gcsOutputDirectory_ = ""; internalGetMutableParameterValues().clear(); + failurePolicy_ = 0; + return this; } @@ -1306,6 +1440,7 @@ public com.google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig buildPartia result.gcsOutputDirectory_ = gcsOutputDirectory_; result.parameterValues_ = internalGetParameterValues(); result.parameterValues_.makeImmutable(); + result.failurePolicy_ = failurePolicy_; onBuilt(); return result; } @@ -1366,6 +1501,9 @@ public Builder mergeFrom( onChanged(); } internalGetMutableParameterValues().mergeFrom(other.internalGetParameterValues()); + if (other.failurePolicy_ != 0) { + setFailurePolicyValue(other.getFailurePolicyValue()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1960,6 +2098,125 @@ public Builder putAllParameterValues( return this; } + private int failurePolicy_ = 0; + /** + * + * + *
+       * Represents the failure policy of a pipeline. Currently, the default of a
+       * pipeline is that the pipeline will continue to run until no more tasks
+       * can be executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW.
+       * However, if a pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it
+       * will stop scheduling any new tasks when a task has failed. Any scheduled
+       * tasks will continue to completion.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.PipelineFailurePolicy failure_policy = 4; + * + * @return The enum numeric value on the wire for failurePolicy. + */ + @java.lang.Override + public int getFailurePolicyValue() { + return failurePolicy_; + } + /** + * + * + *
+       * Represents the failure policy of a pipeline. Currently, the default of a
+       * pipeline is that the pipeline will continue to run until no more tasks
+       * can be executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW.
+       * However, if a pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it
+       * will stop scheduling any new tasks when a task has failed. Any scheduled
+       * tasks will continue to completion.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.PipelineFailurePolicy failure_policy = 4; + * + * @param value The enum numeric value on the wire for failurePolicy to set. + * @return This builder for chaining. + */ + public Builder setFailurePolicyValue(int value) { + + failurePolicy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Represents the failure policy of a pipeline. Currently, the default of a
+       * pipeline is that the pipeline will continue to run until no more tasks
+       * can be executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW.
+       * However, if a pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it
+       * will stop scheduling any new tasks when a task has failed. Any scheduled
+       * tasks will continue to completion.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.PipelineFailurePolicy failure_policy = 4; + * + * @return The failurePolicy. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineFailurePolicy getFailurePolicy() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.PipelineFailurePolicy result = + com.google.cloud.aiplatform.v1beta1.PipelineFailurePolicy.valueOf(failurePolicy_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.PipelineFailurePolicy.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Represents the failure policy of a pipeline. Currently, the default of a
+       * pipeline is that the pipeline will continue to run until no more tasks
+       * can be executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW.
+       * However, if a pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it
+       * will stop scheduling any new tasks when a task has failed. Any scheduled
+       * tasks will continue to completion.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.PipelineFailurePolicy failure_policy = 4; + * + * @param value The failurePolicy to set. + * @return This builder for chaining. + */ + public Builder setFailurePolicy( + com.google.cloud.aiplatform.v1beta1.PipelineFailurePolicy value) { + if (value == null) { + throw new NullPointerException(); + } + + failurePolicy_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Represents the failure policy of a pipeline. Currently, the default of a
+       * pipeline is that the pipeline will continue to run until no more tasks
+       * can be executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW.
+       * However, if a pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it
+       * will stop scheduling any new tasks when a task has failed. Any scheduled
+       * tasks will continue to completion.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.PipelineFailurePolicy failure_policy = 4; + * + * @return This builder for chaining. + */ + public Builder clearFailurePolicy() { + + failurePolicy_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2850,6 +3107,115 @@ public com.google.protobuf.ByteString getNetworkBytes() { } } + public static final int TEMPLATE_URI_FIELD_NUMBER = 19; + private volatile java.lang.Object templateUri_; + /** + * + * + *
+   * A template uri from where the [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec], if empty, will
+   * be downloaded.
+   * 
+ * + * string template_uri = 19; + * + * @return The templateUri. + */ + @java.lang.Override + public java.lang.String getTemplateUri() { + java.lang.Object ref = templateUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + templateUri_ = s; + return s; + } + } + /** + * + * + *
+   * A template uri from where the [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec], if empty, will
+   * be downloaded.
+   * 
+ * + * string template_uri = 19; + * + * @return The bytes for templateUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTemplateUriBytes() { + java.lang.Object ref = templateUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + templateUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEMPLATE_METADATA_FIELD_NUMBER = 20; + private com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata templateMetadata_; + /** + * + * + *
+   * Output only. Pipeline template metadata. Will fill up fields if
+   * [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is from supported template registry.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata template_metadata = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the templateMetadata field is set. + */ + @java.lang.Override + public boolean hasTemplateMetadata() { + return templateMetadata_ != null; + } + /** + * + * + *
+   * Output only. Pipeline template metadata. Will fill up fields if
+   * [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is from supported template registry.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata template_metadata = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The templateMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata getTemplateMetadata() { + return templateMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.getDefaultInstance() + : templateMetadata_; + } + /** + * + * + *
+   * Output only. Pipeline template metadata. Will fill up fields if
+   * [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is from supported template registry.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata template_metadata = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadataOrBuilder + getTemplateMetadataOrBuilder() { + return getTemplateMetadata(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2910,6 +3276,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 18, network_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(templateUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, templateUri_); + } + if (templateMetadata_ != null) { + output.writeMessage(20, getTemplateMetadata()); + } unknownFields.writeTo(output); } @@ -2973,6 +3345,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, network_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(templateUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, templateUri_); + } + if (templateMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getTemplateMetadata()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -3031,6 +3409,11 @@ public boolean equals(final java.lang.Object obj) { } if (!getServiceAccount().equals(other.getServiceAccount())) return false; if (!getNetwork().equals(other.getNetwork())) return false; + if (!getTemplateUri().equals(other.getTemplateUri())) return false; + if (hasTemplateMetadata() != other.hasTemplateMetadata()) return false; + if (hasTemplateMetadata()) { + if (!getTemplateMetadata().equals(other.getTemplateMetadata())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3092,6 +3475,12 @@ public int hashCode() { hash = (53 * hash) + getServiceAccount().hashCode(); hash = (37 * hash) + NETWORK_FIELD_NUMBER; hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + TEMPLATE_URI_FIELD_NUMBER; + hash = (53 * hash) + getTemplateUri().hashCode(); + if (hasTemplateMetadata()) { + hash = (37 * hash) + TEMPLATE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getTemplateMetadata().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -3322,6 +3711,14 @@ public Builder clear() { network_ = ""; + templateUri_ = ""; + + if (templateMetadataBuilder_ == null) { + templateMetadata_ = null; + } else { + templateMetadata_ = null; + templateMetadataBuilder_ = null; + } return this; } @@ -3402,6 +3799,12 @@ public com.google.cloud.aiplatform.v1beta1.PipelineJob buildPartial() { } result.serviceAccount_ = serviceAccount_; result.network_ = network_; + result.templateUri_ = templateUri_; + if (templateMetadataBuilder_ == null) { + result.templateMetadata_ = templateMetadata_; + } else { + result.templateMetadata_ = templateMetadataBuilder_.build(); + } onBuilt(); return result; } @@ -3499,6 +3902,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PipelineJob other) network_ = other.network_; onChanged(); } + if (!other.getTemplateUri().isEmpty()) { + templateUri_ = other.templateUri_; + onChanged(); + } + if (other.hasTemplateMetadata()) { + mergeTemplateMetadata(other.getTemplateMetadata()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -6077,6 +6487,335 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object templateUri_ = ""; + /** + * + * + *
+     * A template uri from where the [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec], if empty, will
+     * be downloaded.
+     * 
+ * + * string template_uri = 19; + * + * @return The templateUri. + */ + public java.lang.String getTemplateUri() { + java.lang.Object ref = templateUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + templateUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A template uri from where the [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec], if empty, will
+     * be downloaded.
+     * 
+ * + * string template_uri = 19; + * + * @return The bytes for templateUri. + */ + public com.google.protobuf.ByteString getTemplateUriBytes() { + java.lang.Object ref = templateUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + templateUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A template uri from where the [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec], if empty, will
+     * be downloaded.
+     * 
+ * + * string template_uri = 19; + * + * @param value The templateUri to set. + * @return This builder for chaining. + */ + public Builder setTemplateUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + templateUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A template uri from where the [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec], if empty, will
+     * be downloaded.
+     * 
+ * + * string template_uri = 19; + * + * @return This builder for chaining. + */ + public Builder clearTemplateUri() { + + templateUri_ = getDefaultInstance().getTemplateUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * A template uri from where the [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec], if empty, will
+     * be downloaded.
+     * 
+ * + * string template_uri = 19; + * + * @param value The bytes for templateUri to set. + * @return This builder for chaining. + */ + public Builder setTemplateUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + templateUri_ = value; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata templateMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata, + com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadataOrBuilder> + templateMetadataBuilder_; + /** + * + * + *
+     * Output only. Pipeline template metadata. Will fill up fields if
+     * [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is from supported template registry.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata template_metadata = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the templateMetadata field is set. + */ + public boolean hasTemplateMetadata() { + return templateMetadataBuilder_ != null || templateMetadata_ != null; + } + /** + * + * + *
+     * Output only. Pipeline template metadata. Will fill up fields if
+     * [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is from supported template registry.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata template_metadata = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The templateMetadata. + */ + public com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata getTemplateMetadata() { + if (templateMetadataBuilder_ == null) { + return templateMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.getDefaultInstance() + : templateMetadata_; + } else { + return templateMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Pipeline template metadata. Will fill up fields if
+     * [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is from supported template registry.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata template_metadata = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTemplateMetadata( + com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata value) { + if (templateMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + templateMetadata_ = value; + onChanged(); + } else { + templateMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Pipeline template metadata. Will fill up fields if
+     * [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is from supported template registry.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata template_metadata = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTemplateMetadata( + com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.Builder builderForValue) { + if (templateMetadataBuilder_ == null) { + templateMetadata_ = builderForValue.build(); + onChanged(); + } else { + templateMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Pipeline template metadata. Will fill up fields if
+     * [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is from supported template registry.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata template_metadata = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeTemplateMetadata( + com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata value) { + if (templateMetadataBuilder_ == null) { + if (templateMetadata_ != null) { + templateMetadata_ = + com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.newBuilder( + templateMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + templateMetadata_ = value; + } + onChanged(); + } else { + templateMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Pipeline template metadata. Will fill up fields if
+     * [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is from supported template registry.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata template_metadata = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTemplateMetadata() { + if (templateMetadataBuilder_ == null) { + templateMetadata_ = null; + onChanged(); + } else { + templateMetadata_ = null; + templateMetadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Pipeline template metadata. Will fill up fields if
+     * [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is from supported template registry.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata template_metadata = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.Builder + getTemplateMetadataBuilder() { + + onChanged(); + return getTemplateMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Pipeline template metadata. Will fill up fields if
+     * [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is from supported template registry.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata template_metadata = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadataOrBuilder + getTemplateMetadataOrBuilder() { + if (templateMetadataBuilder_ != null) { + return templateMetadataBuilder_.getMessageOrBuilder(); + } else { + return templateMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.getDefaultInstance() + : templateMetadata_; + } + } + /** + * + * + *
+     * Output only. Pipeline template metadata. Will fill up fields if
+     * [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is from supported template registry.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata template_metadata = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata, + com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadataOrBuilder> + getTemplateMetadataFieldBuilder() { + if (templateMetadataBuilder_ == null) { + templateMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata, + com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadataOrBuilder>( + getTemplateMetadata(), getParentForChildren(), isClean()); + templateMetadata_ = null; + } + return templateMetadataBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobName.java index d8653925a419..49520b1aec39 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java index 5f9d5983f521..1427eeb515a7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java @@ -610,4 +610,76 @@ java.lang.String getLabelsOrDefault( * @return The bytes for network. */ com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
+   * A template uri from where the [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec], if empty, will
+   * be downloaded.
+   * 
+ * + * string template_uri = 19; + * + * @return The templateUri. + */ + java.lang.String getTemplateUri(); + /** + * + * + *
+   * A template uri from where the [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec], if empty, will
+   * be downloaded.
+   * 
+ * + * string template_uri = 19; + * + * @return The bytes for templateUri. + */ + com.google.protobuf.ByteString getTemplateUriBytes(); + + /** + * + * + *
+   * Output only. Pipeline template metadata. Will fill up fields if
+   * [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is from supported template registry.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata template_metadata = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the templateMetadata field is set. + */ + boolean hasTemplateMetadata(); + /** + * + * + *
+   * Output only. Pipeline template metadata. Will fill up fields if
+   * [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is from supported template registry.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata template_metadata = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The templateMetadata. + */ + com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata getTemplateMetadata(); + /** + * + * + *
+   * Output only. Pipeline template metadata. Will fill up fields if
+   * [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is from supported template registry.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata template_metadata = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadataOrBuilder + getTemplateMetadataOrBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskExecutorDetail.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskExecutorDetail.java index 1abed2e8d45f..11d2165c39a0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskExecutorDetail.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskExecutorDetail.java @@ -1943,7 +1943,7 @@ public boolean hasContainerDetail() { *
* * @deprecated google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.custom_job_detail is - * deprecated. See google/cloud/aiplatform/v1beta1/pipeline_job.proto;l=313 + * deprecated. See google/cloud/aiplatform/v1beta1/pipeline_job.proto;l=343 * @return Whether the customJobDetail field is set. */ @java.lang.Override @@ -1963,7 +1963,7 @@ public boolean hasCustomJobDetail() { *
* * @deprecated google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.custom_job_detail is - * deprecated. See google/cloud/aiplatform/v1beta1/pipeline_job.proto;l=313 + * deprecated. See google/cloud/aiplatform/v1beta1/pipeline_job.proto;l=343 * @return The customJobDetail. */ @java.lang.Override @@ -2668,7 +2668,7 @@ public Builder clearContainerDetail() { *
* * @deprecated google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.custom_job_detail is - * deprecated. See google/cloud/aiplatform/v1beta1/pipeline_job.proto;l=313 + * deprecated. See google/cloud/aiplatform/v1beta1/pipeline_job.proto;l=343 * @return Whether the customJobDetail field is set. */ @java.lang.Override @@ -2688,7 +2688,7 @@ public boolean hasCustomJobDetail() { *
* * @deprecated google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.custom_job_detail is - * deprecated. See google/cloud/aiplatform/v1beta1/pipeline_job.proto;l=313 + * deprecated. See google/cloud/aiplatform/v1beta1/pipeline_job.proto;l=343 * @return The customJobDetail. */ @java.lang.Override diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskExecutorDetailOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskExecutorDetailOrBuilder.java index 94d0c9c030b1..8762aae79391 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskExecutorDetailOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTaskExecutorDetailOrBuilder.java @@ -78,7 +78,7 @@ public interface PipelineTaskExecutorDetailOrBuilder *
* * @deprecated google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.custom_job_detail is - * deprecated. See google/cloud/aiplatform/v1beta1/pipeline_job.proto;l=313 + * deprecated. See google/cloud/aiplatform/v1beta1/pipeline_job.proto;l=343 * @return Whether the customJobDetail field is set. */ @java.lang.Deprecated @@ -95,7 +95,7 @@ public interface PipelineTaskExecutorDetailOrBuilder *
* * @deprecated google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.custom_job_detail is - * deprecated. See google/cloud/aiplatform/v1beta1/pipeline_job.proto;l=313 + * deprecated. See google/cloud/aiplatform/v1beta1/pipeline_job.proto;l=343 * @return The customJobDetail. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTemplateMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTemplateMetadata.java new file mode 100644 index 000000000000..48efa3cb4479 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTemplateMetadata.java @@ -0,0 +1,667 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/pipeline_job.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Pipeline template metadata if [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is from supported
+ * template registry. Currently, the only supported registry is Artifact
+ * Registry.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata} + */ +public final class PipelineTemplateMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata) + PipelineTemplateMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use PipelineTemplateMetadata.newBuilder() to construct. + private PipelineTemplateMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PipelineTemplateMetadata() { + version_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PipelineTemplateMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PipelineTemplateMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineTemplateMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineTemplateMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.class, + com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.Builder.class); + } + + public static final int VERSION_FIELD_NUMBER = 3; + private volatile java.lang.Object version_; + /** + * + * + *
+   * The version_name in artifact registry.
+   * Will always be presented in output if the [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is
+   * from supported template registry.
+   * Format is "sha256:abcdef123456...".
+   * 
+ * + * string version = 3; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + * + * + *
+   * The version_name in artifact registry.
+   * Will always be presented in output if the [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is
+   * from supported template registry.
+   * Format is "sha256:abcdef123456...".
+   * 
+ * + * string version = 3; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, version_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, version_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata other = + (com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata) obj; + + if (!getVersion().equals(other.getVersion())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Pipeline template metadata if [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is from supported
+   * template registry. Currently, the only supported registry is Artifact
+   * Registry.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata) + com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineTemplateMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineTemplateMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.class, + com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + version_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.Pipeline + .internal_static_google_cloud_aiplatform_v1beta1_PipelineTemplateMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata build() { + com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata buildPartial() { + com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata result = + new com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata(this); + result.version_ = version_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata.getDefaultInstance()) + return this; + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object version_ = ""; + /** + * + * + *
+     * The version_name in artifact registry.
+     * Will always be presented in output if the [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is
+     * from supported template registry.
+     * Format is "sha256:abcdef123456...".
+     * 
+ * + * string version = 3; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The version_name in artifact registry.
+     * Will always be presented in output if the [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is
+     * from supported template registry.
+     * Format is "sha256:abcdef123456...".
+     * 
+ * + * string version = 3; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The version_name in artifact registry.
+     * Will always be presented in output if the [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is
+     * from supported template registry.
+     * Format is "sha256:abcdef123456...".
+     * 
+ * + * string version = 3; + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The version_name in artifact registry.
+     * Will always be presented in output if the [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is
+     * from supported template registry.
+     * Format is "sha256:abcdef123456...".
+     * 
+ * + * string version = 3; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * The version_name in artifact registry.
+     * Will always be presented in output if the [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is
+     * from supported template registry.
+     * Format is "sha256:abcdef123456...".
+     * 
+ * + * string version = 3; + * + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata) + private static final com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PipelineTemplateMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PipelineTemplateMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTemplateMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTemplateMetadataOrBuilder.java new file mode 100644 index 000000000000..0e8ba273e0f5 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineTemplateMetadataOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/pipeline_job.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface PipelineTemplateMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The version_name in artifact registry.
+   * Will always be presented in output if the [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is
+   * from supported template registry.
+   * Format is "sha256:abcdef123456...".
+   * 
+ * + * string version = 3; + * + * @return The version. + */ + java.lang.String getVersion(); + /** + * + * + *
+   * The version_name in artifact registry.
+   * Will always be presented in output if the [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is
+   * from supported template registry.
+   * Format is "sha256:abcdef123456...".
+   * 
+ * + * string version = 3; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Presets.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Presets.java new file mode 100644 index 000000000000..8061c725bf78 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Presets.java @@ -0,0 +1,1126 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/explanation.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Preset configuration for example-based explanations
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Presets} + */ +public final class Presets extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.Presets) + PresetsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Presets.newBuilder() to construct. + private Presets(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Presets() { + query_ = 0; + modality_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Presets(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Presets( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + bitField0_ |= 0x00000001; + query_ = rawValue; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + modality_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1beta1_Presets_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1beta1_Presets_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Presets.class, + com.google.cloud.aiplatform.v1beta1.Presets.Builder.class); + } + + /** + * + * + *
+   * Preset option controlling parameters for query speed-precision trade-off
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.Presets.Query} + */ + public enum Query implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * More precise neighbors as a trade-off against slower response.
+     * This is also the default value (field-number 0).
+     * 
+ * + * PRECISE = 0; + */ + PRECISE(0), + /** + * + * + *
+     * Faster response as a trade-off against less precise neighbors.
+     * 
+ * + * FAST = 1; + */ + FAST(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * More precise neighbors as a trade-off against slower response.
+     * This is also the default value (field-number 0).
+     * 
+ * + * PRECISE = 0; + */ + public static final int PRECISE_VALUE = 0; + /** + * + * + *
+     * Faster response as a trade-off against less precise neighbors.
+     * 
+ * + * FAST = 1; + */ + public static final int FAST_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Query valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Query forNumber(int value) { + switch (value) { + case 0: + return PRECISE; + case 1: + return FAST; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Query findValueByNumber(int number) { + return Query.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.Presets.getDescriptor().getEnumTypes().get(0); + } + + private static final Query[] VALUES = values(); + + public static Query valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Query(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.Presets.Query) + } + + /** + * + * + *
+   * Preset option controlling parameters for different modalities
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.Presets.Modality} + */ + public enum Modality implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Should not be set. Added as a recommended best practice for enums
+     * 
+ * + * MODALITY_UNSPECIFIED = 0; + */ + MODALITY_UNSPECIFIED(0), + /** + * + * + *
+     * IMAGE modality
+     * 
+ * + * IMAGE = 1; + */ + IMAGE(1), + /** + * + * + *
+     * TEXT modality
+     * 
+ * + * TEXT = 2; + */ + TEXT(2), + /** + * + * + *
+     * TABULAR modality
+     * 
+ * + * TABULAR = 3; + */ + TABULAR(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Should not be set. Added as a recommended best practice for enums
+     * 
+ * + * MODALITY_UNSPECIFIED = 0; + */ + public static final int MODALITY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * IMAGE modality
+     * 
+ * + * IMAGE = 1; + */ + public static final int IMAGE_VALUE = 1; + /** + * + * + *
+     * TEXT modality
+     * 
+ * + * TEXT = 2; + */ + public static final int TEXT_VALUE = 2; + /** + * + * + *
+     * TABULAR modality
+     * 
+ * + * TABULAR = 3; + */ + public static final int TABULAR_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Modality valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Modality forNumber(int value) { + switch (value) { + case 0: + return MODALITY_UNSPECIFIED; + case 1: + return IMAGE; + case 2: + return TEXT; + case 3: + return TABULAR; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Modality findValueByNumber(int number) { + return Modality.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.Presets.getDescriptor().getEnumTypes().get(1); + } + + private static final Modality[] VALUES = values(); + + public static Modality valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Modality(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.Presets.Modality) + } + + private int bitField0_; + public static final int QUERY_FIELD_NUMBER = 1; + private int query_; + /** + * + * + *
+   * Preset option controlling parameters for query speed-precision trade-off
+   * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Presets.Query query = 1; + * + * @return Whether the query field is set. + */ + @java.lang.Override + public boolean hasQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Preset option controlling parameters for query speed-precision trade-off
+   * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Presets.Query query = 1; + * + * @return The enum numeric value on the wire for query. + */ + @java.lang.Override + public int getQueryValue() { + return query_; + } + /** + * + * + *
+   * Preset option controlling parameters for query speed-precision trade-off
+   * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Presets.Query query = 1; + * + * @return The query. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Presets.Query getQuery() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.Presets.Query result = + com.google.cloud.aiplatform.v1beta1.Presets.Query.valueOf(query_); + return result == null ? com.google.cloud.aiplatform.v1beta1.Presets.Query.UNRECOGNIZED : result; + } + + public static final int MODALITY_FIELD_NUMBER = 2; + private int modality_; + /** + * + * + *
+   * Preset option controlling parameters for different modalities
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Presets.Modality modality = 2; + * + * @return The enum numeric value on the wire for modality. + */ + @java.lang.Override + public int getModalityValue() { + return modality_; + } + /** + * + * + *
+   * Preset option controlling parameters for different modalities
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Presets.Modality modality = 2; + * + * @return The modality. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Presets.Modality getModality() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.Presets.Modality result = + com.google.cloud.aiplatform.v1beta1.Presets.Modality.valueOf(modality_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.Presets.Modality.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, query_); + } + if (modality_ + != com.google.cloud.aiplatform.v1beta1.Presets.Modality.MODALITY_UNSPECIFIED.getNumber()) { + output.writeEnum(2, modality_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, query_); + } + if (modality_ + != com.google.cloud.aiplatform.v1beta1.Presets.Modality.MODALITY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, modality_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.Presets)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.Presets other = + (com.google.cloud.aiplatform.v1beta1.Presets) obj; + + if (hasQuery() != other.hasQuery()) return false; + if (hasQuery()) { + if (query_ != other.query_) return false; + } + if (modality_ != other.modality_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasQuery()) { + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + query_; + } + hash = (37 * hash) + MODALITY_FIELD_NUMBER; + hash = (53 * hash) + modality_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.Presets parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Presets parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Presets parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Presets parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Presets parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Presets parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Presets parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Presets parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Presets parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Presets parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Presets parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Presets parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.Presets prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Preset configuration for example-based explanations
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Presets} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Presets) + com.google.cloud.aiplatform.v1beta1.PresetsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1beta1_Presets_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1beta1_Presets_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Presets.class, + com.google.cloud.aiplatform.v1beta1.Presets.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.Presets.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + query_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + modality_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ExplanationProto + .internal_static_google_cloud_aiplatform_v1beta1_Presets_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Presets getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.Presets.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Presets build() { + com.google.cloud.aiplatform.v1beta1.Presets result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Presets buildPartial() { + com.google.cloud.aiplatform.v1beta1.Presets result = + new com.google.cloud.aiplatform.v1beta1.Presets(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + to_bitField0_ |= 0x00000001; + } + result.query_ = query_; + result.modality_ = modality_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.Presets) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.Presets) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Presets other) { + if (other == com.google.cloud.aiplatform.v1beta1.Presets.getDefaultInstance()) return this; + if (other.hasQuery()) { + setQuery(other.getQuery()); + } + if (other.modality_ != 0) { + setModalityValue(other.getModalityValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.Presets parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1beta1.Presets) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int query_ = 0; + /** + * + * + *
+     * Preset option controlling parameters for query speed-precision trade-off
+     * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Presets.Query query = 1; + * + * @return Whether the query field is set. + */ + @java.lang.Override + public boolean hasQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Preset option controlling parameters for query speed-precision trade-off
+     * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Presets.Query query = 1; + * + * @return The enum numeric value on the wire for query. + */ + @java.lang.Override + public int getQueryValue() { + return query_; + } + /** + * + * + *
+     * Preset option controlling parameters for query speed-precision trade-off
+     * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Presets.Query query = 1; + * + * @param value The enum numeric value on the wire for query to set. + * @return This builder for chaining. + */ + public Builder setQueryValue(int value) { + bitField0_ |= 0x00000001; + query_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Preset option controlling parameters for query speed-precision trade-off
+     * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Presets.Query query = 1; + * + * @return The query. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Presets.Query getQuery() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.Presets.Query result = + com.google.cloud.aiplatform.v1beta1.Presets.Query.valueOf(query_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.Presets.Query.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Preset option controlling parameters for query speed-precision trade-off
+     * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Presets.Query query = 1; + * + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery(com.google.cloud.aiplatform.v1beta1.Presets.Query value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + query_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Preset option controlling parameters for query speed-precision trade-off
+     * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Presets.Query query = 1; + * + * @return This builder for chaining. + */ + public Builder clearQuery() { + bitField0_ = (bitField0_ & ~0x00000001); + query_ = 0; + onChanged(); + return this; + } + + private int modality_ = 0; + /** + * + * + *
+     * Preset option controlling parameters for different modalities
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Presets.Modality modality = 2; + * + * @return The enum numeric value on the wire for modality. + */ + @java.lang.Override + public int getModalityValue() { + return modality_; + } + /** + * + * + *
+     * Preset option controlling parameters for different modalities
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Presets.Modality modality = 2; + * + * @param value The enum numeric value on the wire for modality to set. + * @return This builder for chaining. + */ + public Builder setModalityValue(int value) { + + modality_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Preset option controlling parameters for different modalities
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Presets.Modality modality = 2; + * + * @return The modality. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Presets.Modality getModality() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.Presets.Modality result = + com.google.cloud.aiplatform.v1beta1.Presets.Modality.valueOf(modality_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.Presets.Modality.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Preset option controlling parameters for different modalities
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Presets.Modality modality = 2; + * + * @param value The modality to set. + * @return This builder for chaining. + */ + public Builder setModality(com.google.cloud.aiplatform.v1beta1.Presets.Modality value) { + if (value == null) { + throw new NullPointerException(); + } + + modality_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Preset option controlling parameters for different modalities
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Presets.Modality modality = 2; + * + * @return This builder for chaining. + */ + public Builder clearModality() { + + modality_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.Presets) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Presets) + private static final com.google.cloud.aiplatform.v1beta1.Presets DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Presets(); + } + + public static com.google.cloud.aiplatform.v1beta1.Presets getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Presets parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Presets(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Presets getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PresetsOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PresetsOrBuilder.java new file mode 100644 index 000000000000..ef7b385c56f2 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PresetsOrBuilder.java @@ -0,0 +1,87 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/explanation.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface PresetsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Presets) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Preset option controlling parameters for query speed-precision trade-off
+   * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Presets.Query query = 1; + * + * @return Whether the query field is set. + */ + boolean hasQuery(); + /** + * + * + *
+   * Preset option controlling parameters for query speed-precision trade-off
+   * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Presets.Query query = 1; + * + * @return The enum numeric value on the wire for query. + */ + int getQueryValue(); + /** + * + * + *
+   * Preset option controlling parameters for query speed-precision trade-off
+   * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Presets.Query query = 1; + * + * @return The query. + */ + com.google.cloud.aiplatform.v1beta1.Presets.Query getQuery(); + + /** + * + * + *
+   * Preset option controlling parameters for different modalities
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Presets.Modality modality = 2; + * + * @return The enum numeric value on the wire for modality. + */ + int getModalityValue(); + /** + * + * + *
+   * Preset option controlling parameters for different modalities
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Presets.Modality modality = 2; + * + * @return The modality. + */ + com.google.cloud.aiplatform.v1beta1.Presets.Modality getModality(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PythonPackageSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PythonPackageSpec.java index e9c8f0c5df99..1a94027f3c5f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PythonPackageSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PythonPackageSpec.java @@ -42,6 +42,7 @@ private PythonPackageSpec() { packageUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; pythonModule_ = ""; args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + env_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -108,6 +109,17 @@ private PythonPackageSpec( args_.add(s); break; } + case 42: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + env_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + env_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.EnvVar.parser(), extensionRegistry)); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -130,6 +142,9 @@ private PythonPackageSpec( if (((mutable_bitField0_ & 0x00000002) != 0)) { args_ = args_.getUnmodifiableView(); } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + env_ = java.util.Collections.unmodifiableList(env_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -388,6 +403,80 @@ public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } + public static final int ENV_FIELD_NUMBER = 5; + private java.util.List env_; + /** + * + * + *
+   * Environment variables to be passed to the python module.
+   * Maximum limit is 100.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 5; + */ + @java.lang.Override + public java.util.List getEnvList() { + return env_; + } + /** + * + * + *
+   * Environment variables to be passed to the python module.
+   * Maximum limit is 100.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 5; + */ + @java.lang.Override + public java.util.List + getEnvOrBuilderList() { + return env_; + } + /** + * + * + *
+   * Environment variables to be passed to the python module.
+   * Maximum limit is 100.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 5; + */ + @java.lang.Override + public int getEnvCount() { + return env_.size(); + } + /** + * + * + *
+   * Environment variables to be passed to the python module.
+   * Maximum limit is 100.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 5; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EnvVar getEnv(int index) { + return env_.get(index); + } + /** + * + * + *
+   * Environment variables to be passed to the python module.
+   * Maximum limit is 100.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 5; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EnvVarOrBuilder getEnvOrBuilder(int index) { + return env_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -414,6 +503,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < args_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, args_.getRaw(i)); } + for (int i = 0; i < env_.size(); i++) { + output.writeMessage(5, env_.get(i)); + } unknownFields.writeTo(output); } @@ -445,6 +537,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getArgsList().size(); } + for (int i = 0; i < env_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, env_.get(i)); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -465,6 +560,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPackageUrisList().equals(other.getPackageUrisList())) return false; if (!getPythonModule().equals(other.getPythonModule())) return false; if (!getArgsList().equals(other.getArgsList())) return false; + if (!getEnvList().equals(other.getEnvList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -488,6 +584,10 @@ public int hashCode() { hash = (37 * hash) + ARGS_FIELD_NUMBER; hash = (53 * hash) + getArgsList().hashCode(); } + if (getEnvCount() > 0) { + hash = (37 * hash) + ENV_FIELD_NUMBER; + hash = (53 * hash) + getEnvList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -628,7 +728,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEnvFieldBuilder(); + } } @java.lang.Override @@ -642,6 +744,12 @@ public Builder clear() { args_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); + if (envBuilder_ == null) { + env_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + envBuilder_.clear(); + } return this; } @@ -682,6 +790,15 @@ public com.google.cloud.aiplatform.v1beta1.PythonPackageSpec buildPartial() { bitField0_ = (bitField0_ & ~0x00000002); } result.args_ = args_; + if (envBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + env_ = java.util.Collections.unmodifiableList(env_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.env_ = env_; + } else { + result.env_ = envBuilder_.build(); + } onBuilt(); return result; } @@ -760,6 +877,33 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PythonPackageSpec o } onChanged(); } + if (envBuilder_ == null) { + if (!other.env_.isEmpty()) { + if (env_.isEmpty()) { + env_ = other.env_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureEnvIsMutable(); + env_.addAll(other.env_); + } + onChanged(); + } + } else { + if (!other.env_.isEmpty()) { + if (envBuilder_.isEmpty()) { + envBuilder_.dispose(); + envBuilder_ = null; + env_ = other.env_; + bitField0_ = (bitField0_ & ~0x00000004); + envBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEnvFieldBuilder() + : null; + } else { + envBuilder_.addAllMessages(other.env_); + } + } + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1383,6 +1527,372 @@ public Builder addArgsBytes(com.google.protobuf.ByteString value) { return this; } + private java.util.List env_ = + java.util.Collections.emptyList(); + + private void ensureEnvIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + env_ = new java.util.ArrayList(env_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EnvVar, + com.google.cloud.aiplatform.v1beta1.EnvVar.Builder, + com.google.cloud.aiplatform.v1beta1.EnvVarOrBuilder> + envBuilder_; + + /** + * + * + *
+     * Environment variables to be passed to the python module.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 5; + */ + public java.util.List getEnvList() { + if (envBuilder_ == null) { + return java.util.Collections.unmodifiableList(env_); + } else { + return envBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Environment variables to be passed to the python module.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 5; + */ + public int getEnvCount() { + if (envBuilder_ == null) { + return env_.size(); + } else { + return envBuilder_.getCount(); + } + } + /** + * + * + *
+     * Environment variables to be passed to the python module.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 5; + */ + public com.google.cloud.aiplatform.v1beta1.EnvVar getEnv(int index) { + if (envBuilder_ == null) { + return env_.get(index); + } else { + return envBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Environment variables to be passed to the python module.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 5; + */ + public Builder setEnv(int index, com.google.cloud.aiplatform.v1beta1.EnvVar value) { + if (envBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvIsMutable(); + env_.set(index, value); + onChanged(); + } else { + envBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Environment variables to be passed to the python module.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 5; + */ + public Builder setEnv( + int index, com.google.cloud.aiplatform.v1beta1.EnvVar.Builder builderForValue) { + if (envBuilder_ == null) { + ensureEnvIsMutable(); + env_.set(index, builderForValue.build()); + onChanged(); + } else { + envBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Environment variables to be passed to the python module.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 5; + */ + public Builder addEnv(com.google.cloud.aiplatform.v1beta1.EnvVar value) { + if (envBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvIsMutable(); + env_.add(value); + onChanged(); + } else { + envBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Environment variables to be passed to the python module.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 5; + */ + public Builder addEnv(int index, com.google.cloud.aiplatform.v1beta1.EnvVar value) { + if (envBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvIsMutable(); + env_.add(index, value); + onChanged(); + } else { + envBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Environment variables to be passed to the python module.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 5; + */ + public Builder addEnv(com.google.cloud.aiplatform.v1beta1.EnvVar.Builder builderForValue) { + if (envBuilder_ == null) { + ensureEnvIsMutable(); + env_.add(builderForValue.build()); + onChanged(); + } else { + envBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Environment variables to be passed to the python module.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 5; + */ + public Builder addEnv( + int index, com.google.cloud.aiplatform.v1beta1.EnvVar.Builder builderForValue) { + if (envBuilder_ == null) { + ensureEnvIsMutable(); + env_.add(index, builderForValue.build()); + onChanged(); + } else { + envBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Environment variables to be passed to the python module.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 5; + */ + public Builder addAllEnv( + java.lang.Iterable values) { + if (envBuilder_ == null) { + ensureEnvIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, env_); + onChanged(); + } else { + envBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Environment variables to be passed to the python module.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 5; + */ + public Builder clearEnv() { + if (envBuilder_ == null) { + env_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + envBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Environment variables to be passed to the python module.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 5; + */ + public Builder removeEnv(int index) { + if (envBuilder_ == null) { + ensureEnvIsMutable(); + env_.remove(index); + onChanged(); + } else { + envBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Environment variables to be passed to the python module.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 5; + */ + public com.google.cloud.aiplatform.v1beta1.EnvVar.Builder getEnvBuilder(int index) { + return getEnvFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Environment variables to be passed to the python module.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 5; + */ + public com.google.cloud.aiplatform.v1beta1.EnvVarOrBuilder getEnvOrBuilder(int index) { + if (envBuilder_ == null) { + return env_.get(index); + } else { + return envBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Environment variables to be passed to the python module.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 5; + */ + public java.util.List + getEnvOrBuilderList() { + if (envBuilder_ != null) { + return envBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(env_); + } + } + /** + * + * + *
+     * Environment variables to be passed to the python module.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 5; + */ + public com.google.cloud.aiplatform.v1beta1.EnvVar.Builder addEnvBuilder() { + return getEnvFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.EnvVar.getDefaultInstance()); + } + /** + * + * + *
+     * Environment variables to be passed to the python module.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 5; + */ + public com.google.cloud.aiplatform.v1beta1.EnvVar.Builder addEnvBuilder(int index) { + return getEnvFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.EnvVar.getDefaultInstance()); + } + /** + * + * + *
+     * Environment variables to be passed to the python module.
+     * Maximum limit is 100.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 5; + */ + public java.util.List getEnvBuilderList() { + return getEnvFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EnvVar, + com.google.cloud.aiplatform.v1beta1.EnvVar.Builder, + com.google.cloud.aiplatform.v1beta1.EnvVarOrBuilder> + getEnvFieldBuilder() { + if (envBuilder_ == null) { + envBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EnvVar, + com.google.cloud.aiplatform.v1beta1.EnvVar.Builder, + com.google.cloud.aiplatform.v1beta1.EnvVarOrBuilder>( + env_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + env_ = null; + } + return envBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PythonPackageSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PythonPackageSpecOrBuilder.java index ed5025ca43a3..d89b44800ecc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PythonPackageSpecOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PythonPackageSpecOrBuilder.java @@ -192,4 +192,61 @@ public interface PythonPackageSpecOrBuilder * @return The bytes of the args at the given index. */ com.google.protobuf.ByteString getArgsBytes(int index); + + /** + * + * + *
+   * Environment variables to be passed to the python module.
+   * Maximum limit is 100.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 5; + */ + java.util.List getEnvList(); + /** + * + * + *
+   * Environment variables to be passed to the python module.
+   * Maximum limit is 100.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 5; + */ + com.google.cloud.aiplatform.v1beta1.EnvVar getEnv(int index); + /** + * + * + *
+   * Environment variables to be passed to the python module.
+   * Maximum limit is 100.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 5; + */ + int getEnvCount(); + /** + * + * + *
+   * Environment variables to be passed to the python module.
+   * Maximum limit is 100.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 5; + */ + java.util.List + getEnvOrBuilderList(); + /** + * + * + *
+   * Environment variables to be passed to the python module.
+   * Maximum limit is 100.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 5; + */ + com.google.cloud.aiplatform.v1beta1.EnvVarOrBuilder getEnvOrBuilder(int index); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolName.java index 6e9d5797ac33..4d76f522574f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudyName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudyName.java index f1eb875e73a1..2bdeea25d2d8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudyName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudyName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperimentName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperimentName.java index bbf6936f3cd4..505237ad3524 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperimentName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperimentName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardName.java index 8f7e605f65d7..3fd151be2a85 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRunName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRunName.java index f3230ef44eb1..3b2b6bcfcfa7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRunName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRunName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeriesName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeriesName.java index 680f7a47aad5..0e4e5975c553 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeriesName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeriesName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineName.java index 98e90987f9aa..896d04300e72 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrialName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrialName.java index c93940f2fad3..ba9af782fab0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrialName.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrialName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetOperationMetadata.java new file mode 100644 index 000000000000..5a511ba0fd38 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetOperationMetadata.java @@ -0,0 +1,775 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Runtime operation information for
+ * [ModelService.UpdateExplanationDataset][google.cloud.aiplatform.v1beta1.ModelService.UpdateExplanationDataset].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata} + */ +public final class UpdateExplanationDatasetOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata) + UpdateExplanationDatasetOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateExplanationDatasetOperationMetadata.newBuilder() to construct. + private UpdateExplanationDatasetOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateExplanationDatasetOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateExplanationDatasetOperationMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateExplanationDatasetOperationMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder subBuilder = + null; + if (genericMetadata_ != null) { + subBuilder = genericMetadata_.toBuilder(); + } + genericMetadata_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(genericMetadata_); + genericMetadata_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata.Builder + .class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return genericMetadata_ != null; + } + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return getGenericMetadata(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (genericMetadata_ != null) { + output.writeMessage(1, getGenericMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (genericMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGenericMetadata()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata) obj; + + if (hasGenericMetadata() != other.hasGenericMetadata()) return false; + if (hasGenericMetadata()) { + if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGenericMetadata()) { + hash = (37 * hash) + GENERIC_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getGenericMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Runtime operation information for
+   * [ModelService.UpdateExplanationDataset][google.cloud.aiplatform.v1beta1.ModelService.UpdateExplanationDataset].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata) + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (genericMetadataBuilder_ == null) { + genericMetadata_ = null; + } else { + genericMetadata_ = null; + genericMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + buildPartial() { + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata(this); + if (genericMetadataBuilder_ == null) { + result.genericMetadata_ = genericMetadata_; + } else { + result.genericMetadata_ = genericMetadataBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + .getDefaultInstance()) return this; + if (other.hasGenericMetadata()) { + mergeGenericMetadata(other.getGenericMetadata()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return genericMetadataBuilder_ != null || genericMetadata_ != null; + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + if (genericMetadataBuilder_ == null) { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } else { + return genericMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + genericMetadata_ = value; + onChanged(); + } else { + genericMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = builderForValue.build(); + onChanged(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (genericMetadata_ != null) { + genericMetadata_ = + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( + genericMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + genericMetadata_ = value; + } + onChanged(); + } else { + genericMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = null; + onChanged(); + } else { + genericMetadata_ = null; + genericMetadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + if (genericMetadataBuilder_ != null) { + return genericMetadataBuilder_.getMessageOrBuilder(); + } else { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + getGenericMetadataFieldBuilder() { + if (genericMetadataBuilder_ == null) { + genericMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder>( + getGenericMetadata(), getParentForChildren(), isClean()); + genericMetadata_ = null; + } + return genericMetadataBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateExplanationDatasetOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateExplanationDatasetOperationMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..0218d2058994 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetOperationMetadataOrBuilder.java @@ -0,0 +1,61 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface UpdateExplanationDatasetOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetRequest.java new file mode 100644 index 000000000000..4ff604bf4d03 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetRequest.java @@ -0,0 +1,952 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [ModelService.UpdateExplanationDataset][google.cloud.aiplatform.v1beta1.ModelService.UpdateExplanationDataset].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest} + */ +public final class UpdateExplanationDatasetRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest) + UpdateExplanationDatasetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateExplanationDatasetRequest.newBuilder() to construct. + private UpdateExplanationDatasetRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateExplanationDatasetRequest() { + model_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateExplanationDatasetRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateExplanationDatasetRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + model_ = s; + break; + } + case 18: + { + com.google.cloud.aiplatform.v1beta1.Examples.Builder subBuilder = null; + if (examples_ != null) { + subBuilder = examples_.toBuilder(); + } + examples_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Examples.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(examples_); + examples_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest.Builder.class); + } + + public static final int MODEL_FIELD_NUMBER = 1; + private volatile java.lang.Object model_; + /** + * + * + *
+   * Required. The resource name of the Model to update.
+   * Format: `projects/{project}/locations/{location}/models/{model}`
+   * 
+ * + * + * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The model. + */ + @java.lang.Override + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the Model to update.
+   * Format: `projects/{project}/locations/{location}/models/{model}`
+   * 
+ * + * + * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for model. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXAMPLES_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.Examples examples_; + /** + * + * + *
+   * The example config containing the location of the dataset.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Examples examples = 2; + * + * @return Whether the examples field is set. + */ + @java.lang.Override + public boolean hasExamples() { + return examples_ != null; + } + /** + * + * + *
+   * The example config containing the location of the dataset.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Examples examples = 2; + * + * @return The examples. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Examples getExamples() { + return examples_ == null + ? com.google.cloud.aiplatform.v1beta1.Examples.getDefaultInstance() + : examples_; + } + /** + * + * + *
+   * The example config containing the location of the dataset.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Examples examples = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ExamplesOrBuilder getExamplesOrBuilder() { + return getExamples(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, model_); + } + if (examples_ != null) { + output.writeMessage(2, getExamples()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, model_); + } + if (examples_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExamples()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest other = + (com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest) obj; + + if (!getModel().equals(other.getModel())) return false; + if (hasExamples() != other.hasExamples()) return false; + if (hasExamples()) { + if (!getExamples().equals(other.getExamples())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODEL_FIELD_NUMBER; + hash = (53 * hash) + getModel().hashCode(); + if (hasExamples()) { + hash = (37 * hash) + EXAMPLES_FIELD_NUMBER; + hash = (53 * hash) + getExamples().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for
+   * [ModelService.UpdateExplanationDataset][google.cloud.aiplatform.v1beta1.ModelService.UpdateExplanationDataset].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest) + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + model_ = ""; + + if (examplesBuilder_ == null) { + examples_ = null; + } else { + examples_ = null; + examplesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest build() { + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest result = + new com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest(this); + result.model_ = model_; + if (examplesBuilder_ == null) { + result.examples_ = examples_; + } else { + result.examples_ = examplesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest + .getDefaultInstance()) return this; + if (!other.getModel().isEmpty()) { + model_ = other.model_; + onChanged(); + } + if (other.hasExamples()) { + mergeExamples(other.getExamples()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object model_ = ""; + /** + * + * + *
+     * Required. The resource name of the Model to update.
+     * Format: `projects/{project}/locations/{location}/models/{model}`
+     * 
+ * + * + * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The model. + */ + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Model to update.
+     * Format: `projects/{project}/locations/{location}/models/{model}`
+     * 
+ * + * + * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for model. + */ + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Model to update.
+     * Format: `projects/{project}/locations/{location}/models/{model}`
+     * 
+ * + * + * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The model to set. + * @return This builder for chaining. + */ + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + model_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Model to update.
+     * Format: `projects/{project}/locations/{location}/models/{model}`
+     * 
+ * + * + * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearModel() { + + model_ = getDefaultInstance().getModel(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Model to update.
+     * Format: `projects/{project}/locations/{location}/models/{model}`
+     * 
+ * + * + * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for model to set. + * @return This builder for chaining. + */ + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + model_ = value; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.Examples examples_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Examples, + com.google.cloud.aiplatform.v1beta1.Examples.Builder, + com.google.cloud.aiplatform.v1beta1.ExamplesOrBuilder> + examplesBuilder_; + /** + * + * + *
+     * The example config containing the location of the dataset.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Examples examples = 2; + * + * @return Whether the examples field is set. + */ + public boolean hasExamples() { + return examplesBuilder_ != null || examples_ != null; + } + /** + * + * + *
+     * The example config containing the location of the dataset.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Examples examples = 2; + * + * @return The examples. + */ + public com.google.cloud.aiplatform.v1beta1.Examples getExamples() { + if (examplesBuilder_ == null) { + return examples_ == null + ? com.google.cloud.aiplatform.v1beta1.Examples.getDefaultInstance() + : examples_; + } else { + return examplesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The example config containing the location of the dataset.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Examples examples = 2; + */ + public Builder setExamples(com.google.cloud.aiplatform.v1beta1.Examples value) { + if (examplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + examples_ = value; + onChanged(); + } else { + examplesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The example config containing the location of the dataset.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Examples examples = 2; + */ + public Builder setExamples( + com.google.cloud.aiplatform.v1beta1.Examples.Builder builderForValue) { + if (examplesBuilder_ == null) { + examples_ = builderForValue.build(); + onChanged(); + } else { + examplesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The example config containing the location of the dataset.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Examples examples = 2; + */ + public Builder mergeExamples(com.google.cloud.aiplatform.v1beta1.Examples value) { + if (examplesBuilder_ == null) { + if (examples_ != null) { + examples_ = + com.google.cloud.aiplatform.v1beta1.Examples.newBuilder(examples_) + .mergeFrom(value) + .buildPartial(); + } else { + examples_ = value; + } + onChanged(); + } else { + examplesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The example config containing the location of the dataset.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Examples examples = 2; + */ + public Builder clearExamples() { + if (examplesBuilder_ == null) { + examples_ = null; + onChanged(); + } else { + examples_ = null; + examplesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The example config containing the location of the dataset.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Examples examples = 2; + */ + public com.google.cloud.aiplatform.v1beta1.Examples.Builder getExamplesBuilder() { + + onChanged(); + return getExamplesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The example config containing the location of the dataset.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Examples examples = 2; + */ + public com.google.cloud.aiplatform.v1beta1.ExamplesOrBuilder getExamplesOrBuilder() { + if (examplesBuilder_ != null) { + return examplesBuilder_.getMessageOrBuilder(); + } else { + return examples_ == null + ? com.google.cloud.aiplatform.v1beta1.Examples.getDefaultInstance() + : examples_; + } + } + /** + * + * + *
+     * The example config containing the location of the dataset.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Examples examples = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Examples, + com.google.cloud.aiplatform.v1beta1.Examples.Builder, + com.google.cloud.aiplatform.v1beta1.ExamplesOrBuilder> + getExamplesFieldBuilder() { + if (examplesBuilder_ == null) { + examplesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Examples, + com.google.cloud.aiplatform.v1beta1.Examples.Builder, + com.google.cloud.aiplatform.v1beta1.ExamplesOrBuilder>( + getExamples(), getParentForChildren(), isClean()); + examples_ = null; + } + return examplesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest) + private static final com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateExplanationDatasetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateExplanationDatasetRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetRequestOrBuilder.java new file mode 100644 index 000000000000..778f93e2890f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetRequestOrBuilder.java @@ -0,0 +1,91 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface UpdateExplanationDatasetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Model to update.
+   * Format: `projects/{project}/locations/{location}/models/{model}`
+   * 
+ * + * + * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The model. + */ + java.lang.String getModel(); + /** + * + * + *
+   * Required. The resource name of the Model to update.
+   * Format: `projects/{project}/locations/{location}/models/{model}`
+   * 
+ * + * + * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for model. + */ + com.google.protobuf.ByteString getModelBytes(); + + /** + * + * + *
+   * The example config containing the location of the dataset.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Examples examples = 2; + * + * @return Whether the examples field is set. + */ + boolean hasExamples(); + /** + * + * + *
+   * The example config containing the location of the dataset.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Examples examples = 2; + * + * @return The examples. + */ + com.google.cloud.aiplatform.v1beta1.Examples getExamples(); + /** + * + * + *
+   * The example config containing the location of the dataset.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Examples examples = 2; + */ + com.google.cloud.aiplatform.v1beta1.ExamplesOrBuilder getExamplesOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetResponse.java new file mode 100644 index 000000000000..3d40cc347234 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetResponse.java @@ -0,0 +1,471 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message of [ModelService.UpdateExplanationDataset][google.cloud.aiplatform.v1beta1.ModelService.UpdateExplanationDataset] operation.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse} + */ +public final class UpdateExplanationDatasetResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse) + UpdateExplanationDatasetResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateExplanationDatasetResponse.newBuilder() to construct. + private UpdateExplanationDatasetResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateExplanationDatasetResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateExplanationDatasetResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateExplanationDatasetResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse.class, + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse other = + (com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message of [ModelService.UpdateExplanationDataset][google.cloud.aiplatform.v1beta1.ModelService.UpdateExplanationDataset] operation.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse) + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse.class, + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse build() { + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse result = + new com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse) + private static final com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateExplanationDatasetResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateExplanationDatasetResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetResponseOrBuilder.java new file mode 100644 index 000000000000..725c0a0fd0c5 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateExplanationDatasetResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface UpdateExplanationDatasetResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreRequest.java index 3f44bccc8c3a..79f4a4d03fed 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreRequest.java @@ -214,6 +214,7 @@ public com.google.cloud.aiplatform.v1beta1.FeaturestoreOrBuilder getFeaturestore * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * * * .google.protobuf.FieldMask update_mask = 2; @@ -238,6 +239,7 @@ public boolean hasUpdateMask() { * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * * * .google.protobuf.FieldMask update_mask = 2; @@ -262,6 +264,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * * * .google.protobuf.FieldMask update_mask = 2; @@ -884,6 +887,7 @@ public com.google.cloud.aiplatform.v1beta1.FeaturestoreOrBuilder getFeaturestore * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * * * .google.protobuf.FieldMask update_mask = 2; @@ -907,6 +911,7 @@ public boolean hasUpdateMask() { * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * * * .google.protobuf.FieldMask update_mask = 2; @@ -936,6 +941,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * * * .google.protobuf.FieldMask update_mask = 2; @@ -967,6 +973,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * * * .google.protobuf.FieldMask update_mask = 2; @@ -995,6 +1002,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1028,6 +1036,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1057,6 +1066,7 @@ public Builder clearUpdateMask() { * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1080,6 +1090,7 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1107,6 +1118,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * * * .google.protobuf.FieldMask update_mask = 2; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreRequestOrBuilder.java index 767cf5f2f175..5ab57f635637 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreRequestOrBuilder.java @@ -87,6 +87,7 @@ public interface UpdateFeaturestoreRequestOrBuilder * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * * * .google.protobuf.FieldMask update_mask = 2; @@ -108,6 +109,7 @@ public interface UpdateFeaturestoreRequestOrBuilder * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * * * .google.protobuf.FieldMask update_mask = 2; @@ -129,6 +131,7 @@ public interface UpdateFeaturestoreRequestOrBuilder * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * * * .google.protobuf.FieldMask update_mask = 2; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageClassificationPredictionInstanceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageClassificationPredictionInstanceProto.java index c190936dc11d..ace90a1448e0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageClassificationPredictionInstanceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageClassificationPredictionInstanceProto.java @@ -46,12 +46,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "hema.predict.instance\032\034google/api/annota" + "tions.proto\"K\n%ImageClassificationPredic" + "tionInstance\022\017\n\007content\030\001 \001(\t\022\021\n\tmime_ty" - + "pe\030\002 \001(\tB\314\001\n;com.google.cloud.aiplatform" + + "pe\030\002 \001(\tB\200\003\n;com.google.cloud.aiplatform" + ".v1beta1.schema.predict.instanceB*ImageC" + "lassificationPredictionInstanceProtoP\001Z_" + "google.golang.org/genproto/googleapis/cl" + "oud/aiplatform/v1beta1/schema/predict/in" - + "stance;instanceb\006proto3" + + "stance;instance\252\0027Google.Cloud.AIPlatfor" + + "m.V1Beta1.Schema.Predict.Instance\312\0027Goog" + + "le\\Cloud\\AIPlatform\\V1beta1\\Schema\\Predi" + + "ct\\Instance\352\002=Google::Cloud::AIPlatform:" + + ":V1beta1::Schema::Predict::Instanceb\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageObjectDetectionPredictionInstanceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageObjectDetectionPredictionInstanceProto.java index d1a0dcf33b5a..8bd328d1c351 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageObjectDetectionPredictionInstanceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageObjectDetectionPredictionInstanceProto.java @@ -46,12 +46,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "schema.predict.instance\032\034google/api/anno" + "tations.proto\"L\n&ImageObjectDetectionPre" + "dictionInstance\022\017\n\007content\030\001 \001(\t\022\021\n\tmime" - + "_type\030\002 \001(\tB\315\001\n;com.google.cloud.aiplatf" + + "_type\030\002 \001(\tB\201\003\n;com.google.cloud.aiplatf" + "orm.v1beta1.schema.predict.instanceB+Ima" + "geObjectDetectionPredictionInstanceProto" + "P\001Z_google.golang.org/genproto/googleapi" + "s/cloud/aiplatform/v1beta1/schema/predic" - + "t/instance;instanceb\006proto3" + + "t/instance;instance\252\0027Google.Cloud.AIPla" + + "tform.V1Beta1.Schema.Predict.Instance\312\0027" + + "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\P" + + "redict\\Instance\352\002=Google::Cloud::AIPlatf" + + "orm::V1beta1::Schema::Predict::Instanceb" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageSegmentationPredictionInstanceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageSegmentationPredictionInstanceProto.java index 54069c5d8a2a..9d398592be53 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageSegmentationPredictionInstanceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageSegmentationPredictionInstanceProto.java @@ -46,12 +46,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ma.predict.instance\032\034google/api/annotati" + "ons.proto\"I\n#ImageSegmentationPrediction" + "Instance\022\017\n\007content\030\001 \001(\t\022\021\n\tmime_type\030\002" - + " \001(\tB\312\001\n;com.google.cloud.aiplatform.v1b" + + " \001(\tB\376\002\n;com.google.cloud.aiplatform.v1b" + "eta1.schema.predict.instanceB(ImageSegme" + "ntationPredictionInstanceProtoP\001Z_google" + ".golang.org/genproto/googleapis/cloud/ai" + "platform/v1beta1/schema/predict/instance" - + ";instanceb\006proto3" + + ";instance\252\0027Google.Cloud.AIPlatform.V1Be" + + "ta1.Schema.Predict.Instance\312\0027Google\\Clo" + + "ud\\AIPlatform\\V1beta1\\Schema\\Predict\\Ins" + + "tance\352\002=Google::Cloud::AIPlatform::V1bet" + + "a1::Schema::Predict::Instanceb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextClassificationPredictionInstanceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextClassificationPredictionInstanceProto.java index e0a61a9bdf50..5f2aad6cb130 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextClassificationPredictionInstanceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextClassificationPredictionInstanceProto.java @@ -46,12 +46,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ema.predict.instance\032\034google/api/annotat" + "ions.proto\"J\n$TextClassificationPredicti" + "onInstance\022\017\n\007content\030\001 \001(\t\022\021\n\tmime_type" - + "\030\002 \001(\tB\313\001\n;com.google.cloud.aiplatform.v" + + "\030\002 \001(\tB\377\002\n;com.google.cloud.aiplatform.v" + "1beta1.schema.predict.instanceB)TextClas" + "sificationPredictionInstanceProtoP\001Z_goo" + "gle.golang.org/genproto/googleapis/cloud" + "/aiplatform/v1beta1/schema/predict/insta" - + "nce;instanceb\006proto3" + + "nce;instance\252\0027Google.Cloud.AIPlatform.V" + + "1Beta1.Schema.Predict.Instance\312\0027Google\\" + + "Cloud\\AIPlatform\\V1beta1\\Schema\\Predict\\" + + "Instance\352\002=Google::Cloud::AIPlatform::V1" + + "beta1::Schema::Predict::Instanceb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextExtractionPredictionInstanceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextExtractionPredictionInstanceProto.java index e4a80794509d..79f035452d36 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextExtractionPredictionInstanceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextExtractionPredictionInstanceProto.java @@ -46,12 +46,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "predict.instance\032\034google/api/annotations" + ".proto\"S\n TextExtractionPredictionInstan" + "ce\022\017\n\007content\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\t\022\013" - + "\n\003key\030\003 \001(\tB\307\001\n;com.google.cloud.aiplatf" + + "\n\003key\030\003 \001(\tB\373\002\n;com.google.cloud.aiplatf" + "orm.v1beta1.schema.predict.instanceB%Tex" + "tExtractionPredictionInstanceProtoP\001Z_go" + "ogle.golang.org/genproto/googleapis/clou" + "d/aiplatform/v1beta1/schema/predict/inst" - + "ance;instanceb\006proto3" + + "ance;instance\252\0027Google.Cloud.AIPlatform." + + "V1Beta1.Schema.Predict.Instance\312\0027Google" + + "\\Cloud\\AIPlatform\\V1beta1\\Schema\\Predict" + + "\\Instance\352\002=Google::Cloud::AIPlatform::V" + + "1beta1::Schema::Predict::Instanceb\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextSentimentPredictionInstanceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextSentimentPredictionInstanceProto.java index b819ce26d5c6..d58bd20a8a9c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextSentimentPredictionInstanceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextSentimentPredictionInstanceProto.java @@ -45,13 +45,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "google.cloud.aiplatform.v1beta1.schema.p" + "redict.instance\032\034google/api/annotations." + "proto\"E\n\037TextSentimentPredictionInstance" - + "\022\017\n\007content\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\tB\306\001\n" + + "\022\017\n\007content\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\tB\372\002\n" + ";com.google.cloud.aiplatform.v1beta1.sch" + "ema.predict.instanceB$TextSentimentPredi" + "ctionInstanceProtoP\001Z_google.golang.org/" + "genproto/googleapis/cloud/aiplatform/v1b" - + "eta1/schema/predict/instance;instanceb\006p" - + "roto3" + + "eta1/schema/predict/instance;instance\252\0027" + + "Google.Cloud.AIPlatform.V1Beta1.Schema.P" + + "redict.Instance\312\0027Google\\Cloud\\AIPlatfor" + + "m\\V1beta1\\Schema\\Predict\\Instance\352\002=Goog" + + "le::Cloud::AIPlatform::V1beta1::Schema::" + + "Predict::Instanceb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoActionRecognitionPredictionInstanceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoActionRecognitionPredictionInstanceProto.java index 7a3e069c0450..c1029175e606 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoActionRecognitionPredictionInstanceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoActionRecognitionPredictionInstanceProto.java @@ -47,13 +47,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "notations.proto\"\204\001\n(VideoActionRecogniti" + "onPredictionInstance\022\017\n\007content\030\001 \001(\t\022\021\n" + "\tmime_type\030\002 \001(\t\022\032\n\022time_segment_start\030\003" - + " \001(\t\022\030\n\020time_segment_end\030\004 \001(\tB\317\001\n;com.g" + + " \001(\t\022\030\n\020time_segment_end\030\004 \001(\tB\203\003\n;com.g" + "oogle.cloud.aiplatform.v1beta1.schema.pr" + "edict.instanceB-VideoActionRecognitionPr" + "edictionInstanceProtoP\001Z_google.golang.o" + "rg/genproto/googleapis/cloud/aiplatform/" + "v1beta1/schema/predict/instance;instance" - + "b\006proto3" + + "\252\0027Google.Cloud.AIPlatform.V1Beta1.Schem" + + "a.Predict.Instance\312\0027Google\\Cloud\\AIPlat" + + "form\\V1beta1\\Schema\\Predict\\Instance\352\002=G" + + "oogle::Cloud::AIPlatform::V1beta1::Schem" + + "a::Predict::Instanceb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoClassificationPredictionInstanceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoClassificationPredictionInstanceProto.java index 05fdff996605..208548501eed 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoClassificationPredictionInstanceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoClassificationPredictionInstanceProto.java @@ -47,12 +47,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tions.proto\"\201\001\n%VideoClassificationPredi" + "ctionInstance\022\017\n\007content\030\001 \001(\t\022\021\n\tmime_t" + "ype\030\002 \001(\t\022\032\n\022time_segment_start\030\003 \001(\t\022\030\n" - + "\020time_segment_end\030\004 \001(\tB\314\001\n;com.google.c" + + "\020time_segment_end\030\004 \001(\tB\200\003\n;com.google.c" + "loud.aiplatform.v1beta1.schema.predict.i" + "nstanceB*VideoClassificationPredictionIn" + "stanceProtoP\001Z_google.golang.org/genprot" + "o/googleapis/cloud/aiplatform/v1beta1/sc" - + "hema/predict/instance;instanceb\006proto3" + + "hema/predict/instance;instance\252\0027Google." + + "Cloud.AIPlatform.V1Beta1.Schema.Predict." + + "Instance\312\0027Google\\Cloud\\AIPlatform\\V1bet" + + "a1\\Schema\\Predict\\Instance\352\002=Google::Clo" + + "ud::AIPlatform::V1beta1::Schema::Predict" + + "::Instanceb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoObjectTrackingPredictionInstanceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoObjectTrackingPredictionInstanceProto.java index 5ca099a050f1..0c3f0827258b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoObjectTrackingPredictionInstanceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/VideoObjectTrackingPredictionInstanceProto.java @@ -47,12 +47,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ations.proto\"\201\001\n%VideoObjectTrackingPred" + "ictionInstance\022\017\n\007content\030\001 \001(\t\022\021\n\tmime_" + "type\030\002 \001(\t\022\032\n\022time_segment_start\030\003 \001(\t\022\030" - + "\n\020time_segment_end\030\004 \001(\tB\314\001\n;com.google." + + "\n\020time_segment_end\030\004 \001(\tB\200\003\n;com.google." + "cloud.aiplatform.v1beta1.schema.predict." + "instanceB*VideoObjectTrackingPredictionI" + "nstanceProtoP\001Z_google.golang.org/genpro" + "to/googleapis/cloud/aiplatform/v1beta1/s" - + "chema/predict/instance;instanceb\006proto3" + + "chema/predict/instance;instance\252\0027Google" + + ".Cloud.AIPlatform.V1Beta1.Schema.Predict" + + ".Instance\312\0027Google\\Cloud\\AIPlatform\\V1be" + + "ta1\\Schema\\Predict\\Instance\352\002=Google::Cl" + + "oud::AIPlatform::V1beta1::Schema::Predic" + + "t::Instanceb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageClassificationPredictionParamsProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageClassificationPredictionParamsProto.java index 81c2c431137c..74276ff7bf48 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageClassificationPredictionParamsProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageClassificationPredictionParamsProto.java @@ -46,12 +46,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ma.predict.params\032\034google/api/annotation" + "s.proto\"\\\n#ImageClassificationPrediction" + "Params\022\034\n\024confidence_threshold\030\001 \001(\002\022\027\n\017" - + "max_predictions\030\002 \001(\005B\304\001\n9com.google.clo" + + "max_predictions\030\002 \001(\005B\362\002\n9com.google.clo" + "ud.aiplatform.v1beta1.schema.predict.par" + "amsB(ImageClassificationPredictionParams" + "ProtoP\001Z[google.golang.org/genproto/goog" + "leapis/cloud/aiplatform/v1beta1/schema/p" - + "redict/params;paramsb\006proto3" + + "redict/params;params\252\0025Google.Cloud.AIPl" + + "atform.V1Beta1.Schema.Predict.Params\312\0025G" + + "oogle\\Cloud\\AIPlatform\\V1beta1\\Schema\\Pr" + + "edict\\Params\352\002;Google::Cloud::AIPlatform" + + "::V1beta1::Schema::Predict::Paramsb\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageObjectDetectionPredictionParamsProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageObjectDetectionPredictionParamsProto.java index 763eac81d3d8..2e70a4571090 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageObjectDetectionPredictionParamsProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageObjectDetectionPredictionParamsProto.java @@ -46,12 +46,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "hema.predict.params\032\034google/api/annotati" + "ons.proto\"]\n$ImageObjectDetectionPredict" + "ionParams\022\034\n\024confidence_threshold\030\001 \001(\002\022" - + "\027\n\017max_predictions\030\002 \001(\005B\305\001\n9com.google." + + "\027\n\017max_predictions\030\002 \001(\005B\363\002\n9com.google." + "cloud.aiplatform.v1beta1.schema.predict." + "paramsB)ImageObjectDetectionPredictionPa" + "ramsProtoP\001Z[google.golang.org/genproto/" + "googleapis/cloud/aiplatform/v1beta1/sche" - + "ma/predict/params;paramsb\006proto3" + + "ma/predict/params;params\252\0025Google.Cloud." + + "AIPlatform.V1Beta1.Schema.Predict.Params" + + "\312\0025Google\\Cloud\\AIPlatform\\V1beta1\\Schem" + + "a\\Predict\\Params\352\002;Google::Cloud::AIPlat" + + "form::V1beta1::Schema::Predict::Paramsb\006" + + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageSegmentationPredictionParamsProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageSegmentationPredictionParamsProto.java index 429643682465..f679292618ee 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageSegmentationPredictionParamsProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/ImageSegmentationPredictionParamsProto.java @@ -45,12 +45,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\0225google.cloud.aiplatform.v1beta1.schema" + ".predict.params\032\034google/api/annotations." + "proto\"A\n!ImageSegmentationPredictionPara" - + "ms\022\034\n\024confidence_threshold\030\001 \001(\002B\302\001\n9com" + + "ms\022\034\n\024confidence_threshold\030\001 \001(\002B\360\002\n9com" + ".google.cloud.aiplatform.v1beta1.schema." + "predict.paramsB&ImageSegmentationPredict" + "ionParamsProtoP\001Z[google.golang.org/genp" + "roto/googleapis/cloud/aiplatform/v1beta1" - + "/schema/predict/params;paramsb\006proto3" + + "/schema/predict/params;params\252\0025Google.C" + + "loud.AIPlatform.V1Beta1.Schema.Predict.P" + + "arams\312\0025Google\\Cloud\\AIPlatform\\V1beta1\\" + + "Schema\\Predict\\Params\352\002;Google::Cloud::A" + + "IPlatform::V1beta1::Schema::Predict::Par" + + "amsb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoActionRecognitionPredictionParamsProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoActionRecognitionPredictionParamsProto.java index af7fe4c6a632..f8882de645f3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoActionRecognitionPredictionParamsProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoActionRecognitionPredictionParamsProto.java @@ -46,12 +46,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "schema.predict.params\032\034google/api/annota" + "tions.proto\"_\n&VideoActionRecognitionPre" + "dictionParams\022\034\n\024confidence_threshold\030\001 " - + "\001(\002\022\027\n\017max_predictions\030\002 \001(\005B\307\001\n9com.goo" + + "\001(\002\022\027\n\017max_predictions\030\002 \001(\005B\365\002\n9com.goo" + "gle.cloud.aiplatform.v1beta1.schema.pred" + "ict.paramsB+VideoActionRecognitionPredic" + "tionParamsProtoP\001Z[google.golang.org/gen" + "proto/googleapis/cloud/aiplatform/v1beta" - + "1/schema/predict/params;paramsb\006proto3" + + "1/schema/predict/params;params\252\0025Google." + + "Cloud.AIPlatform.V1Beta1.Schema.Predict." + + "Params\312\0025Google\\Cloud\\AIPlatform\\V1beta1" + + "\\Schema\\Predict\\Params\352\002;Google::Cloud::" + + "AIPlatform::V1beta1::Schema::Predict::Pa" + + "ramsb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoClassificationPredictionParamsProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoClassificationPredictionParamsProto.java index fde0c01cccda..3be4efc3376a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoClassificationPredictionParamsProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoClassificationPredictionParamsProto.java @@ -49,12 +49,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017max_predictions\030\002 \001(\005\022\036\n\026segment_classi" + "fication\030\003 \001(\010\022\033\n\023shot_classification\030\004 " + "\001(\010\022\'\n\037one_sec_interval_classification\030\005" - + " \001(\010B\304\001\n9com.google.cloud.aiplatform.v1b" + + " \001(\010B\362\002\n9com.google.cloud.aiplatform.v1b" + "eta1.schema.predict.paramsB(VideoClassif" + "icationPredictionParamsProtoP\001Z[google.g" + "olang.org/genproto/googleapis/cloud/aipl" + "atform/v1beta1/schema/predict/params;par" - + "amsb\006proto3" + + "ams\252\0025Google.Cloud.AIPlatform.V1Beta1.Sc" + + "hema.Predict.Params\312\0025Google\\Cloud\\AIPla" + + "tform\\V1beta1\\Schema\\Predict\\Params\352\002;Go" + + "ogle::Cloud::AIPlatform::V1beta1::Schema" + + "::Predict::Paramsb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoObjectTrackingPredictionParamsProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoObjectTrackingPredictionParamsProto.java index 49e30d72f491..e0b7552cb48a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoObjectTrackingPredictionParamsProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoObjectTrackingPredictionParamsProto.java @@ -47,12 +47,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ns.proto\"{\n#VideoObjectTrackingPredictio" + "nParams\022\034\n\024confidence_threshold\030\001 \001(\002\022\027\n" + "\017max_predictions\030\002 \001(\005\022\035\n\025min_bounding_b" - + "ox_size\030\003 \001(\002B\304\001\n9com.google.cloud.aipla" + + "ox_size\030\003 \001(\002B\362\002\n9com.google.cloud.aipla" + "tform.v1beta1.schema.predict.paramsB(Vid" + "eoObjectTrackingPredictionParamsProtoP\001Z" + "[google.golang.org/genproto/googleapis/c" + "loud/aiplatform/v1beta1/schema/predict/p" - + "arams;paramsb\006proto3" + + "arams;params\252\0025Google.Cloud.AIPlatform.V" + + "1Beta1.Schema.Predict.Params\312\0025Google\\Cl" + + "oud\\AIPlatform\\V1beta1\\Schema\\Predict\\Pa" + + "rams\352\002;Google::Cloud::AIPlatform::V1beta" + + "1::Schema::Predict::Paramsb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ClassificationPredictionResultProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ClassificationPredictionResultProto.java index 1785dd0d1cf2..6c1b2ac55bf5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ClassificationPredictionResultProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ClassificationPredictionResultProto.java @@ -46,12 +46,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".predict.prediction\032\034google/api/annotati" + "ons.proto\"Y\n\036ClassificationPredictionRes" + "ult\022\013\n\003ids\030\001 \003(\003\022\025\n\rdisplay_names\030\002 \003(\t\022" - + "\023\n\013confidences\030\003 \003(\002B\313\001\n=com.google.clou" + + "\023\n\013confidences\030\003 \003(\002B\205\003\n=com.google.clou" + "d.aiplatform.v1beta1.schema.predict.pred" + "ictionB#ClassificationPredictionResultPr" + "otoP\001Zcgoogle.golang.org/genproto/google" + "apis/cloud/aiplatform/v1beta1/schema/pre" - + "dict/prediction;predictionb\006proto3" + + "dict/prediction;prediction\252\0029Google.Clou" + + "d.AIPlatform.V1Beta1.Schema.Predict.Pred" + + "iction\312\0029Google\\Cloud\\AIPlatform\\V1beta1" + + "\\Schema\\Predict\\Prediction\352\002?Google::Clo" + + "ud::AIPlatform::V1beta1::Schema::Predict" + + "::Predictionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ImageObjectDetectionPredictionResultProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ImageObjectDetectionPredictionResultProto.java index b915b8543653..86fd9e57c766 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ImageObjectDetectionPredictionResultProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ImageObjectDetectionPredictionResultProto.java @@ -48,13 +48,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "s.proto\"\213\001\n$ImageObjectDetectionPredicti" + "onResult\022\013\n\003ids\030\001 \003(\003\022\025\n\rdisplay_names\030\002" + " \003(\t\022\023\n\013confidences\030\003 \003(\002\022*\n\006bboxes\030\004 \003(" - + "\0132\032.google.protobuf.ListValueB\321\001\n=com.go" + + "\0132\032.google.protobuf.ListValueB\213\003\n=com.go" + "ogle.cloud.aiplatform.v1beta1.schema.pre" + "dict.predictionB)ImageObjectDetectionPre" + "dictionResultProtoP\001Zcgoogle.golang.org/" + "genproto/googleapis/cloud/aiplatform/v1b" + "eta1/schema/predict/prediction;predictio" - + "nb\006proto3" + + "n\252\0029Google.Cloud.AIPlatform.V1Beta1.Sche" + + "ma.Predict.Prediction\312\0029Google\\Cloud\\AIP" + + "latform\\V1beta1\\Schema\\Predict\\Predictio" + + "n\352\002?Google::Cloud::AIPlatform::V1beta1::" + + "Schema::Predict::Predictionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ImageSegmentationPredictionResultProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ImageSegmentationPredictionResultProto.java index 79aa5db66235..d2c960e69d31 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ImageSegmentationPredictionResultProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ImageSegmentationPredictionResultProto.java @@ -46,12 +46,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "hema.predict.prediction\032\034google/api/anno" + "tations.proto\"S\n!ImageSegmentationPredic" + "tionResult\022\025\n\rcategory_mask\030\001 \001(\t\022\027\n\017con" - + "fidence_mask\030\002 \001(\tB\316\001\n=com.google.cloud." + + "fidence_mask\030\002 \001(\tB\210\003\n=com.google.cloud." + "aiplatform.v1beta1.schema.predict.predic" + "tionB&ImageSegmentationPredictionResultP" + "rotoP\001Zcgoogle.golang.org/genproto/googl" + "eapis/cloud/aiplatform/v1beta1/schema/pr" - + "edict/prediction;predictionb\006proto3" + + "edict/prediction;prediction\252\0029Google.Clo" + + "ud.AIPlatform.V1Beta1.Schema.Predict.Pre" + + "diction\312\0029Google\\Cloud\\AIPlatform\\V1beta" + + "1\\Schema\\Predict\\Prediction\352\002?Google::Cl" + + "oud::AIPlatform::V1beta1::Schema::Predic" + + "t::Predictionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TabularClassificationPredictionResultProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TabularClassificationPredictionResultProto.java index 422c919d2fa8..7f7395958f54 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TabularClassificationPredictionResultProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TabularClassificationPredictionResultProto.java @@ -46,12 +46,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "1.schema.predict.prediction\032\034google/api/" + "annotations.proto\"H\n%TabularClassificati" + "onPredictionResult\022\017\n\007classes\030\001 \003(\t\022\016\n\006s" - + "cores\030\002 \003(\002B\322\001\n=com.google.cloud.aiplatf" + + "cores\030\002 \003(\002B\214\003\n=com.google.cloud.aiplatf" + "orm.v1beta1.schema.predict.predictionB*T" + "abularClassificationPredictionResultProt" + "oP\001Zcgoogle.golang.org/genproto/googleap" + "is/cloud/aiplatform/v1beta1/schema/predi" - + "ct/prediction;predictionb\006proto3" + + "ct/prediction;prediction\252\0029Google.Cloud." + + "AIPlatform.V1Beta1.Schema.Predict.Predic" + + "tion\312\0029Google\\Cloud\\AIPlatform\\V1beta1\\S" + + "chema\\Predict\\Prediction\352\002?Google::Cloud" + + "::AIPlatform::V1beta1::Schema::Predict::" + + "Predictionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TabularRegressionPredictionResultProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TabularRegressionPredictionResultProto.java index b9d5d747aa04..21ecf4a360e1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TabularRegressionPredictionResultProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TabularRegressionPredictionResultProto.java @@ -46,13 +46,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "hema.predict.prediction\032\034google/api/anno" + "tations.proto\"\\\n!TabularRegressionPredic" + "tionResult\022\r\n\005value\030\001 \001(\002\022\023\n\013lower_bound" - + "\030\002 \001(\002\022\023\n\013upper_bound\030\003 \001(\002B\316\001\n=com.goog" + + "\030\002 \001(\002\022\023\n\013upper_bound\030\003 \001(\002B\210\003\n=com.goog" + "le.cloud.aiplatform.v1beta1.schema.predi" + "ct.predictionB&TabularRegressionPredicti" + "onResultProtoP\001Zcgoogle.golang.org/genpr" + "oto/googleapis/cloud/aiplatform/v1beta1/" - + "schema/predict/prediction;predictionb\006pr" - + "oto3" + + "schema/predict/prediction;prediction\252\0029G" + + "oogle.Cloud.AIPlatform.V1Beta1.Schema.Pr" + + "edict.Prediction\312\0029Google\\Cloud\\AIPlatfo" + + "rm\\V1beta1\\Schema\\Predict\\Prediction\352\002?G" + + "oogle::Cloud::AIPlatform::V1beta1::Schem" + + "a::Predict::Predictionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TextExtractionPredictionResultProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TextExtractionPredictionResultProto.java index 39d1bc36fcb4..43b60a88c487 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TextExtractionPredictionResultProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TextExtractionPredictionResultProto.java @@ -48,12 +48,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "esult\022\013\n\003ids\030\001 \003(\003\022\025\n\rdisplay_names\030\002 \003(" + "\t\022\"\n\032text_segment_start_offsets\030\003 \003(\003\022 \n" + "\030text_segment_end_offsets\030\004 \003(\003\022\023\n\013confi" - + "dences\030\005 \003(\002B\313\001\n=com.google.cloud.aiplat" + + "dences\030\005 \003(\002B\205\003\n=com.google.cloud.aiplat" + "form.v1beta1.schema.predict.predictionB#" + "TextExtractionPredictionResultProtoP\001Zcg" + "oogle.golang.org/genproto/googleapis/clo" + "ud/aiplatform/v1beta1/schema/predict/pre" - + "diction;predictionb\006proto3" + + "diction;prediction\252\0029Google.Cloud.AIPlat" + + "form.V1Beta1.Schema.Predict.Prediction\312\002" + + "9Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\" + + "Predict\\Prediction\352\002?Google::Cloud::AIPl" + + "atform::V1beta1::Schema::Predict::Predic" + + "tionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TextSentimentPredictionResultProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TextSentimentPredictionResultProto.java index 1b074db4188a..3f12f90f5532 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TextSentimentPredictionResultProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TextSentimentPredictionResultProto.java @@ -45,12 +45,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\0229google.cloud.aiplatform.v1beta1.schema" + ".predict.prediction\032\034google/api/annotati" + "ons.proto\"2\n\035TextSentimentPredictionResu" - + "lt\022\021\n\tsentiment\030\001 \001(\005B\312\001\n=com.google.clo" + + "lt\022\021\n\tsentiment\030\001 \001(\005B\204\003\n=com.google.clo" + "ud.aiplatform.v1beta1.schema.predict.pre" + "dictionB\"TextSentimentPredictionResultPr" + "otoP\001Zcgoogle.golang.org/genproto/google" + "apis/cloud/aiplatform/v1beta1/schema/pre" - + "dict/prediction;predictionb\006proto3" + + "dict/prediction;prediction\252\0029Google.Clou" + + "d.AIPlatform.V1Beta1.Schema.Predict.Pred" + + "iction\312\0029Google\\Cloud\\AIPlatform\\V1beta1" + + "\\Schema\\Predict\\Prediction\352\002?Google::Clo" + + "ud::AIPlatform::V1beta1::Schema::Predict" + + "::Predictionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResultProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResultProto.java index abb91afeca16..1c95325a1efa 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResultProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/TimeSeriesForecastingPredictionResultProto.java @@ -45,13 +45,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ing.proto\0229google.cloud.aiplatform.v1bet" + "a1.schema.predict.prediction\032\034google/api" + "/annotations.proto\"6\n%TimeSeriesForecast" - + "ingPredictionResult\022\r\n\005value\030\001 \001(\002B\322\001\n=c" + + "ingPredictionResult\022\r\n\005value\030\001 \001(\002B\214\003\n=c" + "om.google.cloud.aiplatform.v1beta1.schem" + "a.predict.predictionB*TimeSeriesForecast" + "ingPredictionResultProtoP\001Zcgoogle.golan" + "g.org/genproto/googleapis/cloud/aiplatfo" + "rm/v1beta1/schema/predict/prediction;pre" - + "dictionb\006proto3" + + "diction\252\0029Google.Cloud.AIPlatform.V1Beta" + + "1.Schema.Predict.Prediction\312\0029Google\\Clo" + + "ud\\AIPlatform\\V1beta1\\Schema\\Predict\\Pre" + + "diction\352\002?Google::Cloud::AIPlatform::V1b" + + "eta1::Schema::Predict::Predictionb\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoActionRecognitionPredictionResultProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoActionRecognitionPredictionResultProto.java index 66e6f5866ce3..3e9ba5071da6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoActionRecognitionPredictionResultProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoActionRecognitionPredictionResultProto.java @@ -51,13 +51,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\0225\n\022time_segment_start\030\004 \001(\0132\031.google.pr" + "otobuf.Duration\0223\n\020time_segment_end\030\005 \001(" + "\0132\031.google.protobuf.Duration\022/\n\nconfiden" - + "ce\030\006 \001(\0132\033.google.protobuf.FloatValueB\323\001" + + "ce\030\006 \001(\0132\033.google.protobuf.FloatValueB\215\003" + "\n=com.google.cloud.aiplatform.v1beta1.sc" + "hema.predict.predictionB+VideoActionReco" + "gnitionPredictionResultProtoP\001Zcgoogle.g" + "olang.org/genproto/googleapis/cloud/aipl" + "atform/v1beta1/schema/predict/prediction" - + ";predictionb\006proto3" + + ";prediction\252\0029Google.Cloud.AIPlatform.V1" + + "Beta1.Schema.Predict.Prediction\312\0029Google" + + "\\Cloud\\AIPlatform\\V1beta1\\Schema\\Predict" + + "\\Prediction\352\002?Google::Cloud::AIPlatform:" + + ":V1beta1::Schema::Predict::Predictionb\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoClassificationPredictionResultProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoClassificationPredictionResultProto.java index 0efcf23c3cb6..abc67646d05a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoClassificationPredictionResultProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoClassificationPredictionResultProto.java @@ -52,12 +52,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ogle.protobuf.Duration\0223\n\020time_segment_e" + "nd\030\005 \001(\0132\031.google.protobuf.Duration\022/\n\nc" + "onfidence\030\006 \001(\0132\033.google.protobuf.FloatV" - + "alueB\320\001\n=com.google.cloud.aiplatform.v1b" + + "alueB\212\003\n=com.google.cloud.aiplatform.v1b" + "eta1.schema.predict.predictionB(VideoCla" + "ssificationPredictionResultProtoP\001Zcgoog" + "le.golang.org/genproto/googleapis/cloud/" + "aiplatform/v1beta1/schema/predict/predic" - + "tion;predictionb\006proto3" + + "tion;prediction\252\0029Google.Cloud.AIPlatfor" + + "m.V1Beta1.Schema.Predict.Prediction\312\0029Go" + + "ogle\\Cloud\\AIPlatform\\V1beta1\\Schema\\Pre" + + "dict\\Prediction\352\002?Google::Cloud::AIPlatf" + + "orm::V1beta1::Schema::Predict::Predictio" + + "nb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoObjectTrackingPredictionResultProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoObjectTrackingPredictionResultProto.java index 68188818bce1..4c2c1eaa4260 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoObjectTrackingPredictionResultProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/VideoObjectTrackingPredictionResultProto.java @@ -64,13 +64,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".FloatValue\022*\n\005x_max\030\003 \001(\0132\033.google.prot" + "obuf.FloatValue\022*\n\005y_min\030\004 \001(\0132\033.google." + "protobuf.FloatValue\022*\n\005y_max\030\005 \001(\0132\033.goo" - + "gle.protobuf.FloatValueB\320\001\n=com.google.c" + + "gle.protobuf.FloatValueB\212\003\n=com.google.c" + "loud.aiplatform.v1beta1.schema.predict.p" + "redictionB(VideoObjectTrackingPrediction" + "ResultProtoP\001Zcgoogle.golang.org/genprot" + "o/googleapis/cloud/aiplatform/v1beta1/sc" - + "hema/predict/prediction;predictionb\006prot" - + "o3" + + "hema/predict/prediction;prediction\252\0029Goo" + + "gle.Cloud.AIPlatform.V1Beta1.Schema.Pred" + + "ict.Prediction\312\0029Google\\Cloud\\AIPlatform" + + "\\V1beta1\\Schema\\Predict\\Prediction\352\002?Goo" + + "gle::Cloud::AIPlatform::V1beta1::Schema:" + + ":Predict::Predictionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLForecastingProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLForecastingProto.java index c3b93e6872ef..57c0120ca9db 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLForecastingProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLForecastingProto.java @@ -139,12 +139,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "mn_name\030\001 \001(\tB\027\n\025transformation_detail\032-" + "\n\013Granularity\022\014\n\004unit\030\001 \001(\t\022\020\n\010quantity\030" + "\002 \001(\003\"@\n\031AutoMlForecastingMetadata\022#\n\033tr" - + "ain_cost_milli_node_hours\030\001 \001(\003B\306\001\nAcom." + + "ain_cost_milli_node_hours\030\001 \001(\003B\214\003\nAcom." + "google.cloud.aiplatform.v1beta1.schema.t" + "rainingjob.definitionB\026AutoMLForecasting" + "ProtoP\001Zggoogle.golang.org/genproto/goog" + "leapis/cloud/aiplatform/v1beta1/schema/t" - + "rainingjob/definition;definitionb\006proto3" + + "rainingjob/definition;definition\252\002=Googl" + + "e.Cloud.AIPlatform.V1Beta1.Schema.Traini" + + "ngJob.Definition\312\002=Google\\Cloud\\AIPlatfo" + + "rm\\V1beta1\\Schema\\TrainingJob\\Definition" + + "\352\002CGoogle::Cloud::AIPlatform::V1beta1::S" + + "chema::TrainingJob::Definitionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLImageClassificationProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLImageClassificationProto.java index 019268156579..abe84d2e1d11 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLImageClassificationProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLImageClassificationProto.java @@ -78,13 +78,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ssificationMetadata.SuccessfulStopReason" + "\"g\n\024SuccessfulStopReason\022&\n\"SUCCESSFUL_S" + "TOP_REASON_UNSPECIFIED\020\000\022\022\n\016BUDGET_REACH" - + "ED\020\001\022\023\n\017MODEL_CONVERGED\020\002B\316\001\nAcom.google" + + "ED\020\001\022\023\n\017MODEL_CONVERGED\020\002B\224\003\nAcom.google" + ".cloud.aiplatform.v1beta1.schema.trainin" + "gjob.definitionB\036AutoMLImageClassificati" + "onProtoP\001Zggoogle.golang.org/genproto/go" + "ogleapis/cloud/aiplatform/v1beta1/schema" - + "/trainingjob/definition;definitionb\006prot" - + "o3" + + "/trainingjob/definition;definition\252\002=Goo" + + "gle.Cloud.AIPlatform.V1Beta1.Schema.Trai" + + "ningJob.Definition\312\002=Google\\Cloud\\AIPlat" + + "form\\V1beta1\\Schema\\TrainingJob\\Definiti" + + "on\352\002CGoogle::Cloud::AIPlatform::V1beta1:" + + ":Schema::TrainingJob::Definitionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLImageObjectDetectionProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLImageObjectDetectionProto.java index f53fc0fec51e..0d1a8830861a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLImageObjectDetectionProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLImageObjectDetectionProto.java @@ -78,13 +78,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "geObjectDetectionMetadata.SuccessfulStop" + "Reason\"g\n\024SuccessfulStopReason\022&\n\"SUCCES" + "SFUL_STOP_REASON_UNSPECIFIED\020\000\022\022\n\016BUDGET" - + "_REACHED\020\001\022\023\n\017MODEL_CONVERGED\020\002B\317\001\nAcom." + + "_REACHED\020\001\022\023\n\017MODEL_CONVERGED\020\002B\225\003\nAcom." + "google.cloud.aiplatform.v1beta1.schema.t" + "rainingjob.definitionB\037AutoMLImageObject" + "DetectionProtoP\001Zggoogle.golang.org/genp" + "roto/googleapis/cloud/aiplatform/v1beta1" + "/schema/trainingjob/definition;definitio" - + "nb\006proto3" + + "n\252\002=Google.Cloud.AIPlatform.V1Beta1.Sche" + + "ma.TrainingJob.Definition\312\002=Google\\Cloud" + + "\\AIPlatform\\V1beta1\\Schema\\TrainingJob\\D" + + "efinition\352\002CGoogle::Cloud::AIPlatform::V" + + "1beta1::Schema::TrainingJob::Definitionb" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLImageSegmentationProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLImageSegmentationProto.java index b1bfcd239d86..457d43fdf674 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLImageSegmentationProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLImageSegmentationProto.java @@ -76,12 +76,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ationMetadata.SuccessfulStopReason\"g\n\024Su" + "ccessfulStopReason\022&\n\"SUCCESSFUL_STOP_RE" + "ASON_UNSPECIFIED\020\000\022\022\n\016BUDGET_REACHED\020\001\022\023" - + "\n\017MODEL_CONVERGED\020\002B\314\001\nAcom.google.cloud" + + "\n\017MODEL_CONVERGED\020\002B\222\003\nAcom.google.cloud" + ".aiplatform.v1beta1.schema.trainingjob.d" + "efinitionB\034AutoMLImageSegmentationProtoP" + "\001Zggoogle.golang.org/genproto/googleapis" + "/cloud/aiplatform/v1beta1/schema/trainin" - + "gjob/definition;definitionb\006proto3" + + "gjob/definition;definition\252\002=Google.Clou" + + "d.AIPlatform.V1Beta1.Schema.TrainingJob." + + "Definition\312\002=Google\\Cloud\\AIPlatform\\V1b" + + "eta1\\Schema\\TrainingJob\\Definition\352\002CGoo" + + "gle::Cloud::AIPlatform::V1beta1::Schema:" + + ":TrainingJob::Definitionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLTablesProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLTablesProto.java index 5042023f87c7..071e2a51bbe2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLTablesProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLTablesProto.java @@ -156,12 +156,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "column_name\030\001 \001(\tB\027\n\025transformation_deta" + "ilB*\n(additional_optimization_objective_" + "config\";\n\024AutoMlTablesMetadata\022#\n\033train_" - + "cost_milli_node_hours\030\001 \001(\003B\301\001\nAcom.goog" + + "cost_milli_node_hours\030\001 \001(\003B\207\003\nAcom.goog" + "le.cloud.aiplatform.v1beta1.schema.train" + "ingjob.definitionB\021AutoMLTablesProtoP\001Zg" + "google.golang.org/genproto/googleapis/cl" + "oud/aiplatform/v1beta1/schema/trainingjo" - + "b/definition;definitionb\006proto3" + + "b/definition;definition\252\002=Google.Cloud.A" + + "IPlatform.V1Beta1.Schema.TrainingJob.Def" + + "inition\312\002=Google\\Cloud\\AIPlatform\\V1beta" + + "1\\Schema\\TrainingJob\\Definition\352\002CGoogle" + + "::Cloud::AIPlatform::V1beta1::Schema::Tr" + + "ainingJob::Definitionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLTextClassificationProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLTextClassificationProto.java index 43d7c98840a3..ed06c8b5dc94 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLTextClassificationProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLTextClassificationProto.java @@ -54,12 +54,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gle.cloud.aiplatform.v1beta1.schema.trai" + "ningjob.definition.AutoMlTextClassificat" + "ionInputs\"5\n\036AutoMlTextClassificationInp" - + "uts\022\023\n\013multi_label\030\001 \001(\010B\315\001\nAcom.google." + + "uts\022\023\n\013multi_label\030\001 \001(\010B\223\003\nAcom.google." + "cloud.aiplatform.v1beta1.schema.training" + "job.definitionB\035AutoMLTextClassification" + "ProtoP\001Zggoogle.golang.org/genproto/goog" + "leapis/cloud/aiplatform/v1beta1/schema/t" - + "rainingjob/definition;definitionb\006proto3" + + "rainingjob/definition;definition\252\002=Googl" + + "e.Cloud.AIPlatform.V1Beta1.Schema.Traini" + + "ngJob.Definition\312\002=Google\\Cloud\\AIPlatfo" + + "rm\\V1beta1\\Schema\\TrainingJob\\Definition" + + "\352\002CGoogle::Cloud::AIPlatform::V1beta1::S" + + "chema::TrainingJob::Definitionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLTextExtractionProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLTextExtractionProto.java index 02d828280970..2691741c9e81 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLTextExtractionProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLTextExtractionProto.java @@ -53,12 +53,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "Extraction\022i\n\006inputs\030\001 \001(\0132Y.google.clou" + "d.aiplatform.v1beta1.schema.trainingjob." + "definition.AutoMlTextExtractionInputs\"\034\n" - + "\032AutoMlTextExtractionInputsB\311\001\nAcom.goog" + + "\032AutoMlTextExtractionInputsB\217\003\nAcom.goog" + "le.cloud.aiplatform.v1beta1.schema.train" + "ingjob.definitionB\031AutoMLTextExtractionP" + "rotoP\001Zggoogle.golang.org/genproto/googl" + "eapis/cloud/aiplatform/v1beta1/schema/tr" - + "ainingjob/definition;definitionb\006proto3" + + "ainingjob/definition;definition\252\002=Google" + + ".Cloud.AIPlatform.V1Beta1.Schema.Trainin" + + "gJob.Definition\312\002=Google\\Cloud\\AIPlatfor" + + "m\\V1beta1\\Schema\\TrainingJob\\Definition\352" + + "\002CGoogle::Cloud::AIPlatform::V1beta1::Sc" + + "hema::TrainingJob::Definitionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLTextSentimentProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLTextSentimentProto.java index b00d3b9dbf1a..99a527b9dc16 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLTextSentimentProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLTextSentimentProto.java @@ -53,12 +53,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "iplatform.v1beta1.schema.trainingjob.def" + "inition.AutoMlTextSentimentInputs\"2\n\031Aut" + "oMlTextSentimentInputs\022\025\n\rsentiment_max\030" - + "\001 \001(\005B\310\001\nAcom.google.cloud.aiplatform.v1" + + "\001 \001(\005B\216\003\nAcom.google.cloud.aiplatform.v1" + "beta1.schema.trainingjob.definitionB\030Aut" + "oMLTextSentimentProtoP\001Zggoogle.golang.o" + "rg/genproto/googleapis/cloud/aiplatform/" + "v1beta1/schema/trainingjob/definition;de" - + "finitionb\006proto3" + + "finition\252\002=Google.Cloud.AIPlatform.V1Bet" + + "a1.Schema.TrainingJob.Definition\312\002=Googl" + + "e\\Cloud\\AIPlatform\\V1beta1\\Schema\\Traini" + + "ngJob\\Definition\352\002CGoogle::Cloud::AIPlat" + + "form::V1beta1::Schema::TrainingJob::Defi" + + "nitionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLVideoActionRecognitionProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLVideoActionRecognitionProto.java index d27bed0efa4b..a1f6810d6dd9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLVideoActionRecognitionProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLVideoActionRecognitionProto.java @@ -61,12 +61,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "Type\022\032\n\026MODEL_TYPE_UNSPECIFIED\020\000\022\t\n\005CLOU" + "D\020\001\022\026\n\022MOBILE_VERSATILE_1\020\002\022\035\n\031MOBILE_JE" + "TSON_VERSATILE_1\020\003\022\034\n\030MOBILE_CORAL_VERSA" - + "TILE_1\020\004B\321\001\nAcom.google.cloud.aiplatform" + + "TILE_1\020\004B\227\003\nAcom.google.cloud.aiplatform" + ".v1beta1.schema.trainingjob.definitionB!" + "AutoMLVideoActionRecognitionProtoP\001Zggoo" + "gle.golang.org/genproto/googleapis/cloud" + "/aiplatform/v1beta1/schema/trainingjob/d" - + "efinition;definitionb\006proto3" + + "efinition;definition\252\002=Google.Cloud.AIPl" + + "atform.V1Beta1.Schema.TrainingJob.Defini" + + "tion\312\002=Google\\Cloud\\AIPlatform\\V1beta1\\S" + + "chema\\TrainingJob\\Definition\352\002CGoogle::C" + + "loud::AIPlatform::V1beta1::Schema::Train" + + "ingJob::Definitionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLVideoClassificationProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLVideoClassificationProto.java index 040f4bc3605c..bbf1b96a1da4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLVideoClassificationProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLVideoClassificationProto.java @@ -60,12 +60,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "puts.ModelType\"i\n\tModelType\022\032\n\026MODEL_TYP" + "E_UNSPECIFIED\020\000\022\t\n\005CLOUD\020\001\022\026\n\022MOBILE_VER" + "SATILE_1\020\002\022\035\n\031MOBILE_JETSON_VERSATILE_1\020" - + "\003B\316\001\nAcom.google.cloud.aiplatform.v1beta" + + "\003B\224\003\nAcom.google.cloud.aiplatform.v1beta" + "1.schema.trainingjob.definitionB\036AutoMLV" + "ideoClassificationProtoP\001Zggoogle.golang" + ".org/genproto/googleapis/cloud/aiplatfor" + "m/v1beta1/schema/trainingjob/definition;" - + "definitionb\006proto3" + + "definition\252\002=Google.Cloud.AIPlatform.V1B" + + "eta1.Schema.TrainingJob.Definition\312\002=Goo" + + "gle\\Cloud\\AIPlatform\\V1beta1\\Schema\\Trai" + + "ningJob\\Definition\352\002CGoogle::Cloud::AIPl" + + "atform::V1beta1::Schema::TrainingJob::De" + + "finitionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLVideoObjectTrackingProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLVideoObjectTrackingProto.java index 6cea6155747a..ab5275d44d61 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLVideoObjectTrackingProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLVideoObjectTrackingProto.java @@ -62,12 +62,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ERSATILE_1\020\002\022\034\n\030MOBILE_CORAL_VERSATILE_1" + "\020\003\022\036\n\032MOBILE_CORAL_LOW_LATENCY_1\020\004\022\035\n\031MO" + "BILE_JETSON_VERSATILE_1\020\005\022\037\n\033MOBILE_JETS" - + "ON_LOW_LATENCY_1\020\006B\316\001\nAcom.google.cloud." + + "ON_LOW_LATENCY_1\020\006B\224\003\nAcom.google.cloud." + "aiplatform.v1beta1.schema.trainingjob.de" + "finitionB\036AutoMLVideoObjectTrackingProto" + "P\001Zggoogle.golang.org/genproto/googleapi" + "s/cloud/aiplatform/v1beta1/schema/traini" - + "ngjob/definition;definitionb\006proto3" + + "ngjob/definition;definition\252\002=Google.Clo" + + "ud.AIPlatform.V1Beta1.Schema.TrainingJob" + + ".Definition\312\002=Google\\Cloud\\AIPlatform\\V1" + + "beta1\\Schema\\TrainingJob\\Definition\352\002CGo" + + "ogle::Cloud::AIPlatform::V1beta1::Schema" + + "::TrainingJob::Definitionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/ExportEvaluatedDataItemsConfigProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/ExportEvaluatedDataItemsConfigProto.java index c89d8c1a3b28..eab86759a3ad 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/ExportEvaluatedDataItemsConfigProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/ExportEvaluatedDataItemsConfigProto.java @@ -48,12 +48,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "inition\032\034google/api/annotations.proto\"c\n" + "\036ExportEvaluatedDataItemsConfig\022 \n\030desti" + "nation_bigquery_uri\030\001 \001(\t\022\037\n\027override_ex" - + "isting_table\030\002 \001(\010B\323\001\nAcom.google.cloud." + + "isting_table\030\002 \001(\010B\231\003\nAcom.google.cloud." + "aiplatform.v1beta1.schema.trainingjob.de" + "finitionB#ExportEvaluatedDataItemsConfig" + "ProtoP\001Zggoogle.golang.org/genproto/goog" + "leapis/cloud/aiplatform/v1beta1/schema/t" - + "rainingjob/definition;definitionb\006proto3" + + "rainingjob/definition;definition\252\002=Googl" + + "e.Cloud.AIPlatform.V1Beta1.Schema.Traini" + + "ngJob.Definition\312\002=Google\\Cloud\\AIPlatfo" + + "rm\\V1beta1\\Schema\\TrainingJob\\Definition" + + "\352\002CGoogle::Cloud::AIPlatform::V1beta1::S" + + "chema::TrainingJob::Definitionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto index b50a8febaf5c..50b05edac2c0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto @@ -25,6 +25,7 @@ import "google/cloud/aiplatform/v1beta1/io.proto"; import "google/cloud/aiplatform/v1beta1/job_state.proto"; import "google/cloud/aiplatform/v1beta1/machine_resources.proto"; import "google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto"; +import "google/cloud/aiplatform/v1beta1/model_monitoring.proto"; import "google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; @@ -159,6 +160,9 @@ message BatchPredictionJob { // Starting this job has no impact on any existing deployments of the Model // and their resources. // Exactly one of model and unmanaged_container_model must be set. + // + // The model resource name may contain version id or version alias to specify + // the version, if no version is specified, the default version will be used. string model = 3 [(google.api.resource_reference) = { type: "aiplatform.googleapis.com/Model" }]; @@ -295,4 +299,9 @@ message BatchPredictionJob { // is set, then all resources created by the BatchPredictionJob will be // encrypted with the provided encryption key. EncryptionSpec encryption_spec = 24; + + // Model monitoring config will be used for analysis model behaviors, based on + // the input and output to the batch prediction job, as well as the provided + // training dataset. + ModelMonitoringConfig model_monitoring_config = 26; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/completion_stats.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/completion_stats.proto index 7d539d82d24b..f784eda4eb2f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/completion_stats.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/completion_stats.proto @@ -41,4 +41,8 @@ message CompletionStats { // Set to -1 if the number is unknown (for example, the operation failed // before the total entity number could be collected). int64 incomplete_count = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of the successful forecast points that are generated by the + // forecasting model. This is ONLY used by the forecasting batch prediction. + int64 successful_forecast_point_count = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto index d2f1464de714..544f495db608 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto @@ -19,6 +19,7 @@ package google.cloud.aiplatform.v1beta1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; +import "google/cloud/aiplatform/v1beta1/env_var.proto"; import "google/cloud/aiplatform/v1beta1/io.proto"; import "google/cloud/aiplatform/v1beta1/job_state.proto"; import "google/cloud/aiplatform/v1beta1/machine_resources.proto"; @@ -232,6 +233,10 @@ message ContainerSpec { // The arguments to be passed when starting the container. repeated string args = 3; + + // Environment variables to be passed to the container. + // Maximum limit is 100. + repeated EnvVar env = 4; } // The spec of a Python packaged code. @@ -254,6 +259,10 @@ message PythonPackageSpec { // Command line arguments to be passed to the Python task. repeated string args = 4; + + // Environment variables to be passed to the python module. + // Maximum limit is 100. + repeated EnvVar env = 5; } // All parameters related to queuing and scheduling of custom jobs. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto index b2d12694b265..11e1025157ad 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto @@ -154,8 +154,11 @@ message DeployedModel { // This value should be 1-10 characters, and valid characters are /[0-9]/. string id = 1 [(google.api.field_behavior) = IMMUTABLE]; - // Required. The name of the Model that this is the deployment of. Note that the Model - // may be in a different location than the DeployedModel's Endpoint. + // Required. The resource name of the Model that this is the deployment of. Note that + // the Model may be in a different location than the DeployedModel's Endpoint. + // + // The resource name may contain version id or version alias to specify the + // version, if no version is specified, the default version will be deployed. string model = 2 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/explanation.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/explanation.proto index 1f3b25124cea..9f844d53d5a8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/explanation.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/explanation.proto @@ -47,6 +47,12 @@ message Explanation { // the attributions are stored by [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index] in the same // order as they appear in the output_indices. repeated Attribution attributions = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of the nearest neighbors for example-based explanations. + // + // For models deployed with the examples explanations feature enabled, the + // attributions field is empty and instead the neighbors field is populated. + repeated Neighbor neighbors = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Aggregated explanation metrics for a Model over a set of instances. @@ -163,6 +169,15 @@ message Attribution { string output_name = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Neighbors for example-based explanations. +message Neighbor { + // Output only. The neighbor id. + string neighbor_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The neighbor distance. + double neighbor_distance = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Specification of Model explanation. message ExplanationSpec { // Required. Parameters that configure explaining of the Model's predictions. @@ -373,17 +388,57 @@ message BlurBaselineConfig { // Example-based explainability that returns the nearest neighbors from the // provided dataset. message Examples { + oneof config { + // The configuration for the generated index, the semantics are the same as + // [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig. + google.protobuf.Value nearest_neighbor_search_config = 2; + + // Preset config based on the desired query speed-precision trade-off + // and modality + Presets presets = 4; + } + // The Cloud Storage location for the input instances. GcsSource gcs_source = 1; - // The configuration for the generated index, the semantics are the same as - // [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig. - google.protobuf.Value nearest_neighbor_search_config = 2; - // The number of neighbors to return. int32 neighbor_count = 3; } +// Preset configuration for example-based explanations +message Presets { + // Preset option controlling parameters for query speed-precision trade-off + enum Query { + // More precise neighbors as a trade-off against slower response. + // This is also the default value (field-number 0). + PRECISE = 0; + + // Faster response as a trade-off against less precise neighbors. + FAST = 1; + } + + // Preset option controlling parameters for different modalities + enum Modality { + // Should not be set. Added as a recommended best practice for enums + MODALITY_UNSPECIFIED = 0; + + // IMAGE modality + IMAGE = 1; + + // TEXT modality + TEXT = 2; + + // TABULAR modality + TABULAR = 3; + } + + // Preset option controlling parameters for query speed-precision trade-off + optional Query query = 1; + + // Preset option controlling parameters for different modalities + Modality modality = 2; +} + // The [ExplanationSpec][google.cloud.aiplatform.v1beta1.ExplanationSpec] entries that can be overridden at // [online explanation][google.cloud.aiplatform.v1beta1.PredictionService.Explain] time. message ExplanationSpecOverride { @@ -394,6 +449,9 @@ message ExplanationSpecOverride { // The metadata to be overridden. If not specified, no metadata is overridden. ExplanationMetadataOverride metadata = 2; + + // The example-based explanations parameter overrides. + ExamplesOverride examples_override = 3; } // The [ExplanationMetadata][google.cloud.aiplatform.v1beta1.ExplanationMetadata] entries that can be overridden at @@ -418,3 +476,45 @@ message ExplanationMetadataOverride { // overridden. map inputs = 1 [(google.api.field_behavior) = REQUIRED]; } + +// Overrides for example-based explanations. +message ExamplesOverride { + // Data format enum. + enum DataFormat { + // Unspecified format. Must not be used. + DATA_FORMAT_UNSPECIFIED = 0; + + // Provided data is a set of model inputs. + INSTANCES = 1; + + // Provided data is a set of embeddings. + EMBEDDINGS = 2; + } + + // The number of neighbors to return. + int32 neighbor_count = 1; + + // The number of neighbors to return that have the same crowding tag. + int32 crowding_count = 2; + + // Restrict the resulting nearest neighbors to respect these constraints. + repeated ExamplesRestrictionsNamespace restrictions = 3; + + // If true, return the embeddings instead of neighbors. + bool return_embeddings = 4; + + // The format of the data being provided with each call. + DataFormat data_format = 5; +} + +// Restrictions namespace for example-based explanations overrides. +message ExamplesRestrictionsNamespace { + // The namespace name. + string namespace_name = 1; + + // The list of allowed tags. + repeated string allow = 2; + + // The list of deny tags. + repeated string deny = 3; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/explanation_metadata.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/explanation_metadata.proto index 8d59f0886e34..ef962a51933b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/explanation_metadata.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/explanation_metadata.proto @@ -392,4 +392,7 @@ message ExplanationMetadata { // than the one given on input. The output URI will point to a location where // the user only has a read access. string feature_attributions_schema_uri = 3; + + // Name of the source to generate embeddings for example based explanations. + string latent_space_source = 5; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_online_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_online_service.proto index 235c4fb50527..02417d11fa22 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_online_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_online_service.proto @@ -171,7 +171,6 @@ message StreamingReadFeatureValuesRequest { } // Value for a feature. -// NEXT ID: 15 message FeatureValue { // Metadata of feature value. message Metadata { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_service.proto index 0ea0241b5926..7deb35938a0c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_service.proto @@ -418,6 +418,7 @@ message UpdateFeaturestoreRequest { // // * `labels` // * `online_serving_config.fixed_node_count` + // * `online_serving_config.scaling` google.protobuf.FieldMask update_mask = 2; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto index f8f75fdcbeb6..5498d89d4a3c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto @@ -34,6 +34,6 @@ message ManualBatchTuningParameters { // speeds up the batch operation's execution, but too high value will result // in a whole batch not fitting in a machine's memory, and the whole // operation will fail. - // The default value is 4. + // The default value is 64. int32 batch_size = 1 [(google.api.field_behavior) = IMMUTABLE]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto index 014f42f56b20..0446c1cc2aeb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto @@ -266,6 +266,16 @@ message ModelDeploymentMonitoringScheduleConfig { // Required. The model monitoring job scheduling interval. It will be rounded up to next // full hour. This defines how often the monitoring jobs are triggered. google.protobuf.Duration monitor_interval = 1 [(google.api.field_behavior) = REQUIRED]; + + // The time window of the prediction data being included in each prediction + // dataset. This window specifies how long the data should be collected from + // historical model results for each run. If not set, + // [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used. + // e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the + // monitor_window is set to be 3600, then data from 2022-01-08 13:30:00 + // to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the + // monitoring statistics. + google.protobuf.Duration monitor_window = 2; } // Statistics and anomalies generated by Model Monitoring. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_evaluation.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_evaluation.proto index f64c4d3fff5a..4e2c903e1ff3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_evaluation.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_evaluation.proto @@ -54,6 +54,9 @@ message ModelEvaluation { // Output only. The resource name of the ModelEvaluation. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // The display name of the ModelEvaluation. + string display_name = 10; + // Points to a YAML file stored on Google Cloud Storage describing the // [metrics][google.cloud.aiplatform.v1beta1.ModelEvaluation.metrics] of this ModelEvaluation. The schema is // defined as an OpenAPI 3.0.2 [Schema @@ -82,4 +85,10 @@ message ModelEvaluation { // Describes the values of [ExplanationSpec][google.cloud.aiplatform.v1beta1.ExplanationSpec] that are used for explaining // the predicted values on the evaluated data. repeated ModelEvaluationExplanationSpec explanation_specs = 9; + + // The metadata of the ModelEvaluation. + // For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a + // structured value with keys of "pipeline_job_id", "evaluation_dataset_type", + // "evaluation_dataset_path". + google.protobuf.Value metadata = 11; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_monitoring.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_monitoring.proto index 49676251e60a..3456dc0ab5ca 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_monitoring.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_monitoring.proto @@ -27,6 +27,24 @@ option java_package = "com.google.cloud.aiplatform.v1beta1"; option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; +// Next ID: 5 +message ModelMonitoringConfig { + // Model monitoring objective config. + repeated ModelMonitoringObjectiveConfig objective_configs = 3; + + // Model monitoring alert config. + ModelMonitoringAlertConfig alert_config = 2; + + // YAML schema file uri in Cloud Storage describing the format of a single + // instance that you want Tensorflow Data Validation (TFDV) to analyze. + // + // If there are any data type differences between predict instance and TFDV + // instance, this field can be used to override the schema. + // For models trained with Vertex AI, this field must be set as all the + // fields in predict instance formatted as string. + string analysis_instance_schema_uri = 4; +} + // Next ID: 8 message ModelMonitoringObjectiveConfig { // Training Dataset information. @@ -55,6 +73,8 @@ message ModelMonitoringObjectiveConfig { // // "csv" // The source file is a CSV file. + // "jsonl" + // The source file is a JSONL file. string data_format = 2; // The target field name the model is to predict. @@ -80,6 +100,11 @@ message ModelMonitoringObjectiveConfig { // against attribution score distance between the training and prediction // feature. map attribution_score_skew_thresholds = 2; + + // Skew anomaly detection threshold used by all features. + // When the per-feature thresholds are not set, this field can be used to + // specify a threshold for all features. + ThresholdConfig default_skew_threshold = 6; } // The config for Prediction data drift detection. @@ -93,6 +118,11 @@ message ModelMonitoringObjectiveConfig { // Key is the feature name and value is the threshold. The threshold here is // against attribution score distance between different time windows. map attribution_score_drift_thresholds = 2; + + // Drift anomaly detection threshold used by all features. + // When the per-feature thresholds are not set, this field can be used to + // specify a threshold for all features. + ThresholdConfig default_drift_threshold = 5; } // The config for integrating with Vertex Explainable AI. Only applicable if diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_service.proto index 4bc803b0c5bb..177e39c7ae8a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_service.proto @@ -20,6 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/explanation.proto"; import "google/cloud/aiplatform/v1beta1/io.proto"; import "google/cloud/aiplatform/v1beta1/model.proto"; import "google/cloud/aiplatform/v1beta1/model_evaluation.proto"; @@ -87,6 +88,19 @@ service ModelService { option (google.api.method_signature) = "model,update_mask"; } + // Incrementally update the dataset used for an examples model. + rpc UpdateExplanationDataset(UpdateExplanationDatasetRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{model=projects/*/locations/*/models/*}:updateExplanationDataset" + body: "*" + }; + option (google.api.method_signature) = "model"; + option (google.longrunning.operation_info) = { + response_type: "UpdateExplanationDatasetResponse" + metadata_type: "UpdateExplanationDatasetOperationMetadata" + }; + } + // Deletes a Model. // // A model cannot be deleted if any [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] resource has a @@ -233,6 +247,16 @@ message UploadModelResponse { message GetModelRequest { // Required. The name of the Model resource. // Format: `projects/{project}/locations/{location}/models/{model}` + // + // In order to retrieve a specific version of the model, also provide + // the version ID or version alias. + // Example: `projects/{project}/locations/{location}/models/{model}@2` + // or + // `projects/{project}/locations/{location}/models/{model}@golden` + // If no version ID or alias is specified, the "default" version will be + // returned. The "default" version alias is created for the first version of + // the model, and can be moved to other versions later on. There will be + // exactly one default version. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -366,6 +390,29 @@ message UpdateModelRequest { google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } +// Request message for +// [ModelService.UpdateExplanationDataset][google.cloud.aiplatform.v1beta1.ModelService.UpdateExplanationDataset]. +message UpdateExplanationDatasetRequest { + // Required. The resource name of the Model to update. + // Format: `projects/{project}/locations/{location}/models/{model}` + string model = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; + + // The example config containing the location of the dataset. + Examples examples = 2; +} + +// Runtime operation information for +// [ModelService.UpdateExplanationDataset][google.cloud.aiplatform.v1beta1.ModelService.UpdateExplanationDataset]. +message UpdateExplanationDatasetOperationMetadata { + // The common part of the operation metadata. + GenericOperationMetadata generic_metadata = 1; +} + // Request message for [ModelService.DeleteModel][google.cloud.aiplatform.v1beta1.ModelService.DeleteModel]. message DeleteModelRequest { // Required. The name of the Model resource to be deleted. @@ -448,6 +495,8 @@ message ExportModelRequest { } // Required. The resource name of the Model to export. + // The resource name may contain version id or version alias to specify the + // version, if no version is specified, the default version will be exported. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -481,6 +530,11 @@ message ExportModelOperationMetadata { OutputInfo output_info = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Response message of [ModelService.UpdateExplanationDataset][google.cloud.aiplatform.v1beta1.ModelService.UpdateExplanationDataset] operation. +message UpdateExplanationDatasetResponse { + +} + // Response message of [ModelService.ExportModel][google.cloud.aiplatform.v1beta1.ModelService.ExportModel] operation. message ExportModelResponse { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto new file mode 100644 index 000000000000..f197f510f090 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto @@ -0,0 +1,44 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1beta1; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "PipelineFailurePolicyProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; + +// Represents the failure policy of a pipeline. Currently, the default of a +// pipeline is that the pipeline will continue to run until no more tasks can be +// executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW. However, if a +// pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it will stop scheduling +// any new tasks when a task has failed. Any scheduled tasks will continue to +// completion. +enum PipelineFailurePolicy { + // Default value, and follows fail slow behavior. + PIPELINE_FAILURE_POLICY_UNSPECIFIED = 0; + + // Indicates that the pipeline should continue to run until all possible + // tasks have been scheduled and completed. + PIPELINE_FAILURE_POLICY_FAIL_SLOW = 1; + + // Indicates that the pipeline should stop scheduling new tasks after a task + // has failed. + PIPELINE_FAILURE_POLICY_FAIL_FAST = 2; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto index abb6fc8f0b2c..9cb69a902ee9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto @@ -22,6 +22,7 @@ import "google/cloud/aiplatform/v1beta1/artifact.proto"; import "google/cloud/aiplatform/v1beta1/context.proto"; import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; import "google/cloud/aiplatform/v1beta1/execution.proto"; +import "google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto"; import "google/cloud/aiplatform/v1beta1/pipeline_state.proto"; import "google/cloud/aiplatform/v1beta1/value.proto"; import "google/protobuf/struct.proto"; @@ -72,6 +73,14 @@ message PipelineJob { // `PipelineJob.pipeline_spec.schema_version` 2.1.0, such as pipelines built // using Kubeflow Pipelines SDK 1.9 or higher and the v2 DSL. map parameter_values = 3; + + // Represents the failure policy of a pipeline. Currently, the default of a + // pipeline is that the pipeline will continue to run until no more tasks + // can be executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW. + // However, if a pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it + // will stop scheduling any new tasks when a task has failed. Any scheduled + // tasks will continue to completion. + PipelineFailurePolicy failure_policy = 4; } // Output only. The resource name of the PipelineJob. @@ -150,6 +159,27 @@ message PipelineJob { string network = 18 [(google.api.resource_reference) = { type: "compute.googleapis.com/Network" }]; + + // A template uri from where the [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec], if empty, will + // be downloaded. + string template_uri = 19; + + // Output only. Pipeline template metadata. Will fill up fields if + // [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is from supported template registry. + PipelineTemplateMetadata template_metadata = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Pipeline template metadata if [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is from supported +// template registry. Currently, the only supported registry is Artifact +// Registry. +message PipelineTemplateMetadata { + // The version_name in artifact registry. + // + // Will always be presented in output if the [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is + // from supported template registry. + // + // Format is "sha256:abcdef123456...". + string version = 3; } // The runtime detail of PipelineJob. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_service.proto index 56123e65193d..43ad403878b3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_service.proto @@ -323,7 +323,7 @@ message ListPipelineJobsRequest { // Values must be in RFC 3339 format. // * `labels`: Supports key-value equality and key presence. // * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. - // * `template_metadata.version_name`: Supports `=`, `!=` comparisons, and `:` + // * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` // wildcard. // // Filter expressions can be combined together using logical operators diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto index a57a99728abd..384e92c6c1d3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto @@ -21,10 +21,13 @@ import "google/cloud/aiplatform/v1beta1/schema/geometry.proto"; import "google/protobuf/duration.proto"; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema;schema"; option java_multiple_files = true; option java_outer_classname = "AnnotationPayloadProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema"; // Annotation details specific to image classification. message ImageClassificationAnnotation { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto index bd57636fa92c..1f53d4de4bd0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto @@ -19,10 +19,13 @@ package google.cloud.aiplatform.v1beta1.schema; import "google/type/color.proto"; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema;schema"; option java_multiple_files = true; option java_outer_classname = "AnnotationSpecColorProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema"; // An entry of mapping between color and AnnotationSpec. The mapping is used in // segmentation mask. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto index b9c0c6656152..164aacef6838 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto @@ -20,10 +20,13 @@ import "google/api/field_behavior.proto"; import "google/protobuf/duration.proto"; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema;schema"; option java_multiple_files = true; option java_outer_classname = "DataItemPayloadProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema"; // Payload of Image DataItem. message ImageDataItem { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/dataset_metadata.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/dataset_metadata.proto index 6970d5abfcc5..2a0ed1217886 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/dataset_metadata.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/dataset_metadata.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema;schema"; option java_multiple_files = true; option java_outer_classname = "DatasetMetadataProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema"; // The metadata of Datasets that contain Image DataItems. message ImageDatasetMetadata { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/geometry.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/geometry.proto index 4c0061040004..dc53d2d7f6a9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/geometry.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/geometry.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema;schema"; option java_multiple_files = true; option java_outer_classname = "GeometryProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema"; // A vertex represents a 2D point in the image. // NOTE: the normalized vertex coordinates are relative to the original image diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_classification.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_classification.proto index f68044623b8f..572886a8fe6a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_classification.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_classification.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.predict.instance; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Instance"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/instance;instance"; option java_multiple_files = true; option java_outer_classname = "ImageClassificationPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.instance"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\Predict\\Instance"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::Predict::Instance"; // Prediction input format for Image Classification. message ImageClassificationPredictionInstance { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_object_detection.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_object_detection.proto index 1765f464df87..41eb7a6a8dc4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_object_detection.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_object_detection.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.predict.instance; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Instance"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/instance;instance"; option java_multiple_files = true; option java_outer_classname = "ImageObjectDetectionPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.instance"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\Predict\\Instance"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::Predict::Instance"; // Prediction input format for Image Object Detection. message ImageObjectDetectionPredictionInstance { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_segmentation.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_segmentation.proto index d5477020f7c1..9da318e51515 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_segmentation.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_segmentation.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.predict.instance; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Instance"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/instance;instance"; option java_multiple_files = true; option java_outer_classname = "ImageSegmentationPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.instance"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\Predict\\Instance"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::Predict::Instance"; // Prediction input format for Image Segmentation. message ImageSegmentationPredictionInstance { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_classification.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_classification.proto index 8a09ff2dd12e..68bf6c102830 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_classification.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_classification.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.predict.instance; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Instance"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/instance;instance"; option java_multiple_files = true; option java_outer_classname = "TextClassificationPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.instance"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\Predict\\Instance"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::Predict::Instance"; // Prediction input format for Text Classification. message TextClassificationPredictionInstance { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_extraction.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_extraction.proto index f547c36b24c3..9b6292133316 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_extraction.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_extraction.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.predict.instance; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Instance"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/instance;instance"; option java_multiple_files = true; option java_outer_classname = "TextExtractionPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.instance"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\Predict\\Instance"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::Predict::Instance"; // Prediction input format for Text Extraction. message TextExtractionPredictionInstance { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_sentiment.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_sentiment.proto index 204858212322..e312e865f485 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_sentiment.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_sentiment.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.predict.instance; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Instance"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/instance;instance"; option java_multiple_files = true; option java_outer_classname = "TextSentimentPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.instance"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\Predict\\Instance"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::Predict::Instance"; // Prediction input format for Text Sentiment. message TextSentimentPredictionInstance { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_action_recognition.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_action_recognition.proto index 888ae402fae5..810a4112e861 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_action_recognition.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_action_recognition.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.predict.instance; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Instance"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/instance;instance"; option java_multiple_files = true; option java_outer_classname = "VideoActionRecognitionPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.instance"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\Predict\\Instance"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::Predict::Instance"; // Prediction input format for Video Action Recognition. message VideoActionRecognitionPredictionInstance { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_classification.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_classification.proto index 5f7df37e3f0b..edc61a69ac99 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_classification.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_classification.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.predict.instance; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Instance"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/instance;instance"; option java_multiple_files = true; option java_outer_classname = "VideoClassificationPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.instance"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\Predict\\Instance"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::Predict::Instance"; // Prediction input format for Video Classification. message VideoClassificationPredictionInstance { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_object_tracking.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_object_tracking.proto index fec8b4d196ab..119e0c9b0ced 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_object_tracking.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/video_object_tracking.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.predict.instance; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Instance"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/instance;instance"; option java_multiple_files = true; option java_outer_classname = "VideoObjectTrackingPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.instance"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\Predict\\Instance"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::Predict::Instance"; // Prediction input format for Video Object Tracking. message VideoObjectTrackingPredictionInstance { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/image_classification.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/image_classification.proto index 4c7742cfcecf..a637e4a7876f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/image_classification.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/image_classification.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.predict.params; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Params"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/params;params"; option java_multiple_files = true; option java_outer_classname = "ImageClassificationPredictionParamsProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.params"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\Predict\\Params"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::Predict::Params"; // Prediction model parameters for Image Classification. message ImageClassificationPredictionParams { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/image_object_detection.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/image_object_detection.proto index f77a9676d18c..35856e6cc472 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/image_object_detection.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/image_object_detection.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.predict.params; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Params"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/params;params"; option java_multiple_files = true; option java_outer_classname = "ImageObjectDetectionPredictionParamsProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.params"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\Predict\\Params"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::Predict::Params"; // Prediction model parameters for Image Object Detection. message ImageObjectDetectionPredictionParams { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/image_segmentation.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/image_segmentation.proto index 8664ccf2c3eb..ee18a8809968 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/image_segmentation.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/image_segmentation.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.predict.params; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Params"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/params;params"; option java_multiple_files = true; option java_outer_classname = "ImageSegmentationPredictionParamsProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.params"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\Predict\\Params"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::Predict::Params"; // Prediction model parameters for Image Segmentation. message ImageSegmentationPredictionParams { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/video_action_recognition.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/video_action_recognition.proto index e70d6ff665d7..8cd1d47cb6ca 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/video_action_recognition.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/video_action_recognition.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.predict.params; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Params"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/params;params"; option java_multiple_files = true; option java_outer_classname = "VideoActionRecognitionPredictionParamsProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.params"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\Predict\\Params"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::Predict::Params"; // Prediction model parameters for Video Action Recognition. message VideoActionRecognitionPredictionParams { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/video_classification.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/video_classification.proto index ee99e65c0fcf..856869cd89cb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/video_classification.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/video_classification.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.predict.params; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Params"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/params;params"; option java_multiple_files = true; option java_outer_classname = "VideoClassificationPredictionParamsProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.params"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\Predict\\Params"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::Predict::Params"; // Prediction model parameters for Video Classification. message VideoClassificationPredictionParams { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/video_object_tracking.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/video_object_tracking.proto index d51305104ca5..8fc616cd0066 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/video_object_tracking.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/video_object_tracking.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.predict.params; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Params"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/params;params"; option java_multiple_files = true; option java_outer_classname = "VideoObjectTrackingPredictionParamsProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.params"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\Predict\\Params"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::Predict::Params"; // Prediction model parameters for Video Object Tracking. message VideoObjectTrackingPredictionParams { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/classification.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/classification.proto index f2c683f16901..0a77a247563f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/classification.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/classification.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.predict.prediction; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Prediction"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; option java_multiple_files = true; option java_outer_classname = "ClassificationPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\Predict\\Prediction"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::Predict::Prediction"; // Prediction output format for Image and Text Classification. message ClassificationPredictionResult { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_object_detection.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_object_detection.proto index 519f525af5f0..3df5d1e41ccd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_object_detection.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_object_detection.proto @@ -19,10 +19,13 @@ package google.cloud.aiplatform.v1beta1.schema.predict.prediction; import "google/protobuf/struct.proto"; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Prediction"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; option java_multiple_files = true; option java_outer_classname = "ImageObjectDetectionPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\Predict\\Prediction"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::Predict::Prediction"; // Prediction output format for Image Object Detection. message ImageObjectDetectionPredictionResult { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_segmentation.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_segmentation.proto index b48846ea8958..db998c632c96 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_segmentation.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/image_segmentation.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.predict.prediction; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Prediction"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; option java_multiple_files = true; option java_outer_classname = "ImageSegmentationPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\Predict\\Prediction"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::Predict::Prediction"; // Prediction output format for Image Segmentation. message ImageSegmentationPredictionResult { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_classification.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_classification.proto index f9b5dc88aefa..fde1fae6638b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_classification.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_classification.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.predict.prediction; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Prediction"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; option java_multiple_files = true; option java_outer_classname = "TabularClassificationPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\Predict\\Prediction"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::Predict::Prediction"; // Prediction output format for Tabular Classification. message TabularClassificationPredictionResult { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_regression.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_regression.proto index 8f2ad6a5e2fa..7e8de866b692 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_regression.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/tabular_regression.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.predict.prediction; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Prediction"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; option java_multiple_files = true; option java_outer_classname = "TabularRegressionPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\Predict\\Prediction"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::Predict::Prediction"; // Prediction output format for Tabular Regression. message TabularRegressionPredictionResult { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_extraction.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_extraction.proto index 7b4b43aefecd..cce7b068e3ed 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_extraction.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_extraction.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.predict.prediction; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Prediction"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; option java_multiple_files = true; option java_outer_classname = "TextExtractionPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\Predict\\Prediction"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::Predict::Prediction"; // Prediction output format for Text Extraction. message TextExtractionPredictionResult { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_sentiment.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_sentiment.proto index 41a6c2a90462..faefeb1955e9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_sentiment.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/text_sentiment.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.predict.prediction; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Prediction"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; option java_multiple_files = true; option java_outer_classname = "TextSentimentPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\Predict\\Prediction"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::Predict::Prediction"; // Prediction output format for Text Sentiment message TextSentimentPredictionResult { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/time_series_forecasting.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/time_series_forecasting.proto index 8f435b68d67e..d1517b4ae0c5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/time_series_forecasting.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/time_series_forecasting.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.predict.prediction; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Prediction"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; option java_multiple_files = true; option java_outer_classname = "TimeSeriesForecastingPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\Predict\\Prediction"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::Predict::Prediction"; // Prediction output format for Time Series Forecasting. message TimeSeriesForecastingPredictionResult { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_action_recognition.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_action_recognition.proto index 779f2a0ae588..5a03f70dc9fe 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_action_recognition.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_action_recognition.proto @@ -20,10 +20,13 @@ import "google/protobuf/duration.proto"; import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Prediction"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; option java_multiple_files = true; option java_outer_classname = "VideoActionRecognitionPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\Predict\\Prediction"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::Predict::Prediction"; // Prediction output format for Video Action Recognition. message VideoActionRecognitionPredictionResult { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_classification.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_classification.proto index bef4dcb0f2fe..bc5c5c37d2c9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_classification.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_classification.proto @@ -20,10 +20,13 @@ import "google/protobuf/duration.proto"; import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Prediction"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; option java_multiple_files = true; option java_outer_classname = "VideoClassificationPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\Predict\\Prediction"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::Predict::Prediction"; // Prediction output format for Video Classification. message VideoClassificationPredictionResult { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_object_tracking.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_object_tracking.proto index 1d443a06e267..fcfbff92f8ff 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_object_tracking.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/video_object_tracking.proto @@ -20,10 +20,13 @@ import "google/protobuf/duration.proto"; import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Prediction"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction"; option java_multiple_files = true; option java_outer_classname = "VideoObjectTrackingPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\Predict\\Prediction"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::Predict::Prediction"; // Prediction output format for Video Object Tracking. message VideoObjectTrackingPredictionResult { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_classification.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_classification.proto index f9f7420e8877..53ead626726b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_classification.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_classification.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.trainingjob.definition; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.TrainingJob.Definition"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; option java_multiple_files = true; option java_outer_classname = "AutoMLImageClassificationProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\TrainingJob\\Definition"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::TrainingJob::Definition"; // A TrainingJob that trains and uploads an AutoML Image Classification Model. message AutoMlImageClassification { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_object_detection.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_object_detection.proto index 5e757987b413..4c0066444b0f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_object_detection.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_object_detection.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.trainingjob.definition; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.TrainingJob.Definition"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; option java_multiple_files = true; option java_outer_classname = "AutoMLImageObjectDetectionProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\TrainingJob\\Definition"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::TrainingJob::Definition"; // A TrainingJob that trains and uploads an AutoML Image Object Detection Model. message AutoMlImageObjectDetection { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_segmentation.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_segmentation.proto index bd379eb07d6e..c16721dad24d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_segmentation.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_segmentation.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.trainingjob.definition; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.TrainingJob.Definition"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; option java_multiple_files = true; option java_outer_classname = "AutoMLImageSegmentationProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\TrainingJob\\Definition"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::TrainingJob::Definition"; // A TrainingJob that trains and uploads an AutoML Image Segmentation Model. message AutoMlImageSegmentation { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_tables.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_tables.proto index 134f2701fb15..29d8d80aaf0c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_tables.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_tables.proto @@ -19,10 +19,13 @@ package google.cloud.aiplatform.v1beta1.schema.trainingjob.definition; import "google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto"; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.TrainingJob.Definition"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; option java_multiple_files = true; option java_outer_classname = "AutoMLTablesProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\TrainingJob\\Definition"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::TrainingJob::Definition"; // A TrainingJob that trains and uploads an AutoML Tables Model. message AutoMlTables { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_classification.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_classification.proto index ae28f9c26ab9..6a2c93dd1bdd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_classification.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_classification.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.trainingjob.definition; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.TrainingJob.Definition"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; option java_multiple_files = true; option java_outer_classname = "AutoMLTextClassificationProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\TrainingJob\\Definition"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::TrainingJob::Definition"; // A TrainingJob that trains and uploads an AutoML Text Classification Model. message AutoMlTextClassification { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_extraction.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_extraction.proto index 074b18974f46..6b1727640c6a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_extraction.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_extraction.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.trainingjob.definition; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.TrainingJob.Definition"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; option java_multiple_files = true; option java_outer_classname = "AutoMLTextExtractionProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\TrainingJob\\Definition"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::TrainingJob::Definition"; // A TrainingJob that trains and uploads an AutoML Text Extraction Model. message AutoMlTextExtraction { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_sentiment.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_sentiment.proto index ce85d9ec1c8b..18e42dceff5e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_sentiment.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_text_sentiment.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.trainingjob.definition; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.TrainingJob.Definition"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; option java_multiple_files = true; option java_outer_classname = "AutoMLTextSentimentProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\TrainingJob\\Definition"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::TrainingJob::Definition"; // A TrainingJob that trains and uploads an AutoML Text Sentiment Model. message AutoMlTextSentiment { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_time_series_forecasting.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_time_series_forecasting.proto index 50d10bdcf5ae..fdae0f0dbd01 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_time_series_forecasting.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_time_series_forecasting.proto @@ -19,10 +19,13 @@ package google.cloud.aiplatform.v1beta1.schema.trainingjob.definition; import "google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto"; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.TrainingJob.Definition"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; option java_multiple_files = true; option java_outer_classname = "AutoMLForecastingProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\TrainingJob\\Definition"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::TrainingJob::Definition"; // A TrainingJob that trains and uploads an AutoML Forecasting Model. message AutoMlForecasting { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_action_recognition.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_action_recognition.proto index fe7ce7e7944c..4a16d6585ea6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_action_recognition.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_action_recognition.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.trainingjob.definition; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.TrainingJob.Definition"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; option java_multiple_files = true; option java_outer_classname = "AutoMLVideoActionRecognitionProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\TrainingJob\\Definition"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::TrainingJob::Definition"; // A TrainingJob that trains and uploads an AutoML Video Action Recognition // Model. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto index 8b49b4336748..020ef5260035 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.trainingjob.definition; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.TrainingJob.Definition"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; option java_multiple_files = true; option java_outer_classname = "AutoMLVideoClassificationProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\TrainingJob\\Definition"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::TrainingJob::Definition"; // A TrainingJob that trains and uploads an AutoML Video Classification Model. message AutoMlVideoClassification { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto index ea04cedd294b..9858eafcfd75 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.trainingjob.definition; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.TrainingJob.Definition"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; option java_multiple_files = true; option java_outer_classname = "AutoMLVideoObjectTrackingProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\TrainingJob\\Definition"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::TrainingJob::Definition"; // A TrainingJob that trains and uploads an AutoML Video ObjectTracking Model. message AutoMlVideoObjectTracking { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto index 48bf3ca09e8a..80385668df54 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1.schema.trainingjob.definition; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.TrainingJob.Definition"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition;definition"; option java_multiple_files = true; option java_outer_classname = "ExportEvaluatedDataItemsConfigProto"; option java_package = "com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\TrainingJob\\Definition"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::TrainingJob::Definition"; // Configuration for exporting test set predictions to a BigQuery table. message ExportEvaluatedDataItemsConfig {