diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index a86dc465e..3f7432a5f 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/repo-automation-bots/owlbot-java:latest - digest: sha256:a9b83a276c82987d284b733713fe86a3c8a2cc457933767eeb2688b882e54c6a + digest: sha256:12cbdc4f137152a1a8b83f50ebc1a4098be0d3baff78b46efaec306f7cfafd13 diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 2f837f1cf..df5a20fcc 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-aiplatform.git", - "sha": "176fdffdf0c8593a709928d3ababcb72f1358fc5" + "sha": "465cf3defe3764b5aa75e784137579a7594ec5d7" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "39652e3948f455fd0b77535a0145eeec561a3706" + "sha": "1a2878d6909dd10ca4e3c1b5943d6622e996054e" } } ] diff --git a/.github/release-please.yml b/.github/release-please.yml index 8ca7f9cab..7bf580765 100644 --- a/.github/release-please.yml +++ b/.github/release-please.yml @@ -1,3 +1,8 @@ bumpMinorPreMajor: true handleGHRelease: true releaseType: java-yoshi +branches: + - bumpMinorPreMajor: true + handleGHRelease: true + releaseType: java-yoshi + branch: java7 diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index e100454f1..ffd39f6f8 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -1,49 +1,44 @@ - -# Whether or not rebase-merging is enabled on this repository. -# Defaults to `true` rebaseMergeAllowed: false - -# Whether or not squash-merging is enabled on this repository. -# Defaults to `true` squashMergeAllowed: true - -# Whether or not PRs are merged with a merge commit on this repository. -# Defaults to `false` mergeCommitAllowed: false - -# Rules for master branch protection branchProtectionRules: -# Identifies the protection rule pattern. Name of the branch to be protected. -# Defaults to `master` -- pattern: master - # Can admins overwrite branch protection. - # Defaults to `true` - isAdminEnforced: true - # Number of approving reviews required to update matching branches. - # Defaults to `1` - requiredApprovingReviewCount: 1 - # Are reviews from code owners required to update matching branches. - # Defaults to `false` - requiresCodeOwnerReviews: true - # Require up to date branches - requiresStrictStatusChecks: false - # List of required status check contexts that must pass for commits to be accepted to matching branches. - requiredStatusCheckContexts: - - "dependencies (8)" - - "dependencies (11)" - - "linkage-monitor" - - "lint" - - "clirr" - - "units (7)" - - "units (8)" - - "units (11)" - - "Kokoro - Test: Integration" - - "cla/google" -# List of explicit permissions to add (additive only) + - pattern: master + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - dependencies (8) + - dependencies (11) + - linkage-monitor + - lint + - clirr + - units (8) + - units (11) + - 'Kokoro - Test: Integration' + - cla/google + - OwlBot Post Processor + - pattern: java7 + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - dependencies (8) + - dependencies (11) + - linkage-monitor + - lint + - clirr + - units (7) + - units (8) + - units (11) + - 'Kokoro - Test: Integration' + - cla/google + - OwlBot Post Processor permissionRules: -- team: yoshi-admins - permission: admin -- team: yoshi-java-admins - permission: admin -- team: yoshi-java - permission: push + - team: yoshi-admins + permission: admin + - team: yoshi-java-admins + permission: admin + - team: yoshi-java + permission: push diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0195b32f0..65ae6ecdd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: [7, 8, 11] + java: [8, 11] steps: - uses: actions/checkout@v2 - uses: actions/setup-java@v1 diff --git a/CHANGELOG.md b/CHANGELOG.md index a1d33e007..0fd1c28a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,41 @@ # Changelog +## [2.0.0](https://www.github.com/googleapis/java-aiplatform/compare/v1.0.2...v2.0.0) (2021-08-06) + + +### ⚠ BREAKING CHANGES + +* Removes breaking change from v1 version of AI Platform protos +* release gapic-generator-java v2.0.0 (#603) + +### Features + +* Adds BigQuery output table field to batch prediction job output config [#449](https://www.github.com/googleapis/java-aiplatform/issues/449) ([a00087e](https://www.github.com/googleapis/java-aiplatform/commit/a00087eeb93ba3d1f158bfa00f02aad9b413a132)) +* Adds CustomJob.web_access_uris, CustomJob.enable_web_access fields ([a00087e](https://www.github.com/googleapis/java-aiplatform/commit/a00087eeb93ba3d1f158bfa00f02aad9b413a132)) +* Adds Endpoint.network, Endpoint.private_endpoints fields and PrivateEndpoints message ([a00087e](https://www.github.com/googleapis/java-aiplatform/commit/a00087eeb93ba3d1f158bfa00f02aad9b413a132)) +* Adds Execution.State constants: CACHED and CANCELLED ([a00087e](https://www.github.com/googleapis/java-aiplatform/commit/a00087eeb93ba3d1f158bfa00f02aad9b413a132)) +* Adds Feature Store features ([a00087e](https://www.github.com/googleapis/java-aiplatform/commit/a00087eeb93ba3d1f158bfa00f02aad9b413a132)) +* Adds fields to Study message ([a00087e](https://www.github.com/googleapis/java-aiplatform/commit/a00087eeb93ba3d1f158bfa00f02aad9b413a132)) +* Adds IndexEndpoint.private_ip_ranges field ([a00087e](https://www.github.com/googleapis/java-aiplatform/commit/a00087eeb93ba3d1f158bfa00f02aad9b413a132)) +* Adds IndexEndpointService.deployed_index_id field ([a00087e](https://www.github.com/googleapis/java-aiplatform/commit/a00087eeb93ba3d1f158bfa00f02aad9b413a132)) +* Adds MetadataService.DeleteArtifact and DeleteExecution methods ([a00087e](https://www.github.com/googleapis/java-aiplatform/commit/a00087eeb93ba3d1f158bfa00f02aad9b413a132)) +* Adds ModelMonitoringObjectConfig.explanation_config field and ModelMonitoringObjectConfig.ExplanationConfig message ([a00087e](https://www.github.com/googleapis/java-aiplatform/commit/a00087eeb93ba3d1f158bfa00f02aad9b413a132)) +* Adds ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.attribution_score_skew_thresholds and ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.attribution_score_drift_threshold fields ([a00087e](https://www.github.com/googleapis/java-aiplatform/commit/a00087eeb93ba3d1f158bfa00f02aad9b413a132)) +* release gapic-generator-java v2.0.0 ([#603](https://www.github.com/googleapis/java-aiplatform/issues/603)) ([a00087e](https://www.github.com/googleapis/java-aiplatform/commit/a00087eeb93ba3d1f158bfa00f02aad9b413a132)) +* Removes breaking change from v1 version of AI Platform protos ([a00087e](https://www.github.com/googleapis/java-aiplatform/commit/a00087eeb93ba3d1f158bfa00f02aad9b413a132)) + + +### Bug Fixes + +* add check exceptions for removing accelerator types ([#446](https://www.github.com/googleapis/java-aiplatform/issues/446)) ([789e343](https://www.github.com/googleapis/java-aiplatform/commit/789e34331d00ff4416eac2ac612e1cdd70a4cbd1)) + + +### Dependencies + +* update dependency com.google.api.grpc:proto-google-cloud-aiplatform-v1beta1 to v0.5.2 ([#434](https://www.github.com/googleapis/java-aiplatform/issues/434)) ([14100d8](https://www.github.com/googleapis/java-aiplatform/commit/14100d8c4d2f585213137fc3219df6fb9424c071)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2 ([#602](https://www.github.com/googleapis/java-aiplatform/issues/602)) ([ad91862](https://www.github.com/googleapis/java-aiplatform/commit/ad918628a999521a1da0b5cb9e8478ed8d7e18cd)) +* update dependency com.google.cloud:google-cloud-storage to v1.118.0 ([#440](https://www.github.com/googleapis/java-aiplatform/issues/440)) ([bd94ebc](https://www.github.com/googleapis/java-aiplatform/commit/bd94ebc1586e742c1d7fc8037e5b127f224325dc)) + ### [1.0.2](https://www.github.com/googleapis/java-aiplatform/compare/v1.0.1...v1.0.2) (2021-07-07) diff --git a/README.md b/README.md index d9cb9a2fc..986d10c87 100644 --- a/README.md +++ b/README.md @@ -8,50 +8,60 @@ Java idiomatic client for [Vertex AI][product-docs]. - [Product Documentation][product-docs] - [Client Library Documentation][javadocs] + ## Quickstart If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file + ```xml com.google.cloud google-cloud-aiplatform - 1.0.0 + 1.0.2 ``` If you are using Maven without BOM, add this to your dependencies: + ```xml com.google.cloud google-cloud-aiplatform - 1.0.0 + 1.0.2 ``` If you are using Gradle 5.x or later, add this to your dependencies + ```Groovy -implementation platform('com.google.cloud:libraries-bom:20.7.0') +implementation platform('com.google.cloud:libraries-bom:20.9.0') compile 'com.google.cloud:google-cloud-aiplatform' ``` If you are using Gradle without BOM, add this to your dependencies + ```Groovy -compile 'com.google.cloud:google-cloud-aiplatform:1.0.1' +compile 'com.google.cloud:google-cloud-aiplatform:1.0.2' ``` If you are using SBT, add this to your dependencies + ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "1.0.1" +libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "1.0.2" ``` ## Authentication See the [Authentication][authentication] section in the base directory's README. +## Authorization + +The client application making API calls must be granted [authorization scopes][auth-scopes] required for the desired Vertex AI APIs, and the authenticated principal must have the [IAM role(s)][predefined-iam-roles] required to access GCP resources using the Vertex AI API calls. + ## Getting Started ### Prerequisites @@ -81,8 +91,7 @@ use this Vertex AI Client Library. ## Samples -Samples are in the [`samples/`](https://github.com/googleapis/java-aiplatform/tree/master/samples) directory. The samples' `README.md` -has instructions for running the samples. +Samples are in the [`samples/`](https://github.com/googleapis/java-aiplatform/tree/master/samples) directory. | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | @@ -182,16 +191,57 @@ To get help, follow the instructions in the [shared Troubleshooting document][tr Vertex AI uses gRPC for the transport layer. -## Java Versions +## Supported Java Versions Java 7 or above is required for using this client. +Google's Java client libraries, +[Google Cloud Client Libraries][cloudlibs] +and +[Google Cloud API Libraries][apilibs], +follow the +[Oracle Java SE support roadmap][oracle] +(see the Oracle Java SE Product Releases section). + +### For new development + +In general, new feature development occurs with support for the lowest Java +LTS version covered by Oracle's Premier Support (which typically lasts 5 years +from initial General Availability). If the minimum required JVM for a given +library is changed, it is accompanied by a [semver][semver] major release. + +Java 11 and (in September 2021) Java 17 are the best choices for new +development. + +### Keeping production systems current + +Google tests its client libraries with all current LTS versions covered by +Oracle's Extended Support (which typically lasts 8 years from initial +General Availability). + +#### Legacy support + +Google's client libraries support legacy versions of Java runtimes with long +term stable libraries that don't receive feature updates on a best efforts basis +as it may not be possible to backport all patches. + +Google provides updates on a best efforts basis to apps that continue to use +Java 7, though apps might need to upgrade to current versions of the library +that supports their JVM. + +#### Where to find specific information + +The latest versions and the supported Java versions are identified on +the individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME` +and on [google-cloud-java][g-c-j]. + ## Versioning This library follows [Semantic Versioning](http://semver.org/). + ## Contributing @@ -203,6 +253,7 @@ Please note that this project is released with a Contributor Code of Conduct. By this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more information. + ## License Apache 2.0 - See [LICENSE][license] for more information. @@ -235,6 +286,9 @@ Java is a registered trademark of Oracle and/or its affiliates. [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-aiplatform.svg [maven-version-link]: https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-aiplatform&core=gav [authentication]: https://github.com/googleapis/google-cloud-java#authentication +[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes +[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles +[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy [developer-console]: https://console.developers.google.com/ [create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects [cloud-sdk]: https://cloud.google.com/sdk/ @@ -246,3 +300,9 @@ Java is a registered trademark of Oracle and/or its affiliates. [enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=aiplatform.googleapis.com [libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png + +[semver]: https://semver.org/ +[cloudlibs]: https://cloud.google.com/apis/docs/client-libraries-explained +[apilibs]: https://cloud.google.com/apis/docs/client-libraries-explained#google_api_client_libraries +[oracle]: https://www.oracle.com/java/technologies/java-se-support-roadmap.html +[g-c-j]: http://github.com/googleapis/google-cloud-java diff --git a/google-cloud-aiplatform-bom/pom.xml b/google-cloud-aiplatform-bom/pom.xml index a5e399311..1702423f6 100644 --- a/google-cloud-aiplatform-bom/pom.xml +++ b/google-cloud-aiplatform-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-aiplatform-bom - 1.0.2 + 2.0.0 pom com.google.cloud google-cloud-shared-config - 0.12.0 + 1.0.0 Google Cloud Vertex AI BOM @@ -43,17 +43,6 @@ true - - - sonatype-nexus-snapshots - https://oss.sonatype.org/content/repositories/snapshots - - - sonatype-nexus-staging - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - The Apache Software License, Version 2.0 @@ -67,27 +56,27 @@ com.google.cloud google-cloud-aiplatform - 1.0.2 + 2.0.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 1.0.2 + 2.0.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 0.5.2 + 0.6.0 com.google.api.grpc proto-google-cloud-aiplatform-v1 - 1.0.2 + 2.0.0 com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.5.2 + 0.6.0 diff --git a/google-cloud-aiplatform/pom.xml b/google-cloud-aiplatform/pom.xml index db107deaf..f882fde34 100644 --- a/google-cloud-aiplatform/pom.xml +++ b/google-cloud-aiplatform/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-aiplatform - 1.0.2 + 2.0.0 jar Google Cloud Vertex AI https://github.com/googleapis/java-aiplatform @@ -11,7 +11,7 @@ com.google.cloud google-cloud-aiplatform-parent - 1.0.2 + 2.0.0 google-cloud-aiplatform diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java index 6f9d2e147..75256788f 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.aiplatform.v1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -1426,12 +1425,7 @@ public static ApiFuture createAsync( ListDatasetsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListDatasetsPagedResponse apply(ListDatasetsPage input) { - return new ListDatasetsPagedResponse(input); - } - }, + input -> new ListDatasetsPagedResponse(input), MoreExecutors.directExecutor()); } @@ -1506,12 +1500,7 @@ public static ApiFuture createAsync( ListDataItemsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListDataItemsPagedResponse apply(ListDataItemsPage input) { - return new ListDataItemsPagedResponse(input); - } - }, + input -> new ListDataItemsPagedResponse(input), MoreExecutors.directExecutor()); } @@ -1587,12 +1576,7 @@ public static ApiFuture createAsync( ListAnnotationsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListAnnotationsPagedResponse apply(ListAnnotationsPage input) { - return new ListAnnotationsPagedResponse(input); - } - }, + input -> new ListAnnotationsPagedResponse(input), MoreExecutors.directExecutor()); } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceSettings.java index 56665ea03..3956f654b 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceSettings.java @@ -237,14 +237,13 @@ public DatasetServiceStubSettings.Builder getStubSettingsBuilder() { return ((DatasetServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceClient.java index 9cfa4a8c6..c4424c20f 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceClient.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.aiplatform.v1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -1097,12 +1096,7 @@ public static ApiFuture createAsync( ListEndpointsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListEndpointsPagedResponse apply(ListEndpointsPage input) { - return new ListEndpointsPagedResponse(input); - } - }, + input -> new ListEndpointsPagedResponse(input), MoreExecutors.directExecutor()); } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceSettings.java index d350c3cc8..eca80dba7 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceSettings.java @@ -219,14 +219,13 @@ public EndpointServiceStubSettings.Builder getStubSettingsBuilder() { return ((EndpointServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/JobServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/JobServiceClient.java index ca48e36ae..6a883b0ae 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/JobServiceClient.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/JobServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.aiplatform.v1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -2658,12 +2657,7 @@ public static ApiFuture createAsync( ListCustomJobsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListCustomJobsPagedResponse apply(ListCustomJobsPage input) { - return new ListCustomJobsPagedResponse(input); - } - }, + input -> new ListCustomJobsPagedResponse(input), MoreExecutors.directExecutor()); } @@ -2740,12 +2734,7 @@ public static ApiFuture createAsync( ListDataLabelingJobsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListDataLabelingJobsPagedResponse apply(ListDataLabelingJobsPage input) { - return new ListDataLabelingJobsPagedResponse(input); - } - }, + input -> new ListDataLabelingJobsPagedResponse(input), MoreExecutors.directExecutor()); } @@ -2833,14 +2822,7 @@ public static ApiFuture createAsync( .createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction< - ListHyperparameterTuningJobsPage, ListHyperparameterTuningJobsPagedResponse>() { - @Override - public ListHyperparameterTuningJobsPagedResponse apply( - ListHyperparameterTuningJobsPage input) { - return new ListHyperparameterTuningJobsPagedResponse(input); - } - }, + input -> new ListHyperparameterTuningJobsPagedResponse(input), MoreExecutors.directExecutor()); } @@ -2934,12 +2916,7 @@ public static ApiFuture createAsync( ListBatchPredictionJobsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListBatchPredictionJobsPagedResponse apply(ListBatchPredictionJobsPage input) { - return new ListBatchPredictionJobsPagedResponse(input); - } - }, + input -> new ListBatchPredictionJobsPagedResponse(input), MoreExecutors.directExecutor()); } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/JobServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/JobServiceSettings.java index d06a6f630..9359789cf 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/JobServiceSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/JobServiceSettings.java @@ -308,14 +308,13 @@ public JobServiceStubSettings.Builder getStubSettingsBuilder() { return ((JobServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceClient.java index d2985d171..bc641fdb9 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceClient.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.aiplatform.v1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -530,13 +529,7 @@ public static ApiFuture createAsync( SearchMigratableResourcesPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public SearchMigratableResourcesPagedResponse apply( - SearchMigratableResourcesPage input) { - return new SearchMigratableResourcesPagedResponse(input); - } - }, + input -> new SearchMigratableResourcesPagedResponse(input), MoreExecutors.directExecutor()); } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceSettings.java index 681ee3f81..7a1ffc106 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceSettings.java @@ -181,14 +181,13 @@ public MigrationServiceStubSettings.Builder getStubSettingsBuilder() { return ((MigrationServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceClient.java index 677ad942b..228998581 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceClient.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.aiplatform.v1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -1425,14 +1424,7 @@ public static ApiFuture createAsync( ApiFuture futurePage = ListModelsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( - futurePage, - new ApiFunction() { - @Override - public ListModelsPagedResponse apply(ListModelsPage input) { - return new ListModelsPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); + futurePage, input -> new ListModelsPagedResponse(input), MoreExecutors.directExecutor()); } private ListModelsPagedResponse(ListModelsPage page) { @@ -1507,12 +1499,7 @@ public static ApiFuture createAsync( ListModelEvaluationsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListModelEvaluationsPagedResponse apply(ListModelEvaluationsPage input) { - return new ListModelEvaluationsPagedResponse(input); - } - }, + input -> new ListModelEvaluationsPagedResponse(input), MoreExecutors.directExecutor()); } @@ -1599,13 +1586,7 @@ public static ApiFuture createAsync( ListModelEvaluationSlicesPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListModelEvaluationSlicesPagedResponse apply( - ListModelEvaluationSlicesPage input) { - return new ListModelEvaluationSlicesPagedResponse(input); - } - }, + input -> new ListModelEvaluationSlicesPagedResponse(input), MoreExecutors.directExecutor()); } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceSettings.java index 105a8809b..c84dbdaf6 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceSettings.java @@ -239,14 +239,13 @@ public ModelServiceStubSettings.Builder getStubSettingsBuilder() { return ((ModelServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceClient.java index f99d84536..9264df84d 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceClient.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.aiplatform.v1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -803,6 +802,606 @@ public final void cancelTrainingPipeline(CancelTrainingPipelineRequest request) return stub.cancelTrainingPipelineCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a PipelineJob. A PipelineJob will run immediately when created. + * + *

Sample code: + * + *

{@code
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   PipelineJob pipelineJob = PipelineJob.newBuilder().build();
+   *   String pipelineJobId = "pipelineJobId-1711315914";
+   *   PipelineJob response =
+   *       pipelineServiceClient.createPipelineJob(parent, pipelineJob, pipelineJobId);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location to create the PipelineJob in. Format: + * `projects/{project}/locations/{location}` + * @param pipelineJob Required. The PipelineJob to create. + * @param pipelineJobId The ID to use for the PipelineJob, which will become the final component + * of the PipelineJob name. If not provided, an ID will be automatically generated. + *

This value should be less than 128 characters, and valid characters are /[a-z][0-9]-/. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PipelineJob createPipelineJob( + LocationName parent, PipelineJob pipelineJob, String pipelineJobId) { + CreatePipelineJobRequest request = + CreatePipelineJobRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setPipelineJob(pipelineJob) + .setPipelineJobId(pipelineJobId) + .build(); + return createPipelineJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a PipelineJob. A PipelineJob will run immediately when created. + * + *

Sample code: + * + *

{@code
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   PipelineJob pipelineJob = PipelineJob.newBuilder().build();
+   *   String pipelineJobId = "pipelineJobId-1711315914";
+   *   PipelineJob response =
+   *       pipelineServiceClient.createPipelineJob(parent, pipelineJob, pipelineJobId);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location to create the PipelineJob in. Format: + * `projects/{project}/locations/{location}` + * @param pipelineJob Required. The PipelineJob to create. + * @param pipelineJobId The ID to use for the PipelineJob, which will become the final component + * of the PipelineJob name. If not provided, an ID will be automatically generated. + *

This value should be less than 128 characters, and valid characters are /[a-z][0-9]-/. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PipelineJob createPipelineJob( + String parent, PipelineJob pipelineJob, String pipelineJobId) { + CreatePipelineJobRequest request = + CreatePipelineJobRequest.newBuilder() + .setParent(parent) + .setPipelineJob(pipelineJob) + .setPipelineJobId(pipelineJobId) + .build(); + return createPipelineJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a PipelineJob. A PipelineJob will run immediately when created. + * + *

Sample code: + * + *

{@code
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   CreatePipelineJobRequest request =
+   *       CreatePipelineJobRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPipelineJob(PipelineJob.newBuilder().build())
+   *           .setPipelineJobId("pipelineJobId-1711315914")
+   *           .build();
+   *   PipelineJob response = pipelineServiceClient.createPipelineJob(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 PipelineJob createPipelineJob(CreatePipelineJobRequest request) { + return createPipelineJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a PipelineJob. A PipelineJob will run immediately when created. + * + *

Sample code: + * + *

{@code
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   CreatePipelineJobRequest request =
+   *       CreatePipelineJobRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPipelineJob(PipelineJob.newBuilder().build())
+   *           .setPipelineJobId("pipelineJobId-1711315914")
+   *           .build();
+   *   ApiFuture future =
+   *       pipelineServiceClient.createPipelineJobCallable().futureCall(request);
+   *   // Do something.
+   *   PipelineJob response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createPipelineJobCallable() { + return stub.createPipelineJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a PipelineJob. + * + *

Sample code: + * + *

{@code
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   PipelineJobName name = PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]");
+   *   PipelineJob response = pipelineServiceClient.getPipelineJob(name);
+   * }
+   * }
+ * + * @param name Required. The name of the PipelineJob resource. Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PipelineJob getPipelineJob(PipelineJobName name) { + GetPipelineJobRequest request = + GetPipelineJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getPipelineJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a PipelineJob. + * + *

Sample code: + * + *

{@code
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   String name = PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]").toString();
+   *   PipelineJob response = pipelineServiceClient.getPipelineJob(name);
+   * }
+   * }
+ * + * @param name Required. The name of the PipelineJob resource. Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PipelineJob getPipelineJob(String name) { + GetPipelineJobRequest request = GetPipelineJobRequest.newBuilder().setName(name).build(); + return getPipelineJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a PipelineJob. + * + *

Sample code: + * + *

{@code
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   GetPipelineJobRequest request =
+   *       GetPipelineJobRequest.newBuilder()
+   *           .setName(PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]").toString())
+   *           .build();
+   *   PipelineJob response = pipelineServiceClient.getPipelineJob(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 PipelineJob getPipelineJob(GetPipelineJobRequest request) { + return getPipelineJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a PipelineJob. + * + *

Sample code: + * + *

{@code
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   GetPipelineJobRequest request =
+   *       GetPipelineJobRequest.newBuilder()
+   *           .setName(PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       pipelineServiceClient.getPipelineJobCallable().futureCall(request);
+   *   // Do something.
+   *   PipelineJob response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getPipelineJobCallable() { + return stub.getPipelineJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists PipelineJobs in a Location. + * + *

Sample code: + * + *

{@code
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (PipelineJob element : pipelineServiceClient.listPipelineJobs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location to list the PipelineJobs from. + * Format: `projects/{project}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPipelineJobsPagedResponse listPipelineJobs(LocationName parent) { + ListPipelineJobsRequest request = + ListPipelineJobsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listPipelineJobs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists PipelineJobs in a Location. + * + *

Sample code: + * + *

{@code
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (PipelineJob element : pipelineServiceClient.listPipelineJobs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location to list the PipelineJobs from. + * Format: `projects/{project}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPipelineJobsPagedResponse listPipelineJobs(String parent) { + ListPipelineJobsRequest request = + ListPipelineJobsRequest.newBuilder().setParent(parent).build(); + return listPipelineJobs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists PipelineJobs in a Location. + * + *

Sample code: + * + *

{@code
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   ListPipelineJobsRequest request =
+   *       ListPipelineJobsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (PipelineJob element : pipelineServiceClient.listPipelineJobs(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 ListPipelineJobsPagedResponse listPipelineJobs(ListPipelineJobsRequest request) { + return listPipelineJobsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists PipelineJobs in a Location. + * + *

Sample code: + * + *

{@code
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   ListPipelineJobsRequest request =
+   *       ListPipelineJobsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       pipelineServiceClient.listPipelineJobsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (PipelineJob element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listPipelineJobsPagedCallable() { + return stub.listPipelineJobsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists PipelineJobs in a Location. + * + *

Sample code: + * + *

{@code
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   ListPipelineJobsRequest request =
+   *       ListPipelineJobsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListPipelineJobsResponse response =
+   *         pipelineServiceClient.listPipelineJobsCallable().call(request);
+   *     for (PipelineJob element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listPipelineJobsCallable() { + return stub.listPipelineJobsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a PipelineJob. + * + *

Sample code: + * + *

{@code
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   PipelineJobName name = PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]");
+   *   pipelineServiceClient.deletePipelineJobAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the PipelineJob resource to be deleted. Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deletePipelineJobAsync( + PipelineJobName name) { + DeletePipelineJobRequest request = + DeletePipelineJobRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deletePipelineJobAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a PipelineJob. + * + *

Sample code: + * + *

{@code
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   String name = PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]").toString();
+   *   pipelineServiceClient.deletePipelineJobAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the PipelineJob resource to be deleted. Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deletePipelineJobAsync(String name) { + DeletePipelineJobRequest request = DeletePipelineJobRequest.newBuilder().setName(name).build(); + return deletePipelineJobAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a PipelineJob. + * + *

Sample code: + * + *

{@code
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   DeletePipelineJobRequest request =
+   *       DeletePipelineJobRequest.newBuilder()
+   *           .setName(PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]").toString())
+   *           .build();
+   *   pipelineServiceClient.deletePipelineJobAsync(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 deletePipelineJobAsync( + DeletePipelineJobRequest request) { + return deletePipelineJobOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a PipelineJob. + * + *

Sample code: + * + *

{@code
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   DeletePipelineJobRequest request =
+   *       DeletePipelineJobRequest.newBuilder()
+   *           .setName(PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]").toString())
+   *           .build();
+   *   OperationFuture future =
+   *       pipelineServiceClient.deletePipelineJobOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deletePipelineJobOperationCallable() { + return stub.deletePipelineJobOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a PipelineJob. + * + *

Sample code: + * + *

{@code
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   DeletePipelineJobRequest request =
+   *       DeletePipelineJobRequest.newBuilder()
+   *           .setName(PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       pipelineServiceClient.deletePipelineJobCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deletePipelineJobCallable() { + return stub.deletePipelineJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Cancels a PipelineJob. Starts asynchronous cancellation on the PipelineJob. The server makes a + * best effort to cancel the pipeline, but success is not guaranteed. Clients can use + * [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1.PipelineService.GetPipelineJob] or + * other methods to check whether the cancellation succeeded or whether the pipeline completed + * despite cancellation. On successful cancellation, the PipelineJob is not deleted; instead it + * becomes a pipeline with a [PipelineJob.error][google.cloud.aiplatform.v1.PipelineJob.error] + * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`, and [PipelineJob.state][google.cloud.aiplatform.v1.PipelineJob.state] is set + * to `CANCELLED`. + * + *

Sample code: + * + *

{@code
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   PipelineJobName name = PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]");
+   *   pipelineServiceClient.cancelPipelineJob(name);
+   * }
+   * }
+ * + * @param name Required. The name of the PipelineJob to cancel. Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void cancelPipelineJob(PipelineJobName name) { + CancelPipelineJobRequest request = + CancelPipelineJobRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + cancelPipelineJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Cancels a PipelineJob. Starts asynchronous cancellation on the PipelineJob. The server makes a + * best effort to cancel the pipeline, but success is not guaranteed. Clients can use + * [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1.PipelineService.GetPipelineJob] or + * other methods to check whether the cancellation succeeded or whether the pipeline completed + * despite cancellation. On successful cancellation, the PipelineJob is not deleted; instead it + * becomes a pipeline with a [PipelineJob.error][google.cloud.aiplatform.v1.PipelineJob.error] + * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`, and [PipelineJob.state][google.cloud.aiplatform.v1.PipelineJob.state] is set + * to `CANCELLED`. + * + *

Sample code: + * + *

{@code
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   String name = PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]").toString();
+   *   pipelineServiceClient.cancelPipelineJob(name);
+   * }
+   * }
+ * + * @param name Required. The name of the PipelineJob to cancel. Format: + * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void cancelPipelineJob(String name) { + CancelPipelineJobRequest request = CancelPipelineJobRequest.newBuilder().setName(name).build(); + cancelPipelineJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Cancels a PipelineJob. Starts asynchronous cancellation on the PipelineJob. The server makes a + * best effort to cancel the pipeline, but success is not guaranteed. Clients can use + * [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1.PipelineService.GetPipelineJob] or + * other methods to check whether the cancellation succeeded or whether the pipeline completed + * despite cancellation. On successful cancellation, the PipelineJob is not deleted; instead it + * becomes a pipeline with a [PipelineJob.error][google.cloud.aiplatform.v1.PipelineJob.error] + * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`, and [PipelineJob.state][google.cloud.aiplatform.v1.PipelineJob.state] is set + * to `CANCELLED`. + * + *

Sample code: + * + *

{@code
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   CancelPipelineJobRequest request =
+   *       CancelPipelineJobRequest.newBuilder()
+   *           .setName(PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]").toString())
+   *           .build();
+   *   pipelineServiceClient.cancelPipelineJob(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 void cancelPipelineJob(CancelPipelineJobRequest request) { + cancelPipelineJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Cancels a PipelineJob. Starts asynchronous cancellation on the PipelineJob. The server makes a + * best effort to cancel the pipeline, but success is not guaranteed. Clients can use + * [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1.PipelineService.GetPipelineJob] or + * other methods to check whether the cancellation succeeded or whether the pipeline completed + * despite cancellation. On successful cancellation, the PipelineJob is not deleted; instead it + * becomes a pipeline with a [PipelineJob.error][google.cloud.aiplatform.v1.PipelineJob.error] + * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`, and [PipelineJob.state][google.cloud.aiplatform.v1.PipelineJob.state] is set + * to `CANCELLED`. + * + *

Sample code: + * + *

{@code
+   * try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+   *   CancelPipelineJobRequest request =
+   *       CancelPipelineJobRequest.newBuilder()
+   *           .setName(PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       pipelineServiceClient.cancelPipelineJobCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable cancelPipelineJobCallable() { + return stub.cancelPipelineJobCallable(); + } + @Override public final void close() { stub.close(); @@ -849,12 +1448,7 @@ public static ApiFuture createAsync( ListTrainingPipelinesPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListTrainingPipelinesPagedResponse apply(ListTrainingPipelinesPage input) { - return new ListTrainingPipelinesPagedResponse(input); - } - }, + input -> new ListTrainingPipelinesPagedResponse(input), MoreExecutors.directExecutor()); } @@ -921,4 +1515,81 @@ protected ListTrainingPipelinesFixedSizeCollection createCollection( return new ListTrainingPipelinesFixedSizeCollection(pages, collectionSize); } } + + public static class ListPipelineJobsPagedResponse + extends AbstractPagedListResponse< + ListPipelineJobsRequest, + ListPipelineJobsResponse, + PipelineJob, + ListPipelineJobsPage, + ListPipelineJobsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListPipelineJobsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListPipelineJobsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListPipelineJobsPagedResponse(ListPipelineJobsPage page) { + super(page, ListPipelineJobsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListPipelineJobsPage + extends AbstractPage< + ListPipelineJobsRequest, ListPipelineJobsResponse, PipelineJob, ListPipelineJobsPage> { + + private ListPipelineJobsPage( + PageContext context, + ListPipelineJobsResponse response) { + super(context, response); + } + + private static ListPipelineJobsPage createEmptyPage() { + return new ListPipelineJobsPage(null, null); + } + + @Override + protected ListPipelineJobsPage createPage( + PageContext context, + ListPipelineJobsResponse response) { + return new ListPipelineJobsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListPipelineJobsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListPipelineJobsRequest, + ListPipelineJobsResponse, + PipelineJob, + ListPipelineJobsPage, + ListPipelineJobsFixedSizeCollection> { + + private ListPipelineJobsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListPipelineJobsFixedSizeCollection createEmptyCollection() { + return new ListPipelineJobsFixedSizeCollection(null, 0); + } + + @Override + protected ListPipelineJobsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListPipelineJobsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceSettings.java index 362490ee6..ce4beaeed 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceSettings.java @@ -16,6 +16,7 @@ package com.google.cloud.aiplatform.v1; +import static com.google.cloud.aiplatform.v1.PipelineServiceClient.ListPipelineJobsPagedResponse; import static com.google.cloud.aiplatform.v1.PipelineServiceClient.ListTrainingPipelinesPagedResponse; import com.google.api.core.ApiFunction; @@ -111,6 +112,39 @@ public UnaryCallSettings cancelTrainingPip return ((PipelineServiceStubSettings) getStubSettings()).cancelTrainingPipelineSettings(); } + /** Returns the object with the settings used for calls to createPipelineJob. */ + public UnaryCallSettings createPipelineJobSettings() { + return ((PipelineServiceStubSettings) getStubSettings()).createPipelineJobSettings(); + } + + /** Returns the object with the settings used for calls to getPipelineJob. */ + public UnaryCallSettings getPipelineJobSettings() { + return ((PipelineServiceStubSettings) getStubSettings()).getPipelineJobSettings(); + } + + /** Returns the object with the settings used for calls to listPipelineJobs. */ + public PagedCallSettings< + ListPipelineJobsRequest, ListPipelineJobsResponse, ListPipelineJobsPagedResponse> + listPipelineJobsSettings() { + return ((PipelineServiceStubSettings) getStubSettings()).listPipelineJobsSettings(); + } + + /** Returns the object with the settings used for calls to deletePipelineJob. */ + public UnaryCallSettings deletePipelineJobSettings() { + return ((PipelineServiceStubSettings) getStubSettings()).deletePipelineJobSettings(); + } + + /** Returns the object with the settings used for calls to deletePipelineJob. */ + public OperationCallSettings + deletePipelineJobOperationSettings() { + return ((PipelineServiceStubSettings) getStubSettings()).deletePipelineJobOperationSettings(); + } + + /** Returns the object with the settings used for calls to cancelPipelineJob. */ + public UnaryCallSettings cancelPipelineJobSettings() { + return ((PipelineServiceStubSettings) getStubSettings()).cancelPipelineJobSettings(); + } + public static final PipelineServiceSettings create(PipelineServiceStubSettings stub) throws IOException { return new PipelineServiceSettings.Builder(stub.toBuilder()).build(); @@ -196,14 +230,13 @@ public PipelineServiceStubSettings.Builder getStubSettingsBuilder() { return ((PipelineServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; @@ -249,6 +282,41 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().cancelTrainingPipelineSettings(); } + /** Returns the builder for the settings used for calls to createPipelineJob. */ + public UnaryCallSettings.Builder + createPipelineJobSettings() { + return getStubSettingsBuilder().createPipelineJobSettings(); + } + + /** Returns the builder for the settings used for calls to getPipelineJob. */ + public UnaryCallSettings.Builder getPipelineJobSettings() { + return getStubSettingsBuilder().getPipelineJobSettings(); + } + + /** Returns the builder for the settings used for calls to listPipelineJobs. */ + public PagedCallSettings.Builder< + ListPipelineJobsRequest, ListPipelineJobsResponse, ListPipelineJobsPagedResponse> + listPipelineJobsSettings() { + return getStubSettingsBuilder().listPipelineJobsSettings(); + } + + /** Returns the builder for the settings used for calls to deletePipelineJob. */ + public UnaryCallSettings.Builder + deletePipelineJobSettings() { + return getStubSettingsBuilder().deletePipelineJobSettings(); + } + + /** Returns the builder for the settings used for calls to deletePipelineJob. */ + public OperationCallSettings.Builder + deletePipelineJobOperationSettings() { + return getStubSettingsBuilder().deletePipelineJobOperationSettings(); + } + + /** Returns the builder for the settings used for calls to cancelPipelineJob. */ + public UnaryCallSettings.Builder cancelPipelineJobSettings() { + return getStubSettingsBuilder().cancelPipelineJobSettings(); + } + @Override public PipelineServiceSettings build() throws IOException { return new PipelineServiceSettings(this); diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceSettings.java index 912152a44..ae1d1c469 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceSettings.java @@ -156,14 +156,13 @@ public PredictionServiceStubSettings.Builder getStubSettingsBuilder() { return ((PredictionServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceClient.java index 52400fdf2..fecbc9906 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceClient.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.aiplatform.v1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -861,12 +860,7 @@ public static ApiFuture createAsync( ListSpecialistPoolsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListSpecialistPoolsPagedResponse apply(ListSpecialistPoolsPage input) { - return new ListSpecialistPoolsPagedResponse(input); - } - }, + input -> new ListSpecialistPoolsPagedResponse(input), MoreExecutors.directExecutor()); } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceSettings.java index fb702d153..24a946135 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceSettings.java @@ -209,14 +209,13 @@ public SpecialistPoolServiceStubSettings.Builder getStubSettingsBuilder() { return ((SpecialistPoolServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json index b22619036..3df6d4d02 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json @@ -202,18 +202,33 @@ "grpc": { "libraryClient": "PipelineServiceClient", "rpcs": { + "CancelPipelineJob": { + "methods": ["cancelPipelineJob", "cancelPipelineJob", "cancelPipelineJob", "cancelPipelineJobCallable"] + }, "CancelTrainingPipeline": { "methods": ["cancelTrainingPipeline", "cancelTrainingPipeline", "cancelTrainingPipeline", "cancelTrainingPipelineCallable"] }, + "CreatePipelineJob": { + "methods": ["createPipelineJob", "createPipelineJob", "createPipelineJob", "createPipelineJobCallable"] + }, "CreateTrainingPipeline": { "methods": ["createTrainingPipeline", "createTrainingPipeline", "createTrainingPipeline", "createTrainingPipelineCallable"] }, + "DeletePipelineJob": { + "methods": ["deletePipelineJobAsync", "deletePipelineJobAsync", "deletePipelineJobAsync", "deletePipelineJobOperationCallable", "deletePipelineJobCallable"] + }, "DeleteTrainingPipeline": { "methods": ["deleteTrainingPipelineAsync", "deleteTrainingPipelineAsync", "deleteTrainingPipelineAsync", "deleteTrainingPipelineOperationCallable", "deleteTrainingPipelineCallable"] }, + "GetPipelineJob": { + "methods": ["getPipelineJob", "getPipelineJob", "getPipelineJob", "getPipelineJobCallable"] + }, "GetTrainingPipeline": { "methods": ["getTrainingPipeline", "getTrainingPipeline", "getTrainingPipeline", "getTrainingPipelineCallable"] }, + "ListPipelineJobs": { + "methods": ["listPipelineJobs", "listPipelineJobs", "listPipelineJobs", "listPipelineJobsPagedCallable", "listPipelineJobsCallable"] + }, "ListTrainingPipelines": { "methods": ["listTrainingPipelines", "listTrainingPipelines", "listTrainingPipelines", "listTrainingPipelinesPagedCallable", "listTrainingPipelinesCallable"] } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java index 6e89bd0dc..4e37011a0 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java @@ -768,14 +768,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStubSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStubSettings.java index b2e1d97d7..0eef52b4c 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStubSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/EndpointServiceStubSettings.java @@ -591,14 +591,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcDatasetServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcDatasetServiceStub.java index da638eb17..552a4764f 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcDatasetServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcDatasetServiceStub.java @@ -26,7 +26,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1.AnnotationSpec; import com.google.cloud.aiplatform.v1.CreateDatasetOperationMetadata; @@ -56,7 +55,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -240,117 +238,90 @@ protected GrpcDatasetServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createDatasetMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateDatasetRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getDatasetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getDatasetMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetDatasetRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings updateDatasetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateDatasetMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateDatasetRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("dataset.name", String.valueOf(request.getDataset().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("dataset.name", String.valueOf(request.getDataset().getName())); + return params.build(); }) .build(); GrpcCallSettings listDatasetsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listDatasetsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListDatasetsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings deleteDatasetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteDatasetMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteDatasetRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings importDataTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(importDataMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ImportDataRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings exportDataTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(exportDataMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ExportDataRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings listDataItemsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listDataItemsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListDataItemsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getAnnotationSpecTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getAnnotationSpecMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetAnnotationSpecRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -358,13 +329,10 @@ public Map extract(GetAnnotationSpecRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(listAnnotationsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListAnnotationsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); @@ -535,7 +503,13 @@ public UnaryCallable listAnnota @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcEndpointServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcEndpointServiceStub.java index df0fa2cf0..e89167e45 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcEndpointServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcEndpointServiceStub.java @@ -24,7 +24,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1.CreateEndpointOperationMetadata; import com.google.cloud.aiplatform.v1.CreateEndpointRequest; @@ -48,7 +47,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -195,91 +193,70 @@ protected GrpcEndpointServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createEndpointMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateEndpointRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getEndpointTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getEndpointMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetEndpointRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings listEndpointsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listEndpointsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListEndpointsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings updateEndpointTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateEndpointMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateEndpointRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("endpoint.name", String.valueOf(request.getEndpoint().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("endpoint.name", String.valueOf(request.getEndpoint().getName())); + return params.build(); }) .build(); GrpcCallSettings deleteEndpointTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteEndpointMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteEndpointRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings deployModelTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deployModelMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeployModelRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("endpoint", String.valueOf(request.getEndpoint())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("endpoint", String.valueOf(request.getEndpoint())); + return params.build(); }) .build(); GrpcCallSettings undeployModelTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(undeployModelMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UndeployModelRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("endpoint", String.valueOf(request.getEndpoint())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("endpoint", String.valueOf(request.getEndpoint())); + return params.build(); }) .build(); @@ -408,7 +385,13 @@ public UnaryCallable undeployModelCallable() { @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcJobServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcJobServiceStub.java index 2db26b4da..3b7a20c95 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcJobServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcJobServiceStub.java @@ -27,7 +27,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1.BatchPredictionJob; import com.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest; @@ -65,7 +64,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -393,26 +391,20 @@ protected GrpcJobServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createCustomJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateCustomJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getCustomJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getCustomJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetCustomJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -420,39 +412,30 @@ public Map extract(GetCustomJobRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(listCustomJobsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListCustomJobsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings deleteCustomJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteCustomJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteCustomJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings cancelCustomJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(cancelCustomJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CancelCustomJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -460,13 +443,10 @@ public Map extract(CancelCustomJobRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(createDataLabelingJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateDataLabelingJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -474,13 +454,10 @@ public Map extract(CreateDataLabelingJobRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(getDataLabelingJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetDataLabelingJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -488,13 +465,10 @@ public Map extract(GetDataLabelingJobRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(listDataLabelingJobsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListDataLabelingJobsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -502,26 +476,20 @@ public Map extract(ListDataLabelingJobsRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteDataLabelingJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteDataLabelingJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings cancelDataLabelingJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(cancelDataLabelingJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CancelDataLabelingJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -530,14 +498,10 @@ public Map extract(CancelDataLabelingJobRequest request) { .newBuilder() .setMethodDescriptor(createHyperparameterTuningJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - CreateHyperparameterTuningJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -546,14 +510,10 @@ public Map extract( .newBuilder() .setMethodDescriptor(getHyperparameterTuningJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - GetHyperparameterTuningJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -563,14 +523,10 @@ public Map extract( newBuilder() .setMethodDescriptor(listHyperparameterTuningJobsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - ListHyperparameterTuningJobsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -578,14 +534,10 @@ public Map extract( GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteHyperparameterTuningJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - DeleteHyperparameterTuningJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -593,14 +545,10 @@ public Map extract( GrpcCallSettings.newBuilder() .setMethodDescriptor(cancelHyperparameterTuningJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - CancelHyperparameterTuningJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -608,13 +556,10 @@ public Map extract( GrpcCallSettings.newBuilder() .setMethodDescriptor(createBatchPredictionJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateBatchPredictionJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -622,13 +567,10 @@ public Map extract(CreateBatchPredictionJobRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(getBatchPredictionJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetBatchPredictionJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -637,13 +579,10 @@ public Map extract(GetBatchPredictionJobRequest request) { .newBuilder() .setMethodDescriptor(listBatchPredictionJobsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListBatchPredictionJobsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -651,13 +590,10 @@ public Map extract(ListBatchPredictionJobsRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteBatchPredictionJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteBatchPredictionJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -665,13 +601,10 @@ public Map extract(DeleteBatchPredictionJobRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(cancelBatchPredictionJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CancelBatchPredictionJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); @@ -978,7 +911,13 @@ public UnaryCallable cancelBatchPredicti @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcMigrationServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcMigrationServiceStub.java index a037ea74d..382d8dbc6 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcMigrationServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcMigrationServiceStub.java @@ -24,7 +24,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata; import com.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest; @@ -37,7 +36,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -137,13 +135,10 @@ protected GrpcMigrationServiceStub( .newBuilder() .setMethodDescriptor(searchMigratableResourcesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SearchMigratableResourcesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -151,13 +146,10 @@ public Map extract(SearchMigratableResourcesRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(batchMigrateResourcesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(BatchMigrateResourcesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); @@ -219,7 +211,13 @@ public UnaryCallable batchMigrateResour @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcModelServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcModelServiceStub.java index 73fc68bab..27be1e75d 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcModelServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcModelServiceStub.java @@ -26,7 +26,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1.DeleteModelRequest; import com.google.cloud.aiplatform.v1.DeleteOperationMetadata; @@ -56,7 +55,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -238,78 +236,60 @@ protected GrpcModelServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(uploadModelMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UploadModelRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getModelTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getModelMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetModelRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings listModelsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listModelsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListModelsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings updateModelTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateModelMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateModelRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("model.name", String.valueOf(request.getModel().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("model.name", String.valueOf(request.getModel().getName())); + return params.build(); }) .build(); GrpcCallSettings deleteModelTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteModelMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteModelRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings exportModelTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(exportModelMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ExportModelRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -317,13 +297,10 @@ public Map extract(ExportModelRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(getModelEvaluationMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetModelEvaluationRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -331,13 +308,10 @@ public Map extract(GetModelEvaluationRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(listModelEvaluationsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListModelEvaluationsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -345,13 +319,10 @@ public Map extract(ListModelEvaluationsRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(getModelEvaluationSliceMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetModelEvaluationSliceRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -360,13 +331,10 @@ public Map extract(GetModelEvaluationSliceRequest request) { .newBuilder() .setMethodDescriptor(listModelEvaluationSlicesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListModelEvaluationSlicesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); @@ -538,7 +506,13 @@ public UnaryCallable getModelEvaluat @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPipelineServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPipelineServiceStub.java index 6c1507a64..c3d69bb09 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPipelineServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPipelineServiceStub.java @@ -16,6 +16,7 @@ package com.google.cloud.aiplatform.v1.stub; +import static com.google.cloud.aiplatform.v1.PipelineServiceClient.ListPipelineJobsPagedResponse; import static com.google.cloud.aiplatform.v1.PipelineServiceClient.ListTrainingPipelinesPagedResponse; import com.google.api.gax.core.BackgroundResource; @@ -24,15 +25,21 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1.CancelPipelineJobRequest; import com.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest; +import com.google.cloud.aiplatform.v1.CreatePipelineJobRequest; import com.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest; import com.google.cloud.aiplatform.v1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1.DeletePipelineJobRequest; import com.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest; +import com.google.cloud.aiplatform.v1.GetPipelineJobRequest; import com.google.cloud.aiplatform.v1.GetTrainingPipelineRequest; +import com.google.cloud.aiplatform.v1.ListPipelineJobsRequest; +import com.google.cloud.aiplatform.v1.ListPipelineJobsResponse; import com.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest; import com.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse; +import com.google.cloud.aiplatform.v1.PipelineJob; import com.google.cloud.aiplatform.v1.TrainingPipeline; import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; @@ -41,7 +48,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -107,6 +113,57 @@ public class GrpcPipelineServiceStub extends PipelineServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + private static final MethodDescriptor + createPipelineJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.PipelineService/CreatePipelineJob") + .setRequestMarshaller( + ProtoUtils.marshaller(CreatePipelineJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(PipelineJob.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getPipelineJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.PipelineService/GetPipelineJob") + .setRequestMarshaller( + ProtoUtils.marshaller(GetPipelineJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(PipelineJob.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listPipelineJobsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.PipelineService/ListPipelineJobs") + .setRequestMarshaller( + ProtoUtils.marshaller(ListPipelineJobsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListPipelineJobsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deletePipelineJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.PipelineService/DeletePipelineJob") + .setRequestMarshaller( + ProtoUtils.marshaller(DeletePipelineJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + cancelPipelineJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.PipelineService/CancelPipelineJob") + .setRequestMarshaller( + ProtoUtils.marshaller(CancelPipelineJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private final UnaryCallable createTrainingPipelineCallable; private final UnaryCallable @@ -120,6 +177,16 @@ public class GrpcPipelineServiceStub extends PipelineServiceStub { private final OperationCallable deleteTrainingPipelineOperationCallable; private final UnaryCallable cancelTrainingPipelineCallable; + private final UnaryCallable createPipelineJobCallable; + private final UnaryCallable getPipelineJobCallable; + private final UnaryCallable + listPipelineJobsCallable; + private final UnaryCallable + listPipelineJobsPagedCallable; + private final UnaryCallable deletePipelineJobCallable; + private final OperationCallable + deletePipelineJobOperationCallable; + private final UnaryCallable cancelPipelineJobCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -170,13 +237,10 @@ protected GrpcPipelineServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createTrainingPipelineMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateTrainingPipelineRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -184,13 +248,10 @@ public Map extract(CreateTrainingPipelineRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(getTrainingPipelineMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetTrainingPipelineRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -199,13 +260,10 @@ public Map extract(GetTrainingPipelineRequest request) { .newBuilder() .setMethodDescriptor(listTrainingPipelinesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListTrainingPipelinesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -213,26 +271,71 @@ public Map extract(ListTrainingPipelinesRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteTrainingPipelineMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteTrainingPipelineRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings cancelTrainingPipelineTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(cancelTrainingPipelineMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CancelTrainingPipelineRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings createPipelineJobTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createPipelineJobMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings getPipelineJobTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getPipelineJobMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + listPipelineJobsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listPipelineJobsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings deletePipelineJobTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deletePipelineJobMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings cancelPipelineJobTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(cancelPipelineJobMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); @@ -272,6 +375,36 @@ public Map extract(CancelTrainingPipelineRequest request) { cancelTrainingPipelineTransportSettings, settings.cancelTrainingPipelineSettings(), clientContext); + this.createPipelineJobCallable = + callableFactory.createUnaryCallable( + createPipelineJobTransportSettings, + settings.createPipelineJobSettings(), + clientContext); + this.getPipelineJobCallable = + callableFactory.createUnaryCallable( + getPipelineJobTransportSettings, settings.getPipelineJobSettings(), clientContext); + this.listPipelineJobsCallable = + callableFactory.createUnaryCallable( + listPipelineJobsTransportSettings, settings.listPipelineJobsSettings(), clientContext); + this.listPipelineJobsPagedCallable = + callableFactory.createPagedCallable( + listPipelineJobsTransportSettings, settings.listPipelineJobsSettings(), clientContext); + this.deletePipelineJobCallable = + callableFactory.createUnaryCallable( + deletePipelineJobTransportSettings, + settings.deletePipelineJobSettings(), + clientContext); + this.deletePipelineJobOperationCallable = + callableFactory.createOperationCallable( + deletePipelineJobTransportSettings, + settings.deletePipelineJobOperationSettings(), + clientContext, + operationsStub); + this.cancelPipelineJobCallable = + callableFactory.createUnaryCallable( + cancelPipelineJobTransportSettings, + settings.cancelPipelineJobSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -320,9 +453,53 @@ public UnaryCallable cancelTrainingPipelin return cancelTrainingPipelineCallable; } + @Override + public UnaryCallable createPipelineJobCallable() { + return createPipelineJobCallable; + } + + @Override + public UnaryCallable getPipelineJobCallable() { + return getPipelineJobCallable; + } + + @Override + public UnaryCallable + listPipelineJobsCallable() { + return listPipelineJobsCallable; + } + + @Override + public UnaryCallable + listPipelineJobsPagedCallable() { + return listPipelineJobsPagedCallable; + } + + @Override + public UnaryCallable deletePipelineJobCallable() { + return deletePipelineJobCallable; + } + + @Override + public OperationCallable + deletePipelineJobOperationCallable() { + return deletePipelineJobOperationCallable; + } + + @Override + public UnaryCallable cancelPipelineJobCallable() { + return cancelPipelineJobCallable; + } + @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPredictionServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPredictionServiceStub.java index 5a09e9519..902bae521 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPredictionServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPredictionServiceStub.java @@ -21,7 +21,6 @@ import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1.PredictRequest; import com.google.cloud.aiplatform.v1.PredictResponse; @@ -30,7 +29,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -100,13 +98,10 @@ protected GrpcPredictionServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(predictMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(PredictRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("endpoint", String.valueOf(request.getEndpoint())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("endpoint", String.valueOf(request.getEndpoint())); + return params.build(); }) .build(); @@ -129,7 +124,13 @@ public UnaryCallable predictCallable() { @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcSpecialistPoolServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcSpecialistPoolServiceStub.java index b22c01c75..ecdad5241 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcSpecialistPoolServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcSpecialistPoolServiceStub.java @@ -24,7 +24,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1.CreateSpecialistPoolOperationMetadata; import com.google.cloud.aiplatform.v1.CreateSpecialistPoolRequest; @@ -43,7 +42,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -176,26 +174,20 @@ protected GrpcSpecialistPoolServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createSpecialistPoolMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateSpecialistPoolRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getSpecialistPoolTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getSpecialistPoolMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetSpecialistPoolRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -203,41 +195,32 @@ public Map extract(GetSpecialistPoolRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(listSpecialistPoolsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListSpecialistPoolsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings deleteSpecialistPoolTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteSpecialistPoolMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteSpecialistPoolRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings updateSpecialistPoolTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateSpecialistPoolMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateSpecialistPoolRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "specialist_pool.name", - String.valueOf(request.getSpecialistPool().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "specialist_pool.name", + String.valueOf(request.getSpecialistPool().getName())); + return params.build(); }) .build(); @@ -352,7 +335,13 @@ public UnaryCallable updateSpecialistPoo @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/JobServiceStubSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/JobServiceStubSettings.java index 2b55ef545..9e080ff6a 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/JobServiceStubSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/JobServiceStubSettings.java @@ -1135,14 +1135,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MigrationServiceStubSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MigrationServiceStubSettings.java index 310be444c..acb1d211c 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MigrationServiceStubSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/MigrationServiceStubSettings.java @@ -409,14 +409,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStubSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStubSettings.java index 8b9b6ed69..e36ac8cb6 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStubSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStubSettings.java @@ -776,14 +776,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStub.java index 9941dc0d3..79f01855f 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStub.java @@ -16,18 +16,26 @@ package com.google.cloud.aiplatform.v1.stub; +import static com.google.cloud.aiplatform.v1.PipelineServiceClient.ListPipelineJobsPagedResponse; import static com.google.cloud.aiplatform.v1.PipelineServiceClient.ListTrainingPipelinesPagedResponse; 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.CancelPipelineJobRequest; import com.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest; +import com.google.cloud.aiplatform.v1.CreatePipelineJobRequest; import com.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest; import com.google.cloud.aiplatform.v1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1.DeletePipelineJobRequest; import com.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest; +import com.google.cloud.aiplatform.v1.GetPipelineJobRequest; import com.google.cloud.aiplatform.v1.GetTrainingPipelineRequest; +import com.google.cloud.aiplatform.v1.ListPipelineJobsRequest; +import com.google.cloud.aiplatform.v1.ListPipelineJobsResponse; import com.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest; import com.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse; +import com.google.cloud.aiplatform.v1.PipelineJob; import com.google.cloud.aiplatform.v1.TrainingPipeline; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; @@ -81,6 +89,38 @@ public UnaryCallable cancelTrainingPipelin throw new UnsupportedOperationException("Not implemented: cancelTrainingPipelineCallable()"); } + public UnaryCallable createPipelineJobCallable() { + throw new UnsupportedOperationException("Not implemented: createPipelineJobCallable()"); + } + + public UnaryCallable getPipelineJobCallable() { + throw new UnsupportedOperationException("Not implemented: getPipelineJobCallable()"); + } + + public UnaryCallable + listPipelineJobsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listPipelineJobsPagedCallable()"); + } + + public UnaryCallable + listPipelineJobsCallable() { + throw new UnsupportedOperationException("Not implemented: listPipelineJobsCallable()"); + } + + public OperationCallable + deletePipelineJobOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deletePipelineJobOperationCallable()"); + } + + public UnaryCallable deletePipelineJobCallable() { + throw new UnsupportedOperationException("Not implemented: deletePipelineJobCallable()"); + } + + public UnaryCallable cancelPipelineJobCallable() { + throw new UnsupportedOperationException("Not implemented: cancelPipelineJobCallable()"); + } + @Override public abstract void close(); } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStubSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStubSettings.java index 94de9a69e..3c5cc2095 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStubSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStubSettings.java @@ -16,6 +16,7 @@ package com.google.cloud.aiplatform.v1.stub; +import static com.google.cloud.aiplatform.v1.PipelineServiceClient.ListPipelineJobsPagedResponse; import static com.google.cloud.aiplatform.v1.PipelineServiceClient.ListTrainingPipelinesPagedResponse; import com.google.api.core.ApiFunction; @@ -44,13 +45,20 @@ 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.CancelPipelineJobRequest; import com.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest; +import com.google.cloud.aiplatform.v1.CreatePipelineJobRequest; import com.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest; import com.google.cloud.aiplatform.v1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1.DeletePipelineJobRequest; import com.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest; +import com.google.cloud.aiplatform.v1.GetPipelineJobRequest; import com.google.cloud.aiplatform.v1.GetTrainingPipelineRequest; +import com.google.cloud.aiplatform.v1.ListPipelineJobsRequest; +import com.google.cloud.aiplatform.v1.ListPipelineJobsResponse; import com.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest; import com.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse; +import com.google.cloud.aiplatform.v1.PipelineJob; import com.google.cloud.aiplatform.v1.TrainingPipeline; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; @@ -116,6 +124,15 @@ public class PipelineServiceStubSettings extends StubSettings cancelTrainingPipelineSettings; + private final UnaryCallSettings createPipelineJobSettings; + private final UnaryCallSettings getPipelineJobSettings; + private final PagedCallSettings< + ListPipelineJobsRequest, ListPipelineJobsResponse, ListPipelineJobsPagedResponse> + listPipelineJobsSettings; + private final UnaryCallSettings deletePipelineJobSettings; + private final OperationCallSettings + deletePipelineJobOperationSettings; + private final UnaryCallSettings cancelPipelineJobSettings; private static final PagedListDescriptor< ListTrainingPipelinesRequest, ListTrainingPipelinesResponse, TrainingPipeline> @@ -158,6 +175,46 @@ public Iterable extractResources( } }; + private static final PagedListDescriptor< + ListPipelineJobsRequest, ListPipelineJobsResponse, PipelineJob> + LIST_PIPELINE_JOBS_PAGE_STR_DESC = + new PagedListDescriptor< + ListPipelineJobsRequest, ListPipelineJobsResponse, PipelineJob>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListPipelineJobsRequest injectToken( + ListPipelineJobsRequest payload, String token) { + return ListPipelineJobsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListPipelineJobsRequest injectPageSize( + ListPipelineJobsRequest payload, int pageSize) { + return ListPipelineJobsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListPipelineJobsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListPipelineJobsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListPipelineJobsResponse payload) { + return payload.getPipelineJobsList() == null + ? ImmutableList.of() + : payload.getPipelineJobsList(); + } + }; + private static final PagedListResponseFactory< ListTrainingPipelinesRequest, ListTrainingPipelinesResponse, @@ -182,6 +239,25 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListPipelineJobsRequest, ListPipelineJobsResponse, ListPipelineJobsPagedResponse> + LIST_PIPELINE_JOBS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListPipelineJobsRequest, ListPipelineJobsResponse, ListPipelineJobsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListPipelineJobsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_PIPELINE_JOBS_PAGE_STR_DESC, request, context); + return ListPipelineJobsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to createTrainingPipeline. */ public UnaryCallSettings createTrainingPipelineSettings() { @@ -220,6 +296,39 @@ public UnaryCallSettings cancelTrainingPip return cancelTrainingPipelineSettings; } + /** Returns the object with the settings used for calls to createPipelineJob. */ + public UnaryCallSettings createPipelineJobSettings() { + return createPipelineJobSettings; + } + + /** Returns the object with the settings used for calls to getPipelineJob. */ + public UnaryCallSettings getPipelineJobSettings() { + return getPipelineJobSettings; + } + + /** Returns the object with the settings used for calls to listPipelineJobs. */ + public PagedCallSettings< + ListPipelineJobsRequest, ListPipelineJobsResponse, ListPipelineJobsPagedResponse> + listPipelineJobsSettings() { + return listPipelineJobsSettings; + } + + /** Returns the object with the settings used for calls to deletePipelineJob. */ + public UnaryCallSettings deletePipelineJobSettings() { + return deletePipelineJobSettings; + } + + /** Returns the object with the settings used for calls to deletePipelineJob. */ + public OperationCallSettings + deletePipelineJobOperationSettings() { + return deletePipelineJobOperationSettings; + } + + /** Returns the object with the settings used for calls to cancelPipelineJob. */ + public UnaryCallSettings cancelPipelineJobSettings() { + return cancelPipelineJobSettings; + } + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public PipelineServiceStub createStub() throws IOException { if (getTransportChannelProvider() @@ -301,6 +410,13 @@ protected PipelineServiceStubSettings(Builder settingsBuilder) throws IOExceptio deleteTrainingPipelineOperationSettings = settingsBuilder.deleteTrainingPipelineOperationSettings().build(); cancelTrainingPipelineSettings = settingsBuilder.cancelTrainingPipelineSettings().build(); + createPipelineJobSettings = settingsBuilder.createPipelineJobSettings().build(); + getPipelineJobSettings = settingsBuilder.getPipelineJobSettings().build(); + listPipelineJobsSettings = settingsBuilder.listPipelineJobsSettings().build(); + deletePipelineJobSettings = settingsBuilder.deletePipelineJobSettings().build(); + deletePipelineJobOperationSettings = + settingsBuilder.deletePipelineJobOperationSettings().build(); + cancelPipelineJobSettings = settingsBuilder.cancelPipelineJobSettings().build(); } /** Builder for PipelineServiceStubSettings. */ @@ -322,6 +438,20 @@ public static class Builder extends StubSettings.Builder cancelTrainingPipelineSettings; + private final UnaryCallSettings.Builder + createPipelineJobSettings; + private final UnaryCallSettings.Builder + getPipelineJobSettings; + private final PagedCallSettings.Builder< + ListPipelineJobsRequest, ListPipelineJobsResponse, ListPipelineJobsPagedResponse> + listPipelineJobsSettings; + private final UnaryCallSettings.Builder + deletePipelineJobSettings; + private final OperationCallSettings.Builder< + DeletePipelineJobRequest, Empty, DeleteOperationMetadata> + deletePipelineJobOperationSettings; + private final UnaryCallSettings.Builder + cancelPipelineJobSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -330,6 +460,7 @@ public static class Builder extends StubSettings.BuildernewArrayList())); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -346,6 +477,8 @@ public static class Builder extends StubSettings.Builder>of( @@ -370,7 +509,12 @@ protected Builder(ClientContext clientContext) { getTrainingPipelineSettings, listTrainingPipelinesSettings, deleteTrainingPipelineSettings, - cancelTrainingPipelineSettings); + cancelTrainingPipelineSettings, + createPipelineJobSettings, + getPipelineJobSettings, + listPipelineJobsSettings, + deletePipelineJobSettings, + cancelPipelineJobSettings); initDefaults(this); } @@ -384,6 +528,12 @@ protected Builder(PipelineServiceStubSettings settings) { deleteTrainingPipelineOperationSettings = settings.deleteTrainingPipelineOperationSettings.toBuilder(); cancelTrainingPipelineSettings = settings.cancelTrainingPipelineSettings.toBuilder(); + createPipelineJobSettings = settings.createPipelineJobSettings.toBuilder(); + getPipelineJobSettings = settings.getPipelineJobSettings.toBuilder(); + listPipelineJobsSettings = settings.listPipelineJobsSettings.toBuilder(); + deletePipelineJobSettings = settings.deletePipelineJobSettings.toBuilder(); + deletePipelineJobOperationSettings = settings.deletePipelineJobOperationSettings.toBuilder(); + cancelPipelineJobSettings = settings.cancelPipelineJobSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -391,7 +541,12 @@ protected Builder(PipelineServiceStubSettings settings) { getTrainingPipelineSettings, listTrainingPipelinesSettings, deleteTrainingPipelineSettings, - cancelTrainingPipelineSettings); + cancelTrainingPipelineSettings, + createPipelineJobSettings, + getPipelineJobSettings, + listPipelineJobsSettings, + deletePipelineJobSettings, + cancelPipelineJobSettings); } private static Builder createDefault() { @@ -433,6 +588,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 + .createPipelineJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getPipelineJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listPipelineJobsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deletePipelineJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .cancelPipelineJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .deleteTrainingPipelineOperationSettings() .setInitialCallSettings( @@ -457,17 +637,40 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(300000L)) .build())); + builder + .deletePipelineJobOperationSettings() + .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())); + return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } @@ -518,6 +721,43 @@ public Builder applyToAllUnaryMethods( return cancelTrainingPipelineSettings; } + /** Returns the builder for the settings used for calls to createPipelineJob. */ + public UnaryCallSettings.Builder + createPipelineJobSettings() { + return createPipelineJobSettings; + } + + /** Returns the builder for the settings used for calls to getPipelineJob. */ + public UnaryCallSettings.Builder getPipelineJobSettings() { + return getPipelineJobSettings; + } + + /** Returns the builder for the settings used for calls to listPipelineJobs. */ + public PagedCallSettings.Builder< + ListPipelineJobsRequest, ListPipelineJobsResponse, ListPipelineJobsPagedResponse> + listPipelineJobsSettings() { + return listPipelineJobsSettings; + } + + /** Returns the builder for the settings used for calls to deletePipelineJob. */ + public UnaryCallSettings.Builder + deletePipelineJobSettings() { + return deletePipelineJobSettings; + } + + /** Returns the builder for the settings used for calls to deletePipelineJob. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deletePipelineJobOperationSettings() { + return deletePipelineJobOperationSettings; + } + + /** Returns the builder for the settings used for calls to cancelPipelineJob. */ + public UnaryCallSettings.Builder cancelPipelineJobSettings() { + return cancelPipelineJobSettings; + } + @Override public PipelineServiceStubSettings build() throws IOException { return new PipelineServiceStubSettings(this); diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStubSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStubSettings.java index 8f12e2354..c228e1525 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStubSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PredictionServiceStubSettings.java @@ -241,14 +241,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SpecialistPoolServiceStubSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SpecialistPoolServiceStubSettings.java index a6a518547..51b0f97a5 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SpecialistPoolServiceStubSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/SpecialistPoolServiceStubSettings.java @@ -540,14 +540,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClient.java index 347e673b3..d0e3a9018 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClient.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.aiplatform.v1beta1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -1427,12 +1426,7 @@ public static ApiFuture createAsync( ListDatasetsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListDatasetsPagedResponse apply(ListDatasetsPage input) { - return new ListDatasetsPagedResponse(input); - } - }, + input -> new ListDatasetsPagedResponse(input), MoreExecutors.directExecutor()); } @@ -1507,12 +1501,7 @@ public static ApiFuture createAsync( ListDataItemsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListDataItemsPagedResponse apply(ListDataItemsPage input) { - return new ListDataItemsPagedResponse(input); - } - }, + input -> new ListDataItemsPagedResponse(input), MoreExecutors.directExecutor()); } @@ -1588,12 +1577,7 @@ public static ApiFuture createAsync( ListAnnotationsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListAnnotationsPagedResponse apply(ListAnnotationsPage input) { - return new ListAnnotationsPagedResponse(input); - } - }, + input -> new ListAnnotationsPagedResponse(input), MoreExecutors.directExecutor()); } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceSettings.java index 973fb97fc..731dbc00d 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceSettings.java @@ -238,14 +238,13 @@ public DatasetServiceStubSettings.Builder getStubSettingsBuilder() { return ((DatasetServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClient.java index e237f3f9c..b4fbfb101 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClient.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.aiplatform.v1beta1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -1097,12 +1096,7 @@ public static ApiFuture createAsync( ListEndpointsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListEndpointsPagedResponse apply(ListEndpointsPage input) { - return new ListEndpointsPagedResponse(input); - } - }, + input -> new ListEndpointsPagedResponse(input), MoreExecutors.directExecutor()); } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceSettings.java index dbc08549b..64e3ebbb7 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceSettings.java @@ -220,14 +220,13 @@ public EndpointServiceStubSettings.Builder getStubSettingsBuilder() { return ((EndpointServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceSettings.java index 0ee6132f1..5d066c355 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServingServiceSettings.java @@ -171,14 +171,13 @@ public FeaturestoreOnlineServingServiceStubSettings.Builder getStubSettingsBuild return ((FeaturestoreOnlineServingServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClient.java index 37c34e356..85d6acb02 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClient.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.aiplatform.v1beta1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -2486,6 +2485,8 @@ public final UnaryCallable importFeatureV * .setFeaturestore( * FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString()) * .setDestination(FeatureValueDestination.newBuilder().build()) + * .addAllPassThroughFields( + * new ArrayList()) * .addAllEntityTypeSpecs(new ArrayList()) * .build(); * BatchReadFeatureValuesResponse response = @@ -2519,6 +2520,8 @@ public final UnaryCallable importFeatureV * .setFeaturestore( * FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString()) * .setDestination(FeatureValueDestination.newBuilder().build()) + * .addAllPassThroughFields( + * new ArrayList()) * .addAllEntityTypeSpecs(new ArrayList()) * .build(); * OperationFuture @@ -2556,6 +2559,8 @@ public final UnaryCallable importFeatureV * .setFeaturestore( * FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString()) * .setDestination(FeatureValueDestination.newBuilder().build()) + * .addAllPassThroughFields( + * new ArrayList()) * .addAllEntityTypeSpecs(new ArrayList()) * .build(); * ApiFuture future = @@ -2907,12 +2912,7 @@ public static ApiFuture createAsync( ListFeaturestoresPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListFeaturestoresPagedResponse apply(ListFeaturestoresPage input) { - return new ListFeaturestoresPagedResponse(input); - } - }, + input -> new ListFeaturestoresPagedResponse(input), MoreExecutors.directExecutor()); } @@ -2992,12 +2992,7 @@ public static ApiFuture createAsync( ListEntityTypesPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListEntityTypesPagedResponse apply(ListEntityTypesPage input) { - return new ListEntityTypesPagedResponse(input); - } - }, + input -> new ListEntityTypesPagedResponse(input), MoreExecutors.directExecutor()); } @@ -3074,12 +3069,7 @@ public static ApiFuture createAsync( ListFeaturesPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListFeaturesPagedResponse apply(ListFeaturesPage input) { - return new ListFeaturesPagedResponse(input); - } - }, + input -> new ListFeaturesPagedResponse(input), MoreExecutors.directExecutor()); } @@ -3154,12 +3144,7 @@ public static ApiFuture createAsync( SearchFeaturesPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public SearchFeaturesPagedResponse apply(SearchFeaturesPage input) { - return new SearchFeaturesPagedResponse(input); - } - }, + input -> new SearchFeaturesPagedResponse(input), MoreExecutors.directExecutor()); } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceSettings.java index 1bf74bb3b..c340fa775 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceSettings.java @@ -360,14 +360,13 @@ public FeaturestoreServiceStubSettings.Builder getStubSettingsBuilder() { return ((FeaturestoreServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceClient.java index a7fc69a1a..36f71efad 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceClient.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.aiplatform.v1beta1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -1121,12 +1120,7 @@ public static ApiFuture createAsync( ListIndexEndpointsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListIndexEndpointsPagedResponse apply(ListIndexEndpointsPage input) { - return new ListIndexEndpointsPagedResponse(input); - } - }, + input -> new ListIndexEndpointsPagedResponse(input), MoreExecutors.directExecutor()); } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceSettings.java index 85e777f72..edc358739 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceSettings.java @@ -227,14 +227,13 @@ public IndexEndpointServiceStubSettings.Builder getStubSettingsBuilder() { return ((IndexEndpointServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceClient.java index 4df42d587..815372b01 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceClient.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.aiplatform.v1beta1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -789,14 +788,7 @@ public static ApiFuture createAsync( ApiFuture futurePage = ListIndexesPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( - futurePage, - new ApiFunction() { - @Override - public ListIndexesPagedResponse apply(ListIndexesPage input) { - return new ListIndexesPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); + futurePage, input -> new ListIndexesPagedResponse(input), MoreExecutors.directExecutor()); } private ListIndexesPagedResponse(ListIndexesPage page) { diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceSettings.java index 351159be2..15df07871 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceSettings.java @@ -201,14 +201,13 @@ public IndexServiceStubSettings.Builder getStubSettingsBuilder() { return ((IndexServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceClient.java index 7c641931b..43c11a2f0 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceClient.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.aiplatform.v1beta1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -3745,12 +3744,7 @@ public static ApiFuture createAsync( ListCustomJobsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListCustomJobsPagedResponse apply(ListCustomJobsPage input) { - return new ListCustomJobsPagedResponse(input); - } - }, + input -> new ListCustomJobsPagedResponse(input), MoreExecutors.directExecutor()); } @@ -3827,12 +3821,7 @@ public static ApiFuture createAsync( ListDataLabelingJobsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListDataLabelingJobsPagedResponse apply(ListDataLabelingJobsPage input) { - return new ListDataLabelingJobsPagedResponse(input); - } - }, + input -> new ListDataLabelingJobsPagedResponse(input), MoreExecutors.directExecutor()); } @@ -3920,14 +3909,7 @@ public static ApiFuture createAsync( .createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction< - ListHyperparameterTuningJobsPage, ListHyperparameterTuningJobsPagedResponse>() { - @Override - public ListHyperparameterTuningJobsPagedResponse apply( - ListHyperparameterTuningJobsPage input) { - return new ListHyperparameterTuningJobsPagedResponse(input); - } - }, + input -> new ListHyperparameterTuningJobsPagedResponse(input), MoreExecutors.directExecutor()); } @@ -4021,12 +4003,7 @@ public static ApiFuture createAsync( ListBatchPredictionJobsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListBatchPredictionJobsPagedResponse apply(ListBatchPredictionJobsPage input) { - return new ListBatchPredictionJobsPagedResponse(input); - } - }, + input -> new ListBatchPredictionJobsPagedResponse(input), MoreExecutors.directExecutor()); } @@ -4117,15 +4094,7 @@ public static ApiFuture() { - @Override - public SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse apply( - SearchModelDeploymentMonitoringStatsAnomaliesPage input) { - return new SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse(input); - } - }, + input -> new SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse(input), MoreExecutors.directExecutor()); } @@ -4227,15 +4196,7 @@ public static ApiFuture createAs .createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction< - ListModelDeploymentMonitoringJobsPage, - ListModelDeploymentMonitoringJobsPagedResponse>() { - @Override - public ListModelDeploymentMonitoringJobsPagedResponse apply( - ListModelDeploymentMonitoringJobsPage input) { - return new ListModelDeploymentMonitoringJobsPagedResponse(input); - } - }, + input -> new ListModelDeploymentMonitoringJobsPagedResponse(input), MoreExecutors.directExecutor()); } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceSettings.java index e624e9d01..db8b847a0 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceSettings.java @@ -391,14 +391,13 @@ public JobServiceStubSettings.Builder getStubSettingsBuilder() { return ((JobServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceClient.java index 949601a5c..3dd1d7bdd 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceClient.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.aiplatform.v1beta1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -1142,6 +1141,269 @@ public final UnaryCallable updateArtifactCallab return stub.updateArtifactCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an Artifact. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   ArtifactName name =
+   *       ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]");
+   *   metadataServiceClient.deleteArtifactAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the Artifact to delete. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteArtifactAsync( + ArtifactName name) { + DeleteArtifactRequest request = + DeleteArtifactRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteArtifactAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an Artifact. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   String name =
+   *       ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]").toString();
+   *   metadataServiceClient.deleteArtifactAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the Artifact to delete. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteArtifactAsync(String name) { + DeleteArtifactRequest request = DeleteArtifactRequest.newBuilder().setName(name).build(); + return deleteArtifactAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an Artifact. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   DeleteArtifactRequest request =
+   *       DeleteArtifactRequest.newBuilder()
+   *           .setName(
+   *               ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]")
+   *                   .toString())
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   metadataServiceClient.deleteArtifactAsync(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 deleteArtifactAsync( + DeleteArtifactRequest request) { + return deleteArtifactOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an Artifact. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   DeleteArtifactRequest request =
+   *       DeleteArtifactRequest.newBuilder()
+   *           .setName(
+   *               ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]")
+   *                   .toString())
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   OperationFuture future =
+   *       metadataServiceClient.deleteArtifactOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteArtifactOperationCallable() { + return stub.deleteArtifactOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an Artifact. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   DeleteArtifactRequest request =
+   *       DeleteArtifactRequest.newBuilder()
+   *           .setName(
+   *               ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]")
+   *                   .toString())
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   ApiFuture future =
+   *       metadataServiceClient.deleteArtifactCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteArtifactCallable() { + return stub.deleteArtifactCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Purges Artifacts. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   MetadataStoreName parent =
+   *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
+   *   PurgeArtifactsResponse response = metadataServiceClient.purgeArtifactsAsync(parent).get();
+   * }
+   * }
+ * + * @param parent Required. The metadata store to purge Artifacts from. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture purgeArtifactsAsync( + MetadataStoreName parent) { + PurgeArtifactsRequest request = + PurgeArtifactsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return purgeArtifactsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Purges Artifacts. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   String parent =
+   *       ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]").toString();
+   *   PurgeArtifactsResponse response = metadataServiceClient.purgeArtifactsAsync(parent).get();
+   * }
+   * }
+ * + * @param parent Required. The metadata store to purge Artifacts from. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture purgeArtifactsAsync( + String parent) { + PurgeArtifactsRequest request = PurgeArtifactsRequest.newBuilder().setParent(parent).build(); + return purgeArtifactsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Purges Artifacts. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   PurgeArtifactsRequest request =
+   *       PurgeArtifactsRequest.newBuilder()
+   *           .setParent(
+   *               ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setForce(true)
+   *           .build();
+   *   PurgeArtifactsResponse response = metadataServiceClient.purgeArtifactsAsync(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 purgeArtifactsAsync( + PurgeArtifactsRequest request) { + return purgeArtifactsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Purges Artifacts. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   PurgeArtifactsRequest request =
+   *       PurgeArtifactsRequest.newBuilder()
+   *           .setParent(
+   *               ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setForce(true)
+   *           .build();
+   *   OperationFuture future =
+   *       metadataServiceClient.purgeArtifactsOperationCallable().futureCall(request);
+   *   // Do something.
+   *   PurgeArtifactsResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + PurgeArtifactsRequest, PurgeArtifactsResponse, PurgeArtifactsMetadata> + purgeArtifactsOperationCallable() { + return stub.purgeArtifactsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Purges Artifacts. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   PurgeArtifactsRequest request =
+   *       PurgeArtifactsRequest.newBuilder()
+   *           .setParent(
+   *               ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future =
+   *       metadataServiceClient.purgeArtifactsCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable purgeArtifactsCallable() { + return stub.purgeArtifactsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a Context associated with a MetadataStore. @@ -1601,7 +1863,7 @@ public final UnaryCallable updateContextCallable( * } * } * - * @param name Required. The resource name of the Context to retrieve. Format: + * @param name Required. The resource name of the Context to delete. Format: * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1626,7 +1888,7 @@ public final OperationFuture deleteContextAsync( * } * } * - * @param name Required. The resource name of the Context to retrieve. Format: + * @param name Required. The resource name of the Context to delete. Format: * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1649,6 +1911,7 @@ public final OperationFuture deleteContextAsync( * ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]") * .toString()) * .setForce(true) + * .setEtag("etag3123477") * .build(); * metadataServiceClient.deleteContextAsync(request).get(); * } @@ -1676,6 +1939,7 @@ public final OperationFuture deleteContextAsync( * ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]") * .toString()) * .setForce(true) + * .setEtag("etag3123477") * .build(); * OperationFuture future = * metadataServiceClient.deleteContextOperationCallable().futureCall(request); @@ -1703,6 +1967,7 @@ public final OperationFuture deleteContextAsync( * ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]") * .toString()) * .setForce(true) + * .setEtag("etag3123477") * .build(); * ApiFuture future = * metadataServiceClient.deleteContextCallable().futureCall(request); @@ -1715,6 +1980,140 @@ public final UnaryCallable deleteContextCallabl return stub.deleteContextCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Purges Contexts. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   MetadataStoreName parent =
+   *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
+   *   PurgeContextsResponse response = metadataServiceClient.purgeContextsAsync(parent).get();
+   * }
+   * }
+ * + * @param parent Required. The metadata store to purge Contexts from. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture purgeContextsAsync( + MetadataStoreName parent) { + PurgeContextsRequest request = + PurgeContextsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return purgeContextsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Purges Contexts. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   String parent =
+   *       ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]").toString();
+   *   PurgeContextsResponse response = metadataServiceClient.purgeContextsAsync(parent).get();
+   * }
+   * }
+ * + * @param parent Required. The metadata store to purge Contexts from. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture purgeContextsAsync( + String parent) { + PurgeContextsRequest request = PurgeContextsRequest.newBuilder().setParent(parent).build(); + return purgeContextsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Purges Contexts. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   PurgeContextsRequest request =
+   *       PurgeContextsRequest.newBuilder()
+   *           .setParent(
+   *               ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setForce(true)
+   *           .build();
+   *   PurgeContextsResponse response = metadataServiceClient.purgeContextsAsync(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 purgeContextsAsync( + PurgeContextsRequest request) { + return purgeContextsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Purges Contexts. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   PurgeContextsRequest request =
+   *       PurgeContextsRequest.newBuilder()
+   *           .setParent(
+   *               ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setForce(true)
+   *           .build();
+   *   OperationFuture future =
+   *       metadataServiceClient.purgeContextsOperationCallable().futureCall(request);
+   *   // Do something.
+   *   PurgeContextsResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + purgeContextsOperationCallable() { + return stub.purgeContextsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Purges Contexts. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   PurgeContextsRequest request =
+   *       PurgeContextsRequest.newBuilder()
+   *           .setParent(
+   *               ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future =
+   *       metadataServiceClient.purgeContextsCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable purgeContextsCallable() { + return stub.purgeContextsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Adds a set of Artifacts and Executions to a Context. If any of the Artifacts or Executions have @@ -2552,6 +2951,269 @@ public final UnaryCallable updateExecutionCal return stub.updateExecutionCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an Execution. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   ExecutionName name =
+   *       ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]");
+   *   metadataServiceClient.deleteExecutionAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the Execution to delete. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteExecutionAsync( + ExecutionName name) { + DeleteExecutionRequest request = + DeleteExecutionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteExecutionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an Execution. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   String name =
+   *       ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]").toString();
+   *   metadataServiceClient.deleteExecutionAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the Execution to delete. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteExecutionAsync(String name) { + DeleteExecutionRequest request = DeleteExecutionRequest.newBuilder().setName(name).build(); + return deleteExecutionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an Execution. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   DeleteExecutionRequest request =
+   *       DeleteExecutionRequest.newBuilder()
+   *           .setName(
+   *               ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]")
+   *                   .toString())
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   metadataServiceClient.deleteExecutionAsync(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 deleteExecutionAsync( + DeleteExecutionRequest request) { + return deleteExecutionOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an Execution. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   DeleteExecutionRequest request =
+   *       DeleteExecutionRequest.newBuilder()
+   *           .setName(
+   *               ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]")
+   *                   .toString())
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   OperationFuture future =
+   *       metadataServiceClient.deleteExecutionOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteExecutionOperationCallable() { + return stub.deleteExecutionOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an Execution. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   DeleteExecutionRequest request =
+   *       DeleteExecutionRequest.newBuilder()
+   *           .setName(
+   *               ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]")
+   *                   .toString())
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   ApiFuture future =
+   *       metadataServiceClient.deleteExecutionCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteExecutionCallable() { + return stub.deleteExecutionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Purges Executions. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   MetadataStoreName parent =
+   *       MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]");
+   *   PurgeExecutionsResponse response = metadataServiceClient.purgeExecutionsAsync(parent).get();
+   * }
+   * }
+ * + * @param parent Required. The metadata store to purge Executions from. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + purgeExecutionsAsync(MetadataStoreName parent) { + PurgeExecutionsRequest request = + PurgeExecutionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return purgeExecutionsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Purges Executions. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   String parent =
+   *       ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]").toString();
+   *   PurgeExecutionsResponse response = metadataServiceClient.purgeExecutionsAsync(parent).get();
+   * }
+   * }
+ * + * @param parent Required. The metadata store to purge Executions from. Format: + * projects/{project}/locations/{location}/metadataStores/{metadatastore} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + purgeExecutionsAsync(String parent) { + PurgeExecutionsRequest request = PurgeExecutionsRequest.newBuilder().setParent(parent).build(); + return purgeExecutionsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Purges Executions. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   PurgeExecutionsRequest request =
+   *       PurgeExecutionsRequest.newBuilder()
+   *           .setParent(
+   *               ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setForce(true)
+   *           .build();
+   *   PurgeExecutionsResponse response = metadataServiceClient.purgeExecutionsAsync(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 + purgeExecutionsAsync(PurgeExecutionsRequest request) { + return purgeExecutionsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Purges Executions. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   PurgeExecutionsRequest request =
+   *       PurgeExecutionsRequest.newBuilder()
+   *           .setParent(
+   *               ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setForce(true)
+   *           .build();
+   *   OperationFuture future =
+   *       metadataServiceClient.purgeExecutionsOperationCallable().futureCall(request);
+   *   // Do something.
+   *   PurgeExecutionsResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + PurgeExecutionsRequest, PurgeExecutionsResponse, PurgeExecutionsMetadata> + purgeExecutionsOperationCallable() { + return stub.purgeExecutionsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Purges Executions. + * + *

Sample code: + * + *

{@code
+   * try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
+   *   PurgeExecutionsRequest request =
+   *       PurgeExecutionsRequest.newBuilder()
+   *           .setParent(
+   *               ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]")
+   *                   .toString())
+   *           .setFilter("filter-1274492040")
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future =
+   *       metadataServiceClient.purgeExecutionsCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable purgeExecutionsCallable() { + return stub.purgeExecutionsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Adds Events to the specified Execution. An Event indicates whether an Artifact was used as an @@ -3338,12 +4000,7 @@ public static ApiFuture createAsync( ListMetadataStoresPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListMetadataStoresPagedResponse apply(ListMetadataStoresPage input) { - return new ListMetadataStoresPagedResponse(input); - } - }, + input -> new ListMetadataStoresPagedResponse(input), MoreExecutors.directExecutor()); } @@ -3423,12 +4080,7 @@ public static ApiFuture createAsync( ListArtifactsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListArtifactsPagedResponse apply(ListArtifactsPage input) { - return new ListArtifactsPagedResponse(input); - } - }, + input -> new ListArtifactsPagedResponse(input), MoreExecutors.directExecutor()); } @@ -3504,12 +4156,7 @@ public static ApiFuture createAsync( ListContextsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListContextsPagedResponse apply(ListContextsPage input) { - return new ListContextsPagedResponse(input); - } - }, + input -> new ListContextsPagedResponse(input), MoreExecutors.directExecutor()); } @@ -3584,12 +4231,7 @@ public static ApiFuture createAsync( ListExecutionsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListExecutionsPagedResponse apply(ListExecutionsPage input) { - return new ListExecutionsPagedResponse(input); - } - }, + input -> new ListExecutionsPagedResponse(input), MoreExecutors.directExecutor()); } @@ -3666,12 +4308,7 @@ public static ApiFuture createAsync( ListMetadataSchemasPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListMetadataSchemasPagedResponse apply(ListMetadataSchemasPage input) { - return new ListMetadataSchemasPagedResponse(input); - } - }, + input -> new ListMetadataSchemasPagedResponse(input), MoreExecutors.directExecutor()); } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceSettings.java index 83043e2af..dac0e5985 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceSettings.java @@ -134,6 +134,29 @@ public UnaryCallSettings updateArtifactSettings return ((MetadataServiceStubSettings) getStubSettings()).updateArtifactSettings(); } + /** Returns the object with the settings used for calls to deleteArtifact. */ + public UnaryCallSettings deleteArtifactSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).deleteArtifactSettings(); + } + + /** Returns the object with the settings used for calls to deleteArtifact. */ + public OperationCallSettings + deleteArtifactOperationSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).deleteArtifactOperationSettings(); + } + + /** Returns the object with the settings used for calls to purgeArtifacts. */ + public UnaryCallSettings purgeArtifactsSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).purgeArtifactsSettings(); + } + + /** Returns the object with the settings used for calls to purgeArtifacts. */ + public OperationCallSettings< + PurgeArtifactsRequest, PurgeArtifactsResponse, PurgeArtifactsMetadata> + purgeArtifactsOperationSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).purgeArtifactsOperationSettings(); + } + /** Returns the object with the settings used for calls to createContext. */ public UnaryCallSettings createContextSettings() { return ((MetadataServiceStubSettings) getStubSettings()).createContextSettings(); @@ -166,6 +189,17 @@ public UnaryCallSettings deleteContextSettings( return ((MetadataServiceStubSettings) getStubSettings()).deleteContextOperationSettings(); } + /** Returns the object with the settings used for calls to purgeContexts. */ + public UnaryCallSettings purgeContextsSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).purgeContextsSettings(); + } + + /** Returns the object with the settings used for calls to purgeContexts. */ + public OperationCallSettings + purgeContextsOperationSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).purgeContextsOperationSettings(); + } + /** Returns the object with the settings used for calls to addContextArtifactsAndExecutions. */ public UnaryCallSettings< AddContextArtifactsAndExecutionsRequest, AddContextArtifactsAndExecutionsResponse> @@ -208,6 +242,29 @@ public UnaryCallSettings updateExecutionSetti return ((MetadataServiceStubSettings) getStubSettings()).updateExecutionSettings(); } + /** Returns the object with the settings used for calls to deleteExecution. */ + public UnaryCallSettings deleteExecutionSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).deleteExecutionSettings(); + } + + /** Returns the object with the settings used for calls to deleteExecution. */ + public OperationCallSettings + deleteExecutionOperationSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).deleteExecutionOperationSettings(); + } + + /** Returns the object with the settings used for calls to purgeExecutions. */ + public UnaryCallSettings purgeExecutionsSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).purgeExecutionsSettings(); + } + + /** Returns the object with the settings used for calls to purgeExecutions. */ + public OperationCallSettings< + PurgeExecutionsRequest, PurgeExecutionsResponse, PurgeExecutionsMetadata> + purgeExecutionsOperationSettings() { + return ((MetadataServiceStubSettings) getStubSettings()).purgeExecutionsOperationSettings(); + } + /** Returns the object with the settings used for calls to addExecutionEvents. */ public UnaryCallSettings addExecutionEventsSettings() { @@ -330,14 +387,13 @@ public MetadataServiceStubSettings.Builder getStubSettingsBuilder() { return ((MetadataServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; @@ -404,6 +460,29 @@ public UnaryCallSettings.Builder updateArtifact return getStubSettingsBuilder().updateArtifactSettings(); } + /** Returns the builder for the settings used for calls to deleteArtifact. */ + public UnaryCallSettings.Builder deleteArtifactSettings() { + return getStubSettingsBuilder().deleteArtifactSettings(); + } + + /** Returns the builder for the settings used for calls to deleteArtifact. */ + public OperationCallSettings.Builder + deleteArtifactOperationSettings() { + return getStubSettingsBuilder().deleteArtifactOperationSettings(); + } + + /** Returns the builder for the settings used for calls to purgeArtifacts. */ + public UnaryCallSettings.Builder purgeArtifactsSettings() { + return getStubSettingsBuilder().purgeArtifactsSettings(); + } + + /** Returns the builder for the settings used for calls to purgeArtifacts. */ + public OperationCallSettings.Builder< + PurgeArtifactsRequest, PurgeArtifactsResponse, PurgeArtifactsMetadata> + purgeArtifactsOperationSettings() { + return getStubSettingsBuilder().purgeArtifactsOperationSettings(); + } + /** Returns the builder for the settings used for calls to createContext. */ public UnaryCallSettings.Builder createContextSettings() { return getStubSettingsBuilder().createContextSettings(); @@ -437,6 +516,18 @@ public UnaryCallSettings.Builder deleteContextS return getStubSettingsBuilder().deleteContextOperationSettings(); } + /** Returns the builder for the settings used for calls to purgeContexts. */ + public UnaryCallSettings.Builder purgeContextsSettings() { + return getStubSettingsBuilder().purgeContextsSettings(); + } + + /** Returns the builder for the settings used for calls to purgeContexts. */ + public OperationCallSettings.Builder< + PurgeContextsRequest, PurgeContextsResponse, PurgeContextsMetadata> + purgeContextsOperationSettings() { + return getStubSettingsBuilder().purgeContextsOperationSettings(); + } + /** Returns the builder for the settings used for calls to addContextArtifactsAndExecutions. */ public UnaryCallSettings.Builder< AddContextArtifactsAndExecutionsRequest, AddContextArtifactsAndExecutionsResponse> @@ -478,6 +569,29 @@ public UnaryCallSettings.Builder updateExecut return getStubSettingsBuilder().updateExecutionSettings(); } + /** Returns the builder for the settings used for calls to deleteExecution. */ + public UnaryCallSettings.Builder deleteExecutionSettings() { + return getStubSettingsBuilder().deleteExecutionSettings(); + } + + /** Returns the builder for the settings used for calls to deleteExecution. */ + public OperationCallSettings.Builder + deleteExecutionOperationSettings() { + return getStubSettingsBuilder().deleteExecutionOperationSettings(); + } + + /** Returns the builder for the settings used for calls to purgeExecutions. */ + public UnaryCallSettings.Builder purgeExecutionsSettings() { + return getStubSettingsBuilder().purgeExecutionsSettings(); + } + + /** Returns the builder for the settings used for calls to purgeExecutions. */ + public OperationCallSettings.Builder< + PurgeExecutionsRequest, PurgeExecutionsResponse, PurgeExecutionsMetadata> + purgeExecutionsOperationSettings() { + return getStubSettingsBuilder().purgeExecutionsOperationSettings(); + } + /** Returns the builder for the settings used for calls to addExecutionEvents. */ public UnaryCallSettings.Builder addExecutionEventsSettings() { diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceClient.java index e97aa781a..4f2d55482 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceClient.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.aiplatform.v1beta1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -531,13 +530,7 @@ public static ApiFuture createAsync( SearchMigratableResourcesPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public SearchMigratableResourcesPagedResponse apply( - SearchMigratableResourcesPage input) { - return new SearchMigratableResourcesPagedResponse(input); - } - }, + input -> new SearchMigratableResourcesPagedResponse(input), MoreExecutors.directExecutor()); } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceSettings.java index c35fd9dd7..96edbe20d 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceSettings.java @@ -182,14 +182,13 @@ public MigrationServiceStubSettings.Builder getStubSettingsBuilder() { return ((MigrationServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClient.java index 381fe1c9d..a166c3c4c 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClient.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.aiplatform.v1beta1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -1423,14 +1422,7 @@ public static ApiFuture createAsync( ApiFuture futurePage = ListModelsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( - futurePage, - new ApiFunction() { - @Override - public ListModelsPagedResponse apply(ListModelsPage input) { - return new ListModelsPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); + futurePage, input -> new ListModelsPagedResponse(input), MoreExecutors.directExecutor()); } private ListModelsPagedResponse(ListModelsPage page) { @@ -1505,12 +1497,7 @@ public static ApiFuture createAsync( ListModelEvaluationsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListModelEvaluationsPagedResponse apply(ListModelEvaluationsPage input) { - return new ListModelEvaluationsPagedResponse(input); - } - }, + input -> new ListModelEvaluationsPagedResponse(input), MoreExecutors.directExecutor()); } @@ -1597,13 +1584,7 @@ public static ApiFuture createAsync( ListModelEvaluationSlicesPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListModelEvaluationSlicesPagedResponse apply( - ListModelEvaluationSlicesPage input) { - return new ListModelEvaluationSlicesPagedResponse(input); - } - }, + input -> new ListModelEvaluationSlicesPagedResponse(input), MoreExecutors.directExecutor()); } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceSettings.java index e81d29546..e7ff90a89 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceSettings.java @@ -240,14 +240,13 @@ public ModelServiceStubSettings.Builder getStubSettingsBuilder() { return ((ModelServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClient.java index a9f65f986..b3d511361 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClient.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.aiplatform.v1beta1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -1450,12 +1449,7 @@ public static ApiFuture createAsync( ListTrainingPipelinesPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListTrainingPipelinesPagedResponse apply(ListTrainingPipelinesPage input) { - return new ListTrainingPipelinesPagedResponse(input); - } - }, + input -> new ListTrainingPipelinesPagedResponse(input), MoreExecutors.directExecutor()); } @@ -1538,12 +1532,7 @@ public static ApiFuture createAsync( ListPipelineJobsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListPipelineJobsPagedResponse apply(ListPipelineJobsPage input) { - return new ListPipelineJobsPagedResponse(input); - } - }, + input -> new ListPipelineJobsPagedResponse(input), MoreExecutors.directExecutor()); } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceSettings.java index d59df4cb5..8579c5b78 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceSettings.java @@ -231,14 +231,13 @@ public PipelineServiceStubSettings.Builder getStubSettingsBuilder() { return ((PipelineServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceSettings.java index 34cdd9a56..e9ca7ee95 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceSettings.java @@ -162,14 +162,13 @@ public PredictionServiceStubSettings.Builder getStubSettingsBuilder() { return ((PredictionServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceClient.java index e53a0d4ca..f6aa95f02 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceClient.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.aiplatform.v1beta1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -862,12 +861,7 @@ public static ApiFuture createAsync( ListSpecialistPoolsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListSpecialistPoolsPagedResponse apply(ListSpecialistPoolsPage input) { - return new ListSpecialistPoolsPagedResponse(input); - } - }, + input -> new ListSpecialistPoolsPagedResponse(input), MoreExecutors.directExecutor()); } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceSettings.java index 5d605ee59..a540e87c3 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceSettings.java @@ -210,14 +210,13 @@ public SpecialistPoolServiceStubSettings.Builder getStubSettingsBuilder() { return ((SpecialistPoolServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceClient.java index 150f8d524..ef66462ac 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceClient.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.aiplatform.v1beta1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -3289,12 +3288,7 @@ public static ApiFuture createAsync( ListTensorboardsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListTensorboardsPagedResponse apply(ListTensorboardsPage input) { - return new ListTensorboardsPagedResponse(input); - } - }, + input -> new ListTensorboardsPagedResponse(input), MoreExecutors.directExecutor()); } @@ -3375,14 +3369,7 @@ public static ApiFuture createAsync( ListTensorboardExperimentsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction< - ListTensorboardExperimentsPage, ListTensorboardExperimentsPagedResponse>() { - @Override - public ListTensorboardExperimentsPagedResponse apply( - ListTensorboardExperimentsPage input) { - return new ListTensorboardExperimentsPagedResponse(input); - } - }, + input -> new ListTensorboardExperimentsPagedResponse(input), MoreExecutors.directExecutor()); } @@ -3475,12 +3462,7 @@ public static ApiFuture createAsync( ListTensorboardRunsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListTensorboardRunsPagedResponse apply(ListTensorboardRunsPage input) { - return new ListTensorboardRunsPagedResponse(input); - } - }, + input -> new ListTensorboardRunsPagedResponse(input), MoreExecutors.directExecutor()); } @@ -3567,13 +3549,7 @@ public static ApiFuture createAsync( ListTensorboardTimeSeriesPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListTensorboardTimeSeriesPagedResponse apply( - ListTensorboardTimeSeriesPage input) { - return new ListTensorboardTimeSeriesPagedResponse(input); - } - }, + input -> new ListTensorboardTimeSeriesPagedResponse(input), MoreExecutors.directExecutor()); } @@ -3670,14 +3646,7 @@ public static ApiFuture createAsyn .createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction< - ExportTensorboardTimeSeriesDataPage, ExportTensorboardTimeSeriesDataPagedResponse>() { - @Override - public ExportTensorboardTimeSeriesDataPagedResponse apply( - ExportTensorboardTimeSeriesDataPage input) { - return new ExportTensorboardTimeSeriesDataPagedResponse(input); - } - }, + input -> new ExportTensorboardTimeSeriesDataPagedResponse(input), MoreExecutors.directExecutor()); } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceSettings.java index a099e3b48..e71ed275d 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceSettings.java @@ -368,14 +368,13 @@ public TensorboardServiceStubSettings.Builder getStubSettingsBuilder() { return ((TensorboardServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceClient.java index c4e86587f..b7af40972 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceClient.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.aiplatform.v1beta1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -1566,14 +1565,7 @@ public static ApiFuture createAsync( ApiFuture futurePage = ListStudiesPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( - futurePage, - new ApiFunction() { - @Override - public ListStudiesPagedResponse apply(ListStudiesPage input) { - return new ListStudiesPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); + futurePage, input -> new ListStudiesPagedResponse(input), MoreExecutors.directExecutor()); } private ListStudiesPagedResponse(ListStudiesPage page) { @@ -1646,14 +1638,7 @@ public static ApiFuture createAsync( ApiFuture futurePage = ListTrialsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( - futurePage, - new ApiFunction() { - @Override - public ListTrialsPagedResponse apply(ListTrialsPage input) { - return new ListTrialsPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); + futurePage, input -> new ListTrialsPagedResponse(input), MoreExecutors.directExecutor()); } private ListTrialsPagedResponse(ListTrialsPage page) { diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceSettings.java index dd4ff542a..a1289d6ae 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceSettings.java @@ -253,14 +253,13 @@ public VizierServiceStubSettings.Builder getStubSettingsBuilder() { return ((VizierServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json index 2fa48c7ac..62a110482 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json @@ -334,9 +334,15 @@ "CreateMetadataStore": { "methods": ["createMetadataStoreAsync", "createMetadataStoreAsync", "createMetadataStoreAsync", "createMetadataStoreOperationCallable", "createMetadataStoreCallable"] }, + "DeleteArtifact": { + "methods": ["deleteArtifactAsync", "deleteArtifactAsync", "deleteArtifactAsync", "deleteArtifactOperationCallable", "deleteArtifactCallable"] + }, "DeleteContext": { "methods": ["deleteContextAsync", "deleteContextAsync", "deleteContextAsync", "deleteContextOperationCallable", "deleteContextCallable"] }, + "DeleteExecution": { + "methods": ["deleteExecutionAsync", "deleteExecutionAsync", "deleteExecutionAsync", "deleteExecutionOperationCallable", "deleteExecutionCallable"] + }, "DeleteMetadataStore": { "methods": ["deleteMetadataStoreAsync", "deleteMetadataStoreAsync", "deleteMetadataStoreAsync", "deleteMetadataStoreOperationCallable", "deleteMetadataStoreCallable"] }, @@ -370,6 +376,15 @@ "ListMetadataStores": { "methods": ["listMetadataStores", "listMetadataStores", "listMetadataStores", "listMetadataStoresPagedCallable", "listMetadataStoresCallable"] }, + "PurgeArtifacts": { + "methods": ["purgeArtifactsAsync", "purgeArtifactsAsync", "purgeArtifactsAsync", "purgeArtifactsOperationCallable", "purgeArtifactsCallable"] + }, + "PurgeContexts": { + "methods": ["purgeContextsAsync", "purgeContextsAsync", "purgeContextsAsync", "purgeContextsOperationCallable", "purgeContextsCallable"] + }, + "PurgeExecutions": { + "methods": ["purgeExecutionsAsync", "purgeExecutionsAsync", "purgeExecutionsAsync", "purgeExecutionsOperationCallable", "purgeExecutionsCallable"] + }, "QueryArtifactLineageSubgraph": { "methods": ["queryArtifactLineageSubgraph", "queryArtifactLineageSubgraph", "queryArtifactLineageSubgraph", "queryArtifactLineageSubgraphCallable"] }, diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStubSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStubSettings.java index 137f9b992..a7ee70737 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStubSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStubSettings.java @@ -769,14 +769,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStubSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStubSettings.java index 27cc3cfb8..fb9ab5d1e 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStubSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EndpointServiceStubSettings.java @@ -592,14 +592,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreOnlineServingServiceStubSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreOnlineServingServiceStubSettings.java index 60e0f945b..9e9ec9b8f 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreOnlineServingServiceStubSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreOnlineServingServiceStubSettings.java @@ -273,14 +273,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStubSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStubSettings.java index 881406e8c..ce21a83ee 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStubSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStubSettings.java @@ -1372,14 +1372,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDatasetServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDatasetServiceStub.java index d4e857391..2a9883376 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDatasetServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDatasetServiceStub.java @@ -27,7 +27,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1beta1.AnnotationSpec; import com.google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; @@ -57,7 +56,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -242,117 +240,90 @@ protected GrpcDatasetServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createDatasetMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateDatasetRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getDatasetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getDatasetMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetDatasetRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings updateDatasetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateDatasetMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateDatasetRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("dataset.name", String.valueOf(request.getDataset().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("dataset.name", String.valueOf(request.getDataset().getName())); + return params.build(); }) .build(); GrpcCallSettings listDatasetsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listDatasetsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListDatasetsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings deleteDatasetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteDatasetMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteDatasetRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings importDataTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(importDataMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ImportDataRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings exportDataTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(exportDataMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ExportDataRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings listDataItemsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listDataItemsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListDataItemsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getAnnotationSpecTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getAnnotationSpecMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetAnnotationSpecRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -360,13 +331,10 @@ public Map extract(GetAnnotationSpecRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(listAnnotationsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListAnnotationsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); @@ -537,7 +505,13 @@ public UnaryCallable listAnnota @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcEndpointServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcEndpointServiceStub.java index a3b19e874..b75ceba03 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcEndpointServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcEndpointServiceStub.java @@ -25,7 +25,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata; import com.google.cloud.aiplatform.v1beta1.CreateEndpointRequest; @@ -49,7 +48,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -197,91 +195,70 @@ protected GrpcEndpointServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createEndpointMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateEndpointRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getEndpointTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getEndpointMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetEndpointRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings listEndpointsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listEndpointsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListEndpointsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings updateEndpointTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateEndpointMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateEndpointRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("endpoint.name", String.valueOf(request.getEndpoint().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("endpoint.name", String.valueOf(request.getEndpoint().getName())); + return params.build(); }) .build(); GrpcCallSettings deleteEndpointTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteEndpointMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteEndpointRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings deployModelTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deployModelMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeployModelRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("endpoint", String.valueOf(request.getEndpoint())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("endpoint", String.valueOf(request.getEndpoint())); + return params.build(); }) .build(); GrpcCallSettings undeployModelTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(undeployModelMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UndeployModelRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("endpoint", String.valueOf(request.getEndpoint())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("endpoint", String.valueOf(request.getEndpoint())); + return params.build(); }) .build(); @@ -410,7 +387,13 @@ public UnaryCallable undeployModelCallable() { @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreOnlineServingServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreOnlineServingServiceStub.java index c400345e2..de5c69ac1 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreOnlineServingServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreOnlineServingServiceStub.java @@ -22,7 +22,6 @@ import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest; @@ -33,7 +32,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -130,13 +128,10 @@ protected GrpcFeaturestoreOnlineServingServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(readFeatureValuesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ReadFeatureValuesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("entity_type", String.valueOf(request.getEntityType())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("entity_type", String.valueOf(request.getEntityType())); + return params.build(); }) .build(); GrpcCallSettings @@ -145,14 +140,10 @@ public Map extract(ReadFeatureValuesRequest request) { .newBuilder() .setMethodDescriptor(streamingReadFeatureValuesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - StreamingReadFeatureValuesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("entity_type", String.valueOf(request.getEntityType())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("entity_type", String.valueOf(request.getEntityType())); + return params.build(); }) .build(); @@ -189,7 +180,13 @@ public GrpcOperationsStub getOperationsStub() { @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreServiceStub.java index d106809e7..962ab053e 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreServiceStub.java @@ -28,7 +28,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata; import com.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest; @@ -77,7 +76,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -426,26 +424,20 @@ protected GrpcFeaturestoreServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createFeaturestoreMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateFeaturestoreRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getFeaturestoreTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getFeaturestoreMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetFeaturestoreRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -453,66 +445,51 @@ public Map extract(GetFeaturestoreRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(listFeaturestoresMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListFeaturestoresRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings updateFeaturestoreTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateFeaturestoreMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateFeaturestoreRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "featurestore.name", String.valueOf(request.getFeaturestore().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "featurestore.name", String.valueOf(request.getFeaturestore().getName())); + return params.build(); }) .build(); GrpcCallSettings deleteFeaturestoreTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteFeaturestoreMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteFeaturestoreRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings createEntityTypeTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createEntityTypeMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateEntityTypeRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getEntityTypeTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getEntityTypeMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetEntityTypeRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -520,131 +497,100 @@ public Map extract(GetEntityTypeRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(listEntityTypesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListEntityTypesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings updateEntityTypeTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateEntityTypeMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateEntityTypeRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "entity_type.name", String.valueOf(request.getEntityType().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("entity_type.name", String.valueOf(request.getEntityType().getName())); + return params.build(); }) .build(); GrpcCallSettings deleteEntityTypeTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteEntityTypeMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteEntityTypeRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings createFeatureTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createFeatureMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateFeatureRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings batchCreateFeaturesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(batchCreateFeaturesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(BatchCreateFeaturesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getFeatureTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getFeatureMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetFeatureRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings listFeaturesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listFeaturesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListFeaturesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings updateFeatureTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateFeatureMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateFeatureRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("feature.name", String.valueOf(request.getFeature().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("feature.name", String.valueOf(request.getFeature().getName())); + return params.build(); }) .build(); GrpcCallSettings deleteFeatureTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteFeatureMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteFeatureRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings importFeatureValuesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(importFeatureValuesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ImportFeatureValuesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("entity_type", String.valueOf(request.getEntityType())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("entity_type", String.valueOf(request.getEntityType())); + return params.build(); }) .build(); GrpcCallSettings @@ -652,26 +598,20 @@ public Map extract(ImportFeatureValuesRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(batchReadFeatureValuesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(BatchReadFeatureValuesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("featurestore", String.valueOf(request.getFeaturestore())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("featurestore", String.valueOf(request.getFeaturestore())); + return params.build(); }) .build(); GrpcCallSettings exportFeatureValuesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(exportFeatureValuesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ExportFeatureValuesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("entity_type", String.valueOf(request.getEntityType())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("entity_type", String.valueOf(request.getEntityType())); + return params.build(); }) .build(); GrpcCallSettings @@ -679,13 +619,10 @@ public Map extract(ExportFeatureValuesRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(searchFeaturesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SearchFeaturesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("location", String.valueOf(request.getLocation())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("location", String.valueOf(request.getLocation())); + return params.build(); }) .build(); @@ -1060,7 +997,13 @@ public UnaryCallable searchFeatur @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexEndpointServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexEndpointServiceStub.java index 7f66ae607..175b7ed8a 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexEndpointServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexEndpointServiceStub.java @@ -25,7 +25,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata; import com.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest; @@ -49,7 +48,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -208,26 +206,20 @@ protected GrpcIndexEndpointServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createIndexEndpointMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateIndexEndpointRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getIndexEndpointTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getIndexEndpointMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetIndexEndpointRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -235,13 +227,10 @@ public Map extract(GetIndexEndpointRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(listIndexEndpointsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListIndexEndpointsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -249,54 +238,42 @@ public Map extract(ListIndexEndpointsRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(updateIndexEndpointMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateIndexEndpointRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "index_endpoint.name", - String.valueOf(request.getIndexEndpoint().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "index_endpoint.name", + String.valueOf(request.getIndexEndpoint().getName())); + return params.build(); }) .build(); GrpcCallSettings deleteIndexEndpointTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteIndexEndpointMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteIndexEndpointRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings deployIndexTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deployIndexMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeployIndexRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("index_endpoint", String.valueOf(request.getIndexEndpoint())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("index_endpoint", String.valueOf(request.getIndexEndpoint())); + return params.build(); }) .build(); GrpcCallSettings undeployIndexTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(undeployIndexMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UndeployIndexRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("index_endpoint", String.valueOf(request.getIndexEndpoint())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("index_endpoint", String.valueOf(request.getIndexEndpoint())); + return params.build(); }) .build(); @@ -437,7 +414,13 @@ public UnaryCallable undeployIndexCallable() { @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexServiceStub.java index 1a93c0875..93cea26d7 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcIndexServiceStub.java @@ -25,7 +25,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata; import com.google.cloud.aiplatform.v1beta1.CreateIndexRequest; @@ -44,7 +43,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -159,65 +157,50 @@ protected GrpcIndexServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createIndexMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateIndexRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getIndexTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getIndexMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetIndexRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings listIndexesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listIndexesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListIndexesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings updateIndexTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateIndexMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateIndexRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("index.name", String.valueOf(request.getIndex().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("index.name", String.valueOf(request.getIndex().getName())); + return params.build(); }) .build(); GrpcCallSettings deleteIndexTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteIndexMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteIndexRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); @@ -316,7 +299,13 @@ public UnaryCallable deleteIndexCallable() { @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcJobServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcJobServiceStub.java index 506812fdf..07fc8ee95 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcJobServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcJobServiceStub.java @@ -30,7 +30,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1beta1.BatchPredictionJob; import com.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; @@ -80,7 +79,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -563,26 +561,20 @@ protected GrpcJobServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createCustomJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateCustomJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getCustomJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getCustomJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetCustomJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -590,39 +582,30 @@ public Map extract(GetCustomJobRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(listCustomJobsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListCustomJobsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings deleteCustomJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteCustomJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteCustomJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings cancelCustomJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(cancelCustomJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CancelCustomJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -630,13 +613,10 @@ public Map extract(CancelCustomJobRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(createDataLabelingJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateDataLabelingJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -644,13 +624,10 @@ public Map extract(CreateDataLabelingJobRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(getDataLabelingJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetDataLabelingJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -658,13 +635,10 @@ public Map extract(GetDataLabelingJobRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(listDataLabelingJobsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListDataLabelingJobsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -672,26 +646,20 @@ public Map extract(ListDataLabelingJobsRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteDataLabelingJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteDataLabelingJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings cancelDataLabelingJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(cancelDataLabelingJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CancelDataLabelingJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -700,14 +668,10 @@ public Map extract(CancelDataLabelingJobRequest request) { .newBuilder() .setMethodDescriptor(createHyperparameterTuningJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - CreateHyperparameterTuningJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -716,14 +680,10 @@ public Map extract( .newBuilder() .setMethodDescriptor(getHyperparameterTuningJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - GetHyperparameterTuningJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -733,14 +693,10 @@ public Map extract( newBuilder() .setMethodDescriptor(listHyperparameterTuningJobsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - ListHyperparameterTuningJobsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -748,14 +704,10 @@ public Map extract( GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteHyperparameterTuningJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - DeleteHyperparameterTuningJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -763,14 +715,10 @@ public Map extract( GrpcCallSettings.newBuilder() .setMethodDescriptor(cancelHyperparameterTuningJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - CancelHyperparameterTuningJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -778,13 +726,10 @@ public Map extract( GrpcCallSettings.newBuilder() .setMethodDescriptor(createBatchPredictionJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateBatchPredictionJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -792,13 +737,10 @@ public Map extract(CreateBatchPredictionJobRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(getBatchPredictionJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetBatchPredictionJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -807,13 +749,10 @@ public Map extract(GetBatchPredictionJobRequest request) { .newBuilder() .setMethodDescriptor(listBatchPredictionJobsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListBatchPredictionJobsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -821,13 +760,10 @@ public Map extract(ListBatchPredictionJobsRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteBatchPredictionJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteBatchPredictionJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -835,13 +771,10 @@ public Map extract(DeleteBatchPredictionJobRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(cancelBatchPredictionJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CancelBatchPredictionJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -851,14 +784,10 @@ public Map extract(CancelBatchPredictionJobRequest request) { newBuilder() .setMethodDescriptor(createModelDeploymentMonitoringJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - CreateModelDeploymentMonitoringJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings< @@ -871,17 +800,12 @@ public Map extract( newBuilder() .setMethodDescriptor(searchModelDeploymentMonitoringStatsAnomaliesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor< - SearchModelDeploymentMonitoringStatsAnomaliesRequest>() { - @Override - public Map extract( - SearchModelDeploymentMonitoringStatsAnomaliesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "model_deployment_monitoring_job", - String.valueOf(request.getModelDeploymentMonitoringJob())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "model_deployment_monitoring_job", + String.valueOf(request.getModelDeploymentMonitoringJob())); + return params.build(); }) .build(); GrpcCallSettings @@ -890,14 +814,10 @@ public Map extract( .newBuilder() .setMethodDescriptor(getModelDeploymentMonitoringJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - GetModelDeploymentMonitoringJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings< @@ -909,14 +829,10 @@ public Map extract( newBuilder() .setMethodDescriptor(listModelDeploymentMonitoringJobsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - ListModelDeploymentMonitoringJobsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -924,16 +840,12 @@ public Map extract( GrpcCallSettings.newBuilder() .setMethodDescriptor(updateModelDeploymentMonitoringJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - UpdateModelDeploymentMonitoringJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "model_deployment_monitoring_job.name", - String.valueOf(request.getModelDeploymentMonitoringJob().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "model_deployment_monitoring_job.name", + String.valueOf(request.getModelDeploymentMonitoringJob().getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -941,14 +853,10 @@ public Map extract( GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteModelDeploymentMonitoringJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - DeleteModelDeploymentMonitoringJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -956,14 +864,10 @@ public Map extract( GrpcCallSettings.newBuilder() .setMethodDescriptor(pauseModelDeploymentMonitoringJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - PauseModelDeploymentMonitoringJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -971,14 +875,10 @@ public Map extract( GrpcCallSettings.newBuilder() .setMethodDescriptor(resumeModelDeploymentMonitoringJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - ResumeModelDeploymentMonitoringJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); @@ -1429,7 +1329,13 @@ public UnaryCallable cancelBatchPredicti @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMetadataServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMetadataServiceStub.java index 2dccee00c..7d1ec2cc9 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMetadataServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMetadataServiceStub.java @@ -29,7 +29,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest; import com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse; @@ -45,7 +44,9 @@ import com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest; import com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata; import com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest; import com.google.cloud.aiplatform.v1beta1.DeleteContextRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest; import com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata; import com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest; import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; @@ -68,6 +69,15 @@ import com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse; import com.google.cloud.aiplatform.v1beta1.MetadataSchema; import com.google.cloud.aiplatform.v1beta1.MetadataStore; +import com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata; +import com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest; +import com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse; +import com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata; +import com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest; +import com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse; +import com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata; +import com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest; +import com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse; import com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest; import com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest; import com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest; @@ -81,7 +91,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -177,6 +186,26 @@ public class GrpcMetadataServiceStub extends MetadataServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Artifact.getDefaultInstance())) .build(); + private static final MethodDescriptor + deleteArtifactMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/DeleteArtifact") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteArtifactRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + purgeArtifactsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/PurgeArtifacts") + .setRequestMarshaller( + ProtoUtils.marshaller(PurgeArtifactsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor createContextMethodDescriptor = MethodDescriptor.newBuilder() @@ -225,6 +254,16 @@ public class GrpcMetadataServiceStub extends MetadataServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + purgeContextsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/PurgeContexts") + .setRequestMarshaller( + ProtoUtils.marshaller(PurgeContextsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor< AddContextArtifactsAndExecutionsRequest, AddContextArtifactsAndExecutionsResponse> addContextArtifactsAndExecutionsMethodDescriptor = @@ -305,6 +344,26 @@ public class GrpcMetadataServiceStub extends MetadataServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Execution.getDefaultInstance())) .build(); + private static final MethodDescriptor + deleteExecutionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/DeleteExecution") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteExecutionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + purgeExecutionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.MetadataService/PurgeExecutions") + .setRequestMarshaller( + ProtoUtils.marshaller(PurgeExecutionsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor addExecutionEventsMethodDescriptor = MethodDescriptor.newBuilder() @@ -392,6 +451,13 @@ public class GrpcMetadataServiceStub extends MetadataServiceStub { private final UnaryCallable listArtifactsPagedCallable; private final UnaryCallable updateArtifactCallable; + private final UnaryCallable deleteArtifactCallable; + private final OperationCallable + deleteArtifactOperationCallable; + private final UnaryCallable purgeArtifactsCallable; + private final OperationCallable< + PurgeArtifactsRequest, PurgeArtifactsResponse, PurgeArtifactsMetadata> + purgeArtifactsOperationCallable; private final UnaryCallable createContextCallable; private final UnaryCallable getContextCallable; private final UnaryCallable listContextsCallable; @@ -401,6 +467,10 @@ public class GrpcMetadataServiceStub extends MetadataServiceStub { private final UnaryCallable deleteContextCallable; private final OperationCallable deleteContextOperationCallable; + private final UnaryCallable purgeContextsCallable; + private final OperationCallable< + PurgeContextsRequest, PurgeContextsResponse, PurgeContextsMetadata> + purgeContextsOperationCallable; private final UnaryCallable< AddContextArtifactsAndExecutionsRequest, AddContextArtifactsAndExecutionsResponse> addContextArtifactsAndExecutionsCallable; @@ -414,6 +484,13 @@ public class GrpcMetadataServiceStub extends MetadataServiceStub { private final UnaryCallable listExecutionsPagedCallable; private final UnaryCallable updateExecutionCallable; + private final UnaryCallable deleteExecutionCallable; + private final OperationCallable + deleteExecutionOperationCallable; + private final UnaryCallable purgeExecutionsCallable; + private final OperationCallable< + PurgeExecutionsRequest, PurgeExecutionsResponse, PurgeExecutionsMetadata> + purgeExecutionsOperationCallable; private final UnaryCallable addExecutionEventsCallable; private final UnaryCallable @@ -476,26 +553,20 @@ protected GrpcMetadataServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createMetadataStoreMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateMetadataStoreRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getMetadataStoreTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getMetadataStoreMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetMetadataStoreRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -503,143 +574,140 @@ public Map extract(GetMetadataStoreRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(listMetadataStoresMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListMetadataStoresRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings deleteMetadataStoreTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteMetadataStoreMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteMetadataStoreRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings createArtifactTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createArtifactMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateArtifactRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getArtifactTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getArtifactMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetArtifactRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings listArtifactsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listArtifactsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListArtifactsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings updateArtifactTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateArtifactMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateArtifactRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("artifact.name", String.valueOf(request.getArtifact().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("artifact.name", String.valueOf(request.getArtifact().getName())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteArtifactTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteArtifactMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings purgeArtifactsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(purgeArtifactsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings createContextTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createContextMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateContextRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getContextTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getContextMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetContextRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings listContextsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listContextsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListContextsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings updateContextTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateContextMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateContextRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("context.name", String.valueOf(request.getContext().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("context.name", String.valueOf(request.getContext().getName())); + return params.build(); }) .build(); GrpcCallSettings deleteContextTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteContextMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteContextRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings purgeContextsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(purgeContextsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings< @@ -650,14 +718,10 @@ public Map extract(DeleteContextRequest request) { newBuilder() .setMethodDescriptor(addContextArtifactsAndExecutionsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - AddContextArtifactsAndExecutionsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("context", String.valueOf(request.getContext())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("context", String.valueOf(request.getContext())); + return params.build(); }) .build(); GrpcCallSettings @@ -665,13 +729,10 @@ public Map extract( GrpcCallSettings.newBuilder() .setMethodDescriptor(addContextChildrenMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(AddContextChildrenRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("context", String.valueOf(request.getContext())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("context", String.valueOf(request.getContext())); + return params.build(); }) .build(); GrpcCallSettings @@ -679,40 +740,30 @@ public Map extract(AddContextChildrenRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(queryContextLineageSubgraphMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - QueryContextLineageSubgraphRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("context", String.valueOf(request.getContext())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("context", String.valueOf(request.getContext())); + return params.build(); }) .build(); GrpcCallSettings createExecutionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createExecutionMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateExecutionRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getExecutionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getExecutionMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetExecutionRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -720,26 +771,40 @@ public Map extract(GetExecutionRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(listExecutionsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListExecutionsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings updateExecutionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateExecutionMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateExecutionRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("execution.name", String.valueOf(request.getExecution().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("execution.name", String.valueOf(request.getExecution().getName())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteExecutionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteExecutionMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings purgeExecutionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(purgeExecutionsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -747,13 +812,10 @@ public Map extract(UpdateExecutionRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(addExecutionEventsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(AddExecutionEventsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("execution", String.valueOf(request.getExecution())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("execution", String.valueOf(request.getExecution())); + return params.build(); }) .build(); GrpcCallSettings @@ -761,14 +823,10 @@ public Map extract(AddExecutionEventsRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(queryExecutionInputsAndOutputsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - QueryExecutionInputsAndOutputsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("execution", String.valueOf(request.getExecution())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("execution", String.valueOf(request.getExecution())); + return params.build(); }) .build(); GrpcCallSettings @@ -776,26 +834,20 @@ public Map extract( GrpcCallSettings.newBuilder() .setMethodDescriptor(createMetadataSchemaMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateMetadataSchemaRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getMetadataSchemaTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getMetadataSchemaMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetMetadataSchemaRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -803,13 +855,10 @@ public Map extract(GetMetadataSchemaRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(listMetadataSchemasMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListMetadataSchemasRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -817,14 +866,10 @@ public Map extract(ListMetadataSchemasRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(queryArtifactLineageSubgraphMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - QueryArtifactLineageSubgraphRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("artifact", String.valueOf(request.getArtifact())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("artifact", String.valueOf(request.getArtifact())); + return params.build(); }) .build(); @@ -878,6 +923,24 @@ public Map extract( this.updateArtifactCallable = callableFactory.createUnaryCallable( updateArtifactTransportSettings, settings.updateArtifactSettings(), clientContext); + this.deleteArtifactCallable = + callableFactory.createUnaryCallable( + deleteArtifactTransportSettings, settings.deleteArtifactSettings(), clientContext); + this.deleteArtifactOperationCallable = + callableFactory.createOperationCallable( + deleteArtifactTransportSettings, + settings.deleteArtifactOperationSettings(), + clientContext, + operationsStub); + this.purgeArtifactsCallable = + callableFactory.createUnaryCallable( + purgeArtifactsTransportSettings, settings.purgeArtifactsSettings(), clientContext); + this.purgeArtifactsOperationCallable = + callableFactory.createOperationCallable( + purgeArtifactsTransportSettings, + settings.purgeArtifactsOperationSettings(), + clientContext, + operationsStub); this.createContextCallable = callableFactory.createUnaryCallable( createContextTransportSettings, settings.createContextSettings(), clientContext); @@ -902,6 +965,15 @@ public Map extract( settings.deleteContextOperationSettings(), clientContext, operationsStub); + this.purgeContextsCallable = + callableFactory.createUnaryCallable( + purgeContextsTransportSettings, settings.purgeContextsSettings(), clientContext); + this.purgeContextsOperationCallable = + callableFactory.createOperationCallable( + purgeContextsTransportSettings, + settings.purgeContextsOperationSettings(), + clientContext, + operationsStub); this.addContextArtifactsAndExecutionsCallable = callableFactory.createUnaryCallable( addContextArtifactsAndExecutionsTransportSettings, @@ -932,6 +1004,24 @@ public Map extract( this.updateExecutionCallable = callableFactory.createUnaryCallable( updateExecutionTransportSettings, settings.updateExecutionSettings(), clientContext); + this.deleteExecutionCallable = + callableFactory.createUnaryCallable( + deleteExecutionTransportSettings, settings.deleteExecutionSettings(), clientContext); + this.deleteExecutionOperationCallable = + callableFactory.createOperationCallable( + deleteExecutionTransportSettings, + settings.deleteExecutionOperationSettings(), + clientContext, + operationsStub); + this.purgeExecutionsCallable = + callableFactory.createUnaryCallable( + purgeExecutionsTransportSettings, settings.purgeExecutionsSettings(), clientContext); + this.purgeExecutionsOperationCallable = + callableFactory.createOperationCallable( + purgeExecutionsTransportSettings, + settings.purgeExecutionsOperationSettings(), + clientContext, + operationsStub); this.addExecutionEventsCallable = callableFactory.createUnaryCallable( addExecutionEventsTransportSettings, @@ -1042,6 +1132,28 @@ public UnaryCallable updateArtifactCallable() { return updateArtifactCallable; } + @Override + public UnaryCallable deleteArtifactCallable() { + return deleteArtifactCallable; + } + + @Override + public OperationCallable + deleteArtifactOperationCallable() { + return deleteArtifactOperationCallable; + } + + @Override + public UnaryCallable purgeArtifactsCallable() { + return purgeArtifactsCallable; + } + + @Override + public OperationCallable + purgeArtifactsOperationCallable() { + return purgeArtifactsOperationCallable; + } + @Override public UnaryCallable createContextCallable() { return createContextCallable; @@ -1078,6 +1190,17 @@ public UnaryCallable deleteContextCallable() { return deleteContextOperationCallable; } + @Override + public UnaryCallable purgeContextsCallable() { + return purgeContextsCallable; + } + + @Override + public OperationCallable + purgeContextsOperationCallable() { + return purgeContextsOperationCallable; + } + @Override public UnaryCallable< AddContextArtifactsAndExecutionsRequest, AddContextArtifactsAndExecutionsResponse> @@ -1123,6 +1246,28 @@ public UnaryCallable updateExecutionCallable( return updateExecutionCallable; } + @Override + public UnaryCallable deleteExecutionCallable() { + return deleteExecutionCallable; + } + + @Override + public OperationCallable + deleteExecutionOperationCallable() { + return deleteExecutionOperationCallable; + } + + @Override + public UnaryCallable purgeExecutionsCallable() { + return purgeExecutionsCallable; + } + + @Override + public OperationCallable + purgeExecutionsOperationCallable() { + return purgeExecutionsOperationCallable; + } + @Override public UnaryCallable addExecutionEventsCallable() { @@ -1165,7 +1310,13 @@ public UnaryCallable getMetadataSchema @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMigrationServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMigrationServiceStub.java index 1fca9f3c6..e749226fb 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMigrationServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcMigrationServiceStub.java @@ -25,7 +25,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesOperationMetadata; import com.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesRequest; @@ -38,7 +37,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -139,13 +137,10 @@ protected GrpcMigrationServiceStub( .newBuilder() .setMethodDescriptor(searchMigratableResourcesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SearchMigratableResourcesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -153,13 +148,10 @@ public Map extract(SearchMigratableResourcesRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(batchMigrateResourcesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(BatchMigrateResourcesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); @@ -221,7 +213,13 @@ public UnaryCallable batchMigrateResour @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcModelServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcModelServiceStub.java index 1bf378ee2..82082e5b9 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcModelServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcModelServiceStub.java @@ -27,7 +27,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1beta1.DeleteModelRequest; import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; @@ -57,7 +56,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -242,78 +240,60 @@ protected GrpcModelServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(uploadModelMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UploadModelRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getModelTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getModelMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetModelRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings listModelsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listModelsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListModelsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings updateModelTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateModelMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateModelRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("model.name", String.valueOf(request.getModel().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("model.name", String.valueOf(request.getModel().getName())); + return params.build(); }) .build(); GrpcCallSettings deleteModelTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteModelMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteModelRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings exportModelTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(exportModelMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ExportModelRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -321,13 +301,10 @@ public Map extract(ExportModelRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(getModelEvaluationMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetModelEvaluationRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -335,13 +312,10 @@ public Map extract(GetModelEvaluationRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(listModelEvaluationsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListModelEvaluationsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -349,13 +323,10 @@ public Map extract(ListModelEvaluationsRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(getModelEvaluationSliceMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetModelEvaluationSliceRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -364,13 +335,10 @@ public Map extract(GetModelEvaluationSliceRequest request) { .newBuilder() .setMethodDescriptor(listModelEvaluationSlicesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListModelEvaluationSlicesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); @@ -542,7 +510,13 @@ public UnaryCallable getModelEvaluat @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPipelineServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPipelineServiceStub.java index 124823e5e..e1476b3b5 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPipelineServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPipelineServiceStub.java @@ -26,7 +26,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest; import com.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest; @@ -50,7 +49,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -246,13 +244,10 @@ protected GrpcPipelineServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createTrainingPipelineMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateTrainingPipelineRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -260,13 +255,10 @@ public Map extract(CreateTrainingPipelineRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(getTrainingPipelineMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetTrainingPipelineRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -275,13 +267,10 @@ public Map extract(GetTrainingPipelineRequest request) { .newBuilder() .setMethodDescriptor(listTrainingPipelinesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListTrainingPipelinesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -289,52 +278,40 @@ public Map extract(ListTrainingPipelinesRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteTrainingPipelineMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteTrainingPipelineRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings cancelTrainingPipelineTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(cancelTrainingPipelineMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CancelTrainingPipelineRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings createPipelineJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createPipelineJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreatePipelineJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getPipelineJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getPipelineJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetPipelineJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -342,39 +319,30 @@ public Map extract(GetPipelineJobRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(listPipelineJobsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListPipelineJobsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings deletePipelineJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deletePipelineJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeletePipelineJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings cancelPipelineJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(cancelPipelineJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CancelPipelineJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); @@ -532,7 +500,13 @@ public UnaryCallable cancelPipelineJobCallable( @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPredictionServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPredictionServiceStub.java index f66092e1a..0aeab72c3 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPredictionServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPredictionServiceStub.java @@ -22,7 +22,6 @@ import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1beta1.ExplainRequest; import com.google.cloud.aiplatform.v1beta1.ExplainResponse; @@ -33,7 +32,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -113,26 +111,20 @@ protected GrpcPredictionServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(predictMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(PredictRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("endpoint", String.valueOf(request.getEndpoint())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("endpoint", String.valueOf(request.getEndpoint())); + return params.build(); }) .build(); GrpcCallSettings explainTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(explainMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ExplainRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("endpoint", String.valueOf(request.getEndpoint())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("endpoint", String.valueOf(request.getEndpoint())); + return params.build(); }) .build(); @@ -163,7 +155,13 @@ public UnaryCallable explainCallable() { @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcSpecialistPoolServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcSpecialistPoolServiceStub.java index 5dcd918f5..7d6ec3c2a 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcSpecialistPoolServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcSpecialistPoolServiceStub.java @@ -25,7 +25,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata; import com.google.cloud.aiplatform.v1beta1.CreateSpecialistPoolRequest; @@ -44,7 +43,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -178,26 +176,20 @@ protected GrpcSpecialistPoolServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createSpecialistPoolMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateSpecialistPoolRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getSpecialistPoolTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getSpecialistPoolMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetSpecialistPoolRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -205,41 +197,32 @@ public Map extract(GetSpecialistPoolRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(listSpecialistPoolsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListSpecialistPoolsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings deleteSpecialistPoolTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteSpecialistPoolMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteSpecialistPoolRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings updateSpecialistPoolTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateSpecialistPoolMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateSpecialistPoolRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "specialist_pool.name", - String.valueOf(request.getSpecialistPool().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "specialist_pool.name", + String.valueOf(request.getSpecialistPool().getName())); + return params.build(); }) .build(); @@ -354,7 +337,13 @@ public UnaryCallable updateSpecialistPoo @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcTensorboardServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcTensorboardServiceStub.java index 578523026..b985ee3f5 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcTensorboardServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcTensorboardServiceStub.java @@ -29,7 +29,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest; @@ -78,7 +77,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -508,40 +506,31 @@ protected GrpcTensorboardServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createTensorboardMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateTensorboardRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getTensorboardTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getTensorboardMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetTensorboardRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings updateTensorboardTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateTensorboardMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateTensorboardRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "tensorboard.name", String.valueOf(request.getTensorboard().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "tensorboard.name", String.valueOf(request.getTensorboard().getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -549,26 +538,20 @@ public Map extract(UpdateTensorboardRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(listTensorboardsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListTensorboardsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings deleteTensorboardTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteTensorboardMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteTensorboardRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -576,14 +559,10 @@ public Map extract(DeleteTensorboardRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(createTensorboardExperimentMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - CreateTensorboardExperimentRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -591,13 +570,10 @@ public Map extract( GrpcCallSettings.newBuilder() .setMethodDescriptor(getTensorboardExperimentMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetTensorboardExperimentRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -605,16 +581,12 @@ public Map extract(GetTensorboardExperimentRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(updateTensorboardExperimentMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - UpdateTensorboardExperimentRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "tensorboard_experiment.name", - String.valueOf(request.getTensorboardExperiment().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "tensorboard_experiment.name", + String.valueOf(request.getTensorboardExperiment().getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -623,14 +595,10 @@ public Map extract( .newBuilder() .setMethodDescriptor(listTensorboardExperimentsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - ListTensorboardExperimentsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -638,14 +606,10 @@ public Map extract( GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteTensorboardExperimentMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - DeleteTensorboardExperimentRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -653,26 +617,20 @@ public Map extract( GrpcCallSettings.newBuilder() .setMethodDescriptor(createTensorboardRunMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateTensorboardRunRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getTensorboardRunTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getTensorboardRunMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetTensorboardRunRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -680,15 +638,12 @@ public Map extract(GetTensorboardRunRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(updateTensorboardRunMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateTensorboardRunRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "tensorboard_run.name", - String.valueOf(request.getTensorboardRun().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "tensorboard_run.name", + String.valueOf(request.getTensorboardRun().getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -696,26 +651,20 @@ public Map extract(UpdateTensorboardRunRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(listTensorboardRunsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListTensorboardRunsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings deleteTensorboardRunTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteTensorboardRunMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteTensorboardRunRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -723,14 +672,10 @@ public Map extract(DeleteTensorboardRunRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(createTensorboardTimeSeriesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - CreateTensorboardTimeSeriesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -738,13 +683,10 @@ public Map extract( GrpcCallSettings.newBuilder() .setMethodDescriptor(getTensorboardTimeSeriesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetTensorboardTimeSeriesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -752,16 +694,12 @@ public Map extract(GetTensorboardTimeSeriesRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(updateTensorboardTimeSeriesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - UpdateTensorboardTimeSeriesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "tensorboard_time_series.name", - String.valueOf(request.getTensorboardTimeSeries().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "tensorboard_time_series.name", + String.valueOf(request.getTensorboardTimeSeries().getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -770,13 +708,10 @@ public Map extract( .newBuilder() .setMethodDescriptor(listTensorboardTimeSeriesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListTensorboardTimeSeriesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -784,14 +719,10 @@ public Map extract(ListTensorboardTimeSeriesRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteTensorboardTimeSeriesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - DeleteTensorboardTimeSeriesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -801,16 +732,12 @@ public Map extract( newBuilder() .setMethodDescriptor(readTensorboardTimeSeriesDataMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - ReadTensorboardTimeSeriesDataRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "tensorboard_time_series", - String.valueOf(request.getTensorboardTimeSeries())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "tensorboard_time_series", + String.valueOf(request.getTensorboardTimeSeries())); + return params.build(); }) .build(); GrpcCallSettings @@ -819,13 +746,10 @@ public Map extract( .newBuilder() .setMethodDescriptor(readTensorboardBlobDataMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ReadTensorboardBlobDataRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("time_series", String.valueOf(request.getTimeSeries())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("time_series", String.valueOf(request.getTimeSeries())); + return params.build(); }) .build(); GrpcCallSettings @@ -834,13 +758,10 @@ public Map extract(ReadTensorboardBlobDataRequest request) { .newBuilder() .setMethodDescriptor(writeTensorboardRunDataMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(WriteTensorboardRunDataRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("tensorboard_run", String.valueOf(request.getTensorboardRun())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("tensorboard_run", String.valueOf(request.getTensorboardRun())); + return params.build(); }) .build(); GrpcCallSettings< @@ -851,16 +772,12 @@ public Map extract(WriteTensorboardRunDataRequest request) { newBuilder() .setMethodDescriptor(exportTensorboardTimeSeriesDataMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - ExportTensorboardTimeSeriesDataRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "tensorboard_time_series", - String.valueOf(request.getTensorboardTimeSeries())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "tensorboard_time_series", + String.valueOf(request.getTensorboardTimeSeries())); + return params.build(); }) .build(); @@ -1256,7 +1173,13 @@ public UnaryCallable deleteTensorboardRu @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcVizierServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcVizierServiceStub.java index d5cb954af..587bcee4a 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcVizierServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcVizierServiceStub.java @@ -26,7 +26,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest; import com.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateMetatdata; @@ -59,7 +58,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -281,156 +279,120 @@ protected GrpcVizierServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createStudyMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateStudyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getStudyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getStudyMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetStudyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings listStudiesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listStudiesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListStudiesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings deleteStudyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteStudyMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteStudyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings lookupStudyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(lookupStudyMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(LookupStudyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings suggestTrialsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(suggestTrialsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SuggestTrialsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings createTrialTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createTrialMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateTrialRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getTrialTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getTrialMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetTrialRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings listTrialsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listTrialsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListTrialsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings addTrialMeasurementTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(addTrialMeasurementMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(AddTrialMeasurementRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("trial_name", String.valueOf(request.getTrialName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("trial_name", String.valueOf(request.getTrialName())); + return params.build(); }) .build(); GrpcCallSettings completeTrialTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(completeTrialMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CompleteTrialRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings deleteTrialTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteTrialMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteTrialRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -438,27 +400,20 @@ public Map extract(DeleteTrialRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(checkTrialEarlyStoppingStateMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - CheckTrialEarlyStoppingStateRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("trial_name", String.valueOf(request.getTrialName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("trial_name", String.valueOf(request.getTrialName())); + return params.build(); }) .build(); GrpcCallSettings stopTrialTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(stopTrialMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(StopTrialRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -466,13 +421,10 @@ public Map extract(StopTrialRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(listOptimalTrialsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListOptimalTrialsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); @@ -658,7 +610,13 @@ public UnaryCallable stopTrialCallable() { @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexEndpointServiceStubSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexEndpointServiceStubSettings.java index 904258fa6..bafbfdcd3 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexEndpointServiceStubSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexEndpointServiceStubSettings.java @@ -615,14 +615,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexServiceStubSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexServiceStubSettings.java index 12be82c6e..fbf2ccbb0 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexServiceStubSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/IndexServiceStubSettings.java @@ -503,14 +503,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/JobServiceStubSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/JobServiceStubSettings.java index 91efdf518..43094e7ce 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/JobServiceStubSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/JobServiceStubSettings.java @@ -1627,14 +1627,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MetadataServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MetadataServiceStub.java index 7f749cae5..b78579bda 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MetadataServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MetadataServiceStub.java @@ -40,7 +40,9 @@ import com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest; import com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata; import com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest; import com.google.cloud.aiplatform.v1beta1.DeleteContextRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest; import com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata; import com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest; import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; @@ -63,6 +65,15 @@ import com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse; import com.google.cloud.aiplatform.v1beta1.MetadataSchema; import com.google.cloud.aiplatform.v1beta1.MetadataStore; +import com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata; +import com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest; +import com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse; +import com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata; +import com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest; +import com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse; +import com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata; +import com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest; +import com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse; import com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest; import com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest; import com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest; @@ -144,6 +155,24 @@ public UnaryCallable updateArtifactCallable() { throw new UnsupportedOperationException("Not implemented: updateArtifactCallable()"); } + public OperationCallable + deleteArtifactOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteArtifactOperationCallable()"); + } + + public UnaryCallable deleteArtifactCallable() { + throw new UnsupportedOperationException("Not implemented: deleteArtifactCallable()"); + } + + public OperationCallable + purgeArtifactsOperationCallable() { + throw new UnsupportedOperationException("Not implemented: purgeArtifactsOperationCallable()"); + } + + public UnaryCallable purgeArtifactsCallable() { + throw new UnsupportedOperationException("Not implemented: purgeArtifactsCallable()"); + } + public UnaryCallable createContextCallable() { throw new UnsupportedOperationException("Not implemented: createContextCallable()"); } @@ -173,6 +202,15 @@ public UnaryCallable deleteContextCallable() { throw new UnsupportedOperationException("Not implemented: deleteContextCallable()"); } + public OperationCallable + purgeContextsOperationCallable() { + throw new UnsupportedOperationException("Not implemented: purgeContextsOperationCallable()"); + } + + public UnaryCallable purgeContextsCallable() { + throw new UnsupportedOperationException("Not implemented: purgeContextsCallable()"); + } + public UnaryCallable< AddContextArtifactsAndExecutionsRequest, AddContextArtifactsAndExecutionsResponse> addContextArtifactsAndExecutionsCallable() { @@ -212,6 +250,24 @@ public UnaryCallable updateExecutionCallable( throw new UnsupportedOperationException("Not implemented: updateExecutionCallable()"); } + public OperationCallable + deleteExecutionOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteExecutionOperationCallable()"); + } + + public UnaryCallable deleteExecutionCallable() { + throw new UnsupportedOperationException("Not implemented: deleteExecutionCallable()"); + } + + public OperationCallable + purgeExecutionsOperationCallable() { + throw new UnsupportedOperationException("Not implemented: purgeExecutionsOperationCallable()"); + } + + public UnaryCallable purgeExecutionsCallable() { + throw new UnsupportedOperationException("Not implemented: purgeExecutionsCallable()"); + } + public UnaryCallable addExecutionEventsCallable() { throw new UnsupportedOperationException("Not implemented: addExecutionEventsCallable()"); diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MetadataServiceStubSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MetadataServiceStubSettings.java index 99a342a54..fd89ffee6 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MetadataServiceStubSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MetadataServiceStubSettings.java @@ -62,7 +62,9 @@ import com.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest; import com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata; import com.google.cloud.aiplatform.v1beta1.CreateMetadataStoreRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest; import com.google.cloud.aiplatform.v1beta1.DeleteContextRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest; import com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata; import com.google.cloud.aiplatform.v1beta1.DeleteMetadataStoreRequest; import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; @@ -85,6 +87,15 @@ import com.google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse; import com.google.cloud.aiplatform.v1beta1.MetadataSchema; import com.google.cloud.aiplatform.v1beta1.MetadataStore; +import com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata; +import com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest; +import com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse; +import com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata; +import com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest; +import com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse; +import com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata; +import com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest; +import com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse; import com.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest; import com.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest; import com.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest; @@ -161,6 +172,13 @@ public class MetadataServiceStubSettings extends StubSettings listArtifactsSettings; private final UnaryCallSettings updateArtifactSettings; + private final UnaryCallSettings deleteArtifactSettings; + private final OperationCallSettings + deleteArtifactOperationSettings; + private final UnaryCallSettings purgeArtifactsSettings; + private final OperationCallSettings< + PurgeArtifactsRequest, PurgeArtifactsResponse, PurgeArtifactsMetadata> + purgeArtifactsOperationSettings; private final UnaryCallSettings createContextSettings; private final UnaryCallSettings getContextSettings; private final PagedCallSettings< @@ -170,6 +188,10 @@ public class MetadataServiceStubSettings extends StubSettings deleteContextSettings; private final OperationCallSettings deleteContextOperationSettings; + private final UnaryCallSettings purgeContextsSettings; + private final OperationCallSettings< + PurgeContextsRequest, PurgeContextsResponse, PurgeContextsMetadata> + purgeContextsOperationSettings; private final UnaryCallSettings< AddContextArtifactsAndExecutionsRequest, AddContextArtifactsAndExecutionsResponse> addContextArtifactsAndExecutionsSettings; @@ -183,6 +205,13 @@ public class MetadataServiceStubSettings extends StubSettings listExecutionsSettings; private final UnaryCallSettings updateExecutionSettings; + private final UnaryCallSettings deleteExecutionSettings; + private final OperationCallSettings + deleteExecutionOperationSettings; + private final UnaryCallSettings purgeExecutionsSettings; + private final OperationCallSettings< + PurgeExecutionsRequest, PurgeExecutionsResponse, PurgeExecutionsMetadata> + purgeExecutionsOperationSettings; private final UnaryCallSettings addExecutionEventsSettings; private final UnaryCallSettings @@ -536,6 +565,29 @@ public UnaryCallSettings updateArtifactSettings return updateArtifactSettings; } + /** Returns the object with the settings used for calls to deleteArtifact. */ + public UnaryCallSettings deleteArtifactSettings() { + return deleteArtifactSettings; + } + + /** Returns the object with the settings used for calls to deleteArtifact. */ + public OperationCallSettings + deleteArtifactOperationSettings() { + return deleteArtifactOperationSettings; + } + + /** Returns the object with the settings used for calls to purgeArtifacts. */ + public UnaryCallSettings purgeArtifactsSettings() { + return purgeArtifactsSettings; + } + + /** Returns the object with the settings used for calls to purgeArtifacts. */ + public OperationCallSettings< + PurgeArtifactsRequest, PurgeArtifactsResponse, PurgeArtifactsMetadata> + purgeArtifactsOperationSettings() { + return purgeArtifactsOperationSettings; + } + /** Returns the object with the settings used for calls to createContext. */ public UnaryCallSettings createContextSettings() { return createContextSettings; @@ -568,6 +620,17 @@ public UnaryCallSettings deleteContextSettings( return deleteContextOperationSettings; } + /** Returns the object with the settings used for calls to purgeContexts. */ + public UnaryCallSettings purgeContextsSettings() { + return purgeContextsSettings; + } + + /** Returns the object with the settings used for calls to purgeContexts. */ + public OperationCallSettings + purgeContextsOperationSettings() { + return purgeContextsOperationSettings; + } + /** Returns the object with the settings used for calls to addContextArtifactsAndExecutions. */ public UnaryCallSettings< AddContextArtifactsAndExecutionsRequest, AddContextArtifactsAndExecutionsResponse> @@ -609,6 +672,29 @@ public UnaryCallSettings updateExecutionSetti return updateExecutionSettings; } + /** Returns the object with the settings used for calls to deleteExecution. */ + public UnaryCallSettings deleteExecutionSettings() { + return deleteExecutionSettings; + } + + /** Returns the object with the settings used for calls to deleteExecution. */ + public OperationCallSettings + deleteExecutionOperationSettings() { + return deleteExecutionOperationSettings; + } + + /** Returns the object with the settings used for calls to purgeExecutions. */ + public UnaryCallSettings purgeExecutionsSettings() { + return purgeExecutionsSettings; + } + + /** Returns the object with the settings used for calls to purgeExecutions. */ + public OperationCallSettings< + PurgeExecutionsRequest, PurgeExecutionsResponse, PurgeExecutionsMetadata> + purgeExecutionsOperationSettings() { + return purgeExecutionsOperationSettings; + } + /** Returns the object with the settings used for calls to addExecutionEvents. */ public UnaryCallSettings addExecutionEventsSettings() { @@ -731,12 +817,18 @@ protected MetadataServiceStubSettings(Builder settingsBuilder) throws IOExceptio getArtifactSettings = settingsBuilder.getArtifactSettings().build(); listArtifactsSettings = settingsBuilder.listArtifactsSettings().build(); updateArtifactSettings = settingsBuilder.updateArtifactSettings().build(); + deleteArtifactSettings = settingsBuilder.deleteArtifactSettings().build(); + deleteArtifactOperationSettings = settingsBuilder.deleteArtifactOperationSettings().build(); + purgeArtifactsSettings = settingsBuilder.purgeArtifactsSettings().build(); + purgeArtifactsOperationSettings = settingsBuilder.purgeArtifactsOperationSettings().build(); createContextSettings = settingsBuilder.createContextSettings().build(); getContextSettings = settingsBuilder.getContextSettings().build(); listContextsSettings = settingsBuilder.listContextsSettings().build(); updateContextSettings = settingsBuilder.updateContextSettings().build(); deleteContextSettings = settingsBuilder.deleteContextSettings().build(); deleteContextOperationSettings = settingsBuilder.deleteContextOperationSettings().build(); + purgeContextsSettings = settingsBuilder.purgeContextsSettings().build(); + purgeContextsOperationSettings = settingsBuilder.purgeContextsOperationSettings().build(); addContextArtifactsAndExecutionsSettings = settingsBuilder.addContextArtifactsAndExecutionsSettings().build(); addContextChildrenSettings = settingsBuilder.addContextChildrenSettings().build(); @@ -746,6 +838,10 @@ protected MetadataServiceStubSettings(Builder settingsBuilder) throws IOExceptio getExecutionSettings = settingsBuilder.getExecutionSettings().build(); listExecutionsSettings = settingsBuilder.listExecutionsSettings().build(); updateExecutionSettings = settingsBuilder.updateExecutionSettings().build(); + deleteExecutionSettings = settingsBuilder.deleteExecutionSettings().build(); + deleteExecutionOperationSettings = settingsBuilder.deleteExecutionOperationSettings().build(); + purgeExecutionsSettings = settingsBuilder.purgeExecutionsSettings().build(); + purgeExecutionsOperationSettings = settingsBuilder.purgeExecutionsOperationSettings().build(); addExecutionEventsSettings = settingsBuilder.addExecutionEventsSettings().build(); queryExecutionInputsAndOutputsSettings = settingsBuilder.queryExecutionInputsAndOutputsSettings().build(); @@ -780,6 +876,16 @@ public static class Builder extends StubSettings.Builder listArtifactsSettings; private final UnaryCallSettings.Builder updateArtifactSettings; + private final UnaryCallSettings.Builder + deleteArtifactSettings; + private final OperationCallSettings.Builder< + DeleteArtifactRequest, Empty, DeleteOperationMetadata> + deleteArtifactOperationSettings; + private final UnaryCallSettings.Builder + purgeArtifactsSettings; + private final OperationCallSettings.Builder< + PurgeArtifactsRequest, PurgeArtifactsResponse, PurgeArtifactsMetadata> + purgeArtifactsOperationSettings; private final UnaryCallSettings.Builder createContextSettings; private final UnaryCallSettings.Builder getContextSettings; private final PagedCallSettings.Builder< @@ -790,6 +896,10 @@ public static class Builder extends StubSettings.Builder deleteContextOperationSettings; + private final UnaryCallSettings.Builder purgeContextsSettings; + private final OperationCallSettings.Builder< + PurgeContextsRequest, PurgeContextsResponse, PurgeContextsMetadata> + purgeContextsOperationSettings; private final UnaryCallSettings.Builder< AddContextArtifactsAndExecutionsRequest, AddContextArtifactsAndExecutionsResponse> addContextArtifactsAndExecutionsSettings; @@ -805,6 +915,16 @@ public static class Builder extends StubSettings.Builder updateExecutionSettings; + private final UnaryCallSettings.Builder + deleteExecutionSettings; + private final OperationCallSettings.Builder< + DeleteExecutionRequest, Empty, DeleteOperationMetadata> + deleteExecutionOperationSettings; + private final UnaryCallSettings.Builder + purgeExecutionsSettings; + private final OperationCallSettings.Builder< + PurgeExecutionsRequest, PurgeExecutionsResponse, PurgeExecutionsMetadata> + purgeExecutionsOperationSettings; private final UnaryCallSettings.Builder addExecutionEventsSettings; private final UnaryCallSettings.Builder @@ -867,12 +987,18 @@ protected Builder(ClientContext clientContext) { getArtifactSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listArtifactsSettings = PagedCallSettings.newBuilder(LIST_ARTIFACTS_PAGE_STR_FACT); updateArtifactSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteArtifactSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteArtifactOperationSettings = OperationCallSettings.newBuilder(); + purgeArtifactsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + purgeArtifactsOperationSettings = OperationCallSettings.newBuilder(); createContextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getContextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listContextsSettings = PagedCallSettings.newBuilder(LIST_CONTEXTS_PAGE_STR_FACT); updateContextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteContextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteContextOperationSettings = OperationCallSettings.newBuilder(); + purgeContextsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + purgeContextsOperationSettings = OperationCallSettings.newBuilder(); addContextArtifactsAndExecutionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); addContextChildrenSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); queryContextLineageSubgraphSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -880,6 +1006,10 @@ protected Builder(ClientContext clientContext) { getExecutionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listExecutionsSettings = PagedCallSettings.newBuilder(LIST_EXECUTIONS_PAGE_STR_FACT); updateExecutionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteExecutionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteExecutionOperationSettings = OperationCallSettings.newBuilder(); + purgeExecutionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + purgeExecutionsOperationSettings = OperationCallSettings.newBuilder(); addExecutionEventsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); queryExecutionInputsAndOutputsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createMetadataSchemaSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -898,11 +1028,14 @@ protected Builder(ClientContext clientContext) { getArtifactSettings, listArtifactsSettings, updateArtifactSettings, + deleteArtifactSettings, + purgeArtifactsSettings, createContextSettings, getContextSettings, listContextsSettings, updateContextSettings, deleteContextSettings, + purgeContextsSettings, addContextArtifactsAndExecutionsSettings, addContextChildrenSettings, queryContextLineageSubgraphSettings, @@ -910,6 +1043,8 @@ protected Builder(ClientContext clientContext) { getExecutionSettings, listExecutionsSettings, updateExecutionSettings, + deleteExecutionSettings, + purgeExecutionsSettings, addExecutionEventsSettings, queryExecutionInputsAndOutputsSettings, createMetadataSchemaSettings, @@ -934,12 +1069,18 @@ protected Builder(MetadataServiceStubSettings settings) { getArtifactSettings = settings.getArtifactSettings.toBuilder(); listArtifactsSettings = settings.listArtifactsSettings.toBuilder(); updateArtifactSettings = settings.updateArtifactSettings.toBuilder(); + deleteArtifactSettings = settings.deleteArtifactSettings.toBuilder(); + deleteArtifactOperationSettings = settings.deleteArtifactOperationSettings.toBuilder(); + purgeArtifactsSettings = settings.purgeArtifactsSettings.toBuilder(); + purgeArtifactsOperationSettings = settings.purgeArtifactsOperationSettings.toBuilder(); createContextSettings = settings.createContextSettings.toBuilder(); getContextSettings = settings.getContextSettings.toBuilder(); listContextsSettings = settings.listContextsSettings.toBuilder(); updateContextSettings = settings.updateContextSettings.toBuilder(); deleteContextSettings = settings.deleteContextSettings.toBuilder(); deleteContextOperationSettings = settings.deleteContextOperationSettings.toBuilder(); + purgeContextsSettings = settings.purgeContextsSettings.toBuilder(); + purgeContextsOperationSettings = settings.purgeContextsOperationSettings.toBuilder(); addContextArtifactsAndExecutionsSettings = settings.addContextArtifactsAndExecutionsSettings.toBuilder(); addContextChildrenSettings = settings.addContextChildrenSettings.toBuilder(); @@ -949,6 +1090,10 @@ protected Builder(MetadataServiceStubSettings settings) { getExecutionSettings = settings.getExecutionSettings.toBuilder(); listExecutionsSettings = settings.listExecutionsSettings.toBuilder(); updateExecutionSettings = settings.updateExecutionSettings.toBuilder(); + deleteExecutionSettings = settings.deleteExecutionSettings.toBuilder(); + deleteExecutionOperationSettings = settings.deleteExecutionOperationSettings.toBuilder(); + purgeExecutionsSettings = settings.purgeExecutionsSettings.toBuilder(); + purgeExecutionsOperationSettings = settings.purgeExecutionsOperationSettings.toBuilder(); addExecutionEventsSettings = settings.addExecutionEventsSettings.toBuilder(); queryExecutionInputsAndOutputsSettings = settings.queryExecutionInputsAndOutputsSettings.toBuilder(); @@ -968,11 +1113,14 @@ protected Builder(MetadataServiceStubSettings settings) { getArtifactSettings, listArtifactsSettings, updateArtifactSettings, + deleteArtifactSettings, + purgeArtifactsSettings, createContextSettings, getContextSettings, listContextsSettings, updateContextSettings, deleteContextSettings, + purgeContextsSettings, addContextArtifactsAndExecutionsSettings, addContextChildrenSettings, queryContextLineageSubgraphSettings, @@ -980,6 +1128,8 @@ protected Builder(MetadataServiceStubSettings settings) { getExecutionSettings, listExecutionsSettings, updateExecutionSettings, + deleteExecutionSettings, + purgeExecutionsSettings, addExecutionEventsSettings, queryExecutionInputsAndOutputsSettings, createMetadataSchemaSettings, @@ -1042,6 +1192,16 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + builder + .deleteArtifactSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .purgeArtifactsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .createContextSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) @@ -1067,6 +1227,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + builder + .purgeContextsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .addContextArtifactsAndExecutionsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) @@ -1102,6 +1267,16 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + builder + .deleteExecutionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .purgeExecutionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .addExecutionEventsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) @@ -1182,6 +1357,54 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(300000L)) .build())); + builder + .deleteArtifactOperationSettings() + .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 + .purgeArtifactsOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(PurgeArtifactsResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(PurgeArtifactsMetadata.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 .deleteContextOperationSettings() .setInitialCallSettings( @@ -1206,17 +1429,88 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(300000L)) .build())); + builder + .purgeContextsOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(PurgeContextsResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(PurgeContextsMetadata.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 + .deleteExecutionOperationSettings() + .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 + .purgeExecutionsOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(PurgeExecutionsResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(PurgeExecutionsMetadata.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())); + return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } @@ -1290,6 +1584,33 @@ public UnaryCallSettings.Builder updateArtifact return updateArtifactSettings; } + /** Returns the builder for the settings used for calls to deleteArtifact. */ + public UnaryCallSettings.Builder deleteArtifactSettings() { + return deleteArtifactSettings; + } + + /** Returns the builder for the settings used for calls to deleteArtifact. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteArtifactOperationSettings() { + return deleteArtifactOperationSettings; + } + + /** Returns the builder for the settings used for calls to purgeArtifacts. */ + public UnaryCallSettings.Builder purgeArtifactsSettings() { + return purgeArtifactsSettings; + } + + /** Returns the builder for the settings used for calls to purgeArtifacts. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + PurgeArtifactsRequest, PurgeArtifactsResponse, PurgeArtifactsMetadata> + purgeArtifactsOperationSettings() { + return purgeArtifactsOperationSettings; + } + /** Returns the builder for the settings used for calls to createContext. */ public UnaryCallSettings.Builder createContextSettings() { return createContextSettings; @@ -1325,6 +1646,20 @@ public UnaryCallSettings.Builder deleteContextS return deleteContextOperationSettings; } + /** Returns the builder for the settings used for calls to purgeContexts. */ + public UnaryCallSettings.Builder purgeContextsSettings() { + return purgeContextsSettings; + } + + /** Returns the builder for the settings used for calls to purgeContexts. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + PurgeContextsRequest, PurgeContextsResponse, PurgeContextsMetadata> + purgeContextsOperationSettings() { + return purgeContextsOperationSettings; + } + /** Returns the builder for the settings used for calls to addContextArtifactsAndExecutions. */ public UnaryCallSettings.Builder< AddContextArtifactsAndExecutionsRequest, AddContextArtifactsAndExecutionsResponse> @@ -1366,6 +1701,33 @@ public UnaryCallSettings.Builder updateExecut return updateExecutionSettings; } + /** Returns the builder for the settings used for calls to deleteExecution. */ + public UnaryCallSettings.Builder deleteExecutionSettings() { + return deleteExecutionSettings; + } + + /** Returns the builder for the settings used for calls to deleteExecution. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteExecutionOperationSettings() { + return deleteExecutionOperationSettings; + } + + /** Returns the builder for the settings used for calls to purgeExecutions. */ + public UnaryCallSettings.Builder purgeExecutionsSettings() { + return purgeExecutionsSettings; + } + + /** Returns the builder for the settings used for calls to purgeExecutions. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + PurgeExecutionsRequest, PurgeExecutionsResponse, PurgeExecutionsMetadata> + purgeExecutionsOperationSettings() { + return purgeExecutionsOperationSettings; + } + /** Returns the builder for the settings used for calls to addExecutionEvents. */ public UnaryCallSettings.Builder addExecutionEventsSettings() { diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MigrationServiceStubSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MigrationServiceStubSettings.java index ee5f358b0..d295cf69e 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MigrationServiceStubSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/MigrationServiceStubSettings.java @@ -410,14 +410,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStubSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStubSettings.java index 55829e1e5..973406c7d 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStubSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStubSettings.java @@ -777,14 +777,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PipelineServiceStubSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PipelineServiceStubSettings.java index 236c4ac15..c48a706fb 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PipelineServiceStubSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PipelineServiceStubSettings.java @@ -665,14 +665,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStubSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStubSettings.java index a4d9a651b..88d4426ae 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStubSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStubSettings.java @@ -259,14 +259,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SpecialistPoolServiceStubSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SpecialistPoolServiceStubSettings.java index a45d4dc85..897c41423 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SpecialistPoolServiceStubSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/SpecialistPoolServiceStubSettings.java @@ -541,14 +541,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/TensorboardServiceStubSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/TensorboardServiceStubSettings.java index 06c218bf9..fd9763380 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/TensorboardServiceStubSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/TensorboardServiceStubSettings.java @@ -1417,14 +1417,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VizierServiceStubSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VizierServiceStubSettings.java index 6902b3b39..47423db47 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VizierServiceStubSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/VizierServiceStubSettings.java @@ -732,14 +732,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPipelineServiceImpl.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPipelineServiceImpl.java index 8df5f3645..b9676e1a0 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPipelineServiceImpl.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockPipelineServiceImpl.java @@ -165,4 +165,109 @@ public void cancelTrainingPipeline( Exception.class.getName()))); } } + + @Override + public void createPipelineJob( + CreatePipelineJobRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof PipelineJob) { + requests.add(request); + responseObserver.onNext(((PipelineJob) 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 CreatePipelineJob, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + PipelineJob.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getPipelineJob( + GetPipelineJobRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof PipelineJob) { + requests.add(request); + responseObserver.onNext(((PipelineJob) 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 GetPipelineJob, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + PipelineJob.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listPipelineJobs( + ListPipelineJobsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListPipelineJobsResponse) { + requests.add(request); + responseObserver.onNext(((ListPipelineJobsResponse) 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 ListPipelineJobs, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListPipelineJobsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deletePipelineJob( + DeletePipelineJobRequest 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 DeletePipelineJob, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void cancelPipelineJob( + CancelPipelineJobRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) 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 CancelPipelineJob, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PipelineServiceClientTest.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PipelineServiceClientTest.java index c96ff8290..570411c96 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PipelineServiceClientTest.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PipelineServiceClientTest.java @@ -16,6 +16,7 @@ package com.google.cloud.aiplatform.v1; +import static com.google.cloud.aiplatform.v1.PipelineServiceClient.ListPipelineJobsPagedResponse; import static com.google.cloud.aiplatform.v1.PipelineServiceClient.ListTrainingPipelinesPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; @@ -31,6 +32,7 @@ import com.google.protobuf.AbstractMessage; import com.google.protobuf.Any; import com.google.protobuf.Empty; +import com.google.protobuf.Struct; import com.google.protobuf.Timestamp; import com.google.protobuf.Value; import com.google.rpc.Status; @@ -562,4 +564,464 @@ public void cancelTrainingPipelineExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void createPipelineJobTest() throws Exception { + PipelineJob expectedResponse = + PipelineJob.newBuilder() + .setName(PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setPipelineSpec(Struct.newBuilder().build()) + .setState(PipelineState.forNumber(0)) + .setJobDetail(PipelineJobDetail.newBuilder().build()) + .setError(Status.newBuilder().build()) + .putAllLabels(new HashMap()) + .setRuntimeConfig(PipelineJob.RuntimeConfig.newBuilder().build()) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setNetwork("network1843485230") + .build(); + mockPipelineService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + PipelineJob pipelineJob = PipelineJob.newBuilder().build(); + String pipelineJobId = "pipelineJobId-1711315914"; + + PipelineJob actualResponse = client.createPipelineJob(parent, pipelineJob, pipelineJobId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockPipelineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreatePipelineJobRequest actualRequest = ((CreatePipelineJobRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(pipelineJob, actualRequest.getPipelineJob()); + Assert.assertEquals(pipelineJobId, actualRequest.getPipelineJobId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createPipelineJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPipelineService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + PipelineJob pipelineJob = PipelineJob.newBuilder().build(); + String pipelineJobId = "pipelineJobId-1711315914"; + client.createPipelineJob(parent, pipelineJob, pipelineJobId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createPipelineJobTest2() throws Exception { + PipelineJob expectedResponse = + PipelineJob.newBuilder() + .setName(PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setPipelineSpec(Struct.newBuilder().build()) + .setState(PipelineState.forNumber(0)) + .setJobDetail(PipelineJobDetail.newBuilder().build()) + .setError(Status.newBuilder().build()) + .putAllLabels(new HashMap()) + .setRuntimeConfig(PipelineJob.RuntimeConfig.newBuilder().build()) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setNetwork("network1843485230") + .build(); + mockPipelineService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + PipelineJob pipelineJob = PipelineJob.newBuilder().build(); + String pipelineJobId = "pipelineJobId-1711315914"; + + PipelineJob actualResponse = client.createPipelineJob(parent, pipelineJob, pipelineJobId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockPipelineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreatePipelineJobRequest actualRequest = ((CreatePipelineJobRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(pipelineJob, actualRequest.getPipelineJob()); + Assert.assertEquals(pipelineJobId, actualRequest.getPipelineJobId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createPipelineJobExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPipelineService.addException(exception); + + try { + String parent = "parent-995424086"; + PipelineJob pipelineJob = PipelineJob.newBuilder().build(); + String pipelineJobId = "pipelineJobId-1711315914"; + client.createPipelineJob(parent, pipelineJob, pipelineJobId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPipelineJobTest() throws Exception { + PipelineJob expectedResponse = + PipelineJob.newBuilder() + .setName(PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setPipelineSpec(Struct.newBuilder().build()) + .setState(PipelineState.forNumber(0)) + .setJobDetail(PipelineJobDetail.newBuilder().build()) + .setError(Status.newBuilder().build()) + .putAllLabels(new HashMap()) + .setRuntimeConfig(PipelineJob.RuntimeConfig.newBuilder().build()) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setNetwork("network1843485230") + .build(); + mockPipelineService.addResponse(expectedResponse); + + PipelineJobName name = PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]"); + + PipelineJob actualResponse = client.getPipelineJob(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockPipelineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetPipelineJobRequest actualRequest = ((GetPipelineJobRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getPipelineJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPipelineService.addException(exception); + + try { + PipelineJobName name = PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]"); + client.getPipelineJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPipelineJobTest2() throws Exception { + PipelineJob expectedResponse = + PipelineJob.newBuilder() + .setName(PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setPipelineSpec(Struct.newBuilder().build()) + .setState(PipelineState.forNumber(0)) + .setJobDetail(PipelineJobDetail.newBuilder().build()) + .setError(Status.newBuilder().build()) + .putAllLabels(new HashMap()) + .setRuntimeConfig(PipelineJob.RuntimeConfig.newBuilder().build()) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setNetwork("network1843485230") + .build(); + mockPipelineService.addResponse(expectedResponse); + + String name = "name3373707"; + + PipelineJob actualResponse = client.getPipelineJob(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockPipelineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetPipelineJobRequest actualRequest = ((GetPipelineJobRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getPipelineJobExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPipelineService.addException(exception); + + try { + String name = "name3373707"; + client.getPipelineJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPipelineJobsTest() throws Exception { + PipelineJob responsesElement = PipelineJob.newBuilder().build(); + ListPipelineJobsResponse expectedResponse = + ListPipelineJobsResponse.newBuilder() + .setNextPageToken("") + .addAllPipelineJobs(Arrays.asList(responsesElement)) + .build(); + mockPipelineService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListPipelineJobsPagedResponse pagedListResponse = client.listPipelineJobs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPipelineJobsList().get(0), resources.get(0)); + + List actualRequests = mockPipelineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListPipelineJobsRequest actualRequest = ((ListPipelineJobsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listPipelineJobsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPipelineService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listPipelineJobs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPipelineJobsTest2() throws Exception { + PipelineJob responsesElement = PipelineJob.newBuilder().build(); + ListPipelineJobsResponse expectedResponse = + ListPipelineJobsResponse.newBuilder() + .setNextPageToken("") + .addAllPipelineJobs(Arrays.asList(responsesElement)) + .build(); + mockPipelineService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListPipelineJobsPagedResponse pagedListResponse = client.listPipelineJobs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPipelineJobsList().get(0), resources.get(0)); + + List actualRequests = mockPipelineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListPipelineJobsRequest actualRequest = ((ListPipelineJobsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listPipelineJobsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPipelineService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listPipelineJobs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deletePipelineJobTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deletePipelineJobTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockPipelineService.addResponse(resultOperation); + + PipelineJobName name = PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]"); + + client.deletePipelineJobAsync(name).get(); + + List actualRequests = mockPipelineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeletePipelineJobRequest actualRequest = ((DeletePipelineJobRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deletePipelineJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPipelineService.addException(exception); + + try { + PipelineJobName name = PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]"); + client.deletePipelineJobAsync(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 deletePipelineJobTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deletePipelineJobTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockPipelineService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deletePipelineJobAsync(name).get(); + + List actualRequests = mockPipelineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeletePipelineJobRequest actualRequest = ((DeletePipelineJobRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deletePipelineJobExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPipelineService.addException(exception); + + try { + String name = "name3373707"; + client.deletePipelineJobAsync(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 cancelPipelineJobTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockPipelineService.addResponse(expectedResponse); + + PipelineJobName name = PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]"); + + client.cancelPipelineJob(name); + + List actualRequests = mockPipelineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CancelPipelineJobRequest actualRequest = ((CancelPipelineJobRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void cancelPipelineJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPipelineService.addException(exception); + + try { + PipelineJobName name = PipelineJobName.of("[PROJECT]", "[LOCATION]", "[PIPELINE_JOB]"); + client.cancelPipelineJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void cancelPipelineJobTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockPipelineService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.cancelPipelineJob(name); + + List actualRequests = mockPipelineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CancelPipelineJobRequest actualRequest = ((CancelPipelineJobRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void cancelPipelineJobExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPipelineService.addException(exception); + + try { + String name = "name3373707"; + client.cancelPipelineJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClientTest.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClientTest.java index f4fb7527f..6f52a8078 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClientTest.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClientTest.java @@ -102,6 +102,7 @@ public void createEndpointTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setNetwork("network1843485230") .build(); Operation resultOperation = Operation.newBuilder() @@ -160,6 +161,7 @@ public void createEndpointTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setNetwork("network1843485230") .build(); Operation resultOperation = Operation.newBuilder() @@ -218,6 +220,7 @@ public void getEndpointTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setNetwork("network1843485230") .build(); mockEndpointService.addResponse(expectedResponse); @@ -265,6 +268,7 @@ public void getEndpointTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setNetwork("network1843485230") .build(); mockEndpointService.addResponse(expectedResponse); @@ -400,6 +404,7 @@ public void updateEndpointTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setNetwork("network1843485230") .build(); mockEndpointService.addResponse(expectedResponse); diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/JobServiceClientTest.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/JobServiceClientTest.java index dc6166439..992175f19 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/JobServiceClientTest.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/JobServiceClientTest.java @@ -111,6 +111,7 @@ public void createCustomJobTest() throws Exception { .setError(Status.newBuilder().build()) .putAllLabels(new HashMap()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .putAllWebAccessUris(new HashMap()) .build(); mockJobService.addResponse(expectedResponse); @@ -162,6 +163,7 @@ public void createCustomJobTest2() throws Exception { .setError(Status.newBuilder().build()) .putAllLabels(new HashMap()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .putAllWebAccessUris(new HashMap()) .build(); mockJobService.addResponse(expectedResponse); @@ -213,6 +215,7 @@ public void getCustomJobTest() throws Exception { .setError(Status.newBuilder().build()) .putAllLabels(new HashMap()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .putAllWebAccessUris(new HashMap()) .build(); mockJobService.addResponse(expectedResponse); @@ -261,6 +264,7 @@ public void getCustomJobTest2() throws Exception { .setError(Status.newBuilder().build()) .putAllLabels(new HashMap()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .putAllWebAccessUris(new HashMap()) .build(); mockJobService.addResponse(expectedResponse); diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceClientTest.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceClientTest.java index feefdbdbf..73ef123eb 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceClientTest.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceClientTest.java @@ -823,6 +823,187 @@ public void updateArtifactExceptionTest() throws Exception { } } + @Test + public void deleteArtifactTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteArtifactTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMetadataService.addResponse(resultOperation); + + ArtifactName name = + ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]"); + + client.deleteArtifactAsync(name).get(); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteArtifactRequest actualRequest = ((DeleteArtifactRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteArtifactExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + ArtifactName name = + ArtifactName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]"); + client.deleteArtifactAsync(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 deleteArtifactTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteArtifactTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMetadataService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteArtifactAsync(name).get(); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteArtifactRequest actualRequest = ((DeleteArtifactRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteArtifactExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + String name = "name3373707"; + client.deleteArtifactAsync(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 purgeArtifactsTest() throws Exception { + PurgeArtifactsResponse expectedResponse = + PurgeArtifactsResponse.newBuilder() + .setPurgeCount(575305851) + .addAllPurgeSample(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("purgeArtifactsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMetadataService.addResponse(resultOperation); + + MetadataStoreName parent = MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"); + + PurgeArtifactsResponse actualResponse = client.purgeArtifactsAsync(parent).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PurgeArtifactsRequest actualRequest = ((PurgeArtifactsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void purgeArtifactsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + MetadataStoreName parent = + MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"); + client.purgeArtifactsAsync(parent).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 purgeArtifactsTest2() throws Exception { + PurgeArtifactsResponse expectedResponse = + PurgeArtifactsResponse.newBuilder() + .setPurgeCount(575305851) + .addAllPurgeSample(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("purgeArtifactsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMetadataService.addResponse(resultOperation); + + String parent = "parent-995424086"; + + PurgeArtifactsResponse actualResponse = client.purgeArtifactsAsync(parent).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PurgeArtifactsRequest actualRequest = ((PurgeArtifactsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void purgeArtifactsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + String parent = "parent-995424086"; + client.purgeArtifactsAsync(parent).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 createContextTest() throws Exception { Context expectedResponse = @@ -1262,6 +1443,101 @@ public void deleteContextExceptionTest2() throws Exception { } } + @Test + public void purgeContextsTest() throws Exception { + PurgeContextsResponse expectedResponse = + PurgeContextsResponse.newBuilder() + .setPurgeCount(575305851) + .addAllPurgeSample(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("purgeContextsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMetadataService.addResponse(resultOperation); + + MetadataStoreName parent = MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"); + + PurgeContextsResponse actualResponse = client.purgeContextsAsync(parent).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PurgeContextsRequest actualRequest = ((PurgeContextsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void purgeContextsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + MetadataStoreName parent = + MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"); + client.purgeContextsAsync(parent).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 purgeContextsTest2() throws Exception { + PurgeContextsResponse expectedResponse = + PurgeContextsResponse.newBuilder() + .setPurgeCount(575305851) + .addAllPurgeSample(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("purgeContextsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMetadataService.addResponse(resultOperation); + + String parent = "parent-995424086"; + + PurgeContextsResponse actualResponse = client.purgeContextsAsync(parent).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PurgeContextsRequest actualRequest = ((PurgeContextsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void purgeContextsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + String parent = "parent-995424086"; + client.purgeContextsAsync(parent).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 addContextArtifactsAndExecutionsTest() throws Exception { AddContextArtifactsAndExecutionsResponse expectedResponse = @@ -1866,6 +2142,187 @@ public void updateExecutionExceptionTest() throws Exception { } } + @Test + public void deleteExecutionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteExecutionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMetadataService.addResponse(resultOperation); + + ExecutionName name = + ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]"); + + client.deleteExecutionAsync(name).get(); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteExecutionRequest actualRequest = ((DeleteExecutionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteExecutionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + ExecutionName name = + ExecutionName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]"); + client.deleteExecutionAsync(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 deleteExecutionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteExecutionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMetadataService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteExecutionAsync(name).get(); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteExecutionRequest actualRequest = ((DeleteExecutionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteExecutionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + String name = "name3373707"; + client.deleteExecutionAsync(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 purgeExecutionsTest() throws Exception { + PurgeExecutionsResponse expectedResponse = + PurgeExecutionsResponse.newBuilder() + .setPurgeCount(575305851) + .addAllPurgeSample(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("purgeExecutionsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMetadataService.addResponse(resultOperation); + + MetadataStoreName parent = MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"); + + PurgeExecutionsResponse actualResponse = client.purgeExecutionsAsync(parent).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PurgeExecutionsRequest actualRequest = ((PurgeExecutionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void purgeExecutionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + MetadataStoreName parent = + MetadataStoreName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"); + client.purgeExecutionsAsync(parent).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 purgeExecutionsTest2() throws Exception { + PurgeExecutionsResponse expectedResponse = + PurgeExecutionsResponse.newBuilder() + .setPurgeCount(575305851) + .addAllPurgeSample(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("purgeExecutionsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockMetadataService.addResponse(resultOperation); + + String parent = "parent-995424086"; + + PurgeExecutionsResponse actualResponse = client.purgeExecutionsAsync(parent).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMetadataService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PurgeExecutionsRequest actualRequest = ((PurgeExecutionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void purgeExecutionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockMetadataService.addException(exception); + + try { + String parent = "parent-995424086"; + client.purgeExecutionsAsync(parent).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 addExecutionEventsTest() throws Exception { AddExecutionEventsResponse expectedResponse = AddExecutionEventsResponse.newBuilder().build(); diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockMetadataServiceImpl.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockMetadataServiceImpl.java index 56c3aa9df..c26a0cf44 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockMetadataServiceImpl.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockMetadataServiceImpl.java @@ -227,6 +227,48 @@ public void updateArtifact( } } + @Override + public void deleteArtifact( + DeleteArtifactRequest 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 DeleteArtifact, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void purgeArtifacts( + PurgeArtifactsRequest 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 PurgeArtifacts, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void createContext( CreateContextRequest request, StreamObserver responseObserver) { @@ -331,6 +373,27 @@ public void deleteContext( } } + @Override + public void purgeContexts( + PurgeContextsRequest 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 PurgeContexts, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void addContextArtifactsAndExecutions( AddContextArtifactsAndExecutionsRequest request, @@ -481,6 +544,48 @@ public void updateExecution( } } + @Override + public void deleteExecution( + DeleteExecutionRequest 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 DeleteExecution, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void purgeExecutions( + PurgeExecutionsRequest 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 PurgeExecutions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void addExecutionEvents( AddExecutionEventsRequest request, diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClientTest.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClientTest.java index 5b109b30d..fa331892d 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClientTest.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClientTest.java @@ -583,7 +583,7 @@ public void createPipelineJobTest() throws Exception { .setRuntimeConfig(PipelineJob.RuntimeConfig.newBuilder().build()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setServiceAccount("serviceAccount1079137720") - .setNetwork(NetworkName.of("[PROJECT]", "[NETWORK]").toString()) + .setNetwork("network1843485230") .build(); mockPipelineService.addResponse(expectedResponse); @@ -641,7 +641,7 @@ public void createPipelineJobTest2() throws Exception { .setRuntimeConfig(PipelineJob.RuntimeConfig.newBuilder().build()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setServiceAccount("serviceAccount1079137720") - .setNetwork(NetworkName.of("[PROJECT]", "[NETWORK]").toString()) + .setNetwork("network1843485230") .build(); mockPipelineService.addResponse(expectedResponse); @@ -699,7 +699,7 @@ public void getPipelineJobTest() throws Exception { .setRuntimeConfig(PipelineJob.RuntimeConfig.newBuilder().build()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setServiceAccount("serviceAccount1079137720") - .setNetwork(NetworkName.of("[PROJECT]", "[NETWORK]").toString()) + .setNetwork("network1843485230") .build(); mockPipelineService.addResponse(expectedResponse); @@ -751,7 +751,7 @@ public void getPipelineJobTest2() throws Exception { .setRuntimeConfig(PipelineJob.RuntimeConfig.newBuilder().build()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setServiceAccount("serviceAccount1079137720") - .setNetwork(NetworkName.of("[PROJECT]", "[NETWORK]").toString()) + .setNetwork("network1843485230") .build(); mockPipelineService.addResponse(expectedResponse); diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/VizierServiceClientTest.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/VizierServiceClientTest.java index 16238175f..f6be914bd 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/VizierServiceClientTest.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/VizierServiceClientTest.java @@ -37,6 +37,7 @@ 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; @@ -574,6 +575,7 @@ public void createTrialTest() throws Exception { .setClientId("clientId908408390") .setInfeasibleReason("infeasibleReason1040725388") .setCustomJob(CustomJobName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]").toString()) + .putAllWebAccessUris(new HashMap()) .build(); mockVizierService.addResponse(expectedResponse); @@ -624,6 +626,7 @@ public void createTrialTest2() throws Exception { .setClientId("clientId908408390") .setInfeasibleReason("infeasibleReason1040725388") .setCustomJob(CustomJobName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]").toString()) + .putAllWebAccessUris(new HashMap()) .build(); mockVizierService.addResponse(expectedResponse); @@ -674,6 +677,7 @@ public void getTrialTest() throws Exception { .setClientId("clientId908408390") .setInfeasibleReason("infeasibleReason1040725388") .setCustomJob(CustomJobName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]").toString()) + .putAllWebAccessUris(new HashMap()) .build(); mockVizierService.addResponse(expectedResponse); @@ -721,6 +725,7 @@ public void getTrialTest2() throws Exception { .setClientId("clientId908408390") .setInfeasibleReason("infeasibleReason1040725388") .setCustomJob(CustomJobName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]").toString()) + .putAllWebAccessUris(new HashMap()) .build(); mockVizierService.addResponse(expectedResponse); @@ -856,6 +861,7 @@ public void addTrialMeasurementTest() throws Exception { .setClientId("clientId908408390") .setInfeasibleReason("infeasibleReason1040725388") .setCustomJob(CustomJobName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]").toString()) + .putAllWebAccessUris(new HashMap()) .build(); mockVizierService.addResponse(expectedResponse); @@ -913,6 +919,7 @@ public void completeTrialTest() throws Exception { .setClientId("clientId908408390") .setInfeasibleReason("infeasibleReason1040725388") .setCustomJob(CustomJobName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]").toString()) + .putAllWebAccessUris(new HashMap()) .build(); mockVizierService.addResponse(expectedResponse); @@ -1096,6 +1103,7 @@ public void stopTrialTest() throws Exception { .setClientId("clientId908408390") .setInfeasibleReason("infeasibleReason1040725388") .setCustomJob(CustomJobName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_JOB]").toString()) + .putAllWebAccessUris(new HashMap()) .build(); mockVizierService.addResponse(expectedResponse); diff --git a/grpc-google-cloud-aiplatform-v1/pom.xml b/grpc-google-cloud-aiplatform-v1/pom.xml index b60b66946..1cbd65916 100644 --- a/grpc-google-cloud-aiplatform-v1/pom.xml +++ b/grpc-google-cloud-aiplatform-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 1.0.2 + 2.0.0 grpc-google-cloud-aiplatform-v1 GRPC library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 1.0.2 + 2.0.0 diff --git a/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceGrpc.java b/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceGrpc.java index 6f050f24c..768bf830d 100644 --- a/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceGrpc.java +++ b/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceGrpc.java @@ -278,6 +278,232 @@ private PipelineServiceGrpc() {} return getCancelTrainingPipelineMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.CreatePipelineJobRequest, + com.google.cloud.aiplatform.v1.PipelineJob> + getCreatePipelineJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreatePipelineJob", + requestType = com.google.cloud.aiplatform.v1.CreatePipelineJobRequest.class, + responseType = com.google.cloud.aiplatform.v1.PipelineJob.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.CreatePipelineJobRequest, + com.google.cloud.aiplatform.v1.PipelineJob> + getCreatePipelineJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.CreatePipelineJobRequest, + com.google.cloud.aiplatform.v1.PipelineJob> + getCreatePipelineJobMethod; + if ((getCreatePipelineJobMethod = PipelineServiceGrpc.getCreatePipelineJobMethod) == null) { + synchronized (PipelineServiceGrpc.class) { + if ((getCreatePipelineJobMethod = PipelineServiceGrpc.getCreatePipelineJobMethod) == null) { + PipelineServiceGrpc.getCreatePipelineJobMethod = + getCreatePipelineJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePipelineJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.CreatePipelineJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.PipelineJob.getDefaultInstance())) + .setSchemaDescriptor( + new PipelineServiceMethodDescriptorSupplier("CreatePipelineJob")) + .build(); + } + } + } + return getCreatePipelineJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.GetPipelineJobRequest, + com.google.cloud.aiplatform.v1.PipelineJob> + getGetPipelineJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPipelineJob", + requestType = com.google.cloud.aiplatform.v1.GetPipelineJobRequest.class, + responseType = com.google.cloud.aiplatform.v1.PipelineJob.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.GetPipelineJobRequest, + com.google.cloud.aiplatform.v1.PipelineJob> + getGetPipelineJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.GetPipelineJobRequest, + com.google.cloud.aiplatform.v1.PipelineJob> + getGetPipelineJobMethod; + if ((getGetPipelineJobMethod = PipelineServiceGrpc.getGetPipelineJobMethod) == null) { + synchronized (PipelineServiceGrpc.class) { + if ((getGetPipelineJobMethod = PipelineServiceGrpc.getGetPipelineJobMethod) == null) { + PipelineServiceGrpc.getGetPipelineJobMethod = + getGetPipelineJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPipelineJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.GetPipelineJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.PipelineJob.getDefaultInstance())) + .setSchemaDescriptor( + new PipelineServiceMethodDescriptorSupplier("GetPipelineJob")) + .build(); + } + } + } + return getGetPipelineJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.ListPipelineJobsRequest, + com.google.cloud.aiplatform.v1.ListPipelineJobsResponse> + getListPipelineJobsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPipelineJobs", + requestType = com.google.cloud.aiplatform.v1.ListPipelineJobsRequest.class, + responseType = com.google.cloud.aiplatform.v1.ListPipelineJobsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.ListPipelineJobsRequest, + com.google.cloud.aiplatform.v1.ListPipelineJobsResponse> + getListPipelineJobsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.ListPipelineJobsRequest, + com.google.cloud.aiplatform.v1.ListPipelineJobsResponse> + getListPipelineJobsMethod; + if ((getListPipelineJobsMethod = PipelineServiceGrpc.getListPipelineJobsMethod) == null) { + synchronized (PipelineServiceGrpc.class) { + if ((getListPipelineJobsMethod = PipelineServiceGrpc.getListPipelineJobsMethod) == null) { + PipelineServiceGrpc.getListPipelineJobsMethod = + getListPipelineJobsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPipelineJobs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.ListPipelineJobsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.ListPipelineJobsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new PipelineServiceMethodDescriptorSupplier("ListPipelineJobs")) + .build(); + } + } + } + return getListPipelineJobsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.DeletePipelineJobRequest, com.google.longrunning.Operation> + getDeletePipelineJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeletePipelineJob", + requestType = com.google.cloud.aiplatform.v1.DeletePipelineJobRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.DeletePipelineJobRequest, com.google.longrunning.Operation> + getDeletePipelineJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.DeletePipelineJobRequest, + com.google.longrunning.Operation> + getDeletePipelineJobMethod; + if ((getDeletePipelineJobMethod = PipelineServiceGrpc.getDeletePipelineJobMethod) == null) { + synchronized (PipelineServiceGrpc.class) { + if ((getDeletePipelineJobMethod = PipelineServiceGrpc.getDeletePipelineJobMethod) == null) { + PipelineServiceGrpc.getDeletePipelineJobMethod = + getDeletePipelineJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePipelineJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.DeletePipelineJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new PipelineServiceMethodDescriptorSupplier("DeletePipelineJob")) + .build(); + } + } + } + return getDeletePipelineJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.CancelPipelineJobRequest, com.google.protobuf.Empty> + getCancelPipelineJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CancelPipelineJob", + requestType = com.google.cloud.aiplatform.v1.CancelPipelineJobRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.CancelPipelineJobRequest, com.google.protobuf.Empty> + getCancelPipelineJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.CancelPipelineJobRequest, com.google.protobuf.Empty> + getCancelPipelineJobMethod; + if ((getCancelPipelineJobMethod = PipelineServiceGrpc.getCancelPipelineJobMethod) == null) { + synchronized (PipelineServiceGrpc.class) { + if ((getCancelPipelineJobMethod = PipelineServiceGrpc.getCancelPipelineJobMethod) == null) { + PipelineServiceGrpc.getCancelPipelineJobMethod = + getCancelPipelineJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelPipelineJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.CancelPipelineJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new PipelineServiceMethodDescriptorSupplier("CancelPipelineJob")) + .build(); + } + } + } + return getCancelPipelineJobMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static PipelineServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -413,6 +639,86 @@ public void cancelTrainingPipeline( getCancelTrainingPipelineMethod(), responseObserver); } + /** + * + * + *

+     * Creates a PipelineJob. A PipelineJob will run immediately when created.
+     * 
+ */ + public void createPipelineJob( + com.google.cloud.aiplatform.v1.CreatePipelineJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreatePipelineJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a PipelineJob.
+     * 
+ */ + public void getPipelineJob( + com.google.cloud.aiplatform.v1.GetPipelineJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetPipelineJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists PipelineJobs in a Location.
+     * 
+ */ + public void listPipelineJobs( + com.google.cloud.aiplatform.v1.ListPipelineJobsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPipelineJobsMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a PipelineJob.
+     * 
+ */ + public void deletePipelineJob( + com.google.cloud.aiplatform.v1.DeletePipelineJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeletePipelineJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Cancels a PipelineJob.
+     * Starts asynchronous cancellation on the PipelineJob. The server
+     * makes a best effort to cancel the pipeline, but success is not
+     * guaranteed. Clients can use [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1.PipelineService.GetPipelineJob] or
+     * other methods to check whether the cancellation succeeded or whether the
+     * pipeline completed despite cancellation. On successful cancellation,
+     * the PipelineJob is not deleted; instead it becomes a pipeline with
+     * a [PipelineJob.error][google.cloud.aiplatform.v1.PipelineJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+     * corresponding to `Code.CANCELLED`, and [PipelineJob.state][google.cloud.aiplatform.v1.PipelineJob.state] is set to
+     * `CANCELLED`.
+     * 
+ */ + public void cancelPipelineJob( + com.google.cloud.aiplatform.v1.CancelPipelineJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCancelPipelineJobMethod(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) @@ -449,6 +755,38 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest, com.google.protobuf.Empty>(this, METHODID_CANCEL_TRAINING_PIPELINE))) + .addMethod( + getCreatePipelineJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.CreatePipelineJobRequest, + com.google.cloud.aiplatform.v1.PipelineJob>( + this, METHODID_CREATE_PIPELINE_JOB))) + .addMethod( + getGetPipelineJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.GetPipelineJobRequest, + com.google.cloud.aiplatform.v1.PipelineJob>(this, METHODID_GET_PIPELINE_JOB))) + .addMethod( + getListPipelineJobsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.ListPipelineJobsRequest, + com.google.cloud.aiplatform.v1.ListPipelineJobsResponse>( + this, METHODID_LIST_PIPELINE_JOBS))) + .addMethod( + getDeletePipelineJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.DeletePipelineJobRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_PIPELINE_JOB))) + .addMethod( + getCancelPipelineJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.CancelPipelineJobRequest, + com.google.protobuf.Empty>(this, METHODID_CANCEL_PIPELINE_JOB))) .build(); } } @@ -565,6 +903,96 @@ public void cancelTrainingPipeline( request, responseObserver); } + + /** + * + * + *
+     * Creates a PipelineJob. A PipelineJob will run immediately when created.
+     * 
+ */ + public void createPipelineJob( + com.google.cloud.aiplatform.v1.CreatePipelineJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePipelineJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a PipelineJob.
+     * 
+ */ + public void getPipelineJob( + com.google.cloud.aiplatform.v1.GetPipelineJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPipelineJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists PipelineJobs in a Location.
+     * 
+ */ + public void listPipelineJobs( + com.google.cloud.aiplatform.v1.ListPipelineJobsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPipelineJobsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a PipelineJob.
+     * 
+ */ + public void deletePipelineJob( + com.google.cloud.aiplatform.v1.DeletePipelineJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePipelineJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Cancels a PipelineJob.
+     * Starts asynchronous cancellation on the PipelineJob. The server
+     * makes a best effort to cancel the pipeline, but success is not
+     * guaranteed. Clients can use [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1.PipelineService.GetPipelineJob] or
+     * other methods to check whether the cancellation succeeded or whether the
+     * pipeline completed despite cancellation. On successful cancellation,
+     * the PipelineJob is not deleted; instead it becomes a pipeline with
+     * a [PipelineJob.error][google.cloud.aiplatform.v1.PipelineJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+     * corresponding to `Code.CANCELLED`, and [PipelineJob.state][google.cloud.aiplatform.v1.PipelineJob.state] is set to
+     * `CANCELLED`.
+     * 
+ */ + public void cancelPipelineJob( + com.google.cloud.aiplatform.v1.CancelPipelineJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCancelPipelineJobMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -662,6 +1090,80 @@ public com.google.protobuf.Empty cancelTrainingPipeline( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCancelTrainingPipelineMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Creates a PipelineJob. A PipelineJob will run immediately when created.
+     * 
+ */ + public com.google.cloud.aiplatform.v1.PipelineJob createPipelineJob( + com.google.cloud.aiplatform.v1.CreatePipelineJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePipelineJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a PipelineJob.
+     * 
+ */ + public com.google.cloud.aiplatform.v1.PipelineJob getPipelineJob( + com.google.cloud.aiplatform.v1.GetPipelineJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPipelineJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists PipelineJobs in a Location.
+     * 
+ */ + public com.google.cloud.aiplatform.v1.ListPipelineJobsResponse listPipelineJobs( + com.google.cloud.aiplatform.v1.ListPipelineJobsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPipelineJobsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a PipelineJob.
+     * 
+ */ + public com.google.longrunning.Operation deletePipelineJob( + com.google.cloud.aiplatform.v1.DeletePipelineJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePipelineJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Cancels a PipelineJob.
+     * Starts asynchronous cancellation on the PipelineJob. The server
+     * makes a best effort to cancel the pipeline, but success is not
+     * guaranteed. Clients can use [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1.PipelineService.GetPipelineJob] or
+     * other methods to check whether the cancellation succeeded or whether the
+     * pipeline completed despite cancellation. On successful cancellation,
+     * the PipelineJob is not deleted; instead it becomes a pipeline with
+     * a [PipelineJob.error][google.cloud.aiplatform.v1.PipelineJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+     * corresponding to `Code.CANCELLED`, and [PipelineJob.state][google.cloud.aiplatform.v1.PipelineJob.state] is set to
+     * `CANCELLED`.
+     * 
+ */ + public com.google.protobuf.Empty cancelPipelineJob( + com.google.cloud.aiplatform.v1.CancelPipelineJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelPipelineJobMethod(), getCallOptions(), request); + } } /** @@ -765,6 +1267,83 @@ protected PipelineServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCancelTrainingPipelineMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Creates a PipelineJob. A PipelineJob will run immediately when created.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1.PipelineJob> + createPipelineJob(com.google.cloud.aiplatform.v1.CreatePipelineJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePipelineJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a PipelineJob.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1.PipelineJob> + getPipelineJob(com.google.cloud.aiplatform.v1.GetPipelineJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPipelineJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists PipelineJobs in a Location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1.ListPipelineJobsResponse> + listPipelineJobs(com.google.cloud.aiplatform.v1.ListPipelineJobsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPipelineJobsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a PipelineJob.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deletePipelineJob(com.google.cloud.aiplatform.v1.DeletePipelineJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePipelineJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Cancels a PipelineJob.
+     * Starts asynchronous cancellation on the PipelineJob. The server
+     * makes a best effort to cancel the pipeline, but success is not
+     * guaranteed. Clients can use [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1.PipelineService.GetPipelineJob] or
+     * other methods to check whether the cancellation succeeded or whether the
+     * pipeline completed despite cancellation. On successful cancellation,
+     * the PipelineJob is not deleted; instead it becomes a pipeline with
+     * a [PipelineJob.error][google.cloud.aiplatform.v1.PipelineJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+     * corresponding to `Code.CANCELLED`, and [PipelineJob.state][google.cloud.aiplatform.v1.PipelineJob.state] is set to
+     * `CANCELLED`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + cancelPipelineJob(com.google.cloud.aiplatform.v1.CancelPipelineJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCancelPipelineJobMethod(), getCallOptions()), request); + } } private static final int METHODID_CREATE_TRAINING_PIPELINE = 0; @@ -772,6 +1351,11 @@ protected PipelineServiceFutureStub build( private static final int METHODID_LIST_TRAINING_PIPELINES = 2; private static final int METHODID_DELETE_TRAINING_PIPELINE = 3; private static final int METHODID_CANCEL_TRAINING_PIPELINE = 4; + private static final int METHODID_CREATE_PIPELINE_JOB = 5; + private static final int METHODID_GET_PIPELINE_JOB = 6; + private static final int METHODID_LIST_PIPELINE_JOBS = 7; + private static final int METHODID_DELETE_PIPELINE_JOB = 8; + private static final int METHODID_CANCEL_PIPELINE_JOB = 9; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -819,6 +1403,34 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CREATE_PIPELINE_JOB: + serviceImpl.createPipelineJob( + (com.google.cloud.aiplatform.v1.CreatePipelineJobRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_PIPELINE_JOB: + serviceImpl.getPipelineJob( + (com.google.cloud.aiplatform.v1.GetPipelineJobRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_PIPELINE_JOBS: + serviceImpl.listPipelineJobs( + (com.google.cloud.aiplatform.v1.ListPipelineJobsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_PIPELINE_JOB: + serviceImpl.deletePipelineJob( + (com.google.cloud.aiplatform.v1.DeletePipelineJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CANCEL_PIPELINE_JOB: + serviceImpl.cancelPipelineJob( + (com.google.cloud.aiplatform.v1.CancelPipelineJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -888,6 +1500,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListTrainingPipelinesMethod()) .addMethod(getDeleteTrainingPipelineMethod()) .addMethod(getCancelTrainingPipelineMethod()) + .addMethod(getCreatePipelineJobMethod()) + .addMethod(getGetPipelineJobMethod()) + .addMethod(getListPipelineJobsMethod()) + .addMethod(getDeletePipelineJobMethod()) + .addMethod(getCancelPipelineJobMethod()) .build(); } } diff --git a/grpc-google-cloud-aiplatform-v1beta1/pom.xml b/grpc-google-cloud-aiplatform-v1beta1/pom.xml index d1225dbe6..53f00bd51 100644 --- a/grpc-google-cloud-aiplatform-v1beta1/pom.xml +++ b/grpc-google-cloud-aiplatform-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 0.5.2 + 0.6.0 grpc-google-cloud-aiplatform-v1beta1 GRPC library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 1.0.2 + 2.0.0 diff --git a/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceGrpc.java b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceGrpc.java index ddb0cf958..e526f23b4 100644 --- a/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceGrpc.java +++ b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceGrpc.java @@ -410,6 +410,98 @@ private MetadataServiceGrpc() {} return getUpdateArtifactMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest, + com.google.longrunning.Operation> + getDeleteArtifactMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteArtifact", + requestType = com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest, + com.google.longrunning.Operation> + getDeleteArtifactMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest, + com.google.longrunning.Operation> + getDeleteArtifactMethod; + if ((getDeleteArtifactMethod = MetadataServiceGrpc.getDeleteArtifactMethod) == null) { + synchronized (MetadataServiceGrpc.class) { + if ((getDeleteArtifactMethod = MetadataServiceGrpc.getDeleteArtifactMethod) == null) { + MetadataServiceGrpc.getDeleteArtifactMethod = + getDeleteArtifactMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteArtifact")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new MetadataServiceMethodDescriptorSupplier("DeleteArtifact")) + .build(); + } + } + } + return getDeleteArtifactMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest, + com.google.longrunning.Operation> + getPurgeArtifactsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PurgeArtifacts", + requestType = com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest, + com.google.longrunning.Operation> + getPurgeArtifactsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest, + com.google.longrunning.Operation> + getPurgeArtifactsMethod; + if ((getPurgeArtifactsMethod = MetadataServiceGrpc.getPurgeArtifactsMethod) == null) { + synchronized (MetadataServiceGrpc.class) { + if ((getPurgeArtifactsMethod = MetadataServiceGrpc.getPurgeArtifactsMethod) == null) { + MetadataServiceGrpc.getPurgeArtifactsMethod = + getPurgeArtifactsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PurgeArtifacts")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new MetadataServiceMethodDescriptorSupplier("PurgeArtifacts")) + .build(); + } + } + } + return getPurgeArtifactsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1beta1.CreateContextRequest, com.google.cloud.aiplatform.v1beta1.Context> @@ -641,6 +733,52 @@ private MetadataServiceGrpc() {} return getDeleteContextMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest, + com.google.longrunning.Operation> + getPurgeContextsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PurgeContexts", + requestType = com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest, + com.google.longrunning.Operation> + getPurgeContextsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest, + com.google.longrunning.Operation> + getPurgeContextsMethod; + if ((getPurgeContextsMethod = MetadataServiceGrpc.getPurgeContextsMethod) == null) { + synchronized (MetadataServiceGrpc.class) { + if ((getPurgeContextsMethod = MetadataServiceGrpc.getPurgeContextsMethod) == null) { + MetadataServiceGrpc.getPurgeContextsMethod = + getPurgeContextsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PurgeContexts")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new MetadataServiceMethodDescriptorSupplier("PurgeContexts")) + .build(); + } + } + } + return getPurgeContextsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest, com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse> @@ -983,6 +1121,98 @@ private MetadataServiceGrpc() {} return getUpdateExecutionMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest, + com.google.longrunning.Operation> + getDeleteExecutionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteExecution", + requestType = com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest, + com.google.longrunning.Operation> + getDeleteExecutionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest, + com.google.longrunning.Operation> + getDeleteExecutionMethod; + if ((getDeleteExecutionMethod = MetadataServiceGrpc.getDeleteExecutionMethod) == null) { + synchronized (MetadataServiceGrpc.class) { + if ((getDeleteExecutionMethod = MetadataServiceGrpc.getDeleteExecutionMethod) == null) { + MetadataServiceGrpc.getDeleteExecutionMethod = + getDeleteExecutionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteExecution")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new MetadataServiceMethodDescriptorSupplier("DeleteExecution")) + .build(); + } + } + } + return getDeleteExecutionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest, + com.google.longrunning.Operation> + getPurgeExecutionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PurgeExecutions", + requestType = com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest, + com.google.longrunning.Operation> + getPurgeExecutionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest, + com.google.longrunning.Operation> + getPurgeExecutionsMethod; + if ((getPurgeExecutionsMethod = MetadataServiceGrpc.getPurgeExecutionsMethod) == null) { + synchronized (MetadataServiceGrpc.class) { + if ((getPurgeExecutionsMethod = MetadataServiceGrpc.getPurgeExecutionsMethod) == null) { + MetadataServiceGrpc.getPurgeExecutionsMethod = + getPurgeExecutionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PurgeExecutions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new MetadataServiceMethodDescriptorSupplier("PurgeExecutions")) + .build(); + } + } + } + return getPurgeExecutionsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest, com.google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse> @@ -1451,6 +1681,34 @@ public void updateArtifact( getUpdateArtifactMethod(), responseObserver); } + /** + * + * + *
+     * Deletes an Artifact.
+     * 
+ */ + public void deleteArtifact( + com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteArtifactMethod(), responseObserver); + } + + /** + * + * + *
+     * Purges Artifacts.
+     * 
+ */ + public void purgeArtifacts( + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getPurgeArtifactsMethod(), responseObserver); + } + /** * * @@ -1521,6 +1779,20 @@ public void deleteContext( getDeleteContextMethod(), responseObserver); } + /** + * + * + *
+     * Purges Contexts.
+     * 
+ */ + public void purgeContexts( + com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getPurgeContextsMethod(), responseObserver); + } + /** * * @@ -1634,6 +1906,34 @@ public void updateExecution( getUpdateExecutionMethod(), responseObserver); } + /** + * + * + *
+     * Deletes an Execution.
+     * 
+ */ + public void deleteExecution( + com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteExecutionMethod(), responseObserver); + } + + /** + * + * + *
+     * Purges Executions.
+     * 
+ */ + public void purgeExecutions( + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getPurgeExecutionsMethod(), responseObserver); + } + /** * * @@ -1786,6 +2086,18 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.cloud.aiplatform.v1beta1.UpdateArtifactRequest, com.google.cloud.aiplatform.v1beta1.Artifact>( this, METHODID_UPDATE_ARTIFACT))) + .addMethod( + getDeleteArtifactMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_ARTIFACT))) + .addMethod( + getPurgeArtifactsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest, + com.google.longrunning.Operation>(this, METHODID_PURGE_ARTIFACTS))) .addMethod( getCreateContextMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -1817,6 +2129,12 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.cloud.aiplatform.v1beta1.DeleteContextRequest, com.google.longrunning.Operation>(this, METHODID_DELETE_CONTEXT))) + .addMethod( + getPurgeContextsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest, + com.google.longrunning.Operation>(this, METHODID_PURGE_CONTEXTS))) .addMethod( getAddContextArtifactsAndExecutionsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -1865,6 +2183,18 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.cloud.aiplatform.v1beta1.UpdateExecutionRequest, com.google.cloud.aiplatform.v1beta1.Execution>( this, METHODID_UPDATE_EXECUTION))) + .addMethod( + getDeleteExecutionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_EXECUTION))) + .addMethod( + getPurgeExecutionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest, + com.google.longrunning.Operation>(this, METHODID_PURGE_EXECUTIONS))) .addMethod( getAddExecutionEventsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -2063,6 +2393,38 @@ public void updateArtifact( responseObserver); } + /** + * + * + *
+     * Deletes an Artifact.
+     * 
+ */ + public void deleteArtifact( + com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteArtifactMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Purges Artifacts.
+     * 
+ */ + public void purgeArtifacts( + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getPurgeArtifactsMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -2142,6 +2504,22 @@ public void deleteContext( responseObserver); } + /** + * + * + *
+     * Purges Contexts.
+     * 
+ */ + public void purgeContexts( + com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getPurgeContextsMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -2269,6 +2647,38 @@ public void updateExecution( responseObserver); } + /** + * + * + *
+     * Deletes an Execution.
+     * 
+ */ + public void deleteExecution( + com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteExecutionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Purges Executions.
+     * 
+ */ + public void purgeExecutions( + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getPurgeExecutionsMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -2501,6 +2911,32 @@ public com.google.cloud.aiplatform.v1beta1.Artifact updateArtifact( getChannel(), getUpdateArtifactMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Deletes an Artifact.
+     * 
+ */ + public com.google.longrunning.Operation deleteArtifact( + com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteArtifactMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Purges Artifacts.
+     * 
+ */ + public com.google.longrunning.Operation purgeArtifacts( + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPurgeArtifactsMethod(), getCallOptions(), request); + } + /** * * @@ -2566,6 +3002,19 @@ public com.google.longrunning.Operation deleteContext( getChannel(), getDeleteContextMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Purges Contexts.
+     * 
+ */ + public com.google.longrunning.Operation purgeContexts( + com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPurgeContextsMethod(), getCallOptions(), request); + } + /** * * @@ -2665,6 +3114,32 @@ public com.google.cloud.aiplatform.v1beta1.Execution updateExecution( getChannel(), getUpdateExecutionMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Deletes an Execution.
+     * 
+ */ + public com.google.longrunning.Operation deleteExecution( + com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteExecutionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Purges Executions.
+     * 
+ */ + public com.google.longrunning.Operation purgeExecutions( + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPurgeExecutionsMethod(), getCallOptions(), request); + } + /** * * @@ -2881,6 +3356,32 @@ protected MetadataServiceFutureStub build( getChannel().newCall(getUpdateArtifactMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Deletes an Artifact.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteArtifact(com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteArtifactMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Purges Artifacts.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + purgeArtifacts(com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPurgeArtifactsMethod(), getCallOptions()), request); + } + /** * * @@ -2950,6 +3451,19 @@ protected MetadataServiceFutureStub build( getChannel().newCall(getDeleteContextMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Purges Contexts.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + purgeContexts(com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPurgeContextsMethod(), getCallOptions()), request); + } + /** * * @@ -3058,6 +3572,32 @@ protected MetadataServiceFutureStub build( getChannel().newCall(getUpdateExecutionMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Deletes an Execution.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteExecution(com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteExecutionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Purges Executions.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + purgeExecutions(com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPurgeExecutionsMethod(), getCallOptions()), request); + } + /** * * @@ -3162,24 +3702,29 @@ protected MetadataServiceFutureStub build( private static final int METHODID_GET_ARTIFACT = 5; private static final int METHODID_LIST_ARTIFACTS = 6; private static final int METHODID_UPDATE_ARTIFACT = 7; - private static final int METHODID_CREATE_CONTEXT = 8; - private static final int METHODID_GET_CONTEXT = 9; - private static final int METHODID_LIST_CONTEXTS = 10; - private static final int METHODID_UPDATE_CONTEXT = 11; - private static final int METHODID_DELETE_CONTEXT = 12; - private static final int METHODID_ADD_CONTEXT_ARTIFACTS_AND_EXECUTIONS = 13; - private static final int METHODID_ADD_CONTEXT_CHILDREN = 14; - private static final int METHODID_QUERY_CONTEXT_LINEAGE_SUBGRAPH = 15; - private static final int METHODID_CREATE_EXECUTION = 16; - private static final int METHODID_GET_EXECUTION = 17; - private static final int METHODID_LIST_EXECUTIONS = 18; - private static final int METHODID_UPDATE_EXECUTION = 19; - private static final int METHODID_ADD_EXECUTION_EVENTS = 20; - private static final int METHODID_QUERY_EXECUTION_INPUTS_AND_OUTPUTS = 21; - private static final int METHODID_CREATE_METADATA_SCHEMA = 22; - private static final int METHODID_GET_METADATA_SCHEMA = 23; - private static final int METHODID_LIST_METADATA_SCHEMAS = 24; - private static final int METHODID_QUERY_ARTIFACT_LINEAGE_SUBGRAPH = 25; + private static final int METHODID_DELETE_ARTIFACT = 8; + private static final int METHODID_PURGE_ARTIFACTS = 9; + private static final int METHODID_CREATE_CONTEXT = 10; + private static final int METHODID_GET_CONTEXT = 11; + private static final int METHODID_LIST_CONTEXTS = 12; + private static final int METHODID_UPDATE_CONTEXT = 13; + private static final int METHODID_DELETE_CONTEXT = 14; + private static final int METHODID_PURGE_CONTEXTS = 15; + private static final int METHODID_ADD_CONTEXT_ARTIFACTS_AND_EXECUTIONS = 16; + private static final int METHODID_ADD_CONTEXT_CHILDREN = 17; + private static final int METHODID_QUERY_CONTEXT_LINEAGE_SUBGRAPH = 18; + private static final int METHODID_CREATE_EXECUTION = 19; + private static final int METHODID_GET_EXECUTION = 20; + private static final int METHODID_LIST_EXECUTIONS = 21; + private static final int METHODID_UPDATE_EXECUTION = 22; + private static final int METHODID_DELETE_EXECUTION = 23; + private static final int METHODID_PURGE_EXECUTIONS = 24; + private static final int METHODID_ADD_EXECUTION_EVENTS = 25; + private static final int METHODID_QUERY_EXECUTION_INPUTS_AND_OUTPUTS = 26; + private static final int METHODID_CREATE_METADATA_SCHEMA = 27; + private static final int METHODID_GET_METADATA_SCHEMA = 28; + private static final int METHODID_LIST_METADATA_SCHEMAS = 29; + private static final int METHODID_QUERY_ARTIFACT_LINEAGE_SUBGRAPH = 30; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -3246,6 +3791,16 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_DELETE_ARTIFACT: + serviceImpl.deleteArtifact( + (com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_PURGE_ARTIFACTS: + serviceImpl.purgeArtifacts( + (com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_CREATE_CONTEXT: serviceImpl.createContext( (com.google.cloud.aiplatform.v1beta1.CreateContextRequest) request, @@ -3276,6 +3831,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.aiplatform.v1beta1.DeleteContextRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_PURGE_CONTEXTS: + serviceImpl.purgeContexts( + (com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_ADD_CONTEXT_ARTIFACTS_AND_EXECUTIONS: serviceImpl.addContextArtifactsAndExecutions( (com.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest) request, @@ -3321,6 +3881,16 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_DELETE_EXECUTION: + serviceImpl.deleteExecution( + (com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_PURGE_EXECUTIONS: + serviceImpl.purgeExecutions( + (com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_ADD_EXECUTION_EVENTS: serviceImpl.addExecutionEvents( (com.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest) request, @@ -3431,11 +4001,14 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetArtifactMethod()) .addMethod(getListArtifactsMethod()) .addMethod(getUpdateArtifactMethod()) + .addMethod(getDeleteArtifactMethod()) + .addMethod(getPurgeArtifactsMethod()) .addMethod(getCreateContextMethod()) .addMethod(getGetContextMethod()) .addMethod(getListContextsMethod()) .addMethod(getUpdateContextMethod()) .addMethod(getDeleteContextMethod()) + .addMethod(getPurgeContextsMethod()) .addMethod(getAddContextArtifactsAndExecutionsMethod()) .addMethod(getAddContextChildrenMethod()) .addMethod(getQueryContextLineageSubgraphMethod()) @@ -3443,6 +4016,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetExecutionMethod()) .addMethod(getListExecutionsMethod()) .addMethod(getUpdateExecutionMethod()) + .addMethod(getDeleteExecutionMethod()) + .addMethod(getPurgeExecutionsMethod()) .addMethod(getAddExecutionEventsMethod()) .addMethod(getQueryExecutionInputsAndOutputsMethod()) .addMethod(getCreateMetadataSchemaMethod()) diff --git a/java.header b/java.header index 3a9b503aa..d0970ba7d 100644 --- a/java.header +++ b/java.header @@ -1,5 +1,5 @@ ^/\*$ -^ \* Copyright \d\d\d\d,? Google (Inc\.|LLC)( All [rR]ights [rR]eserved\.)?$ +^ \* Copyright \d\d\d\d,? Google (Inc\.|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/pom.xml b/pom.xml index 6e84ec174..d98773414 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-aiplatform-parent pom - 1.0.2 + 2.0.0 Google Cloud Vertex AI Parent https://github.com/googleapis/java- @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.12.0 + 1.0.0 @@ -61,32 +61,32 @@ com.google.cloud google-cloud-aiplatform - 1.0.2 + 2.0.0 com.google.api.grpc proto-google-cloud-aiplatform-v1 - 1.0.2 + 2.0.0 com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.5.2 + 0.6.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 1.0.2 + 2.0.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 0.5.2 + 0.6.0 com.google.cloud google-cloud-shared-dependencies - 1.4.0 + 2.0.0 pom import diff --git a/proto-google-cloud-aiplatform-v1/clirr-ignored-differences.xml b/proto-google-cloud-aiplatform-v1/clirr-ignored-differences.xml index 86006b30f..b19e1d8d1 100644 --- a/proto-google-cloud-aiplatform-v1/clirr-ignored-differences.xml +++ b/proto-google-cloud-aiplatform-v1/clirr-ignored-differences.xml @@ -72,4 +72,55 @@ com/google/cloud/aiplatform/v1/schema/trainingjob/definition/*OrBuilder boolean has*(*) + + 6001 + com/google/cloud/aiplatform/v1/*AcceleratorType* + *6* + + + 6011 + com/google/cloud/aiplatform/v1/*AcceleratorType* + *6* + + + 6001 + com/google/cloud/aiplatform/v1/*AcceleratorType* + *7* + + + 6011 + com/google/cloud/aiplatform/v1/*AcceleratorType* + *7* + + + + 8001 + com/google/cloud/aiplatform/v1/Annotated* + + + 8001 + com/google/cloud/aiplatform/v1/Annotation* + + + 8001 + com/google/cloud/aiplatform/v1/NetworkName* + + + 8001 + com/google/cloud/aiplatform/v1/VersionName* + + + 8001 + com/google/cloud/aiplatform/v1/TrialName* + + + 6001 + com/google/cloud/aiplatform/v1/AcceleratorType* + TPU* + + + 6011 + com/google/cloud/aiplatform/v1/AcceleratorType* + TPU* + diff --git a/proto-google-cloud-aiplatform-v1/pom.xml b/proto-google-cloud-aiplatform-v1/pom.xml index 7cb373116..cda649915 100644 --- a/proto-google-cloud-aiplatform-v1/pom.xml +++ b/proto-google-cloud-aiplatform-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-aiplatform-v1 - 1.0.2 + 2.0.0 proto-google-cloud-aiplatform-v1 Proto library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 1.0.2 + 2.0.0 diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorType.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorType.java index e166dfd3d..a83ec8ec3 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorType.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorType.java @@ -92,22 +92,12 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * TPU v2.
+   * Nvidia Tesla A100 GPU.
    * 
* - * TPU_V2 = 6; + * NVIDIA_TESLA_A100 = 8; */ - TPU_V2(6), - /** - * - * - *
-   * TPU v3.
-   * 
- * - * TPU_V3 = 7; - */ - TPU_V3(7), + NVIDIA_TESLA_A100(8), UNRECOGNIZED(-1), ; @@ -175,22 +165,12 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * TPU v2.
-   * 
- * - * TPU_V2 = 6; - */ - public static final int TPU_V2_VALUE = 6; - /** - * - * - *
-   * TPU v3.
+   * Nvidia Tesla A100 GPU.
    * 
* - * TPU_V3 = 7; + * NVIDIA_TESLA_A100 = 8; */ - public static final int TPU_V3_VALUE = 7; + public static final int NVIDIA_TESLA_A100_VALUE = 8; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -228,10 +208,8 @@ public static AcceleratorType forNumber(int value) { return NVIDIA_TESLA_P4; case 5: return NVIDIA_TESLA_T4; - case 6: - return TPU_V2; - case 7: - return TPU_V3; + case 8: + return NVIDIA_TESLA_A100; default: return null; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorTypeProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorTypeProto.java index 75c321f49..4043c0313 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorTypeProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorTypeProto.java @@ -37,15 +37,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n1google/cloud/aiplatform/v1/accelerator" + "_type.proto\022\032google.cloud.aiplatform.v1\032" - + "\034google/api/annotations.proto*\271\001\n\017Accele" + + "\034google/api/annotations.proto*\270\001\n\017Accele" + "ratorType\022 \n\034ACCELERATOR_TYPE_UNSPECIFIE" + "D\020\000\022\024\n\020NVIDIA_TESLA_K80\020\001\022\025\n\021NVIDIA_TESL" + "A_P100\020\002\022\025\n\021NVIDIA_TESLA_V100\020\003\022\023\n\017NVIDI" - + "A_TESLA_P4\020\004\022\023\n\017NVIDIA_TESLA_T4\020\005\022\n\n\006TPU" - + "_V2\020\006\022\n\n\006TPU_V3\020\007B~\n\036com.google.cloud.ai" + + "A_TESLA_P4\020\004\022\023\n\017NVIDIA_TESLA_T4\020\005\022\025\n\021NVI" + + "DIA_TESLA_A100\020\010B\330\001\n\036com.google.cloud.ai" + "platform.v1B\024AcceleratorTypeProtoP\001ZDgoo" + "gle.golang.org/genproto/googleapis/cloud" - + "/aiplatform/v1;aiplatformb\006proto3" + + "/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( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotatedDatasetName.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotatedDatasetName.java deleted file mode 100644 index d0d8f515d..000000000 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotatedDatasetName.java +++ /dev/null @@ -1,227 +0,0 @@ -/* - * Copyright 2021 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.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class AnnotatedDatasetName implements ResourceName { - private static final PathTemplate PROJECT_DATASET_ANNOTATED_DATASET = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}"); - private volatile Map fieldValuesMap; - private final String project; - private final String dataset; - private final String annotatedDataset; - - @Deprecated - protected AnnotatedDatasetName() { - project = null; - dataset = null; - annotatedDataset = null; - } - - private AnnotatedDatasetName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - dataset = Preconditions.checkNotNull(builder.getDataset()); - annotatedDataset = Preconditions.checkNotNull(builder.getAnnotatedDataset()); - } - - public String getProject() { - return project; - } - - public String getDataset() { - return dataset; - } - - public String getAnnotatedDataset() { - return annotatedDataset; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static AnnotatedDatasetName of(String project, String dataset, String annotatedDataset) { - return newBuilder() - .setProject(project) - .setDataset(dataset) - .setAnnotatedDataset(annotatedDataset) - .build(); - } - - public static String format(String project, String dataset, String annotatedDataset) { - return newBuilder() - .setProject(project) - .setDataset(dataset) - .setAnnotatedDataset(annotatedDataset) - .build() - .toString(); - } - - public static AnnotatedDatasetName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_DATASET_ANNOTATED_DATASET.validatedMatch( - formattedString, "AnnotatedDatasetName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("dataset"), matchMap.get("annotated_dataset")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (AnnotatedDatasetName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_DATASET_ANNOTATED_DATASET.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (dataset != null) { - fieldMapBuilder.put("dataset", dataset); - } - if (annotatedDataset != null) { - fieldMapBuilder.put("annotated_dataset", annotatedDataset); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_DATASET_ANNOTATED_DATASET.instantiate( - "project", project, "dataset", dataset, "annotated_dataset", annotatedDataset); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - AnnotatedDatasetName that = ((AnnotatedDatasetName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.dataset, that.dataset) - && Objects.equals(this.annotatedDataset, that.annotatedDataset); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(dataset); - h *= 1000003; - h ^= Objects.hashCode(annotatedDataset); - return h; - } - - /** Builder for projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}. */ - public static class Builder { - private String project; - private String dataset; - private String annotatedDataset; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getDataset() { - return dataset; - } - - public String getAnnotatedDataset() { - return annotatedDataset; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setDataset(String dataset) { - this.dataset = dataset; - return this; - } - - public Builder setAnnotatedDataset(String annotatedDataset) { - this.annotatedDataset = annotatedDataset; - return this; - } - - private Builder(AnnotatedDatasetName annotatedDatasetName) { - this.project = annotatedDatasetName.project; - this.dataset = annotatedDatasetName.dataset; - this.annotatedDataset = annotatedDatasetName.annotatedDataset; - } - - public AnnotatedDatasetName build() { - return new AnnotatedDatasetName(this); - } - } -} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationName.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationName.java deleted file mode 100644 index 4834bf287..000000000 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationName.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Copyright 2021 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.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class AnnotationName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_DATASET_DATA_ITEM_ANNOTATION = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}/annotations/{annotation}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String dataset; - private final String dataItem; - private final String annotation; - - @Deprecated - protected AnnotationName() { - project = null; - location = null; - dataset = null; - dataItem = null; - annotation = null; - } - - private AnnotationName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - dataset = Preconditions.checkNotNull(builder.getDataset()); - dataItem = Preconditions.checkNotNull(builder.getDataItem()); - annotation = Preconditions.checkNotNull(builder.getAnnotation()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getDataset() { - return dataset; - } - - public String getDataItem() { - return dataItem; - } - - public String getAnnotation() { - return annotation; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static AnnotationName of( - String project, String location, String dataset, String dataItem, String annotation) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setDataset(dataset) - .setDataItem(dataItem) - .setAnnotation(annotation) - .build(); - } - - public static String format( - String project, String location, String dataset, String dataItem, String annotation) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setDataset(dataset) - .setDataItem(dataItem) - .setAnnotation(annotation) - .build() - .toString(); - } - - public static AnnotationName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_DATASET_DATA_ITEM_ANNOTATION.validatedMatch( - formattedString, "AnnotationName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), - matchMap.get("location"), - matchMap.get("dataset"), - matchMap.get("data_item"), - matchMap.get("annotation")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (AnnotationName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_DATASET_DATA_ITEM_ANNOTATION.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (location != null) { - fieldMapBuilder.put("location", location); - } - if (dataset != null) { - fieldMapBuilder.put("dataset", dataset); - } - if (dataItem != null) { - fieldMapBuilder.put("data_item", dataItem); - } - if (annotation != null) { - fieldMapBuilder.put("annotation", annotation); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_DATASET_DATA_ITEM_ANNOTATION.instantiate( - "project", - project, - "location", - location, - "dataset", - dataset, - "data_item", - dataItem, - "annotation", - annotation); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - AnnotationName that = ((AnnotationName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.dataset, that.dataset) - && Objects.equals(this.dataItem, that.dataItem) - && Objects.equals(this.annotation, that.annotation); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(location); - h *= 1000003; - h ^= Objects.hashCode(dataset); - h *= 1000003; - h ^= Objects.hashCode(dataItem); - h *= 1000003; - h ^= Objects.hashCode(annotation); - return h; - } - - /** - * Builder for - * projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}/annotations/{annotation}. - */ - public static class Builder { - private String project; - private String location; - private String dataset; - private String dataItem; - private String annotation; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getDataset() { - return dataset; - } - - public String getDataItem() { - return dataItem; - } - - public String getAnnotation() { - return annotation; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setDataset(String dataset) { - this.dataset = dataset; - return this; - } - - public Builder setDataItem(String dataItem) { - this.dataItem = dataItem; - return this; - } - - public Builder setAnnotation(String annotation) { - this.annotation = annotation; - return this; - } - - private Builder(AnnotationName annotationName) { - this.project = annotationName.project; - this.location = annotationName.location; - this.dataset = annotationName.dataset; - this.dataItem = annotationName.dataItem; - this.annotation = annotationName.annotation; - } - - public AnnotationName build() { - return new AnnotationName(this); - } - } -} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationProto.java index 0e063438e..93458e7a3 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationProto.java @@ -65,11 +65,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\0028\001:\225\001\352A\221\001\n$aiplatform.googleapis.com/An" + "notation\022iprojects/{project}/locations/{" + "location}/datasets/{dataset}/dataItems/{" - + "data_item}/annotations/{annotation}By\n\036c" - + "om.google.cloud.aiplatform.v1B\017Annotatio" - + "nProtoP\001ZDgoogle.golang.org/genproto/goo" - + "gleapis/cloud/aiplatform/v1;aiplatformb\006" - + "proto3" + + "data_item}/annotations/{annotation}B\323\001\n\036" + + "com.google.cloud.aiplatform.v1B\017Annotati" + + "onProtoP\001ZDgoogle.golang.org/genproto/go" + + "ogleapis/cloud/aiplatform/v1;aiplatform\252" + + "\002\032Google.Cloud.AIPlatform.V1\312\002\032Google\\Cl" + + "oud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPla" + + "tform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpecProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpecProto.java index 3e2b723dc..2f6ccc5bf 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpecProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpecProto.java @@ -53,10 +53,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\n(aiplatform.googleapis.com/AnnotationSp" + "ec\022\\projects/{project}/locations/{locati" + "on}/datasets/{dataset}/annotationSpecs/{" - + "annotation_spec}B}\n\036com.google.cloud.aip" - + "latform.v1B\023AnnotationSpecProtoP\001ZDgoogl" - + "e.golang.org/genproto/googleapis/cloud/a" - + "iplatform/v1;aiplatformb\006proto3" + + "annotation_spec}B\327\001\n\036com.google.cloud.ai" + + "platform.v1B\023AnnotationSpecProtoP\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::V1b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Artifact.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Artifact.java new file mode 100644 index 000000000..79fd24317 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Artifact.java @@ -0,0 +1,2488 @@ +/* + * 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/artifact.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Instance of a general artifact.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.Artifact} + */ +public final class Artifact extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.Artifact) + ArtifactOrBuilder { + private static final long serialVersionUID = 0L; + // Use Artifact.newBuilder() to construct. + private Artifact(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Artifact() { + name_ = ""; + displayName_ = ""; + uri_ = ""; + etag_ = ""; + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Artifact(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Artifact( + 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(); + + displayName_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + uri_ = s; + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; + } + case 82: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; + } + case 90: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 98: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 104: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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.ArtifactProto + .internal_static_google_cloud_aiplatform_v1_Artifact_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 10: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ArtifactProto + .internal_static_google_cloud_aiplatform_v1_Artifact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.Artifact.class, + com.google.cloud.aiplatform.v1.Artifact.Builder.class); + } + + /** + * + * + *
+   * Describes the state of the Artifact.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1.Artifact.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified state for the Artifact.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * A state used by systems like Vertex Pipelines to indicate that the
+     * underlying data item represented by this Artifact is being created.
+     * 
+ * + * PENDING = 1; + */ + PENDING(1), + /** + * + * + *
+     * A state indicating that the Artifact should exist, unless something
+     * external to the system deletes it.
+     * 
+ * + * LIVE = 2; + */ + LIVE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified state for the Artifact.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * A state used by systems like Vertex Pipelines to indicate that the
+     * underlying data item represented by this Artifact is being created.
+     * 
+ * + * PENDING = 1; + */ + public static final int PENDING_VALUE = 1; + /** + * + * + *
+     * A state indicating that the Artifact should exist, unless something
+     * external to the system deletes it.
+     * 
+ * + * LIVE = 2; + */ + public static final int LIVE_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 State 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 State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return PENDING; + case 2: + return LIVE; + 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 State findValueByNumber(int number) { + return State.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.Artifact.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State 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 State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.Artifact.State) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. The resource name of the Artifact.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+   * Output only. The resource name of the Artifact.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 DISPLAY_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * User provided display name of the Artifact.
+   * May be up to 128 Unicode characters.
+   * 
+ * + * string display_name = 2; + * + * @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; + } + } + /** + * + * + *
+   * User provided display name of the Artifact.
+   * May be up to 128 Unicode characters.
+   * 
+ * + * string display_name = 2; + * + * @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 URI_FIELD_NUMBER = 6; + private volatile java.lang.Object uri_; + /** + * + * + *
+   * The uniform resource identifier of the artifact file.
+   * May be empty if there is no actual artifact file.
+   * 
+ * + * string uri = 6; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + /** + * + * + *
+   * The uniform resource identifier of the artifact file.
+   * May be empty if there is no actual artifact file.
+   * 
+ * + * string uri = 6; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 9; + private volatile java.lang.Object etag_; + /** + * + * + *
+   * An eTag used to perform consistent read-modify-write updates. If not set, a
+   * blind "overwrite" update happens.
+   * 
+ * + * string etag = 9; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + /** + * + * + *
+   * An eTag used to perform consistent read-modify-write updates. If not set, a
+   * blind "overwrite" update happens.
+   * 
+ * + * string etag = 9; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 10; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.aiplatform.v1.ArtifactProto + .internal_static_google_cloud_aiplatform_v1_Artifact_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+   * The labels with user-defined metadata to organize your Artifacts.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * No more than 64 user labels can be associated with one Artifact (System
+   * labels are excluded).
+   * 
+ * + * map<string, string> labels = 10; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+   * The labels with user-defined metadata to organize your Artifacts.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * No more than 64 user labels can be associated with one Artifact (System
+   * labels are excluded).
+   * 
+ * + * map<string, string> labels = 10; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * The labels with user-defined metadata to organize your Artifacts.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * No more than 64 user labels can be associated with one Artifact (System
+   * labels are excluded).
+   * 
+ * + * map<string, string> labels = 10; + */ + @java.lang.Override + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * The labels with user-defined metadata to organize your Artifacts.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * No more than 64 user labels can be associated with one Artifact (System
+   * labels are excluded).
+   * 
+ * + * map<string, string> labels = 10; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 11; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Timestamp when this Artifact was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Timestamp when this Artifact was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Timestamp when this Artifact was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 12; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Timestamp when this Artifact was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. Timestamp when this Artifact was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. Timestamp when this Artifact was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int STATE_FIELD_NUMBER = 13; + private int state_; + /** + * + * + *
+   * The state of this Artifact. This is a property of the Artifact, and does
+   * not imply or capture any ongoing process. This property is managed by
+   * clients (such as Vertex Pipelines), and the system does not prescribe
+   * or check the validity of state transitions.
+   * 
+ * + * .google.cloud.aiplatform.v1.Artifact.State state = 13; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * The state of this Artifact. This is a property of the Artifact, and does
+   * not imply or capture any ongoing process. This property is managed by
+   * clients (such as Vertex Pipelines), and the system does not prescribe
+   * or check the validity of state transitions.
+   * 
+ * + * .google.cloud.aiplatform.v1.Artifact.State state = 13; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Artifact.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1.Artifact.State result = + com.google.cloud.aiplatform.v1.Artifact.State.valueOf(state_); + return result == null ? com.google.cloud.aiplatform.v1.Artifact.State.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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!getUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, uri_); + } + if (!getEtagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, etag_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10); + if (createTime_ != null) { + output.writeMessage(11, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(12, getUpdateTime()); + } + if (state_ != com.google.cloud.aiplatform.v1.Artifact.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(13, state_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!getUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, uri_); + } + if (!getEtagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, labels__); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getUpdateTime()); + } + if (state_ != com.google.cloud.aiplatform.v1.Artifact.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, state_); + } + 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.Artifact)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.Artifact other = (com.google.cloud.aiplatform.v1.Artifact) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUri().equals(other.getUri())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (state_ != other.state_) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.Artifact parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Artifact 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.Artifact parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Artifact 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.Artifact parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Artifact 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.Artifact parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Artifact 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.Artifact parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Artifact 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.Artifact 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.Artifact 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.Artifact 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; + } + /** + * + * + *
+   * Instance of a general artifact.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.Artifact} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.Artifact) + com.google.cloud.aiplatform.v1.ArtifactOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ArtifactProto + .internal_static_google_cloud_aiplatform_v1_Artifact_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 10: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 10: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ArtifactProto + .internal_static_google_cloud_aiplatform_v1_Artifact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.Artifact.class, + com.google.cloud.aiplatform.v1.Artifact.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.Artifact.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_ = ""; + + displayName_ = ""; + + uri_ = ""; + + etag_ = ""; + + internalGetMutableLabels().clear(); + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + state_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ArtifactProto + .internal_static_google_cloud_aiplatform_v1_Artifact_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Artifact getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.Artifact.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Artifact build() { + com.google.cloud.aiplatform.v1.Artifact result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Artifact buildPartial() { + com.google.cloud.aiplatform.v1.Artifact result = + new com.google.cloud.aiplatform.v1.Artifact(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.displayName_ = displayName_; + result.uri_ = uri_; + result.etag_ = etag_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.state_ = state_; + 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.Artifact) { + return mergeFrom((com.google.cloud.aiplatform.v1.Artifact) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.Artifact other) { + if (other == com.google.cloud.aiplatform.v1.Artifact.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + 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.Artifact parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1.Artifact) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name of the Artifact.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+     * Output only. The resource name of the Artifact.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+     * Output only. The resource name of the Artifact.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + /** + * + * + *
+     * Output only. The resource name of the Artifact.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the Artifact.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 displayName_ = ""; + /** + * + * + *
+     * User provided display name of the Artifact.
+     * May be up to 128 Unicode characters.
+     * 
+ * + * string display_name = 2; + * + * @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; + } + } + /** + * + * + *
+     * User provided display name of the Artifact.
+     * May be up to 128 Unicode characters.
+     * 
+ * + * string display_name = 2; + * + * @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; + } + } + /** + * + * + *
+     * User provided display name of the Artifact.
+     * May be up to 128 Unicode characters.
+     * 
+ * + * string display_name = 2; + * + * @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; + } + /** + * + * + *
+     * User provided display name of the Artifact.
+     * May be up to 128 Unicode characters.
+     * 
+ * + * string display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * User provided display name of the Artifact.
+     * May be up to 128 Unicode characters.
+     * 
+ * + * string display_name = 2; + * + * @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 uri_ = ""; + /** + * + * + *
+     * The uniform resource identifier of the artifact file.
+     * May be empty if there is no actual artifact file.
+     * 
+ * + * string uri = 6; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The uniform resource identifier of the artifact file.
+     * May be empty if there is no actual artifact file.
+     * 
+ * + * string uri = 6; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The uniform resource identifier of the artifact file.
+     * May be empty if there is no actual artifact file.
+     * 
+ * + * string uri = 6; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The uniform resource identifier of the artifact file.
+     * May be empty if there is no actual artifact file.
+     * 
+ * + * string uri = 6; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + + uri_ = getDefaultInstance().getUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * The uniform resource identifier of the artifact file.
+     * May be empty if there is no actual artifact file.
+     * 
+ * + * string uri = 6; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uri_ = value; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + /** + * + * + *
+     * An eTag used to perform consistent read-modify-write updates. If not set, a
+     * blind "overwrite" update happens.
+     * 
+ * + * string etag = 9; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * An eTag used to perform consistent read-modify-write updates. If not set, a
+     * blind "overwrite" update happens.
+     * 
+ * + * string etag = 9; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * An eTag used to perform consistent read-modify-write updates. If not set, a
+     * blind "overwrite" update happens.
+     * 
+ * + * string etag = 9; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + etag_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * An eTag used to perform consistent read-modify-write updates. If not set, a
+     * blind "overwrite" update happens.
+     * 
+ * + * string etag = 9; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + + etag_ = getDefaultInstance().getEtag(); + onChanged(); + return this; + } + /** + * + * + *
+     * An eTag used to perform consistent read-modify-write updates. If not set, a
+     * blind "overwrite" update happens.
+     * 
+ * + * string etag = 9; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + etag_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged(); + ; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * The labels with user-defined metadata to organize your Artifacts.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * No more than 64 user labels can be associated with one Artifact (System
+     * labels are excluded).
+     * 
+ * + * map<string, string> labels = 10; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+     * The labels with user-defined metadata to organize your Artifacts.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * No more than 64 user labels can be associated with one Artifact (System
+     * labels are excluded).
+     * 
+ * + * map<string, string> labels = 10; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * The labels with user-defined metadata to organize your Artifacts.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * No more than 64 user labels can be associated with one Artifact (System
+     * labels are excluded).
+     * 
+ * + * map<string, string> labels = 10; + */ + @java.lang.Override + public java.lang.String getLabelsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * The labels with user-defined metadata to organize your Artifacts.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * No more than 64 user labels can be associated with one Artifact (System
+     * labels are excluded).
+     * 
+ * + * map<string, string> labels = 10; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * The labels with user-defined metadata to organize your Artifacts.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * No more than 64 user labels can be associated with one Artifact (System
+     * labels are excluded).
+     * 
+ * + * map<string, string> labels = 10; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
+     * The labels with user-defined metadata to organize your Artifacts.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * No more than 64 user labels can be associated with one Artifact (System
+     * labels are excluded).
+     * 
+ * + * map<string, string> labels = 10; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * The labels with user-defined metadata to organize your Artifacts.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * No more than 64 user labels can be associated with one Artifact (System
+     * labels are excluded).
+     * 
+ * + * map<string, string> labels = 10; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when this Artifact was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Output only. Timestamp when this Artifact was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp when this Artifact was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this Artifact was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this Artifact was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this Artifact was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this Artifact was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this Artifact was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp when this Artifact was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when this Artifact was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + * + * + *
+     * Output only. Timestamp when this Artifact was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp when this Artifact was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this Artifact was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this Artifact was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this Artifact was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this Artifact was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this Artifact was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp when this Artifact was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private int state_ = 0; + /** + * + * + *
+     * The state of this Artifact. This is a property of the Artifact, and does
+     * not imply or capture any ongoing process. This property is managed by
+     * clients (such as Vertex Pipelines), and the system does not prescribe
+     * or check the validity of state transitions.
+     * 
+ * + * .google.cloud.aiplatform.v1.Artifact.State state = 13; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * The state of this Artifact. This is a property of the Artifact, and does
+     * not imply or capture any ongoing process. This property is managed by
+     * clients (such as Vertex Pipelines), and the system does not prescribe
+     * or check the validity of state transitions.
+     * 
+ * + * .google.cloud.aiplatform.v1.Artifact.State state = 13; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The state of this Artifact. This is a property of the Artifact, and does
+     * not imply or capture any ongoing process. This property is managed by
+     * clients (such as Vertex Pipelines), and the system does not prescribe
+     * or check the validity of state transitions.
+     * 
+ * + * .google.cloud.aiplatform.v1.Artifact.State state = 13; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Artifact.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1.Artifact.State result = + com.google.cloud.aiplatform.v1.Artifact.State.valueOf(state_); + return result == null ? com.google.cloud.aiplatform.v1.Artifact.State.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The state of this Artifact. This is a property of the Artifact, and does
+     * not imply or capture any ongoing process. This property is managed by
+     * clients (such as Vertex Pipelines), and the system does not prescribe
+     * or check the validity of state transitions.
+     * 
+ * + * .google.cloud.aiplatform.v1.Artifact.State state = 13; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.aiplatform.v1.Artifact.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The state of this Artifact. This is a property of the Artifact, and does
+     * not imply or capture any ongoing process. This property is managed by
+     * clients (such as Vertex Pipelines), and the system does not prescribe
+     * or check the validity of state transitions.
+     * 
+ * + * .google.cloud.aiplatform.v1.Artifact.State state = 13; + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 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.Artifact) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.Artifact) + private static final com.google.cloud.aiplatform.v1.Artifact DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.Artifact(); + } + + public static com.google.cloud.aiplatform.v1.Artifact getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Artifact parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Artifact(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.Artifact getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ArtifactOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ArtifactOrBuilder.java new file mode 100644 index 000000000..51c4835bd --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ArtifactOrBuilder.java @@ -0,0 +1,317 @@ +/* + * 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/artifact.proto + +package com.google.cloud.aiplatform.v1; + +public interface ArtifactOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.Artifact) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name of the Artifact.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name of the Artifact.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * User provided display name of the Artifact.
+   * May be up to 128 Unicode characters.
+   * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * User provided display name of the Artifact.
+   * May be up to 128 Unicode characters.
+   * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * The uniform resource identifier of the artifact file.
+   * May be empty if there is no actual artifact file.
+   * 
+ * + * string uri = 6; + * + * @return The uri. + */ + java.lang.String getUri(); + /** + * + * + *
+   * The uniform resource identifier of the artifact file.
+   * May be empty if there is no actual artifact file.
+   * 
+ * + * string uri = 6; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+   * An eTag used to perform consistent read-modify-write updates. If not set, a
+   * blind "overwrite" update happens.
+   * 
+ * + * string etag = 9; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * An eTag used to perform consistent read-modify-write updates. If not set, a
+   * blind "overwrite" update happens.
+   * 
+ * + * string etag = 9; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * The labels with user-defined metadata to organize your Artifacts.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * No more than 64 user labels can be associated with one Artifact (System
+   * labels are excluded).
+   * 
+ * + * map<string, string> labels = 10; + */ + int getLabelsCount(); + /** + * + * + *
+   * The labels with user-defined metadata to organize your Artifacts.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * No more than 64 user labels can be associated with one Artifact (System
+   * labels are excluded).
+   * 
+ * + * map<string, string> labels = 10; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * The labels with user-defined metadata to organize your Artifacts.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * No more than 64 user labels can be associated with one Artifact (System
+   * labels are excluded).
+   * 
+ * + * map<string, string> labels = 10; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * The labels with user-defined metadata to organize your Artifacts.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * No more than 64 user labels can be associated with one Artifact (System
+   * labels are excluded).
+   * 
+ * + * map<string, string> labels = 10; + */ + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * The labels with user-defined metadata to organize your Artifacts.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * No more than 64 user labels can be associated with one Artifact (System
+   * labels are excluded).
+   * 
+ * + * map<string, string> labels = 10; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. Timestamp when this Artifact was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this Artifact was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this Artifact was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when this Artifact was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this Artifact was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this Artifact was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * The state of this Artifact. This is a property of the Artifact, and does
+   * not imply or capture any ongoing process. This property is managed by
+   * clients (such as Vertex Pipelines), and the system does not prescribe
+   * or check the validity of state transitions.
+   * 
+ * + * .google.cloud.aiplatform.v1.Artifact.State state = 13; + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * The state of this Artifact. This is a property of the Artifact, and does
+   * not imply or capture any ongoing process. This property is managed by
+   * clients (such as Vertex Pipelines), and the system does not prescribe
+   * or check the validity of state transitions.
+   * 
+ * + * .google.cloud.aiplatform.v1.Artifact.State state = 13; + * + * @return The state. + */ + com.google.cloud.aiplatform.v1.Artifact.State getState(); +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ArtifactProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ArtifactProto.java new file mode 100644 index 000000000..a5a9ff59d --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ArtifactProto.java @@ -0,0 +1,116 @@ +/* + * 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/artifact.proto + +package com.google.cloud.aiplatform.v1; + +public final class ArtifactProto { + private ArtifactProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_Artifact_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_Artifact_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_Artifact_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_Artifact_LabelsEntry_fieldAccessorTable; + + 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/v1/artifact.pr" + + "oto\022\032google.cloud.aiplatform.v1\032\037google/" + + "api/field_behavior.proto\032\031google/api/res" + + "ource.proto\032&google/cloud/aiplatform/v1/" + + "value.proto\032\034google/protobuf/struct.prot" + + "o\032\037google/protobuf/timestamp.proto\032\034goog" + + "le/api/annotations.proto\"\246\004\n\010Artifact\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\003\022\024\n\014display_name\030\002 \001(\t\022\013" + + "\n\003uri\030\006 \001(\t\022\014\n\004etag\030\t \001(\t\022@\n\006labels\030\n \003(" + + "\01320.google.cloud.aiplatform.v1.Artifact." + + "LabelsEntry\0224\n\013create_time\030\013 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\0224\n\013update_time" + + "\030\014 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "9\n\005state\030\r \001(\0162*.google.cloud.aiplatform" + + ".v1.Artifact.State\032-\n\013LabelsEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"5\n\005State\022\025\n\021ST" + + "ATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\010\n\004LIVE\020\002" + + ":\206\001\352A\202\001\n\"aiplatform.googleapis.com/Artif" + + "act\022\\projects/{project}/locations/{locat" + + "ion}/metadataStores/{metadata_store}/art" + + "ifacts/{artifact}B\321\001\n\036com.google.cloud.a" + + "iplatform.v1B\rArtifactProtoP\001ZDgoogle.go" + + "lang.org/genproto/googleapis/cloud/aipla" + + "tform/v1;aiplatform\252\002\032Google.Cloud.AIPla" + + "tform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035" + + "Google::Cloud::AIPlatform::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.aiplatform.v1.ValueProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1_Artifact_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1_Artifact_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_Artifact_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "Uri", "Etag", "Labels", "CreateTime", "UpdateTime", "State", + }); + internal_static_google_cloud_aiplatform_v1_Artifact_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1_Artifact_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_aiplatform_v1_Artifact_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_Artifact_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1.ValueProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AutoscalingMetricSpec.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AutoscalingMetricSpec.java new file mode 100644 index 000000000..e56ab0382 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AutoscalingMetricSpec.java @@ -0,0 +1,770 @@ +/* + * 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/machine_resources.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * The metric specification that defines the target resource utilization
+ * (CPU utilization, accelerator's duty cycle, and so on) for calculating the
+ * desired replica count.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.AutoscalingMetricSpec} + */ +public final class AutoscalingMetricSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.AutoscalingMetricSpec) + AutoscalingMetricSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use AutoscalingMetricSpec.newBuilder() to construct. + private AutoscalingMetricSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AutoscalingMetricSpec() { + metricName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AutoscalingMetricSpec(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AutoscalingMetricSpec( + 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(); + + metricName_ = s; + break; + } + case 16: + { + target_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1_AutoscalingMetricSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1_AutoscalingMetricSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.AutoscalingMetricSpec.class, + com.google.cloud.aiplatform.v1.AutoscalingMetricSpec.Builder.class); + } + + public static final int METRIC_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object metricName_; + /** + * + * + *
+   * Required. The resource metric name.
+   * Supported metrics:
+   * * For Online Prediction:
+   * * `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle`
+   * * `aiplatform.googleapis.com/prediction/online/cpu/utilization`
+   * 
+ * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The metricName. + */ + @java.lang.Override + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + 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(); + metricName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource metric name.
+   * Supported metrics:
+   * * For Online Prediction:
+   * * `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle`
+   * * `aiplatform.googleapis.com/prediction/online/cpu/utilization`
+   * 
+ * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for metricName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metricName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_FIELD_NUMBER = 2; + private int target_; + /** + * + * + *
+   * The target resource utilization in percentage (1% - 100%) for the given
+   * metric; once the real usage deviates from the target by a certain
+   * percentage, the machine replicas change. The default value is 60
+   * (representing 60%) if not provided.
+   * 
+ * + * int32 target = 2; + * + * @return The target. + */ + @java.lang.Override + public int getTarget() { + return target_; + } + + 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 (!getMetricNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); + } + if (target_ != 0) { + output.writeInt32(2, target_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getMetricNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricName_); + } + if (target_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, target_); + } + 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.AutoscalingMetricSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.AutoscalingMetricSpec other = + (com.google.cloud.aiplatform.v1.AutoscalingMetricSpec) obj; + + if (!getMetricName().equals(other.getMetricName())) return false; + if (getTarget() != other.getTarget()) 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) + METRIC_NAME_FIELD_NUMBER; + hash = (53 * hash) + getMetricName().hashCode(); + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.AutoscalingMetricSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.AutoscalingMetricSpec 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.AutoscalingMetricSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.AutoscalingMetricSpec 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.AutoscalingMetricSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.AutoscalingMetricSpec 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.AutoscalingMetricSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.AutoscalingMetricSpec 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.AutoscalingMetricSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.AutoscalingMetricSpec 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.AutoscalingMetricSpec 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.AutoscalingMetricSpec 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.AutoscalingMetricSpec 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; + } + /** + * + * + *
+   * The metric specification that defines the target resource utilization
+   * (CPU utilization, accelerator's duty cycle, and so on) for calculating the
+   * desired replica count.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.AutoscalingMetricSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.AutoscalingMetricSpec) + com.google.cloud.aiplatform.v1.AutoscalingMetricSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1_AutoscalingMetricSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1_AutoscalingMetricSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.AutoscalingMetricSpec.class, + com.google.cloud.aiplatform.v1.AutoscalingMetricSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.AutoscalingMetricSpec.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(); + metricName_ = ""; + + target_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1_AutoscalingMetricSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AutoscalingMetricSpec getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.AutoscalingMetricSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AutoscalingMetricSpec build() { + com.google.cloud.aiplatform.v1.AutoscalingMetricSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AutoscalingMetricSpec buildPartial() { + com.google.cloud.aiplatform.v1.AutoscalingMetricSpec result = + new com.google.cloud.aiplatform.v1.AutoscalingMetricSpec(this); + result.metricName_ = metricName_; + result.target_ = target_; + 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.AutoscalingMetricSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1.AutoscalingMetricSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.AutoscalingMetricSpec other) { + if (other == com.google.cloud.aiplatform.v1.AutoscalingMetricSpec.getDefaultInstance()) + return this; + if (!other.getMetricName().isEmpty()) { + metricName_ = other.metricName_; + onChanged(); + } + if (other.getTarget() != 0) { + setTarget(other.getTarget()); + } + 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.AutoscalingMetricSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1.AutoscalingMetricSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object metricName_ = ""; + /** + * + * + *
+     * Required. The resource metric name.
+     * Supported metrics:
+     * * For Online Prediction:
+     * * `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle`
+     * * `aiplatform.googleapis.com/prediction/online/cpu/utilization`
+     * 
+ * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The metricName. + */ + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metricName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource metric name.
+     * Supported metrics:
+     * * For Online Prediction:
+     * * `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle`
+     * * `aiplatform.googleapis.com/prediction/online/cpu/utilization`
+     * 
+ * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for metricName. + */ + public com.google.protobuf.ByteString getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metricName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource metric name.
+     * Supported metrics:
+     * * For Online Prediction:
+     * * `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle`
+     * * `aiplatform.googleapis.com/prediction/online/cpu/utilization`
+     * 
+ * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The metricName to set. + * @return This builder for chaining. + */ + public Builder setMetricName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + metricName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource metric name.
+     * Supported metrics:
+     * * For Online Prediction:
+     * * `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle`
+     * * `aiplatform.googleapis.com/prediction/online/cpu/utilization`
+     * 
+ * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMetricName() { + + metricName_ = getDefaultInstance().getMetricName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource metric name.
+     * Supported metrics:
+     * * For Online Prediction:
+     * * `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle`
+     * * `aiplatform.googleapis.com/prediction/online/cpu/utilization`
+     * 
+ * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for metricName to set. + * @return This builder for chaining. + */ + public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + metricName_ = value; + onChanged(); + return this; + } + + private int target_; + /** + * + * + *
+     * The target resource utilization in percentage (1% - 100%) for the given
+     * metric; once the real usage deviates from the target by a certain
+     * percentage, the machine replicas change. The default value is 60
+     * (representing 60%) if not provided.
+     * 
+ * + * int32 target = 2; + * + * @return The target. + */ + @java.lang.Override + public int getTarget() { + return target_; + } + /** + * + * + *
+     * The target resource utilization in percentage (1% - 100%) for the given
+     * metric; once the real usage deviates from the target by a certain
+     * percentage, the machine replicas change. The default value is 60
+     * (representing 60%) if not provided.
+     * 
+ * + * int32 target = 2; + * + * @param value The target to set. + * @return This builder for chaining. + */ + public Builder setTarget(int value) { + + target_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The target resource utilization in percentage (1% - 100%) for the given
+     * metric; once the real usage deviates from the target by a certain
+     * percentage, the machine replicas change. The default value is 60
+     * (representing 60%) if not provided.
+     * 
+ * + * int32 target = 2; + * + * @return This builder for chaining. + */ + public Builder clearTarget() { + + target_ = 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.AutoscalingMetricSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.AutoscalingMetricSpec) + private static final com.google.cloud.aiplatform.v1.AutoscalingMetricSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.AutoscalingMetricSpec(); + } + + public static com.google.cloud.aiplatform.v1.AutoscalingMetricSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutoscalingMetricSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AutoscalingMetricSpec(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.AutoscalingMetricSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AutoscalingMetricSpecOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AutoscalingMetricSpecOrBuilder.java new file mode 100644 index 000000000..c5139ae65 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AutoscalingMetricSpecOrBuilder.java @@ -0,0 +1,74 @@ +/* + * 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/machine_resources.proto + +package com.google.cloud.aiplatform.v1; + +public interface AutoscalingMetricSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.AutoscalingMetricSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource metric name.
+   * Supported metrics:
+   * * For Online Prediction:
+   * * `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle`
+   * * `aiplatform.googleapis.com/prediction/online/cpu/utilization`
+   * 
+ * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The metricName. + */ + java.lang.String getMetricName(); + /** + * + * + *
+   * Required. The resource metric name.
+   * Supported metrics:
+   * * For Online Prediction:
+   * * `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle`
+   * * `aiplatform.googleapis.com/prediction/online/cpu/utilization`
+   * 
+ * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for metricName. + */ + com.google.protobuf.ByteString getMetricNameBytes(); + + /** + * + * + *
+   * The target resource utilization in percentage (1% - 100%) for the given
+   * metric; once the real usage deviates from the target by a certain
+   * percentage, the machine replicas change. The default value is 60
+   * (representing 60%) if not provided.
+   * 
+ * + * int32 target = 2; + * + * @return The target. + */ + int getTarget(); +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJob.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJob.java index 2aac285b0..7bac601a8 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJob.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJob.java @@ -1929,8 +1929,7 @@ public interface OutputConfigOrBuilder * `errors_N.<extension>` files are created (N depends on total number * of failed predictions). These files contain the failed instances, * as per their schema, followed by an additional `error` field which as - * value has - * [`google.rpc.Status`](Status) + * value has [google.rpc.Status][google.rpc.Status] * containing only `code` and `message` fields. * * @@ -1961,8 +1960,7 @@ public interface OutputConfigOrBuilder * `errors_N.<extension>` files are created (N depends on total number * of failed predictions). These files contain the failed instances, * as per their schema, followed by an additional `error` field which as - * value has - * [`google.rpc.Status`](Status) + * value has [google.rpc.Status][google.rpc.Status] * containing only `code` and `message` fields. * * @@ -1993,8 +1991,7 @@ public interface OutputConfigOrBuilder * `errors_N.<extension>` files are created (N depends on total number * of failed predictions). These files contain the failed instances, * as per their schema, followed by an additional `error` field which as - * value has - * [`google.rpc.Status`](Status) + * value has [google.rpc.Status][google.rpc.Status] * containing only `code` and `message` fields. * * @@ -2022,7 +2019,7 @@ public interface OutputConfigOrBuilder * prediction schemata. The `errors` table contains rows for which the * prediction has failed, it has instance columns, as per the * instance schema, followed by a single "errors" column, which as values - * has [`google.rpc.Status`](Status) + * has [google.rpc.Status][google.rpc.Status] * represented as a STRUCT, and containing only `code` and `message`. * * @@ -2051,7 +2048,7 @@ public interface OutputConfigOrBuilder * prediction schemata. The `errors` table contains rows for which the * prediction has failed, it has instance columns, as per the * instance schema, followed by a single "errors" column, which as values - * has [`google.rpc.Status`](Status) + * has [google.rpc.Status][google.rpc.Status] * represented as a STRUCT, and containing only `code` and `message`. * * @@ -2080,7 +2077,7 @@ public interface OutputConfigOrBuilder * prediction schemata. The `errors` table contains rows for which the * prediction has failed, it has instance columns, as per the * instance schema, followed by a single "errors" column, which as values - * has [`google.rpc.Status`](Status) + * has [google.rpc.Status][google.rpc.Status] * represented as a STRUCT, and containing only `code` and `message`. * * @@ -2323,8 +2320,7 @@ public DestinationCase getDestinationCase() { * `errors_N.<extension>` files are created (N depends on total number * of failed predictions). These files contain the failed instances, * as per their schema, followed by an additional `error` field which as - * value has - * [`google.rpc.Status`](Status) + * value has [google.rpc.Status][google.rpc.Status] * containing only `code` and `message` fields. * * @@ -2358,8 +2354,7 @@ public boolean hasGcsDestination() { * `errors_N.<extension>` files are created (N depends on total number * of failed predictions). These files contain the failed instances, * as per their schema, followed by an additional `error` field which as - * value has - * [`google.rpc.Status`](Status) + * value has [google.rpc.Status][google.rpc.Status] * containing only `code` and `message` fields. * * @@ -2396,8 +2391,7 @@ public com.google.cloud.aiplatform.v1.GcsDestination getGcsDestination() { * `errors_N.<extension>` files are created (N depends on total number * of failed predictions). These files contain the failed instances, * as per their schema, followed by an additional `error` field which as - * value has - * [`google.rpc.Status`](Status) + * value has [google.rpc.Status][google.rpc.Status] * containing only `code` and `message` fields. * * @@ -2432,7 +2426,7 @@ public com.google.cloud.aiplatform.v1.GcsDestinationOrBuilder getGcsDestinationO * prediction schemata. The `errors` table contains rows for which the * prediction has failed, it has instance columns, as per the * instance schema, followed by a single "errors" column, which as values - * has [`google.rpc.Status`](Status) + * has [google.rpc.Status][google.rpc.Status] * represented as a STRUCT, and containing only `code` and `message`. * * @@ -2464,7 +2458,7 @@ public boolean hasBigqueryDestination() { * prediction schemata. The `errors` table contains rows for which the * prediction has failed, it has instance columns, as per the * instance schema, followed by a single "errors" column, which as values - * has [`google.rpc.Status`](Status) + * has [google.rpc.Status][google.rpc.Status] * represented as a STRUCT, and containing only `code` and `message`. * * @@ -2499,7 +2493,7 @@ public com.google.cloud.aiplatform.v1.BigQueryDestination getBigqueryDestination * prediction schemata. The `errors` table contains rows for which the * prediction has failed, it has instance columns, as per the * instance schema, followed by a single "errors" column, which as values - * has [`google.rpc.Status`](Status) + * has [google.rpc.Status][google.rpc.Status] * represented as a STRUCT, and containing only `code` and `message`. * * @@ -3009,8 +3003,7 @@ public Builder clearDestination() { * `errors_N.<extension>` files are created (N depends on total number * of failed predictions). These files contain the failed instances, * as per their schema, followed by an additional `error` field which as - * value has - * [`google.rpc.Status`](Status) + * value has [google.rpc.Status][google.rpc.Status] * containing only `code` and `message` fields. * * @@ -3044,8 +3037,7 @@ public boolean hasGcsDestination() { * `errors_N.<extension>` files are created (N depends on total number * of failed predictions). These files contain the failed instances, * as per their schema, followed by an additional `error` field which as - * value has - * [`google.rpc.Status`](Status) + * value has [google.rpc.Status][google.rpc.Status] * containing only `code` and `message` fields. * * @@ -3089,8 +3081,7 @@ public com.google.cloud.aiplatform.v1.GcsDestination getGcsDestination() { * `errors_N.<extension>` files are created (N depends on total number * of failed predictions). These files contain the failed instances, * as per their schema, followed by an additional `error` field which as - * value has - * [`google.rpc.Status`](Status) + * value has [google.rpc.Status][google.rpc.Status] * containing only `code` and `message` fields. * * @@ -3131,8 +3122,7 @@ public Builder setGcsDestination(com.google.cloud.aiplatform.v1.GcsDestination v * `errors_N.<extension>` files are created (N depends on total number * of failed predictions). These files contain the failed instances, * as per their schema, followed by an additional `error` field which as - * value has - * [`google.rpc.Status`](Status) + * value has [google.rpc.Status][google.rpc.Status] * containing only `code` and `message` fields. * * @@ -3171,8 +3161,7 @@ public Builder setGcsDestination( * `errors_N.<extension>` files are created (N depends on total number * of failed predictions). These files contain the failed instances, * as per their schema, followed by an additional `error` field which as - * value has - * [`google.rpc.Status`](Status) + * value has [google.rpc.Status][google.rpc.Status] * containing only `code` and `message` fields. * * @@ -3223,8 +3212,7 @@ public Builder mergeGcsDestination(com.google.cloud.aiplatform.v1.GcsDestination * `errors_N.<extension>` files are created (N depends on total number * of failed predictions). These files contain the failed instances, * as per their schema, followed by an additional `error` field which as - * value has - * [`google.rpc.Status`](Status) + * value has [google.rpc.Status][google.rpc.Status] * containing only `code` and `message` fields. * * @@ -3268,8 +3256,7 @@ public Builder clearGcsDestination() { * `errors_N.<extension>` files are created (N depends on total number * of failed predictions). These files contain the failed instances, * as per their schema, followed by an additional `error` field which as - * value has - * [`google.rpc.Status`](Status) + * value has [google.rpc.Status][google.rpc.Status] * containing only `code` and `message` fields. * * @@ -3300,8 +3287,7 @@ public com.google.cloud.aiplatform.v1.GcsDestination.Builder getGcsDestinationBu * `errors_N.<extension>` files are created (N depends on total number * of failed predictions). These files contain the failed instances, * as per their schema, followed by an additional `error` field which as - * value has - * [`google.rpc.Status`](Status) + * value has [google.rpc.Status][google.rpc.Status] * containing only `code` and `message` fields. * * @@ -3340,8 +3326,7 @@ public com.google.cloud.aiplatform.v1.GcsDestinationOrBuilder getGcsDestinationO * `errors_N.<extension>` files are created (N depends on total number * of failed predictions). These files contain the failed instances, * as per their schema, followed by an additional `error` field which as - * value has - * [`google.rpc.Status`](Status) + * value has [google.rpc.Status][google.rpc.Status] * containing only `code` and `message` fields. * * @@ -3397,7 +3382,7 @@ public com.google.cloud.aiplatform.v1.GcsDestinationOrBuilder getGcsDestinationO * prediction schemata. The `errors` table contains rows for which the * prediction has failed, it has instance columns, as per the * instance schema, followed by a single "errors" column, which as values - * has [`google.rpc.Status`](Status) + * has [google.rpc.Status][google.rpc.Status] * represented as a STRUCT, and containing only `code` and `message`. * * @@ -3429,7 +3414,7 @@ public boolean hasBigqueryDestination() { * prediction schemata. The `errors` table contains rows for which the * prediction has failed, it has instance columns, as per the * instance schema, followed by a single "errors" column, which as values - * has [`google.rpc.Status`](Status) + * has [google.rpc.Status][google.rpc.Status] * represented as a STRUCT, and containing only `code` and `message`. * * @@ -3471,7 +3456,7 @@ public com.google.cloud.aiplatform.v1.BigQueryDestination getBigqueryDestination * prediction schemata. The `errors` table contains rows for which the * prediction has failed, it has instance columns, as per the * instance schema, followed by a single "errors" column, which as values - * has [`google.rpc.Status`](Status) + * has [google.rpc.Status][google.rpc.Status] * represented as a STRUCT, and containing only `code` and `message`. * * @@ -3511,7 +3496,7 @@ public Builder setBigqueryDestination( * prediction schemata. The `errors` table contains rows for which the * prediction has failed, it has instance columns, as per the * instance schema, followed by a single "errors" column, which as values - * has [`google.rpc.Status`](Status) + * has [google.rpc.Status][google.rpc.Status] * represented as a STRUCT, and containing only `code` and `message`. * * @@ -3548,7 +3533,7 @@ public Builder setBigqueryDestination( * prediction schemata. The `errors` table contains rows for which the * prediction has failed, it has instance columns, as per the * instance schema, followed by a single "errors" column, which as values - * has [`google.rpc.Status`](Status) + * has [google.rpc.Status][google.rpc.Status] * represented as a STRUCT, and containing only `code` and `message`. * * @@ -3598,7 +3583,7 @@ public Builder mergeBigqueryDestination( * prediction schemata. The `errors` table contains rows for which the * prediction has failed, it has instance columns, as per the * instance schema, followed by a single "errors" column, which as values - * has [`google.rpc.Status`](Status) + * has [google.rpc.Status][google.rpc.Status] * represented as a STRUCT, and containing only `code` and `message`. * * @@ -3640,7 +3625,7 @@ public Builder clearBigqueryDestination() { * prediction schemata. The `errors` table contains rows for which the * prediction has failed, it has instance columns, as per the * instance schema, followed by a single "errors" column, which as values - * has [`google.rpc.Status`](Status) + * has [google.rpc.Status][google.rpc.Status] * represented as a STRUCT, and containing only `code` and `message`. * * @@ -3670,7 +3655,7 @@ public Builder clearBigqueryDestination() { * prediction schemata. The `errors` table contains rows for which the * prediction has failed, it has instance columns, as per the * instance schema, followed by a single "errors" column, which as values - * has [`google.rpc.Status`](Status) + * has [google.rpc.Status][google.rpc.Status] * represented as a STRUCT, and containing only `code` and `message`. * * @@ -3708,7 +3693,7 @@ public Builder clearBigqueryDestination() { * prediction schemata. The `errors` table contains rows for which the * prediction has failed, it has instance columns, as per the * instance schema, followed by a single "errors" column, which as values - * has [`google.rpc.Status`](Status) + * has [google.rpc.Status][google.rpc.Status] * represented as a STRUCT, and containing only `code` and `message`. * * @@ -3998,6 +3983,37 @@ public interface OutputInfoOrBuilder */ com.google.protobuf.ByteString getBigqueryOutputDatasetBytes(); + /** + * + * + *
+     * Output only. The name of the BigQuery table created, in
+     * `predictions_<timestamp>`
+     * format, into which the prediction output is written.
+     * Can be used by UI to generate the BigQuery output path, for example.
+     * 
+ * + * string bigquery_output_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bigqueryOutputTable. + */ + java.lang.String getBigqueryOutputTable(); + /** + * + * + *
+     * Output only. The name of the BigQuery table created, in
+     * `predictions_<timestamp>`
+     * format, into which the prediction output is written.
+     * Can be used by UI to generate the BigQuery output path, for example.
+     * 
+ * + * string bigquery_output_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for bigqueryOutputTable. + */ + com.google.protobuf.ByteString getBigqueryOutputTableBytes(); + public com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo.OutputLocationCase getOutputLocationCase(); } @@ -4021,7 +4037,9 @@ private OutputInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OutputInfo() {} + private OutputInfo() { + bigqueryOutputTable_ = ""; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -4066,6 +4084,13 @@ private OutputInfo( outputLocation_ = s; break; } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + bigqueryOutputTable_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -4296,6 +4321,61 @@ public com.google.protobuf.ByteString getBigqueryOutputDatasetBytes() { } } + public static final int BIGQUERY_OUTPUT_TABLE_FIELD_NUMBER = 4; + private volatile java.lang.Object bigqueryOutputTable_; + /** + * + * + *
+     * Output only. The name of the BigQuery table created, in
+     * `predictions_<timestamp>`
+     * format, into which the prediction output is written.
+     * Can be used by UI to generate the BigQuery output path, for example.
+     * 
+ * + * string bigquery_output_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bigqueryOutputTable. + */ + @java.lang.Override + public java.lang.String getBigqueryOutputTable() { + java.lang.Object ref = bigqueryOutputTable_; + 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(); + bigqueryOutputTable_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. The name of the BigQuery table created, in
+     * `predictions_<timestamp>`
+     * format, into which the prediction output is written.
+     * Can be used by UI to generate the BigQuery output path, for example.
+     * 
+ * + * string bigquery_output_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for bigqueryOutputTable. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBigqueryOutputTableBytes() { + java.lang.Object ref = bigqueryOutputTable_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bigqueryOutputTable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4316,6 +4396,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (outputLocationCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, outputLocation_); } + if (!getBigqueryOutputTableBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, bigqueryOutputTable_); + } unknownFields.writeTo(output); } @@ -4331,6 +4414,9 @@ public int getSerializedSize() { if (outputLocationCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, outputLocation_); } + if (!getBigqueryOutputTableBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, bigqueryOutputTable_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -4347,6 +4433,7 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo other = (com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo) obj; + if (!getBigqueryOutputTable().equals(other.getBigqueryOutputTable())) return false; if (!getOutputLocationCase().equals(other.getOutputLocationCase())) return false; switch (outputLocationCase_) { case 1: @@ -4369,6 +4456,8 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BIGQUERY_OUTPUT_TABLE_FIELD_NUMBER; + hash = (53 * hash) + getBigqueryOutputTable().hashCode(); switch (outputLocationCase_) { case 1: hash = (37 * hash) + GCS_OUTPUT_DIRECTORY_FIELD_NUMBER; @@ -4530,6 +4619,8 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + bigqueryOutputTable_ = ""; + outputLocationCase_ = 0; outputLocation_ = null; return this; @@ -4566,6 +4657,7 @@ public com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo buildPartial if (outputLocationCase_ == 2) { result.outputLocation_ = outputLocation_; } + result.bigqueryOutputTable_ = bigqueryOutputTable_; result.outputLocationCase_ = outputLocationCase_; onBuilt(); return result; @@ -4620,6 +4712,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.BatchPredictionJob.Outpu if (other == com.google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo.getDefaultInstance()) return this; + if (!other.getBigqueryOutputTable().isEmpty()) { + bigqueryOutputTable_ = other.bigqueryOutputTable_; + onChanged(); + } switch (other.getOutputLocationCase()) { case GCS_OUTPUT_DIRECTORY: { @@ -4977,6 +5073,127 @@ public Builder setBigqueryOutputDatasetBytes(com.google.protobuf.ByteString valu return this; } + private java.lang.Object bigqueryOutputTable_ = ""; + /** + * + * + *
+       * Output only. The name of the BigQuery table created, in
+       * `predictions_<timestamp>`
+       * format, into which the prediction output is written.
+       * Can be used by UI to generate the BigQuery output path, for example.
+       * 
+ * + * string bigquery_output_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bigqueryOutputTable. + */ + public java.lang.String getBigqueryOutputTable() { + java.lang.Object ref = bigqueryOutputTable_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bigqueryOutputTable_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. The name of the BigQuery table created, in
+       * `predictions_<timestamp>`
+       * format, into which the prediction output is written.
+       * Can be used by UI to generate the BigQuery output path, for example.
+       * 
+ * + * string bigquery_output_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for bigqueryOutputTable. + */ + public com.google.protobuf.ByteString getBigqueryOutputTableBytes() { + java.lang.Object ref = bigqueryOutputTable_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bigqueryOutputTable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. The name of the BigQuery table created, in
+       * `predictions_<timestamp>`
+       * format, into which the prediction output is written.
+       * Can be used by UI to generate the BigQuery output path, for example.
+       * 
+ * + * string bigquery_output_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bigqueryOutputTable to set. + * @return This builder for chaining. + */ + public Builder setBigqueryOutputTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + bigqueryOutputTable_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The name of the BigQuery table created, in
+       * `predictions_<timestamp>`
+       * format, into which the prediction output is written.
+       * Can be used by UI to generate the BigQuery output path, for example.
+       * 
+ * + * string bigquery_output_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearBigqueryOutputTable() { + + bigqueryOutputTable_ = getDefaultInstance().getBigqueryOutputTable(); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The name of the BigQuery table created, in
+       * `predictions_<timestamp>`
+       * format, into which the prediction output is written.
+       * Can be used by UI to generate the BigQuery output path, for example.
+       * 
+ * + * string bigquery_output_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for bigqueryOutputTable to set. + * @return This builder for chaining. + */ + public Builder setBigqueryOutputTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bigqueryOutputTable_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobProto.java index 56a84330f..0eb9d2d44 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobProto.java @@ -70,7 +70,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "to\032\034google/protobuf/struct.proto\032\037google" + "/protobuf/timestamp.proto\032\027google/rpc/st" + "atus.proto\032\034google/api/annotations.proto" - + "\"\273\017\n\022BatchPredictionJob\022\021\n\004name\030\001 \001(\tB\003\340" + + "\"\340\017\n\022BatchPredictionJob\022\021\n\004name\030\001 \001(\tB\003\340" + "A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\0226\n\005model\030\003" + " \001(\tB\'\340A\002\372A!\n\037aiplatform.googleapis.com/" + "Model\022U\n\014input_config\030\004 \001(\0132:.google.clo" @@ -112,18 +112,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "O\n\024bigquery_destination\030\003 \001(\0132/.google.c" + "loud.aiplatform.v1.BigQueryDestinationH\000" + "\022\037\n\022predictions_format\030\001 \001(\tB\003\340A\002B\r\n\013des" - + "tination\032l\n\nOutputInfo\022#\n\024gcs_output_dir" - + "ectory\030\001 \001(\tB\003\340A\003H\000\022&\n\027bigquery_output_d" - + "ataset\030\002 \001(\tB\003\340A\003H\000B\021\n\017output_location\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/{project}/l" - + "ocations/{location}/batchPredictionJobs/" - + "{batch_prediction_job}B\201\001\n\036com.google.cl" - + "oud.aiplatform.v1B\027BatchPredictionJobPro" - + "toP\001ZDgoogle.golang.org/genproto/googlea" - + "pis/cloud/aiplatform/v1;aiplatformb\006prot" - + "o3" + + "tination\032\220\001\n\nOutputInfo\022#\n\024gcs_output_di" + + "rectory\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\013L" + + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001:\206\001\352A\202\001\n,aiplatform.googleapis.com/Bat" + + "chPredictionJob\022Rprojects/{project}/loca" + + "tions/{location}/batchPredictionJobs/{ba" + + "tch_prediction_job}B\333\001\n\036com.google.cloud" + + ".aiplatform.v1B\027BatchPredictionJobProtoP" + + "\001ZDgoogle.golang.org/genproto/googleapis" + + "/cloud/aiplatform/v1;aiplatform\252\002\032Google" + + ".Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPl" + + "atform\\V1\352\002\035Google::Cloud::AIPlatform::V" + + "1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -197,7 +200,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_BatchPredictionJob_OutputInfo_descriptor, new java.lang.String[] { - "GcsOutputDirectory", "BigqueryOutputDataset", "OutputLocation", + "GcsOutputDirectory", + "BigqueryOutputDataset", + "BigqueryOutputTable", + "OutputLocation", }); internal_static_google_cloud_aiplatform_v1_BatchPredictionJob_LabelsEntry_descriptor = internal_static_google_cloud_aiplatform_v1_BatchPredictionJob_descriptor diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BigQueryDestination.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BigQueryDestination.java index ee73bf14a..3c338f7c3 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BigQueryDestination.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BigQueryDestination.java @@ -123,7 +123,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * table must not exist. * Accepted forms: * * BigQuery path. For example: - * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`. + * `bq://projectId` or `bq://projectId.bqDatasetId` or + * `bq://projectId.bqDatasetId.bqTableId`. * * * string output_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -152,7 +153,8 @@ public java.lang.String getOutputUri() { * table must not exist. * Accepted forms: * * BigQuery path. For example: - * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`. + * `bq://projectId` or `bq://projectId.bqDatasetId` or + * `bq://projectId.bqDatasetId.bqTableId`. * * * string output_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -501,7 +503,8 @@ public Builder mergeFrom( * table must not exist. * Accepted forms: * * BigQuery path. For example: - * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`. + * `bq://projectId` or `bq://projectId.bqDatasetId` or + * `bq://projectId.bqDatasetId.bqTableId`. * * * string output_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -529,7 +532,8 @@ public java.lang.String getOutputUri() { * table must not exist. * Accepted forms: * * BigQuery path. For example: - * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`. + * `bq://projectId` or `bq://projectId.bqDatasetId` or + * `bq://projectId.bqDatasetId.bqTableId`. * * * string output_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -557,7 +561,8 @@ public com.google.protobuf.ByteString getOutputUriBytes() { * table must not exist. * Accepted forms: * * BigQuery path. For example: - * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`. + * `bq://projectId` or `bq://projectId.bqDatasetId` or + * `bq://projectId.bqDatasetId.bqTableId`. * * * string output_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -584,7 +589,8 @@ public Builder setOutputUri(java.lang.String value) { * table must not exist. * Accepted forms: * * BigQuery path. For example: - * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`. + * `bq://projectId` or `bq://projectId.bqDatasetId` or + * `bq://projectId.bqDatasetId.bqTableId`. * * * string output_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -607,7 +613,8 @@ public Builder clearOutputUri() { * table must not exist. * Accepted forms: * * BigQuery path. For example: - * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`. + * `bq://projectId` or `bq://projectId.bqDatasetId` or + * `bq://projectId.bqDatasetId.bqTableId`. * * * string output_uri = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BigQueryDestinationOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BigQueryDestinationOrBuilder.java index 6fb34d999..96c90c4a4 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BigQueryDestinationOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BigQueryDestinationOrBuilder.java @@ -33,7 +33,8 @@ public interface BigQueryDestinationOrBuilder * table must not exist. * Accepted forms: * * BigQuery path. For example: - * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`. + * `bq://projectId` or `bq://projectId.bqDatasetId` or + * `bq://projectId.bqDatasetId.bqTableId`. * * * string output_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -51,7 +52,8 @@ public interface BigQueryDestinationOrBuilder * table must not exist. * Accepted forms: * * BigQuery path. For example: - * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`. + * `bq://projectId` or `bq://projectId.bqDatasetId` or + * `bq://projectId.bqDatasetId.bqTableId`. * * * string output_uri = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelPipelineJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelPipelineJobRequest.java new file mode 100644 index 000000000..46ba7c33b --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelPipelineJobRequest.java @@ -0,0 +1,665 @@ +/* + * 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_service.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for [PipelineService.CancelPipelineJob][google.cloud.aiplatform.v1.PipelineService.CancelPipelineJob].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CancelPipelineJobRequest} + */ +public final class CancelPipelineJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.CancelPipelineJobRequest) + CancelPipelineJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CancelPipelineJobRequest.newBuilder() to construct. + private CancelPipelineJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CancelPipelineJobRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CancelPipelineJobRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CancelPipelineJobRequest( + 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 (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.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_CancelPipelineJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_CancelPipelineJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CancelPipelineJobRequest.class, + com.google.cloud.aiplatform.v1.CancelPipelineJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the PipelineJob to cancel.
+   * Format:
+   * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
+   * 
+ * + * + * 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 PipelineJob to cancel.
+   * Format:
+   * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
+   * 
+ * + * + * 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 (!getNameBytes().isEmpty()) { + 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 (!getNameBytes().isEmpty()) { + 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.CancelPipelineJobRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.CancelPipelineJobRequest other = + (com.google.cloud.aiplatform.v1.CancelPipelineJobRequest) 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.CancelPipelineJobRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CancelPipelineJobRequest 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.CancelPipelineJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CancelPipelineJobRequest 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.CancelPipelineJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CancelPipelineJobRequest 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.CancelPipelineJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CancelPipelineJobRequest 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.CancelPipelineJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CancelPipelineJobRequest 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.CancelPipelineJobRequest 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.CancelPipelineJobRequest 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.CancelPipelineJobRequest 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 [PipelineService.CancelPipelineJob][google.cloud.aiplatform.v1.PipelineService.CancelPipelineJob].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CancelPipelineJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.CancelPipelineJobRequest) + com.google.cloud.aiplatform.v1.CancelPipelineJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_CancelPipelineJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_CancelPipelineJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CancelPipelineJobRequest.class, + com.google.cloud.aiplatform.v1.CancelPipelineJobRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.CancelPipelineJobRequest.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.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_CancelPipelineJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CancelPipelineJobRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.CancelPipelineJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CancelPipelineJobRequest build() { + com.google.cloud.aiplatform.v1.CancelPipelineJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CancelPipelineJobRequest buildPartial() { + com.google.cloud.aiplatform.v1.CancelPipelineJobRequest result = + new com.google.cloud.aiplatform.v1.CancelPipelineJobRequest(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.CancelPipelineJobRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.CancelPipelineJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.CancelPipelineJobRequest other) { + if (other == com.google.cloud.aiplatform.v1.CancelPipelineJobRequest.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.CancelPipelineJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1.CancelPipelineJobRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the PipelineJob to cancel.
+     * Format:
+     * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
+     * 
+ * + * + * 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 PipelineJob to cancel.
+     * Format:
+     * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
+     * 
+ * + * + * 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 PipelineJob to cancel.
+     * Format:
+     * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
+     * 
+ * + * + * 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 PipelineJob to cancel.
+     * Format:
+     * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
+     * 
+ * + * + * 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 PipelineJob to cancel.
+     * Format:
+     * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
+     * 
+ * + * + * 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.CancelPipelineJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.CancelPipelineJobRequest) + private static final com.google.cloud.aiplatform.v1.CancelPipelineJobRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.CancelPipelineJobRequest(); + } + + public static com.google.cloud.aiplatform.v1.CancelPipelineJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CancelPipelineJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CancelPipelineJobRequest(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.CancelPipelineJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelPipelineJobRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelPipelineJobRequestOrBuilder.java new file mode 100644 index 000000000..2f6b3b67b --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CancelPipelineJobRequestOrBuilder.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/pipeline_service.proto + +package com.google.cloud.aiplatform.v1; + +public interface CancelPipelineJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.CancelPipelineJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the PipelineJob to cancel.
+   * Format:
+   * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the PipelineJob to cancel.
+   * Format:
+   * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
+   * 
+ * + * + * 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/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompletionStatsProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompletionStatsProto.java index 45279acf7..7c3554ed5 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompletionStatsProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CompletionStatsProto.java @@ -46,11 +46,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/rpc/status.proto\032\034google/api/annotation" + "s.proto\"j\n\017CompletionStats\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\020incomplete_count\030\003 \001(\003B\003\340A\003B~\n\036c" - + "om.google.cloud.aiplatform.v1B\024Completio" - + "nStatsProtoP\001ZDgoogle.golang.org/genprot" - + "o/googleapis/cloud/aiplatform/v1;aiplatf" - + "ormb\006proto3" + + "\003\340A\003\022\035\n\020incomplete_count\030\003 \001(\003B\003\340A\003B\330\001\n\036" + + "com.google.cloud.aiplatform.v1B\024Completi" + + "onStatsProtoP\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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Context.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Context.java new file mode 100644 index 000000000..d2375640a --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Context.java @@ -0,0 +1,2285 @@ +/* + * 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/context.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Instance of a general context.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.Context} + */ +public final class Context extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.Context) + ContextOrBuilder { + private static final long serialVersionUID = 0L; + // Use Context.newBuilder() to construct. + private Context(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Context() { + name_ = ""; + displayName_ = ""; + etag_ = ""; + parentContexts_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Context(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Context( + 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(); + + displayName_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; + } + case 74: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; + } + case 82: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 90: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + parentContexts_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + parentContexts_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) != 0)) { + parentContexts_ = parentContexts_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContextProto + .internal_static_google_cloud_aiplatform_v1_Context_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 9: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContextProto + .internal_static_google_cloud_aiplatform_v1_Context_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.Context.class, + com.google.cloud.aiplatform.v1.Context.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. The resource name of the Context.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+   * Output only. The resource name of the Context.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 DISPLAY_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * User provided display name of the Context.
+   * May be up to 128 Unicode characters.
+   * 
+ * + * string display_name = 2; + * + * @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; + } + } + /** + * + * + *
+   * User provided display name of the Context.
+   * May be up to 128 Unicode characters.
+   * 
+ * + * string display_name = 2; + * + * @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 ETAG_FIELD_NUMBER = 8; + private volatile java.lang.Object etag_; + /** + * + * + *
+   * An eTag used to perform consistent read-modify-write updates. If not set, a
+   * blind "overwrite" update happens.
+   * 
+ * + * string etag = 8; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + /** + * + * + *
+   * An eTag used to perform consistent read-modify-write updates. If not set, a
+   * blind "overwrite" update happens.
+   * 
+ * + * string etag = 8; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 9; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.aiplatform.v1.ContextProto + .internal_static_google_cloud_aiplatform_v1_Context_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+   * The labels with user-defined metadata to organize your Contexts.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * No more than 64 user labels can be associated with one Context (System
+   * labels are excluded).
+   * 
+ * + * map<string, string> labels = 9; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+   * The labels with user-defined metadata to organize your Contexts.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * No more than 64 user labels can be associated with one Context (System
+   * labels are excluded).
+   * 
+ * + * map<string, string> labels = 9; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * The labels with user-defined metadata to organize your Contexts.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * No more than 64 user labels can be associated with one Context (System
+   * labels are excluded).
+   * 
+ * + * map<string, string> labels = 9; + */ + @java.lang.Override + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * The labels with user-defined metadata to organize your Contexts.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * No more than 64 user labels can be associated with one Context (System
+   * labels are excluded).
+   * 
+ * + * map<string, string> labels = 9; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 10; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Timestamp when this Context was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Timestamp when this Context was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Timestamp when this Context was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 11; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Timestamp when this Context was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. Timestamp when this Context was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. Timestamp when this Context was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int PARENT_CONTEXTS_FIELD_NUMBER = 12; + private com.google.protobuf.LazyStringList parentContexts_; + /** + * + * + *
+   * Output only. A list of resource names of Contexts that are parents of this Context.
+   * A Context may have at most 10 parent_contexts.
+   * 
+ * + * + * repeated string parent_contexts = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the parentContexts. + */ + public com.google.protobuf.ProtocolStringList getParentContextsList() { + return parentContexts_; + } + /** + * + * + *
+   * Output only. A list of resource names of Contexts that are parents of this Context.
+   * A Context may have at most 10 parent_contexts.
+   * 
+ * + * + * repeated string parent_contexts = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of parentContexts. + */ + public int getParentContextsCount() { + return parentContexts_.size(); + } + /** + * + * + *
+   * Output only. A list of resource names of Contexts that are parents of this Context.
+   * A Context may have at most 10 parent_contexts.
+   * 
+ * + * + * repeated string parent_contexts = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The parentContexts at the given index. + */ + public java.lang.String getParentContexts(int index) { + return parentContexts_.get(index); + } + /** + * + * + *
+   * Output only. A list of resource names of Contexts that are parents of this Context.
+   * A Context may have at most 10 parent_contexts.
+   * 
+ * + * + * repeated string parent_contexts = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the parentContexts at the given index. + */ + public com.google.protobuf.ByteString getParentContextsBytes(int index) { + return parentContexts_.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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!getEtagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, etag_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9); + if (createTime_ != null) { + output.writeMessage(10, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(11, getUpdateTime()); + } + for (int i = 0; i < parentContexts_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, parentContexts_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!getEtagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, etag_); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getUpdateTime()); + } + { + int dataSize = 0; + for (int i = 0; i < parentContexts_.size(); i++) { + dataSize += computeStringSizeNoTag(parentContexts_.getRaw(i)); + } + size += dataSize; + size += 1 * getParentContextsList().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.Context)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.Context other = (com.google.cloud.aiplatform.v1.Context) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getParentContextsList().equals(other.getParentContextsList())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (getParentContextsCount() > 0) { + hash = (37 * hash) + PARENT_CONTEXTS_FIELD_NUMBER; + hash = (53 * hash) + getParentContextsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.Context parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Context 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.Context parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Context 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.Context parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Context 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.Context parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Context 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.Context parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Context 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.Context 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.Context 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.Context 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; + } + /** + * + * + *
+   * Instance of a general context.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.Context} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.Context) + com.google.cloud.aiplatform.v1.ContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContextProto + .internal_static_google_cloud_aiplatform_v1_Context_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 9: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 9: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContextProto + .internal_static_google_cloud_aiplatform_v1_Context_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.Context.class, + com.google.cloud.aiplatform.v1.Context.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.Context.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_ = ""; + + displayName_ = ""; + + etag_ = ""; + + internalGetMutableLabels().clear(); + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + parentContexts_ = 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.ContextProto + .internal_static_google_cloud_aiplatform_v1_Context_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Context getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.Context.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Context build() { + com.google.cloud.aiplatform.v1.Context result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Context buildPartial() { + com.google.cloud.aiplatform.v1.Context result = + new com.google.cloud.aiplatform.v1.Context(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.displayName_ = displayName_; + result.etag_ = etag_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + if (((bitField0_ & 0x00000002) != 0)) { + parentContexts_ = parentContexts_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.parentContexts_ = parentContexts_; + 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.Context) { + return mergeFrom((com.google.cloud.aiplatform.v1.Context) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.Context other) { + if (other == com.google.cloud.aiplatform.v1.Context.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.parentContexts_.isEmpty()) { + if (parentContexts_.isEmpty()) { + parentContexts_ = other.parentContexts_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureParentContextsIsMutable(); + parentContexts_.addAll(other.parentContexts_); + } + 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.Context parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1.Context) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name of the Context.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+     * Output only. The resource name of the Context.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+     * Output only. The resource name of the Context.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + /** + * + * + *
+     * Output only. The resource name of the Context.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the Context.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 displayName_ = ""; + /** + * + * + *
+     * User provided display name of the Context.
+     * May be up to 128 Unicode characters.
+     * 
+ * + * string display_name = 2; + * + * @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; + } + } + /** + * + * + *
+     * User provided display name of the Context.
+     * May be up to 128 Unicode characters.
+     * 
+ * + * string display_name = 2; + * + * @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; + } + } + /** + * + * + *
+     * User provided display name of the Context.
+     * May be up to 128 Unicode characters.
+     * 
+ * + * string display_name = 2; + * + * @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; + } + /** + * + * + *
+     * User provided display name of the Context.
+     * May be up to 128 Unicode characters.
+     * 
+ * + * string display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * User provided display name of the Context.
+     * May be up to 128 Unicode characters.
+     * 
+ * + * string display_name = 2; + * + * @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 etag_ = ""; + /** + * + * + *
+     * An eTag used to perform consistent read-modify-write updates. If not set, a
+     * blind "overwrite" update happens.
+     * 
+ * + * string etag = 8; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * An eTag used to perform consistent read-modify-write updates. If not set, a
+     * blind "overwrite" update happens.
+     * 
+ * + * string etag = 8; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * An eTag used to perform consistent read-modify-write updates. If not set, a
+     * blind "overwrite" update happens.
+     * 
+ * + * string etag = 8; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + etag_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * An eTag used to perform consistent read-modify-write updates. If not set, a
+     * blind "overwrite" update happens.
+     * 
+ * + * string etag = 8; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + + etag_ = getDefaultInstance().getEtag(); + onChanged(); + return this; + } + /** + * + * + *
+     * An eTag used to perform consistent read-modify-write updates. If not set, a
+     * blind "overwrite" update happens.
+     * 
+ * + * string etag = 8; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + etag_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged(); + ; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * The labels with user-defined metadata to organize your Contexts.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * No more than 64 user labels can be associated with one Context (System
+     * labels are excluded).
+     * 
+ * + * map<string, string> labels = 9; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+     * The labels with user-defined metadata to organize your Contexts.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * No more than 64 user labels can be associated with one Context (System
+     * labels are excluded).
+     * 
+ * + * map<string, string> labels = 9; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * The labels with user-defined metadata to organize your Contexts.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * No more than 64 user labels can be associated with one Context (System
+     * labels are excluded).
+     * 
+ * + * map<string, string> labels = 9; + */ + @java.lang.Override + public java.lang.String getLabelsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * The labels with user-defined metadata to organize your Contexts.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * No more than 64 user labels can be associated with one Context (System
+     * labels are excluded).
+     * 
+ * + * map<string, string> labels = 9; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * The labels with user-defined metadata to organize your Contexts.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * No more than 64 user labels can be associated with one Context (System
+     * labels are excluded).
+     * 
+ * + * map<string, string> labels = 9; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
+     * The labels with user-defined metadata to organize your Contexts.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * No more than 64 user labels can be associated with one Context (System
+     * labels are excluded).
+     * 
+ * + * map<string, string> labels = 9; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * The labels with user-defined metadata to organize your Contexts.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * No more than 64 user labels can be associated with one Context (System
+     * labels are excluded).
+     * 
+ * + * map<string, string> labels = 9; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when this Context was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Output only. Timestamp when this Context was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp when this Context was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this Context was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this Context was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this Context was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this Context was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this Context was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp when this Context was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when this Context was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + * + * + *
+     * Output only. Timestamp when this Context was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp when this Context was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this Context was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this Context was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this Context was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this Context was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this Context was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp when this Context was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.LazyStringList parentContexts_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureParentContextsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + parentContexts_ = new com.google.protobuf.LazyStringArrayList(parentContexts_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Output only. A list of resource names of Contexts that are parents of this Context.
+     * A Context may have at most 10 parent_contexts.
+     * 
+ * + * + * repeated string parent_contexts = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the parentContexts. + */ + public com.google.protobuf.ProtocolStringList getParentContextsList() { + return parentContexts_.getUnmodifiableView(); + } + /** + * + * + *
+     * Output only. A list of resource names of Contexts that are parents of this Context.
+     * A Context may have at most 10 parent_contexts.
+     * 
+ * + * + * repeated string parent_contexts = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of parentContexts. + */ + public int getParentContextsCount() { + return parentContexts_.size(); + } + /** + * + * + *
+     * Output only. A list of resource names of Contexts that are parents of this Context.
+     * A Context may have at most 10 parent_contexts.
+     * 
+ * + * + * repeated string parent_contexts = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The parentContexts at the given index. + */ + public java.lang.String getParentContexts(int index) { + return parentContexts_.get(index); + } + /** + * + * + *
+     * Output only. A list of resource names of Contexts that are parents of this Context.
+     * A Context may have at most 10 parent_contexts.
+     * 
+ * + * + * repeated string parent_contexts = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the parentContexts at the given index. + */ + public com.google.protobuf.ByteString getParentContextsBytes(int index) { + return parentContexts_.getByteString(index); + } + /** + * + * + *
+     * Output only. A list of resource names of Contexts that are parents of this Context.
+     * A Context may have at most 10 parent_contexts.
+     * 
+ * + * + * repeated string parent_contexts = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The parentContexts to set. + * @return This builder for chaining. + */ + public Builder setParentContexts(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureParentContextsIsMutable(); + parentContexts_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. A list of resource names of Contexts that are parents of this Context.
+     * A Context may have at most 10 parent_contexts.
+     * 
+ * + * + * repeated string parent_contexts = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The parentContexts to add. + * @return This builder for chaining. + */ + public Builder addParentContexts(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureParentContextsIsMutable(); + parentContexts_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. A list of resource names of Contexts that are parents of this Context.
+     * A Context may have at most 10 parent_contexts.
+     * 
+ * + * + * repeated string parent_contexts = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param values The parentContexts to add. + * @return This builder for chaining. + */ + public Builder addAllParentContexts(java.lang.Iterable values) { + ensureParentContextsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parentContexts_); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. A list of resource names of Contexts that are parents of this Context.
+     * A Context may have at most 10 parent_contexts.
+     * 
+ * + * + * repeated string parent_contexts = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParentContexts() { + parentContexts_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. A list of resource names of Contexts that are parents of this Context.
+     * A Context may have at most 10 parent_contexts.
+     * 
+ * + * + * repeated string parent_contexts = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the parentContexts to add. + * @return This builder for chaining. + */ + public Builder addParentContextsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureParentContextsIsMutable(); + parentContexts_.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.Context) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.Context) + private static final com.google.cloud.aiplatform.v1.Context DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.Context(); + } + + public static com.google.cloud.aiplatform.v1.Context getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Context parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Context(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.Context getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContextOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContextOrBuilder.java new file mode 100644 index 000000000..4b14f57a1 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContextOrBuilder.java @@ -0,0 +1,322 @@ +/* + * 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/context.proto + +package com.google.cloud.aiplatform.v1; + +public interface ContextOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.Context) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name of the Context.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name of the Context.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * User provided display name of the Context.
+   * May be up to 128 Unicode characters.
+   * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * User provided display name of the Context.
+   * May be up to 128 Unicode characters.
+   * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * An eTag used to perform consistent read-modify-write updates. If not set, a
+   * blind "overwrite" update happens.
+   * 
+ * + * string etag = 8; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * An eTag used to perform consistent read-modify-write updates. If not set, a
+   * blind "overwrite" update happens.
+   * 
+ * + * string etag = 8; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * The labels with user-defined metadata to organize your Contexts.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * No more than 64 user labels can be associated with one Context (System
+   * labels are excluded).
+   * 
+ * + * map<string, string> labels = 9; + */ + int getLabelsCount(); + /** + * + * + *
+   * The labels with user-defined metadata to organize your Contexts.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * No more than 64 user labels can be associated with one Context (System
+   * labels are excluded).
+   * 
+ * + * map<string, string> labels = 9; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * The labels with user-defined metadata to organize your Contexts.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * No more than 64 user labels can be associated with one Context (System
+   * labels are excluded).
+   * 
+ * + * map<string, string> labels = 9; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * The labels with user-defined metadata to organize your Contexts.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * No more than 64 user labels can be associated with one Context (System
+   * labels are excluded).
+   * 
+ * + * map<string, string> labels = 9; + */ + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * The labels with user-defined metadata to organize your Contexts.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * No more than 64 user labels can be associated with one Context (System
+   * labels are excluded).
+   * 
+ * + * map<string, string> labels = 9; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. Timestamp when this Context was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this Context was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this Context was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when this Context was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this Context was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this Context was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. A list of resource names of Contexts that are parents of this Context.
+   * A Context may have at most 10 parent_contexts.
+   * 
+ * + * + * repeated string parent_contexts = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the parentContexts. + */ + java.util.List getParentContextsList(); + /** + * + * + *
+   * Output only. A list of resource names of Contexts that are parents of this Context.
+   * A Context may have at most 10 parent_contexts.
+   * 
+ * + * + * repeated string parent_contexts = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of parentContexts. + */ + int getParentContextsCount(); + /** + * + * + *
+   * Output only. A list of resource names of Contexts that are parents of this Context.
+   * A Context may have at most 10 parent_contexts.
+   * 
+ * + * + * repeated string parent_contexts = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The parentContexts at the given index. + */ + java.lang.String getParentContexts(int index); + /** + * + * + *
+   * Output only. A list of resource names of Contexts that are parents of this Context.
+   * A Context may have at most 10 parent_contexts.
+   * 
+ * + * + * repeated string parent_contexts = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the parentContexts at the given index. + */ + com.google.protobuf.ByteString getParentContextsBytes(int index); +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContextProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContextProto.java new file mode 100644 index 000000000..75103f849 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContextProto.java @@ -0,0 +1,116 @@ +/* + * 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/context.proto + +package com.google.cloud.aiplatform.v1; + +public final class ContextProto { + private ContextProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_Context_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_Context_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_Context_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_Context_LabelsEntry_fieldAccessorTable; + + 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/v1/context.pro" + + "to\022\032google.cloud.aiplatform.v1\032\037google/a" + + "pi/field_behavior.proto\032\031google/api/reso" + + "urce.proto\032&google/cloud/aiplatform/v1/v" + + "alue.proto\032\034google/protobuf/struct.proto" + + "\032\037google/protobuf/timestamp.proto\032\034googl" + + "e/api/annotations.proto\"\345\003\n\007Context\022\021\n\004n" + + "ame\030\001 \001(\tB\003\340A\003\022\024\n\014display_name\030\002 \001(\t\022\014\n\004" + + "etag\030\010 \001(\t\022?\n\006labels\030\t \003(\0132/.google.clou" + + "d.aiplatform.v1.Context.LabelsEntry\0224\n\013c" + + "reate_time\030\n \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\0224\n\013update_time\030\013 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\022B\n\017parent_contex" + + "ts\030\014 \003(\tB)\340A\003\372A#\n!aiplatform.googleapis." + + "com/Context\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001:\202\001\352A\177\n!aiplatform.goo" + + "gleapis.com/Context\022Zprojects/{project}/" + + "locations/{location}/metadataStores/{met" + + "adata_store}/contexts/{context}B\320\001\n\036com." + + "google.cloud.aiplatform.v1B\014ContextProto" + + "P\001ZDgoogle.golang.org/genproto/googleapi" + + "s/cloud/aiplatform/v1;aiplatform\252\002\032Googl" + + "e.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AIP" + + "latform\\V1\352\002\035Google::Cloud::AIPlatform::" + + "V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.aiplatform.v1.ValueProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1_Context_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1_Context_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_Context_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "Etag", "Labels", "CreateTime", "UpdateTime", "ParentContexts", + }); + internal_static_google_cloud_aiplatform_v1_Context_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1_Context_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_aiplatform_v1_Context_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_Context_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1.ValueProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreatePipelineJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreatePipelineJobRequest.java new file mode 100644 index 000000000..366193065 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreatePipelineJobRequest.java @@ -0,0 +1,1167 @@ +/* + * 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_service.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for [PipelineService.CreatePipelineJob][google.cloud.aiplatform.v1.PipelineService.CreatePipelineJob].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CreatePipelineJobRequest} + */ +public final class CreatePipelineJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.CreatePipelineJobRequest) + CreatePipelineJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreatePipelineJobRequest.newBuilder() to construct. + private CreatePipelineJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreatePipelineJobRequest() { + parent_ = ""; + pipelineJobId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreatePipelineJobRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreatePipelineJobRequest( + 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(); + + parent_ = s; + break; + } + case 18: + { + com.google.cloud.aiplatform.v1.PipelineJob.Builder subBuilder = null; + if (pipelineJob_ != null) { + subBuilder = pipelineJob_.toBuilder(); + } + pipelineJob_ = + input.readMessage( + com.google.cloud.aiplatform.v1.PipelineJob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pipelineJob_); + pipelineJob_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pipelineJobId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_CreatePipelineJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_CreatePipelineJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CreatePipelineJobRequest.class, + com.google.cloud.aiplatform.v1.CreatePipelineJobRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the Location to create the PipelineJob in.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the Location to create the PipelineJob in.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PIPELINE_JOB_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1.PipelineJob pipelineJob_; + /** + * + * + *
+   * Required. The PipelineJob to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineJob pipeline_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the pipelineJob field is set. + */ + @java.lang.Override + public boolean hasPipelineJob() { + return pipelineJob_ != null; + } + /** + * + * + *
+   * Required. The PipelineJob to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineJob pipeline_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The pipelineJob. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineJob getPipelineJob() { + return pipelineJob_ == null + ? com.google.cloud.aiplatform.v1.PipelineJob.getDefaultInstance() + : pipelineJob_; + } + /** + * + * + *
+   * Required. The PipelineJob to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineJob pipeline_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineJobOrBuilder getPipelineJobOrBuilder() { + return getPipelineJob(); + } + + public static final int PIPELINE_JOB_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object pipelineJobId_; + /** + * + * + *
+   * The ID to use for the PipelineJob, which will become the final component of
+   * the PipelineJob name. If not provided, an ID will be automatically
+   * generated.
+   * This value should be less than 128 characters, and valid characters
+   * are /[a-z][0-9]-/.
+   * 
+ * + * string pipeline_job_id = 3; + * + * @return The pipelineJobId. + */ + @java.lang.Override + public java.lang.String getPipelineJobId() { + java.lang.Object ref = pipelineJobId_; + 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(); + pipelineJobId_ = s; + return s; + } + } + /** + * + * + *
+   * The ID to use for the PipelineJob, which will become the final component of
+   * the PipelineJob name. If not provided, an ID will be automatically
+   * generated.
+   * This value should be less than 128 characters, and valid characters
+   * are /[a-z][0-9]-/.
+   * 
+ * + * string pipeline_job_id = 3; + * + * @return The bytes for pipelineJobId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPipelineJobIdBytes() { + java.lang.Object ref = pipelineJobId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pipelineJobId_ = 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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pipelineJob_ != null) { + output.writeMessage(2, getPipelineJob()); + } + if (!getPipelineJobIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pipelineJobId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pipelineJob_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPipelineJob()); + } + if (!getPipelineJobIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pipelineJobId_); + } + 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.CreatePipelineJobRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.CreatePipelineJobRequest other = + (com.google.cloud.aiplatform.v1.CreatePipelineJobRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasPipelineJob() != other.hasPipelineJob()) return false; + if (hasPipelineJob()) { + if (!getPipelineJob().equals(other.getPipelineJob())) return false; + } + if (!getPipelineJobId().equals(other.getPipelineJobId())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasPipelineJob()) { + hash = (37 * hash) + PIPELINE_JOB_FIELD_NUMBER; + hash = (53 * hash) + getPipelineJob().hashCode(); + } + hash = (37 * hash) + PIPELINE_JOB_ID_FIELD_NUMBER; + hash = (53 * hash) + getPipelineJobId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.CreatePipelineJobRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CreatePipelineJobRequest 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.CreatePipelineJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CreatePipelineJobRequest 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.CreatePipelineJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CreatePipelineJobRequest 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.CreatePipelineJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CreatePipelineJobRequest 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.CreatePipelineJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CreatePipelineJobRequest 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.CreatePipelineJobRequest 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.CreatePipelineJobRequest 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.CreatePipelineJobRequest 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 [PipelineService.CreatePipelineJob][google.cloud.aiplatform.v1.PipelineService.CreatePipelineJob].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CreatePipelineJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.CreatePipelineJobRequest) + com.google.cloud.aiplatform.v1.CreatePipelineJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_CreatePipelineJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_CreatePipelineJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CreatePipelineJobRequest.class, + com.google.cloud.aiplatform.v1.CreatePipelineJobRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.CreatePipelineJobRequest.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(); + parent_ = ""; + + if (pipelineJobBuilder_ == null) { + pipelineJob_ = null; + } else { + pipelineJob_ = null; + pipelineJobBuilder_ = null; + } + pipelineJobId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_CreatePipelineJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreatePipelineJobRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.CreatePipelineJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreatePipelineJobRequest build() { + com.google.cloud.aiplatform.v1.CreatePipelineJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreatePipelineJobRequest buildPartial() { + com.google.cloud.aiplatform.v1.CreatePipelineJobRequest result = + new com.google.cloud.aiplatform.v1.CreatePipelineJobRequest(this); + result.parent_ = parent_; + if (pipelineJobBuilder_ == null) { + result.pipelineJob_ = pipelineJob_; + } else { + result.pipelineJob_ = pipelineJobBuilder_.build(); + } + result.pipelineJobId_ = pipelineJobId_; + 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.CreatePipelineJobRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.CreatePipelineJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreatePipelineJobRequest other) { + if (other == com.google.cloud.aiplatform.v1.CreatePipelineJobRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasPipelineJob()) { + mergePipelineJob(other.getPipelineJob()); + } + if (!other.getPipelineJobId().isEmpty()) { + pipelineJobId_ = other.pipelineJobId_; + 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.CreatePipelineJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1.CreatePipelineJobRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the Location to create the PipelineJob in.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Location to create the PipelineJob in.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Location to create the PipelineJob in.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Location to create the PipelineJob in.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Location to create the PipelineJob in.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1.PipelineJob pipelineJob_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineJob, + com.google.cloud.aiplatform.v1.PipelineJob.Builder, + com.google.cloud.aiplatform.v1.PipelineJobOrBuilder> + pipelineJobBuilder_; + /** + * + * + *
+     * Required. The PipelineJob to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineJob pipeline_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the pipelineJob field is set. + */ + public boolean hasPipelineJob() { + return pipelineJobBuilder_ != null || pipelineJob_ != null; + } + /** + * + * + *
+     * Required. The PipelineJob to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineJob pipeline_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The pipelineJob. + */ + public com.google.cloud.aiplatform.v1.PipelineJob getPipelineJob() { + if (pipelineJobBuilder_ == null) { + return pipelineJob_ == null + ? com.google.cloud.aiplatform.v1.PipelineJob.getDefaultInstance() + : pipelineJob_; + } else { + return pipelineJobBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The PipelineJob to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineJob pipeline_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPipelineJob(com.google.cloud.aiplatform.v1.PipelineJob value) { + if (pipelineJobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pipelineJob_ = value; + onChanged(); + } else { + pipelineJobBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The PipelineJob to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineJob pipeline_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPipelineJob( + com.google.cloud.aiplatform.v1.PipelineJob.Builder builderForValue) { + if (pipelineJobBuilder_ == null) { + pipelineJob_ = builderForValue.build(); + onChanged(); + } else { + pipelineJobBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The PipelineJob to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineJob pipeline_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePipelineJob(com.google.cloud.aiplatform.v1.PipelineJob value) { + if (pipelineJobBuilder_ == null) { + if (pipelineJob_ != null) { + pipelineJob_ = + com.google.cloud.aiplatform.v1.PipelineJob.newBuilder(pipelineJob_) + .mergeFrom(value) + .buildPartial(); + } else { + pipelineJob_ = value; + } + onChanged(); + } else { + pipelineJobBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The PipelineJob to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineJob pipeline_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPipelineJob() { + if (pipelineJobBuilder_ == null) { + pipelineJob_ = null; + onChanged(); + } else { + pipelineJob_ = null; + pipelineJobBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The PipelineJob to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineJob pipeline_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.PipelineJob.Builder getPipelineJobBuilder() { + + onChanged(); + return getPipelineJobFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The PipelineJob to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineJob pipeline_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.PipelineJobOrBuilder getPipelineJobOrBuilder() { + if (pipelineJobBuilder_ != null) { + return pipelineJobBuilder_.getMessageOrBuilder(); + } else { + return pipelineJob_ == null + ? com.google.cloud.aiplatform.v1.PipelineJob.getDefaultInstance() + : pipelineJob_; + } + } + /** + * + * + *
+     * Required. The PipelineJob to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineJob pipeline_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineJob, + com.google.cloud.aiplatform.v1.PipelineJob.Builder, + com.google.cloud.aiplatform.v1.PipelineJobOrBuilder> + getPipelineJobFieldBuilder() { + if (pipelineJobBuilder_ == null) { + pipelineJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineJob, + com.google.cloud.aiplatform.v1.PipelineJob.Builder, + com.google.cloud.aiplatform.v1.PipelineJobOrBuilder>( + getPipelineJob(), getParentForChildren(), isClean()); + pipelineJob_ = null; + } + return pipelineJobBuilder_; + } + + private java.lang.Object pipelineJobId_ = ""; + /** + * + * + *
+     * The ID to use for the PipelineJob, which will become the final component of
+     * the PipelineJob name. If not provided, an ID will be automatically
+     * generated.
+     * This value should be less than 128 characters, and valid characters
+     * are /[a-z][0-9]-/.
+     * 
+ * + * string pipeline_job_id = 3; + * + * @return The pipelineJobId. + */ + public java.lang.String getPipelineJobId() { + java.lang.Object ref = pipelineJobId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pipelineJobId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The ID to use for the PipelineJob, which will become the final component of
+     * the PipelineJob name. If not provided, an ID will be automatically
+     * generated.
+     * This value should be less than 128 characters, and valid characters
+     * are /[a-z][0-9]-/.
+     * 
+ * + * string pipeline_job_id = 3; + * + * @return The bytes for pipelineJobId. + */ + public com.google.protobuf.ByteString getPipelineJobIdBytes() { + java.lang.Object ref = pipelineJobId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pipelineJobId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The ID to use for the PipelineJob, which will become the final component of
+     * the PipelineJob name. If not provided, an ID will be automatically
+     * generated.
+     * This value should be less than 128 characters, and valid characters
+     * are /[a-z][0-9]-/.
+     * 
+ * + * string pipeline_job_id = 3; + * + * @param value The pipelineJobId to set. + * @return This builder for chaining. + */ + public Builder setPipelineJobId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pipelineJobId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The ID to use for the PipelineJob, which will become the final component of
+     * the PipelineJob name. If not provided, an ID will be automatically
+     * generated.
+     * This value should be less than 128 characters, and valid characters
+     * are /[a-z][0-9]-/.
+     * 
+ * + * string pipeline_job_id = 3; + * + * @return This builder for chaining. + */ + public Builder clearPipelineJobId() { + + pipelineJobId_ = getDefaultInstance().getPipelineJobId(); + onChanged(); + return this; + } + /** + * + * + *
+     * The ID to use for the PipelineJob, which will become the final component of
+     * the PipelineJob name. If not provided, an ID will be automatically
+     * generated.
+     * This value should be less than 128 characters, and valid characters
+     * are /[a-z][0-9]-/.
+     * 
+ * + * string pipeline_job_id = 3; + * + * @param value The bytes for pipelineJobId to set. + * @return This builder for chaining. + */ + public Builder setPipelineJobIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pipelineJobId_ = 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.CreatePipelineJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.CreatePipelineJobRequest) + private static final com.google.cloud.aiplatform.v1.CreatePipelineJobRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.CreatePipelineJobRequest(); + } + + public static com.google.cloud.aiplatform.v1.CreatePipelineJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePipelineJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreatePipelineJobRequest(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.CreatePipelineJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreatePipelineJobRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreatePipelineJobRequestOrBuilder.java new file mode 100644 index 000000000..a9b14ce26 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreatePipelineJobRequestOrBuilder.java @@ -0,0 +1,130 @@ +/* + * 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_service.proto + +package com.google.cloud.aiplatform.v1; + +public interface CreatePipelineJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.CreatePipelineJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Location to create the PipelineJob in.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the Location to create the PipelineJob in.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The PipelineJob to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineJob pipeline_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the pipelineJob field is set. + */ + boolean hasPipelineJob(); + /** + * + * + *
+   * Required. The PipelineJob to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineJob pipeline_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The pipelineJob. + */ + com.google.cloud.aiplatform.v1.PipelineJob getPipelineJob(); + /** + * + * + *
+   * Required. The PipelineJob to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineJob pipeline_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.PipelineJobOrBuilder getPipelineJobOrBuilder(); + + /** + * + * + *
+   * The ID to use for the PipelineJob, which will become the final component of
+   * the PipelineJob name. If not provided, an ID will be automatically
+   * generated.
+   * This value should be less than 128 characters, and valid characters
+   * are /[a-z][0-9]-/.
+   * 
+ * + * string pipeline_job_id = 3; + * + * @return The pipelineJobId. + */ + java.lang.String getPipelineJobId(); + /** + * + * + *
+   * The ID to use for the PipelineJob, which will become the final component of
+   * the PipelineJob name. If not provided, an ID will be automatically
+   * generated.
+   * This value should be less than 128 characters, and valid characters
+   * are /[a-z][0-9]-/.
+   * 
+ * + * string pipeline_job_id = 3; + * + * @return The bytes for pipelineJobId. + */ + com.google.protobuf.ByteString getPipelineJobIdBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobProto.java index f1b25c467..beb5a9051 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobProto.java @@ -94,35 +94,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\n\005value\030\002 \001(\t:\0028\001:i\352Af\n#aiplatform.googl" + "eapis.com/CustomJob\022?projects/{project}/" + "locations/{location}/customJobs/{custom_" - + "job}\"\214\002\n\rCustomJobSpec\022J\n\021worker_pool_sp" + + "job}\"\261\002\n\rCustomJobSpec\022J\n\021worker_pool_sp" + "ecs\030\001 \003(\0132*.google.cloud.aiplatform.v1.W" + "orkerPoolSpecB\003\340A\002\022:\n\nscheduling\030\003 \001(\0132&" + ".google.cloud.aiplatform.v1.Scheduling\022\027" - + "\n\017service_account\030\004 \001(\t\022\017\n\007network\030\005 \001(\t" - + "\022I\n\025base_output_directory\030\006 \001(\0132*.google" - + ".cloud.aiplatform.v1.GcsDestination\"\307\002\n\016" - + "WorkerPoolSpec\022C\n\016container_spec\030\006 \001(\0132)" - + ".google.cloud.aiplatform.v1.ContainerSpe" - + "cH\000\022L\n\023python_package_spec\030\007 \001(\0132-.googl" - + "e.cloud.aiplatform.v1.PythonPackageSpecH" - + "\000\022E\n\014machine_spec\030\001 \001(\0132\'.google.cloud.a" - + "iplatform.v1.MachineSpecB\006\340A\001\340A\005\022\032\n\rrepl" - + "ica_count\030\002 \001(\003B\003\340A\001\0227\n\tdisk_spec\030\005 \001(\0132" - + "$.google.cloud.aiplatform.v1.DiskSpecB\006\n" - + "\004task\"w\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\022/\n" - + "\003env\030\004 \003(\0132\".google.cloud.aiplatform.v1." - + "EnvVar\"\252\001\n\021PythonPackageSpec\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\rpython_module\030\003 \001(\tB\003\340A\002\022\014\n\004" - + "args\030\004 \003(\t\022/\n\003env\030\005 \003(\0132\".google.cloud.a" - + "iplatform.v1.EnvVar\"_\n\nScheduling\022*\n\007tim" - + "eout\030\001 \001(\0132\031.google.protobuf.Duration\022%\n" - + "\035restart_job_on_worker_restart\030\003 \001(\010Bx\n\036" - + "com.google.cloud.aiplatform.v1B\016CustomJo" - + "bProtoP\001ZDgoogle.golang.org/genproto/goo" - + "gleapis/cloud/aiplatform/v1;aiplatformb\006" - + "proto3" + + "\n\017service_account\030\004 \001(\t\0224\n\007network\030\005 \001(\t" + + "B#\372A \n\036compute.googleapis.com/Network\022I\n" + + "\025base_output_directory\030\006 \001(\0132*.google.cl" + + "oud.aiplatform.v1.GcsDestination\"\307\002\n\016Wor" + + "kerPoolSpec\022C\n\016container_spec\030\006 \001(\0132).go" + + "ogle.cloud.aiplatform.v1.ContainerSpecH\000" + + "\022L\n\023python_package_spec\030\007 \001(\0132-.google.c" + + "loud.aiplatform.v1.PythonPackageSpecH\000\022E" + + "\n\014machine_spec\030\001 \001(\0132\'.google.cloud.aipl" + + "atform.v1.MachineSpecB\006\340A\001\340A\005\022\032\n\rreplica" + + "_count\030\002 \001(\003B\003\340A\001\0227\n\tdisk_spec\030\005 \001(\0132$.g" + + "oogle.cloud.aiplatform.v1.DiskSpecB\006\n\004ta" + + "sk\"w\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\022/\n\003en" + + "v\030\004 \003(\0132\".google.cloud.aiplatform.v1.Env" + + "Var\"\252\001\n\021PythonPackageSpec\022\037\n\022executor_im" + + "age_uri\030\001 \001(\tB\003\340A\002\022\031\n\014package_uris\030\002 \003(\t" + + "B\003\340A\002\022\032\n\rpython_module\030\003 \001(\tB\003\340A\002\022\014\n\004arg" + + "s\030\004 \003(\t\022/\n\003env\030\005 \003(\0132\".google.cloud.aipl" + + "atform.v1.EnvVar\"_\n\nScheduling\022*\n\007timeou" + + "t\030\001 \001(\0132\031.google.protobuf.Duration\022%\n\035re" + + "start_job_on_worker_restart\030\003 \001(\010B\322\001\n\036co" + + "m.google.cloud.aiplatform.v1B\016CustomJobP" + + "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( @@ -215,6 +218,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpec.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpec.java index dddd291bd..e706fbccf 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpec.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpec.java @@ -380,7 +380,7 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * unspecified, the job is not peered with any network. * * - * string network = 5; + * string network = 5 [(.google.api.resource_reference) = { ... } * * @return The network. */ @@ -411,7 +411,7 @@ public java.lang.String getNetwork() { * unspecified, the job is not peered with any network. * * - * string network = 5; + * string network = 5 [(.google.api.resource_reference) = { ... } * * @return The bytes for network. */ @@ -1727,7 +1727,7 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { * unspecified, the job is not peered with any network. * * - * string network = 5; + * string network = 5 [(.google.api.resource_reference) = { ... } * * @return The network. */ @@ -1757,7 +1757,7 @@ public java.lang.String getNetwork() { * unspecified, the job is not peered with any network. * * - * string network = 5; + * string network = 5 [(.google.api.resource_reference) = { ... } * * @return The bytes for network. */ @@ -1787,7 +1787,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { * unspecified, the job is not peered with any network. * * - * string network = 5; + * string network = 5 [(.google.api.resource_reference) = { ... } * * @param value The network to set. * @return This builder for chaining. @@ -1816,7 +1816,7 @@ public Builder setNetwork(java.lang.String value) { * unspecified, the job is not peered with any network. * * - * string network = 5; + * string network = 5 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ @@ -1841,7 +1841,7 @@ public Builder clearNetwork() { * unspecified, the job is not peered with any network. * * - * string network = 5; + * string network = 5 [(.google.api.resource_reference) = { ... } * * @param value The bytes for network to set. * @return This builder for chaining. diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpecOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpecOrBuilder.java index b81b3cca3..e9cae5505 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpecOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpecOrBuilder.java @@ -178,7 +178,7 @@ public interface CustomJobSpecOrBuilder * unspecified, the job is not peered with any network. * * - * string network = 5; + * string network = 5 [(.google.api.resource_reference) = { ... } * * @return The network. */ @@ -198,7 +198,7 @@ public interface CustomJobSpecOrBuilder * unspecified, the job is not peered with any network. * * - * string network = 5; + * string network = 5 [(.google.api.resource_reference) = { ... } * * @return The bytes for network. */ diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemProto.java index 83c0574b1..acd0eaddf 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemProto.java @@ -60,10 +60,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:y\352Av\n\"aipla" + "tform.googleapis.com/DataItem\022Pprojects/" + "{project}/locations/{location}/datasets/" - + "{dataset}/dataItems/{data_item}Bw\n\036com.g" - + "oogle.cloud.aiplatform.v1B\rDataItemProto" - + "P\001ZDgoogle.golang.org/genproto/googleapi" - + "s/cloud/aiplatform/v1;aiplatformb\006proto3" + + "{dataset}/dataItems/{data_item}B\321\001\n\036com." + + "google.cloud.aiplatform.v1B\rDataItemProt" + + "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( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobProto.java index 1b8df1f4c..1b674d1d6 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobProto.java @@ -115,10 +115,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ECIFIED\020\000\022\017\n\013UNCERTAINTY\020\001B\033\n\031initial_ba" + "tch_sample_sizeB\035\n\033following_batch_sampl" + "e_size\"6\n\016TrainingConfig\022$\n\034timeout_trai" - + "ning_milli_hours\030\001 \001(\003B~\n\036com.google.clo" - + "ud.aiplatform.v1B\024DataLabelingJobProtoP\001" - + "ZDgoogle.golang.org/genproto/googleapis/" - + "cloud/aiplatform/v1;aiplatformb\006proto3" + + "ning_milli_hours\030\001 \001(\003B\330\001\n\036com.google.cl" + + "oud.aiplatform.v1B\024DataLabelingJobProtoP" + + "\001ZDgoogle.golang.org/genproto/googleapis" + + "/cloud/aiplatform/v1;aiplatform\252\002\032Google" + + ".Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPl" + + "atform\\V1\352\002\035Google::Cloud::AIPlatform::V" + + "1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetProto.java index d95aa6499..c18e9236e 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetProto.java @@ -87,10 +87,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "rce\"\204\001\n\020ExportDataConfig\022E\n\017gcs_destinat" + "ion\030\001 \001(\0132*.google.cloud.aiplatform.v1.G" + "csDestinationH\000\022\032\n\022annotations_filter\030\002 " - + "\001(\tB\r\n\013destinationBv\n\036com.google.cloud.a" - + "iplatform.v1B\014DatasetProtoP\001ZDgoogle.gol" - + "ang.org/genproto/googleapis/cloud/aiplat" - + "form/v1;aiplatformb\006proto3" + + "\001(\tB\r\n\013destinationB\320\001\n\036com.google.cloud." + + "aiplatform.v1B\014DatasetProtoP\001ZDgoogle.go" + + "lang.org/genproto/googleapis/cloud/aipla" + + "tform/v1;aiplatform\252\002\032Google.Cloud.AIPla" + + "tform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035" + + "Google::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceProto.java index 9658852b1..851264d91 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceProto.java @@ -232,11 +232,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "t=projects/*/locations/*/datasets/*/data" + "Items/*}/annotations\332A\006parent\032M\312A\031aiplat" + "form.googleapis.com\322A.https://www.google" - + "apis.com/auth/cloud-platformB}\n\036com.goog" - + "le.cloud.aiplatform.v1B\023DatasetServicePr" - + "otoP\001ZDgoogle.golang.org/genproto/google" - + "apis/cloud/aiplatform/v1;aiplatformb\006pro" - + "to3" + + "apis.com/auth/cloud-platformB\327\001\n\036com.goo" + + "gle.cloud.aiplatform.v1B\023DatasetServiceP" + + "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( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DedicatedResources.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DedicatedResources.java index 4c4a91739..7a00c5290 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DedicatedResources.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DedicatedResources.java @@ -38,7 +38,9 @@ private DedicatedResources(com.google.protobuf.GeneratedMessageV3.Builder bui super(builder); } - private DedicatedResources() {} + private DedicatedResources() { + autoscalingMetricSpecs_ = java.util.Collections.emptyList(); + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -59,6 +61,7 @@ private DedicatedResources( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -95,6 +98,19 @@ private DedicatedResources( maxReplicaCount_ = input.readInt32(); break; } + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + autoscalingMetricSpecs_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + autoscalingMetricSpecs_.add( + input.readMessage( + com.google.cloud.aiplatform.v1.AutoscalingMetricSpec.parser(), + extensionRegistry)); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -109,6 +125,9 @@ private DedicatedResources( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + autoscalingMetricSpecs_ = java.util.Collections.unmodifiableList(autoscalingMetricSpecs_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -190,12 +209,10 @@ public com.google.cloud.aiplatform.v1.MachineSpecOrBuilder getMachineSpecOrBuild * *
    * Required. Immutable. The minimum number of machine replicas this DeployedModel will be always
-   * deployed on. If traffic against it increases, it may dynamically be
+   * deployed on. This value must be greater than or equal to 1.
+   * If traffic against the DeployedModel increases, it may dynamically be
    * deployed onto more replicas, and as traffic decreases, some of these extra
    * replicas may be freed.
-   * Note: if [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
-   * above 0, currently the model will be always deployed precisely on
-   * [min_replica_count][google.cloud.aiplatform.v1.DedicatedResources.min_replica_count].
    * 
* * @@ -234,6 +251,168 @@ public int getMaxReplicaCount() { return maxReplicaCount_; } + public static final int AUTOSCALING_METRIC_SPECS_FIELD_NUMBER = 4; + private java.util.List + autoscalingMetricSpecs_; + /** + * + * + *
+   * Immutable. The metric specifications that overrides a resource
+   * utilization metric (CPU utilization, accelerator's duty cycle, and so on)
+   * target value (default to 60 if not set). At most one entry is allowed per
+   * metric.
+   * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+   * above 0, the autoscaling will be based on both CPU utilization and
+   * accelerator's duty cycle metrics and scale up when either metrics exceeds
+   * its target value while scale down if both metrics are under their target
+   * value. The default target value is 60 for both metrics.
+   * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+   * 0, the autoscaling will be based on CPU utilization metric only with
+   * default target value 60 if not explicitly set.
+   * For example, in the case of Online Prediction, if you want to override
+   * target CPU utilization to 80, you should set
+   * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name]
+   * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+   * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] to `80`.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public java.util.List + getAutoscalingMetricSpecsList() { + return autoscalingMetricSpecs_; + } + /** + * + * + *
+   * Immutable. The metric specifications that overrides a resource
+   * utilization metric (CPU utilization, accelerator's duty cycle, and so on)
+   * target value (default to 60 if not set). At most one entry is allowed per
+   * metric.
+   * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+   * above 0, the autoscaling will be based on both CPU utilization and
+   * accelerator's duty cycle metrics and scale up when either metrics exceeds
+   * its target value while scale down if both metrics are under their target
+   * value. The default target value is 60 for both metrics.
+   * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+   * 0, the autoscaling will be based on CPU utilization metric only with
+   * default target value 60 if not explicitly set.
+   * For example, in the case of Online Prediction, if you want to override
+   * target CPU utilization to 80, you should set
+   * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name]
+   * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+   * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] to `80`.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public java.util.List + getAutoscalingMetricSpecsOrBuilderList() { + return autoscalingMetricSpecs_; + } + /** + * + * + *
+   * Immutable. The metric specifications that overrides a resource
+   * utilization metric (CPU utilization, accelerator's duty cycle, and so on)
+   * target value (default to 60 if not set). At most one entry is allowed per
+   * metric.
+   * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+   * above 0, the autoscaling will be based on both CPU utilization and
+   * accelerator's duty cycle metrics and scale up when either metrics exceeds
+   * its target value while scale down if both metrics are under their target
+   * value. The default target value is 60 for both metrics.
+   * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+   * 0, the autoscaling will be based on CPU utilization metric only with
+   * default target value 60 if not explicitly set.
+   * For example, in the case of Online Prediction, if you want to override
+   * target CPU utilization to 80, you should set
+   * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name]
+   * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+   * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] to `80`.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public int getAutoscalingMetricSpecsCount() { + return autoscalingMetricSpecs_.size(); + } + /** + * + * + *
+   * Immutable. The metric specifications that overrides a resource
+   * utilization metric (CPU utilization, accelerator's duty cycle, and so on)
+   * target value (default to 60 if not set). At most one entry is allowed per
+   * metric.
+   * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+   * above 0, the autoscaling will be based on both CPU utilization and
+   * accelerator's duty cycle metrics and scale up when either metrics exceeds
+   * its target value while scale down if both metrics are under their target
+   * value. The default target value is 60 for both metrics.
+   * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+   * 0, the autoscaling will be based on CPU utilization metric only with
+   * default target value 60 if not explicitly set.
+   * For example, in the case of Online Prediction, if you want to override
+   * target CPU utilization to 80, you should set
+   * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name]
+   * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+   * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] to `80`.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.AutoscalingMetricSpec getAutoscalingMetricSpecs(int index) { + return autoscalingMetricSpecs_.get(index); + } + /** + * + * + *
+   * Immutable. The metric specifications that overrides a resource
+   * utilization metric (CPU utilization, accelerator's duty cycle, and so on)
+   * target value (default to 60 if not set). At most one entry is allowed per
+   * metric.
+   * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+   * above 0, the autoscaling will be based on both CPU utilization and
+   * accelerator's duty cycle metrics and scale up when either metrics exceeds
+   * its target value while scale down if both metrics are under their target
+   * value. The default target value is 60 for both metrics.
+   * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+   * 0, the autoscaling will be based on CPU utilization metric only with
+   * default target value 60 if not explicitly set.
+   * For example, in the case of Online Prediction, if you want to override
+   * target CPU utilization to 80, you should set
+   * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name]
+   * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+   * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] to `80`.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.AutoscalingMetricSpecOrBuilder + getAutoscalingMetricSpecsOrBuilder(int index) { + return autoscalingMetricSpecs_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -257,6 +436,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (maxReplicaCount_ != 0) { output.writeInt32(3, maxReplicaCount_); } + for (int i = 0; i < autoscalingMetricSpecs_.size(); i++) { + output.writeMessage(4, autoscalingMetricSpecs_.get(i)); + } unknownFields.writeTo(output); } @@ -275,6 +457,11 @@ public int getSerializedSize() { if (maxReplicaCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxReplicaCount_); } + for (int i = 0; i < autoscalingMetricSpecs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, autoscalingMetricSpecs_.get(i)); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -297,6 +484,8 @@ public boolean equals(final java.lang.Object obj) { } if (getMinReplicaCount() != other.getMinReplicaCount()) return false; if (getMaxReplicaCount() != other.getMaxReplicaCount()) return false; + if (!getAutoscalingMetricSpecsList().equals(other.getAutoscalingMetricSpecsList())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -316,6 +505,10 @@ public int hashCode() { hash = (53 * hash) + getMinReplicaCount(); hash = (37 * hash) + MAX_REPLICA_COUNT_FIELD_NUMBER; hash = (53 * hash) + getMaxReplicaCount(); + if (getAutoscalingMetricSpecsCount() > 0) { + hash = (37 * hash) + AUTOSCALING_METRIC_SPECS_FIELD_NUMBER; + hash = (53 * hash) + getAutoscalingMetricSpecsList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -456,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) { + getAutoscalingMetricSpecsFieldBuilder(); + } } @java.lang.Override @@ -472,6 +667,12 @@ public Builder clear() { maxReplicaCount_ = 0; + if (autoscalingMetricSpecsBuilder_ == null) { + autoscalingMetricSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + autoscalingMetricSpecsBuilder_.clear(); + } return this; } @@ -499,6 +700,7 @@ public com.google.cloud.aiplatform.v1.DedicatedResources build() { public com.google.cloud.aiplatform.v1.DedicatedResources buildPartial() { com.google.cloud.aiplatform.v1.DedicatedResources result = new com.google.cloud.aiplatform.v1.DedicatedResources(this); + int from_bitField0_ = bitField0_; if (machineSpecBuilder_ == null) { result.machineSpec_ = machineSpec_; } else { @@ -506,6 +708,15 @@ public com.google.cloud.aiplatform.v1.DedicatedResources buildPartial() { } result.minReplicaCount_ = minReplicaCount_; result.maxReplicaCount_ = maxReplicaCount_; + if (autoscalingMetricSpecsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + autoscalingMetricSpecs_ = java.util.Collections.unmodifiableList(autoscalingMetricSpecs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.autoscalingMetricSpecs_ = autoscalingMetricSpecs_; + } else { + result.autoscalingMetricSpecs_ = autoscalingMetricSpecsBuilder_.build(); + } onBuilt(); return result; } @@ -565,6 +776,33 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DedicatedResources other if (other.getMaxReplicaCount() != 0) { setMaxReplicaCount(other.getMaxReplicaCount()); } + if (autoscalingMetricSpecsBuilder_ == null) { + if (!other.autoscalingMetricSpecs_.isEmpty()) { + if (autoscalingMetricSpecs_.isEmpty()) { + autoscalingMetricSpecs_ = other.autoscalingMetricSpecs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAutoscalingMetricSpecsIsMutable(); + autoscalingMetricSpecs_.addAll(other.autoscalingMetricSpecs_); + } + onChanged(); + } + } else { + if (!other.autoscalingMetricSpecs_.isEmpty()) { + if (autoscalingMetricSpecsBuilder_.isEmpty()) { + autoscalingMetricSpecsBuilder_.dispose(); + autoscalingMetricSpecsBuilder_ = null; + autoscalingMetricSpecs_ = other.autoscalingMetricSpecs_; + bitField0_ = (bitField0_ & ~0x00000001); + autoscalingMetricSpecsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAutoscalingMetricSpecsFieldBuilder() + : null; + } else { + autoscalingMetricSpecsBuilder_.addAllMessages(other.autoscalingMetricSpecs_); + } + } + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -595,6 +833,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.MachineSpec machineSpec_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.MachineSpec, @@ -805,12 +1045,10 @@ public com.google.cloud.aiplatform.v1.MachineSpecOrBuilder getMachineSpecOrBuild * *
      * Required. Immutable. The minimum number of machine replicas this DeployedModel will be always
-     * deployed on. If traffic against it increases, it may dynamically be
+     * deployed on. This value must be greater than or equal to 1.
+     * If traffic against the DeployedModel increases, it may dynamically be
      * deployed onto more replicas, and as traffic decreases, some of these extra
      * replicas may be freed.
-     * Note: if [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
-     * above 0, currently the model will be always deployed precisely on
-     * [min_replica_count][google.cloud.aiplatform.v1.DedicatedResources.min_replica_count].
      * 
* * @@ -828,12 +1066,10 @@ public int getMinReplicaCount() { * *
      * Required. Immutable. The minimum number of machine replicas this DeployedModel will be always
-     * deployed on. If traffic against it increases, it may dynamically be
+     * deployed on. This value must be greater than or equal to 1.
+     * If traffic against the DeployedModel increases, it may dynamically be
      * deployed onto more replicas, and as traffic decreases, some of these extra
      * replicas may be freed.
-     * Note: if [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
-     * above 0, currently the model will be always deployed precisely on
-     * [min_replica_count][google.cloud.aiplatform.v1.DedicatedResources.min_replica_count].
      * 
* * @@ -854,12 +1090,10 @@ public Builder setMinReplicaCount(int value) { * *
      * Required. Immutable. The minimum number of machine replicas this DeployedModel will be always
-     * deployed on. If traffic against it increases, it may dynamically be
+     * deployed on. This value must be greater than or equal to 1.
+     * If traffic against the DeployedModel increases, it may dynamically be
      * deployed onto more replicas, and as traffic decreases, some of these extra
      * replicas may be freed.
-     * Note: if [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
-     * above 0, currently the model will be always deployed precisely on
-     * [min_replica_count][google.cloud.aiplatform.v1.DedicatedResources.min_replica_count].
      * 
* * @@ -948,6 +1182,695 @@ public Builder clearMaxReplicaCount() { return this; } + private java.util.List + autoscalingMetricSpecs_ = java.util.Collections.emptyList(); + + private void ensureAutoscalingMetricSpecsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + autoscalingMetricSpecs_ = + new java.util.ArrayList( + autoscalingMetricSpecs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.AutoscalingMetricSpec, + com.google.cloud.aiplatform.v1.AutoscalingMetricSpec.Builder, + com.google.cloud.aiplatform.v1.AutoscalingMetricSpecOrBuilder> + autoscalingMetricSpecsBuilder_; + + /** + * + * + *
+     * Immutable. The metric specifications that overrides a resource
+     * utilization metric (CPU utilization, accelerator's duty cycle, and so on)
+     * target value (default to 60 if not set). At most one entry is allowed per
+     * metric.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * above 0, the autoscaling will be based on both CPU utilization and
+     * accelerator's duty cycle metrics and scale up when either metrics exceeds
+     * its target value while scale down if both metrics are under their target
+     * value. The default target value is 60 for both metrics.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * 0, the autoscaling will be based on CPU utilization metric only with
+     * default target value 60 if not explicitly set.
+     * For example, in the case of Online Prediction, if you want to override
+     * target CPU utilization to 80, you should set
+     * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public java.util.List + getAutoscalingMetricSpecsList() { + if (autoscalingMetricSpecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(autoscalingMetricSpecs_); + } else { + return autoscalingMetricSpecsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Immutable. The metric specifications that overrides a resource
+     * utilization metric (CPU utilization, accelerator's duty cycle, and so on)
+     * target value (default to 60 if not set). At most one entry is allowed per
+     * metric.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * above 0, the autoscaling will be based on both CPU utilization and
+     * accelerator's duty cycle metrics and scale up when either metrics exceeds
+     * its target value while scale down if both metrics are under their target
+     * value. The default target value is 60 for both metrics.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * 0, the autoscaling will be based on CPU utilization metric only with
+     * default target value 60 if not explicitly set.
+     * For example, in the case of Online Prediction, if you want to override
+     * target CPU utilization to 80, you should set
+     * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public int getAutoscalingMetricSpecsCount() { + if (autoscalingMetricSpecsBuilder_ == null) { + return autoscalingMetricSpecs_.size(); + } else { + return autoscalingMetricSpecsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Immutable. The metric specifications that overrides a resource
+     * utilization metric (CPU utilization, accelerator's duty cycle, and so on)
+     * target value (default to 60 if not set). At most one entry is allowed per
+     * metric.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * above 0, the autoscaling will be based on both CPU utilization and
+     * accelerator's duty cycle metrics and scale up when either metrics exceeds
+     * its target value while scale down if both metrics are under their target
+     * value. The default target value is 60 for both metrics.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * 0, the autoscaling will be based on CPU utilization metric only with
+     * default target value 60 if not explicitly set.
+     * For example, in the case of Online Prediction, if you want to override
+     * target CPU utilization to 80, you should set
+     * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.aiplatform.v1.AutoscalingMetricSpec getAutoscalingMetricSpecs( + int index) { + if (autoscalingMetricSpecsBuilder_ == null) { + return autoscalingMetricSpecs_.get(index); + } else { + return autoscalingMetricSpecsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Immutable. The metric specifications that overrides a resource
+     * utilization metric (CPU utilization, accelerator's duty cycle, and so on)
+     * target value (default to 60 if not set). At most one entry is allowed per
+     * metric.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * above 0, the autoscaling will be based on both CPU utilization and
+     * accelerator's duty cycle metrics and scale up when either metrics exceeds
+     * its target value while scale down if both metrics are under their target
+     * value. The default target value is 60 for both metrics.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * 0, the autoscaling will be based on CPU utilization metric only with
+     * default target value 60 if not explicitly set.
+     * For example, in the case of Online Prediction, if you want to override
+     * target CPU utilization to 80, you should set
+     * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setAutoscalingMetricSpecs( + int index, com.google.cloud.aiplatform.v1.AutoscalingMetricSpec value) { + if (autoscalingMetricSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAutoscalingMetricSpecsIsMutable(); + autoscalingMetricSpecs_.set(index, value); + onChanged(); + } else { + autoscalingMetricSpecsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Immutable. The metric specifications that overrides a resource
+     * utilization metric (CPU utilization, accelerator's duty cycle, and so on)
+     * target value (default to 60 if not set). At most one entry is allowed per
+     * metric.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * above 0, the autoscaling will be based on both CPU utilization and
+     * accelerator's duty cycle metrics and scale up when either metrics exceeds
+     * its target value while scale down if both metrics are under their target
+     * value. The default target value is 60 for both metrics.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * 0, the autoscaling will be based on CPU utilization metric only with
+     * default target value 60 if not explicitly set.
+     * For example, in the case of Online Prediction, if you want to override
+     * target CPU utilization to 80, you should set
+     * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setAutoscalingMetricSpecs( + int index, com.google.cloud.aiplatform.v1.AutoscalingMetricSpec.Builder builderForValue) { + if (autoscalingMetricSpecsBuilder_ == null) { + ensureAutoscalingMetricSpecsIsMutable(); + autoscalingMetricSpecs_.set(index, builderForValue.build()); + onChanged(); + } else { + autoscalingMetricSpecsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Immutable. The metric specifications that overrides a resource
+     * utilization metric (CPU utilization, accelerator's duty cycle, and so on)
+     * target value (default to 60 if not set). At most one entry is allowed per
+     * metric.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * above 0, the autoscaling will be based on both CPU utilization and
+     * accelerator's duty cycle metrics and scale up when either metrics exceeds
+     * its target value while scale down if both metrics are under their target
+     * value. The default target value is 60 for both metrics.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * 0, the autoscaling will be based on CPU utilization metric only with
+     * default target value 60 if not explicitly set.
+     * For example, in the case of Online Prediction, if you want to override
+     * target CPU utilization to 80, you should set
+     * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder addAutoscalingMetricSpecs( + com.google.cloud.aiplatform.v1.AutoscalingMetricSpec value) { + if (autoscalingMetricSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAutoscalingMetricSpecsIsMutable(); + autoscalingMetricSpecs_.add(value); + onChanged(); + } else { + autoscalingMetricSpecsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Immutable. The metric specifications that overrides a resource
+     * utilization metric (CPU utilization, accelerator's duty cycle, and so on)
+     * target value (default to 60 if not set). At most one entry is allowed per
+     * metric.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * above 0, the autoscaling will be based on both CPU utilization and
+     * accelerator's duty cycle metrics and scale up when either metrics exceeds
+     * its target value while scale down if both metrics are under their target
+     * value. The default target value is 60 for both metrics.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * 0, the autoscaling will be based on CPU utilization metric only with
+     * default target value 60 if not explicitly set.
+     * For example, in the case of Online Prediction, if you want to override
+     * target CPU utilization to 80, you should set
+     * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder addAutoscalingMetricSpecs( + int index, com.google.cloud.aiplatform.v1.AutoscalingMetricSpec value) { + if (autoscalingMetricSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAutoscalingMetricSpecsIsMutable(); + autoscalingMetricSpecs_.add(index, value); + onChanged(); + } else { + autoscalingMetricSpecsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Immutable. The metric specifications that overrides a resource
+     * utilization metric (CPU utilization, accelerator's duty cycle, and so on)
+     * target value (default to 60 if not set). At most one entry is allowed per
+     * metric.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * above 0, the autoscaling will be based on both CPU utilization and
+     * accelerator's duty cycle metrics and scale up when either metrics exceeds
+     * its target value while scale down if both metrics are under their target
+     * value. The default target value is 60 for both metrics.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * 0, the autoscaling will be based on CPU utilization metric only with
+     * default target value 60 if not explicitly set.
+     * For example, in the case of Online Prediction, if you want to override
+     * target CPU utilization to 80, you should set
+     * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder addAutoscalingMetricSpecs( + com.google.cloud.aiplatform.v1.AutoscalingMetricSpec.Builder builderForValue) { + if (autoscalingMetricSpecsBuilder_ == null) { + ensureAutoscalingMetricSpecsIsMutable(); + autoscalingMetricSpecs_.add(builderForValue.build()); + onChanged(); + } else { + autoscalingMetricSpecsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Immutable. The metric specifications that overrides a resource
+     * utilization metric (CPU utilization, accelerator's duty cycle, and so on)
+     * target value (default to 60 if not set). At most one entry is allowed per
+     * metric.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * above 0, the autoscaling will be based on both CPU utilization and
+     * accelerator's duty cycle metrics and scale up when either metrics exceeds
+     * its target value while scale down if both metrics are under their target
+     * value. The default target value is 60 for both metrics.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * 0, the autoscaling will be based on CPU utilization metric only with
+     * default target value 60 if not explicitly set.
+     * For example, in the case of Online Prediction, if you want to override
+     * target CPU utilization to 80, you should set
+     * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder addAutoscalingMetricSpecs( + int index, com.google.cloud.aiplatform.v1.AutoscalingMetricSpec.Builder builderForValue) { + if (autoscalingMetricSpecsBuilder_ == null) { + ensureAutoscalingMetricSpecsIsMutable(); + autoscalingMetricSpecs_.add(index, builderForValue.build()); + onChanged(); + } else { + autoscalingMetricSpecsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Immutable. The metric specifications that overrides a resource
+     * utilization metric (CPU utilization, accelerator's duty cycle, and so on)
+     * target value (default to 60 if not set). At most one entry is allowed per
+     * metric.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * above 0, the autoscaling will be based on both CPU utilization and
+     * accelerator's duty cycle metrics and scale up when either metrics exceeds
+     * its target value while scale down if both metrics are under their target
+     * value. The default target value is 60 for both metrics.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * 0, the autoscaling will be based on CPU utilization metric only with
+     * default target value 60 if not explicitly set.
+     * For example, in the case of Online Prediction, if you want to override
+     * target CPU utilization to 80, you should set
+     * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder addAllAutoscalingMetricSpecs( + java.lang.Iterable values) { + if (autoscalingMetricSpecsBuilder_ == null) { + ensureAutoscalingMetricSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, autoscalingMetricSpecs_); + onChanged(); + } else { + autoscalingMetricSpecsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Immutable. The metric specifications that overrides a resource
+     * utilization metric (CPU utilization, accelerator's duty cycle, and so on)
+     * target value (default to 60 if not set). At most one entry is allowed per
+     * metric.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * above 0, the autoscaling will be based on both CPU utilization and
+     * accelerator's duty cycle metrics and scale up when either metrics exceeds
+     * its target value while scale down if both metrics are under their target
+     * value. The default target value is 60 for both metrics.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * 0, the autoscaling will be based on CPU utilization metric only with
+     * default target value 60 if not explicitly set.
+     * For example, in the case of Online Prediction, if you want to override
+     * target CPU utilization to 80, you should set
+     * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearAutoscalingMetricSpecs() { + if (autoscalingMetricSpecsBuilder_ == null) { + autoscalingMetricSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + autoscalingMetricSpecsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Immutable. The metric specifications that overrides a resource
+     * utilization metric (CPU utilization, accelerator's duty cycle, and so on)
+     * target value (default to 60 if not set). At most one entry is allowed per
+     * metric.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * above 0, the autoscaling will be based on both CPU utilization and
+     * accelerator's duty cycle metrics and scale up when either metrics exceeds
+     * its target value while scale down if both metrics are under their target
+     * value. The default target value is 60 for both metrics.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * 0, the autoscaling will be based on CPU utilization metric only with
+     * default target value 60 if not explicitly set.
+     * For example, in the case of Online Prediction, if you want to override
+     * target CPU utilization to 80, you should set
+     * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder removeAutoscalingMetricSpecs(int index) { + if (autoscalingMetricSpecsBuilder_ == null) { + ensureAutoscalingMetricSpecsIsMutable(); + autoscalingMetricSpecs_.remove(index); + onChanged(); + } else { + autoscalingMetricSpecsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Immutable. The metric specifications that overrides a resource
+     * utilization metric (CPU utilization, accelerator's duty cycle, and so on)
+     * target value (default to 60 if not set). At most one entry is allowed per
+     * metric.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * above 0, the autoscaling will be based on both CPU utilization and
+     * accelerator's duty cycle metrics and scale up when either metrics exceeds
+     * its target value while scale down if both metrics are under their target
+     * value. The default target value is 60 for both metrics.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * 0, the autoscaling will be based on CPU utilization metric only with
+     * default target value 60 if not explicitly set.
+     * For example, in the case of Online Prediction, if you want to override
+     * target CPU utilization to 80, you should set
+     * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.aiplatform.v1.AutoscalingMetricSpec.Builder + getAutoscalingMetricSpecsBuilder(int index) { + return getAutoscalingMetricSpecsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Immutable. The metric specifications that overrides a resource
+     * utilization metric (CPU utilization, accelerator's duty cycle, and so on)
+     * target value (default to 60 if not set). At most one entry is allowed per
+     * metric.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * above 0, the autoscaling will be based on both CPU utilization and
+     * accelerator's duty cycle metrics and scale up when either metrics exceeds
+     * its target value while scale down if both metrics are under their target
+     * value. The default target value is 60 for both metrics.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * 0, the autoscaling will be based on CPU utilization metric only with
+     * default target value 60 if not explicitly set.
+     * For example, in the case of Online Prediction, if you want to override
+     * target CPU utilization to 80, you should set
+     * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.aiplatform.v1.AutoscalingMetricSpecOrBuilder + getAutoscalingMetricSpecsOrBuilder(int index) { + if (autoscalingMetricSpecsBuilder_ == null) { + return autoscalingMetricSpecs_.get(index); + } else { + return autoscalingMetricSpecsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Immutable. The metric specifications that overrides a resource
+     * utilization metric (CPU utilization, accelerator's duty cycle, and so on)
+     * target value (default to 60 if not set). At most one entry is allowed per
+     * metric.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * above 0, the autoscaling will be based on both CPU utilization and
+     * accelerator's duty cycle metrics and scale up when either metrics exceeds
+     * its target value while scale down if both metrics are under their target
+     * value. The default target value is 60 for both metrics.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * 0, the autoscaling will be based on CPU utilization metric only with
+     * default target value 60 if not explicitly set.
+     * For example, in the case of Online Prediction, if you want to override
+     * target CPU utilization to 80, you should set
+     * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public java.util.List + getAutoscalingMetricSpecsOrBuilderList() { + if (autoscalingMetricSpecsBuilder_ != null) { + return autoscalingMetricSpecsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(autoscalingMetricSpecs_); + } + } + /** + * + * + *
+     * Immutable. The metric specifications that overrides a resource
+     * utilization metric (CPU utilization, accelerator's duty cycle, and so on)
+     * target value (default to 60 if not set). At most one entry is allowed per
+     * metric.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * above 0, the autoscaling will be based on both CPU utilization and
+     * accelerator's duty cycle metrics and scale up when either metrics exceeds
+     * its target value while scale down if both metrics are under their target
+     * value. The default target value is 60 for both metrics.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * 0, the autoscaling will be based on CPU utilization metric only with
+     * default target value 60 if not explicitly set.
+     * For example, in the case of Online Prediction, if you want to override
+     * target CPU utilization to 80, you should set
+     * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.aiplatform.v1.AutoscalingMetricSpec.Builder + addAutoscalingMetricSpecsBuilder() { + return getAutoscalingMetricSpecsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.AutoscalingMetricSpec.getDefaultInstance()); + } + /** + * + * + *
+     * Immutable. The metric specifications that overrides a resource
+     * utilization metric (CPU utilization, accelerator's duty cycle, and so on)
+     * target value (default to 60 if not set). At most one entry is allowed per
+     * metric.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * above 0, the autoscaling will be based on both CPU utilization and
+     * accelerator's duty cycle metrics and scale up when either metrics exceeds
+     * its target value while scale down if both metrics are under their target
+     * value. The default target value is 60 for both metrics.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * 0, the autoscaling will be based on CPU utilization metric only with
+     * default target value 60 if not explicitly set.
+     * For example, in the case of Online Prediction, if you want to override
+     * target CPU utilization to 80, you should set
+     * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.aiplatform.v1.AutoscalingMetricSpec.Builder + addAutoscalingMetricSpecsBuilder(int index) { + return getAutoscalingMetricSpecsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1.AutoscalingMetricSpec.getDefaultInstance()); + } + /** + * + * + *
+     * Immutable. The metric specifications that overrides a resource
+     * utilization metric (CPU utilization, accelerator's duty cycle, and so on)
+     * target value (default to 60 if not set). At most one entry is allowed per
+     * metric.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * above 0, the autoscaling will be based on both CPU utilization and
+     * accelerator's duty cycle metrics and scale up when either metrics exceeds
+     * its target value while scale down if both metrics are under their target
+     * value. The default target value is 60 for both metrics.
+     * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+     * 0, the autoscaling will be based on CPU utilization metric only with
+     * default target value 60 if not explicitly set.
+     * For example, in the case of Online Prediction, if you want to override
+     * target CPU utilization to 80, you should set
+     * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name]
+     * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+     * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] to `80`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public java.util.List + getAutoscalingMetricSpecsBuilderList() { + return getAutoscalingMetricSpecsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.AutoscalingMetricSpec, + com.google.cloud.aiplatform.v1.AutoscalingMetricSpec.Builder, + com.google.cloud.aiplatform.v1.AutoscalingMetricSpecOrBuilder> + getAutoscalingMetricSpecsFieldBuilder() { + if (autoscalingMetricSpecsBuilder_ == null) { + autoscalingMetricSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.AutoscalingMetricSpec, + com.google.cloud.aiplatform.v1.AutoscalingMetricSpec.Builder, + com.google.cloud.aiplatform.v1.AutoscalingMetricSpecOrBuilder>( + autoscalingMetricSpecs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + autoscalingMetricSpecs_ = null; + } + return autoscalingMetricSpecsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DedicatedResourcesOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DedicatedResourcesOrBuilder.java index e11c3dab0..9aa27ef9a 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DedicatedResourcesOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DedicatedResourcesOrBuilder.java @@ -69,12 +69,10 @@ public interface DedicatedResourcesOrBuilder * *
    * Required. Immutable. The minimum number of machine replicas this DeployedModel will be always
-   * deployed on. If traffic against it increases, it may dynamically be
+   * deployed on. This value must be greater than or equal to 1.
+   * If traffic against the DeployedModel increases, it may dynamically be
    * deployed onto more replicas, and as traffic decreases, some of these extra
    * replicas may be freed.
-   * Note: if [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
-   * above 0, currently the model will be always deployed precisely on
-   * [min_replica_count][google.cloud.aiplatform.v1.DedicatedResources.min_replica_count].
    * 
* * @@ -104,4 +102,148 @@ public interface DedicatedResourcesOrBuilder * @return The maxReplicaCount. */ int getMaxReplicaCount(); + + /** + * + * + *
+   * Immutable. The metric specifications that overrides a resource
+   * utilization metric (CPU utilization, accelerator's duty cycle, and so on)
+   * target value (default to 60 if not set). At most one entry is allowed per
+   * metric.
+   * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+   * above 0, the autoscaling will be based on both CPU utilization and
+   * accelerator's duty cycle metrics and scale up when either metrics exceeds
+   * its target value while scale down if both metrics are under their target
+   * value. The default target value is 60 for both metrics.
+   * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+   * 0, the autoscaling will be based on CPU utilization metric only with
+   * default target value 60 if not explicitly set.
+   * For example, in the case of Online Prediction, if you want to override
+   * target CPU utilization to 80, you should set
+   * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name]
+   * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+   * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] to `80`.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + java.util.List + getAutoscalingMetricSpecsList(); + /** + * + * + *
+   * Immutable. The metric specifications that overrides a resource
+   * utilization metric (CPU utilization, accelerator's duty cycle, and so on)
+   * target value (default to 60 if not set). At most one entry is allowed per
+   * metric.
+   * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+   * above 0, the autoscaling will be based on both CPU utilization and
+   * accelerator's duty cycle metrics and scale up when either metrics exceeds
+   * its target value while scale down if both metrics are under their target
+   * value. The default target value is 60 for both metrics.
+   * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+   * 0, the autoscaling will be based on CPU utilization metric only with
+   * default target value 60 if not explicitly set.
+   * For example, in the case of Online Prediction, if you want to override
+   * target CPU utilization to 80, you should set
+   * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name]
+   * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+   * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] to `80`.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloud.aiplatform.v1.AutoscalingMetricSpec getAutoscalingMetricSpecs(int index); + /** + * + * + *
+   * Immutable. The metric specifications that overrides a resource
+   * utilization metric (CPU utilization, accelerator's duty cycle, and so on)
+   * target value (default to 60 if not set). At most one entry is allowed per
+   * metric.
+   * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+   * above 0, the autoscaling will be based on both CPU utilization and
+   * accelerator's duty cycle metrics and scale up when either metrics exceeds
+   * its target value while scale down if both metrics are under their target
+   * value. The default target value is 60 for both metrics.
+   * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+   * 0, the autoscaling will be based on CPU utilization metric only with
+   * default target value 60 if not explicitly set.
+   * For example, in the case of Online Prediction, if you want to override
+   * target CPU utilization to 80, you should set
+   * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name]
+   * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+   * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] to `80`.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + int getAutoscalingMetricSpecsCount(); + /** + * + * + *
+   * Immutable. The metric specifications that overrides a resource
+   * utilization metric (CPU utilization, accelerator's duty cycle, and so on)
+   * target value (default to 60 if not set). At most one entry is allowed per
+   * metric.
+   * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+   * above 0, the autoscaling will be based on both CPU utilization and
+   * accelerator's duty cycle metrics and scale up when either metrics exceeds
+   * its target value while scale down if both metrics are under their target
+   * value. The default target value is 60 for both metrics.
+   * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+   * 0, the autoscaling will be based on CPU utilization metric only with
+   * default target value 60 if not explicitly set.
+   * For example, in the case of Online Prediction, if you want to override
+   * target CPU utilization to 80, you should set
+   * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name]
+   * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+   * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] to `80`.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + java.util.List + getAutoscalingMetricSpecsOrBuilderList(); + /** + * + * + *
+   * Immutable. The metric specifications that overrides a resource
+   * utilization metric (CPU utilization, accelerator's duty cycle, and so on)
+   * target value (default to 60 if not set). At most one entry is allowed per
+   * metric.
+   * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+   * above 0, the autoscaling will be based on both CPU utilization and
+   * accelerator's duty cycle metrics and scale up when either metrics exceeds
+   * its target value while scale down if both metrics are under their target
+   * value. The default target value is 60 for both metrics.
+   * If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is
+   * 0, the autoscaling will be based on CPU utilization metric only with
+   * default target value 60 if not explicitly set.
+   * For example, in the case of Online Prediction, if you want to override
+   * target CPU utilization to 80, you should set
+   * [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name]
+   * to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and
+   * [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] to `80`.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.AutoscalingMetricSpec autoscaling_metric_specs = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloud.aiplatform.v1.AutoscalingMetricSpecOrBuilder getAutoscalingMetricSpecsOrBuilder( + int index); } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeletePipelineJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeletePipelineJobRequest.java new file mode 100644 index 000000000..b498ce2e8 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeletePipelineJobRequest.java @@ -0,0 +1,665 @@ +/* + * 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_service.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for [PipelineService.DeletePipelineJob][google.cloud.aiplatform.v1.PipelineService.DeletePipelineJob].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.DeletePipelineJobRequest} + */ +public final class DeletePipelineJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.DeletePipelineJobRequest) + DeletePipelineJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeletePipelineJobRequest.newBuilder() to construct. + private DeletePipelineJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeletePipelineJobRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeletePipelineJobRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeletePipelineJobRequest( + 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 (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.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_DeletePipelineJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_DeletePipelineJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.DeletePipelineJobRequest.class, + com.google.cloud.aiplatform.v1.DeletePipelineJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the PipelineJob resource to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
+   * 
+ * + * + * 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 PipelineJob resource to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
+   * 
+ * + * + * 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 (!getNameBytes().isEmpty()) { + 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 (!getNameBytes().isEmpty()) { + 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.DeletePipelineJobRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.DeletePipelineJobRequest other = + (com.google.cloud.aiplatform.v1.DeletePipelineJobRequest) 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.DeletePipelineJobRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DeletePipelineJobRequest 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.DeletePipelineJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DeletePipelineJobRequest 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.DeletePipelineJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DeletePipelineJobRequest 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.DeletePipelineJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.DeletePipelineJobRequest 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.DeletePipelineJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.DeletePipelineJobRequest 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.DeletePipelineJobRequest 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.DeletePipelineJobRequest 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.DeletePipelineJobRequest 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 [PipelineService.DeletePipelineJob][google.cloud.aiplatform.v1.PipelineService.DeletePipelineJob].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.DeletePipelineJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.DeletePipelineJobRequest) + com.google.cloud.aiplatform.v1.DeletePipelineJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_DeletePipelineJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_DeletePipelineJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.DeletePipelineJobRequest.class, + com.google.cloud.aiplatform.v1.DeletePipelineJobRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.DeletePipelineJobRequest.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.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_DeletePipelineJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeletePipelineJobRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.DeletePipelineJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeletePipelineJobRequest build() { + com.google.cloud.aiplatform.v1.DeletePipelineJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeletePipelineJobRequest buildPartial() { + com.google.cloud.aiplatform.v1.DeletePipelineJobRequest result = + new com.google.cloud.aiplatform.v1.DeletePipelineJobRequest(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.DeletePipelineJobRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.DeletePipelineJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeletePipelineJobRequest other) { + if (other == com.google.cloud.aiplatform.v1.DeletePipelineJobRequest.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.DeletePipelineJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1.DeletePipelineJobRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the PipelineJob resource to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
+     * 
+ * + * + * 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 PipelineJob resource to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
+     * 
+ * + * + * 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 PipelineJob resource to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
+     * 
+ * + * + * 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 PipelineJob resource to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
+     * 
+ * + * + * 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 PipelineJob resource to be deleted.
+     * Format:
+     * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
+     * 
+ * + * + * 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.DeletePipelineJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.DeletePipelineJobRequest) + private static final com.google.cloud.aiplatform.v1.DeletePipelineJobRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.DeletePipelineJobRequest(); + } + + public static com.google.cloud.aiplatform.v1.DeletePipelineJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeletePipelineJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeletePipelineJobRequest(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.DeletePipelineJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeletePipelineJobRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeletePipelineJobRequestOrBuilder.java new file mode 100644 index 000000000..9d7bce8aa --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeletePipelineJobRequestOrBuilder.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/pipeline_service.proto + +package com.google.cloud.aiplatform.v1; + +public interface DeletePipelineJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.DeletePipelineJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the PipelineJob resource to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the PipelineJob resource to be deleted.
+   * Format:
+   * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
+   * 
+ * + * + * 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/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModelNameProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModelNameProto.java index 155510f17..052e51080 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModelNameProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModelNameProto.java @@ -47,10 +47,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tions.proto\"p\n\020DeployedModelRef\022<\n\010endpo" + "int\030\001 \001(\tB*\340A\005\372A$\n\"aiplatform.googleapis" + ".com/Endpoint\022\036\n\021deployed_model_id\030\002 \001(\t" - + "B\003\340A\005B\200\001\n\036com.google.cloud.aiplatform.v1" + + "B\003\340A\005B\332\001\n\036com.google.cloud.aiplatform.v1" + "B\026DeployedModelNameProtoP\001ZDgoogle.golan" + "g.org/genproto/googleapis/cloud/aiplatfo" - + "rm/v1;aiplatformb\006proto3" + + "rm/v1;aiplatform\252\002\032Google.Cloud.AIPlatfo" + + "rm.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Goo" + + "gle::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EncryptionSpecProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EncryptionSpecProto.java index 690221ab0..8b4d774d3 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EncryptionSpecProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EncryptionSpecProto.java @@ -44,11 +44,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "spec.proto\022\032google.cloud.aiplatform.v1\032\037" + "google/api/field_behavior.proto\032\034google/" + "api/annotations.proto\"+\n\016EncryptionSpec\022" - + "\031\n\014kms_key_name\030\001 \001(\tB\003\340A\002B}\n\036com.google" - + ".cloud.aiplatform.v1B\023EncryptionSpecProt" - + "oP\001ZDgoogle.golang.org/genproto/googleap" - + "is/cloud/aiplatform/v1;aiplatformb\006proto" - + "3" + + "\031\n\014kms_key_name\030\001 \001(\tB\003\340A\002B\327\001\n\036com.googl" + + "e.cloud.aiplatform.v1B\023EncryptionSpecPro" + + "toP\001ZDgoogle.golang.org/genproto/googlea" + + "pis/cloud/aiplatform/v1;aiplatform\252\002\032Goo" + + "gle.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\A" + + "IPlatform\\V1\352\002\035Google::Cloud::AIPlatform" + + "::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointProto.java index e4e9e1dda..1655b0c03 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointProto.java @@ -87,10 +87,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "2\032.google.protobuf.TimestampB\003\340A\003\022\027\n\017ser" + "vice_account\030\013 \001(\t\022!\n\031disable_container_" + "logging\030\017 \001(\010\022\035\n\025enable_access_logging\030\r" - + " \001(\010B\026\n\024prediction_resourcesBw\n\036com.goog" - + "le.cloud.aiplatform.v1B\rEndpointProtoP\001Z" - + "Dgoogle.golang.org/genproto/googleapis/c" - + "loud/aiplatform/v1;aiplatformb\006proto3" + + " \001(\010B\026\n\024prediction_resourcesB\321\001\n\036com.goo" + + "gle.cloud.aiplatform.v1B\rEndpointProtoP\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" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceProto.java index 59d2c1d2b..ac9e9966d 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceProto.java @@ -190,11 +190,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ffic_split\312A7\n\025UndeployModelResponse\022\036Un" + "deployModelOperationMetadata\032M\312A\031aiplatf" + "orm.googleapis.com\322A.https://www.googlea" - + "pis.com/auth/cloud-platformB~\n\036com.googl" - + "e.cloud.aiplatform.v1B\024EndpointServicePr" - + "otoP\001ZDgoogle.golang.org/genproto/google" - + "apis/cloud/aiplatform/v1;aiplatformb\006pro" - + "to3" + + "pis.com/auth/cloud-platformB\330\001\n\036com.goog" + + "le.cloud.aiplatform.v1B\024EndpointServiceP" + + "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( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EnvVarProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EnvVarProto.java index 2925ecb74..bf90858ec 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EnvVarProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EnvVarProto.java @@ -44,10 +44,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "to\022\032google.cloud.aiplatform.v1\032\037google/a" + "pi/field_behavior.proto\032\034google/api/anno" + "tations.proto\"/\n\006EnvVar\022\021\n\004name\030\001 \001(\tB\003\340" - + "A\002\022\022\n\005value\030\002 \001(\tB\003\340A\002Bu\n\036com.google.clo" - + "ud.aiplatform.v1B\013EnvVarProtoP\001ZDgoogle." - + "golang.org/genproto/googleapis/cloud/aip" - + "latform/v1;aiplatformb\006proto3" + + "A\002\022\022\n\005value\030\002 \001(\tB\003\340A\002B\317\001\n\036com.google.cl" + + "oud.aiplatform.v1B\013EnvVarProtoP\001ZDgoogle" + + ".golang.org/genproto/googleapis/cloud/ai" + + "platform/v1;aiplatform\252\002\032Google.Cloud.AI" + + "Platform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1" + + "\352\002\035Google::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Execution.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Execution.java new file mode 100644 index 000000000..9310ba1bd --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Execution.java @@ -0,0 +1,2386 @@ +/* + * 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/execution.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Instance of a general execution.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.Execution} + */ +public final class Execution extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.Execution) + ExecutionOrBuilder { + private static final long serialVersionUID = 0L; + // Use Execution.newBuilder() to construct. + private Execution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Execution() { + name_ = ""; + displayName_ = ""; + state_ = 0; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Execution(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Execution( + 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(); + + displayName_ = s; + break; + } + case 48: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; + } + case 82: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; + } + case 90: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 98: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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.ExecutionProto + .internal_static_google_cloud_aiplatform_v1_Execution_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 10: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ExecutionProto + .internal_static_google_cloud_aiplatform_v1_Execution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.Execution.class, + com.google.cloud.aiplatform.v1.Execution.Builder.class); + } + + /** + * + * + *
+   * Describes the state of the Execution.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1.Execution.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified Execution state
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The Execution is new
+     * 
+ * + * NEW = 1; + */ + NEW(1), + /** + * + * + *
+     * The Execution is running
+     * 
+ * + * RUNNING = 2; + */ + RUNNING(2), + /** + * + * + *
+     * The Execution has finished running
+     * 
+ * + * COMPLETE = 3; + */ + COMPLETE(3), + /** + * + * + *
+     * The Execution has failed
+     * 
+ * + * FAILED = 4; + */ + FAILED(4), + /** + * + * + *
+     * The Execution completed through Cache hit.
+     * 
+ * + * CACHED = 5; + */ + CACHED(5), + /** + * + * + *
+     * The Execution was cancelled.
+     * 
+ * + * CANCELLED = 6; + */ + CANCELLED(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified Execution state
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The Execution is new
+     * 
+ * + * NEW = 1; + */ + public static final int NEW_VALUE = 1; + /** + * + * + *
+     * The Execution is running
+     * 
+ * + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + /** + * + * + *
+     * The Execution has finished running
+     * 
+ * + * COMPLETE = 3; + */ + public static final int COMPLETE_VALUE = 3; + /** + * + * + *
+     * The Execution has failed
+     * 
+ * + * FAILED = 4; + */ + public static final int FAILED_VALUE = 4; + /** + * + * + *
+     * The Execution completed through Cache hit.
+     * 
+ * + * CACHED = 5; + */ + public static final int CACHED_VALUE = 5; + /** + * + * + *
+     * The Execution was cancelled.
+     * 
+ * + * CANCELLED = 6; + */ + public static final int CANCELLED_VALUE = 6; + + 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 State 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 State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return NEW; + case 2: + return RUNNING; + case 3: + return COMPLETE; + case 4: + return FAILED; + case 5: + return CACHED; + case 6: + return CANCELLED; + 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 State findValueByNumber(int number) { + return State.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.Execution.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State 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 State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.Execution.State) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. The resource name of the Execution.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+   * Output only. The resource name of the Execution.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 DISPLAY_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * User provided display name of the Execution.
+   * May be up to 128 Unicode characters.
+   * 
+ * + * string display_name = 2; + * + * @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; + } + } + /** + * + * + *
+   * User provided display name of the Execution.
+   * May be up to 128 Unicode characters.
+   * 
+ * + * string display_name = 2; + * + * @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 STATE_FIELD_NUMBER = 6; + private int state_; + /** + * + * + *
+   * The state of this Execution. This is a property of the Execution, and does
+   * not imply or capture any ongoing process. This property is managed by
+   * clients (such as Vertex Pipelines) and the system does not prescribe
+   * or check the validity of state transitions.
+   * 
+ * + * .google.cloud.aiplatform.v1.Execution.State state = 6; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * The state of this Execution. This is a property of the Execution, and does
+   * not imply or capture any ongoing process. This property is managed by
+   * clients (such as Vertex Pipelines) and the system does not prescribe
+   * or check the validity of state transitions.
+   * 
+ * + * .google.cloud.aiplatform.v1.Execution.State state = 6; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Execution.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1.Execution.State result = + com.google.cloud.aiplatform.v1.Execution.State.valueOf(state_); + return result == null ? com.google.cloud.aiplatform.v1.Execution.State.UNRECOGNIZED : result; + } + + public static final int ETAG_FIELD_NUMBER = 9; + private volatile java.lang.Object etag_; + /** + * + * + *
+   * An eTag used to perform consistent read-modify-write updates. If not set, a
+   * blind "overwrite" update happens.
+   * 
+ * + * string etag = 9; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + /** + * + * + *
+   * An eTag used to perform consistent read-modify-write updates. If not set, a
+   * blind "overwrite" update happens.
+   * 
+ * + * string etag = 9; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 10; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.aiplatform.v1.ExecutionProto + .internal_static_google_cloud_aiplatform_v1_Execution_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+   * The labels with user-defined metadata to organize your Executions.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * No more than 64 user labels can be associated with one Execution (System
+   * labels are excluded).
+   * 
+ * + * map<string, string> labels = 10; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+   * The labels with user-defined metadata to organize your Executions.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * No more than 64 user labels can be associated with one Execution (System
+   * labels are excluded).
+   * 
+ * + * map<string, string> labels = 10; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * The labels with user-defined metadata to organize your Executions.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * No more than 64 user labels can be associated with one Execution (System
+   * labels are excluded).
+   * 
+ * + * map<string, string> labels = 10; + */ + @java.lang.Override + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * The labels with user-defined metadata to organize your Executions.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * No more than 64 user labels can be associated with one Execution (System
+   * labels are excluded).
+   * 
+ * + * map<string, string> labels = 10; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 11; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Timestamp when this Execution was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Timestamp when this Execution was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Timestamp when this Execution was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 12; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Timestamp when this Execution was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. Timestamp when this Execution was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. Timestamp when this Execution was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (state_ != com.google.cloud.aiplatform.v1.Execution.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, state_); + } + if (!getEtagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, etag_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10); + if (createTime_ != null) { + output.writeMessage(11, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(12, getUpdateTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (state_ != com.google.cloud.aiplatform.v1.Execution.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + } + if (!getEtagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, labels__); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getUpdateTime()); + } + 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.Execution)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.Execution other = (com.google.cloud.aiplatform.v1.Execution) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (state_ != other.state_) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.Execution parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Execution 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.Execution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Execution 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.Execution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Execution 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.Execution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Execution 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.Execution parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Execution 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.Execution 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.Execution 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.Execution 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; + } + /** + * + * + *
+   * Instance of a general execution.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.Execution} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.Execution) + com.google.cloud.aiplatform.v1.ExecutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ExecutionProto + .internal_static_google_cloud_aiplatform_v1_Execution_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 10: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 10: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ExecutionProto + .internal_static_google_cloud_aiplatform_v1_Execution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.Execution.class, + com.google.cloud.aiplatform.v1.Execution.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.Execution.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_ = ""; + + displayName_ = ""; + + state_ = 0; + + etag_ = ""; + + internalGetMutableLabels().clear(); + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ExecutionProto + .internal_static_google_cloud_aiplatform_v1_Execution_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Execution getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.Execution.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Execution build() { + com.google.cloud.aiplatform.v1.Execution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Execution buildPartial() { + com.google.cloud.aiplatform.v1.Execution result = + new com.google.cloud.aiplatform.v1.Execution(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.displayName_ = displayName_; + result.state_ = state_; + result.etag_ = etag_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.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.Execution) { + return mergeFrom((com.google.cloud.aiplatform.v1.Execution) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.Execution other) { + if (other == com.google.cloud.aiplatform.v1.Execution.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + 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.Execution parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1.Execution) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name of the Execution.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+     * Output only. The resource name of the Execution.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+     * Output only. The resource name of the Execution.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + /** + * + * + *
+     * Output only. The resource name of the Execution.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the Execution.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 displayName_ = ""; + /** + * + * + *
+     * User provided display name of the Execution.
+     * May be up to 128 Unicode characters.
+     * 
+ * + * string display_name = 2; + * + * @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; + } + } + /** + * + * + *
+     * User provided display name of the Execution.
+     * May be up to 128 Unicode characters.
+     * 
+ * + * string display_name = 2; + * + * @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; + } + } + /** + * + * + *
+     * User provided display name of the Execution.
+     * May be up to 128 Unicode characters.
+     * 
+ * + * string display_name = 2; + * + * @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; + } + /** + * + * + *
+     * User provided display name of the Execution.
+     * May be up to 128 Unicode characters.
+     * 
+ * + * string display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * User provided display name of the Execution.
+     * May be up to 128 Unicode characters.
+     * 
+ * + * string display_name = 2; + * + * @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 int state_ = 0; + /** + * + * + *
+     * The state of this Execution. This is a property of the Execution, and does
+     * not imply or capture any ongoing process. This property is managed by
+     * clients (such as Vertex Pipelines) and the system does not prescribe
+     * or check the validity of state transitions.
+     * 
+ * + * .google.cloud.aiplatform.v1.Execution.State state = 6; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * The state of this Execution. This is a property of the Execution, and does
+     * not imply or capture any ongoing process. This property is managed by
+     * clients (such as Vertex Pipelines) and the system does not prescribe
+     * or check the validity of state transitions.
+     * 
+ * + * .google.cloud.aiplatform.v1.Execution.State state = 6; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The state of this Execution. This is a property of the Execution, and does
+     * not imply or capture any ongoing process. This property is managed by
+     * clients (such as Vertex Pipelines) and the system does not prescribe
+     * or check the validity of state transitions.
+     * 
+ * + * .google.cloud.aiplatform.v1.Execution.State state = 6; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Execution.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1.Execution.State result = + com.google.cloud.aiplatform.v1.Execution.State.valueOf(state_); + return result == null ? com.google.cloud.aiplatform.v1.Execution.State.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The state of this Execution. This is a property of the Execution, and does
+     * not imply or capture any ongoing process. This property is managed by
+     * clients (such as Vertex Pipelines) and the system does not prescribe
+     * or check the validity of state transitions.
+     * 
+ * + * .google.cloud.aiplatform.v1.Execution.State state = 6; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.aiplatform.v1.Execution.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The state of this Execution. This is a property of the Execution, and does
+     * not imply or capture any ongoing process. This property is managed by
+     * clients (such as Vertex Pipelines) and the system does not prescribe
+     * or check the validity of state transitions.
+     * 
+ * + * .google.cloud.aiplatform.v1.Execution.State state = 6; + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + /** + * + * + *
+     * An eTag used to perform consistent read-modify-write updates. If not set, a
+     * blind "overwrite" update happens.
+     * 
+ * + * string etag = 9; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * An eTag used to perform consistent read-modify-write updates. If not set, a
+     * blind "overwrite" update happens.
+     * 
+ * + * string etag = 9; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * An eTag used to perform consistent read-modify-write updates. If not set, a
+     * blind "overwrite" update happens.
+     * 
+ * + * string etag = 9; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + etag_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * An eTag used to perform consistent read-modify-write updates. If not set, a
+     * blind "overwrite" update happens.
+     * 
+ * + * string etag = 9; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + + etag_ = getDefaultInstance().getEtag(); + onChanged(); + return this; + } + /** + * + * + *
+     * An eTag used to perform consistent read-modify-write updates. If not set, a
+     * blind "overwrite" update happens.
+     * 
+ * + * string etag = 9; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + etag_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged(); + ; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * The labels with user-defined metadata to organize your Executions.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * No more than 64 user labels can be associated with one Execution (System
+     * labels are excluded).
+     * 
+ * + * map<string, string> labels = 10; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+     * The labels with user-defined metadata to organize your Executions.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * No more than 64 user labels can be associated with one Execution (System
+     * labels are excluded).
+     * 
+ * + * map<string, string> labels = 10; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * The labels with user-defined metadata to organize your Executions.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * No more than 64 user labels can be associated with one Execution (System
+     * labels are excluded).
+     * 
+ * + * map<string, string> labels = 10; + */ + @java.lang.Override + public java.lang.String getLabelsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * The labels with user-defined metadata to organize your Executions.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * No more than 64 user labels can be associated with one Execution (System
+     * labels are excluded).
+     * 
+ * + * map<string, string> labels = 10; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * The labels with user-defined metadata to organize your Executions.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * No more than 64 user labels can be associated with one Execution (System
+     * labels are excluded).
+     * 
+ * + * map<string, string> labels = 10; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
+     * The labels with user-defined metadata to organize your Executions.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * No more than 64 user labels can be associated with one Execution (System
+     * labels are excluded).
+     * 
+ * + * map<string, string> labels = 10; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * The labels with user-defined metadata to organize your Executions.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * No more than 64 user labels can be associated with one Execution (System
+     * labels are excluded).
+     * 
+ * + * map<string, string> labels = 10; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when this Execution was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Output only. Timestamp when this Execution was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp when this Execution was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this Execution was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this Execution was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this Execution was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this Execution was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this Execution was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp when this Execution was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when this Execution was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + * + * + *
+     * Output only. Timestamp when this Execution was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp when this Execution was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this Execution was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this Execution was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this Execution was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this Execution was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this Execution was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp when this Execution was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + @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.Execution) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.Execution) + private static final com.google.cloud.aiplatform.v1.Execution DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.Execution(); + } + + public static com.google.cloud.aiplatform.v1.Execution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Execution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Execution(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.Execution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExecutionOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExecutionOrBuilder.java new file mode 100644 index 000000000..a7192bd33 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExecutionOrBuilder.java @@ -0,0 +1,290 @@ +/* + * 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/execution.proto + +package com.google.cloud.aiplatform.v1; + +public interface ExecutionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.Execution) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name of the Execution.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name of the Execution.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * User provided display name of the Execution.
+   * May be up to 128 Unicode characters.
+   * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * User provided display name of the Execution.
+   * May be up to 128 Unicode characters.
+   * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * The state of this Execution. This is a property of the Execution, and does
+   * not imply or capture any ongoing process. This property is managed by
+   * clients (such as Vertex Pipelines) and the system does not prescribe
+   * or check the validity of state transitions.
+   * 
+ * + * .google.cloud.aiplatform.v1.Execution.State state = 6; + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * The state of this Execution. This is a property of the Execution, and does
+   * not imply or capture any ongoing process. This property is managed by
+   * clients (such as Vertex Pipelines) and the system does not prescribe
+   * or check the validity of state transitions.
+   * 
+ * + * .google.cloud.aiplatform.v1.Execution.State state = 6; + * + * @return The state. + */ + com.google.cloud.aiplatform.v1.Execution.State getState(); + + /** + * + * + *
+   * An eTag used to perform consistent read-modify-write updates. If not set, a
+   * blind "overwrite" update happens.
+   * 
+ * + * string etag = 9; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * An eTag used to perform consistent read-modify-write updates. If not set, a
+   * blind "overwrite" update happens.
+   * 
+ * + * string etag = 9; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * The labels with user-defined metadata to organize your Executions.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * No more than 64 user labels can be associated with one Execution (System
+   * labels are excluded).
+   * 
+ * + * map<string, string> labels = 10; + */ + int getLabelsCount(); + /** + * + * + *
+   * The labels with user-defined metadata to organize your Executions.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * No more than 64 user labels can be associated with one Execution (System
+   * labels are excluded).
+   * 
+ * + * map<string, string> labels = 10; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * The labels with user-defined metadata to organize your Executions.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * No more than 64 user labels can be associated with one Execution (System
+   * labels are excluded).
+   * 
+ * + * map<string, string> labels = 10; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * The labels with user-defined metadata to organize your Executions.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * No more than 64 user labels can be associated with one Execution (System
+   * labels are excluded).
+   * 
+ * + * map<string, string> labels = 10; + */ + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * The labels with user-defined metadata to organize your Executions.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * No more than 64 user labels can be associated with one Execution (System
+   * labels are excluded).
+   * 
+ * + * map<string, string> labels = 10; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. Timestamp when this Execution was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this Execution was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this Execution was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when this Execution was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this Execution was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this Execution was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExecutionProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExecutionProto.java new file mode 100644 index 000000000..01297de16 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExecutionProto.java @@ -0,0 +1,118 @@ +/* + * 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/execution.proto + +package com.google.cloud.aiplatform.v1; + +public final class ExecutionProto { + private ExecutionProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_Execution_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_Execution_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_Execution_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_Execution_LabelsEntry_fieldAccessorTable; + + 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/v1/execution.p" + + "roto\022\032google.cloud.aiplatform.v1\032\037google" + + "/api/field_behavior.proto\032\031google/api/re" + + "source.proto\032&google/cloud/aiplatform/v1" + + "/value.proto\032\034google/protobuf/struct.pro" + + "to\032\037google/protobuf/timestamp.proto\032\034goo" + + "gle/api/annotations.proto\"\323\004\n\tExecution\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014display_name\030\002 \001(\t" + + "\022:\n\005state\030\006 \001(\0162+.google.cloud.aiplatfor" + + "m.v1.Execution.State\022\014\n\004etag\030\t \001(\t\022A\n\006la" + + "bels\030\n \003(\01321.google.cloud.aiplatform.v1." + + "Execution.LabelsEntry\0224\n\013create_time\030\013 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013u" + + "pdate_time\030\014 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"i\n\005State\022\025\n\021STATE_UNSPE" + + "CIFIED\020\000\022\007\n\003NEW\020\001\022\013\n\007RUNNING\020\002\022\014\n\010COMPLE" + + "TE\020\003\022\n\n\006FAILED\020\004\022\n\n\006CACHED\020\005\022\r\n\tCANCELLE" + + "D\020\006:\211\001\352A\205\001\n#aiplatform.googleapis.com/Ex" + + "ecution\022^projects/{project}/locations/{l" + + "ocation}/metadataStores/{metadata_store}" + + "/executions/{execution}B\322\001\n\036com.google.c" + + "loud.aiplatform.v1B\016ExecutionProtoP\001ZDgo" + + "ogle.golang.org/genproto/googleapis/clou" + + "d/aiplatform/v1;aiplatform\252\002\032Google.Clou" + + "d.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatfor" + + "m\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006pr" + + "oto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.aiplatform.v1.ValueProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1_Execution_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1_Execution_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_Execution_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "State", "Etag", "Labels", "CreateTime", "UpdateTime", + }); + internal_static_google_cloud_aiplatform_v1_Execution_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1_Execution_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_aiplatform_v1_Execution_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_Execution_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1.ValueProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetPipelineJobRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetPipelineJobRequest.java new file mode 100644 index 000000000..73086d44b --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetPipelineJobRequest.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_service.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1.PipelineService.GetPipelineJob].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GetPipelineJobRequest} + */ +public final class GetPipelineJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GetPipelineJobRequest) + GetPipelineJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetPipelineJobRequest.newBuilder() to construct. + private GetPipelineJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetPipelineJobRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetPipelineJobRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetPipelineJobRequest( + 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 (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.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_GetPipelineJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_GetPipelineJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.GetPipelineJobRequest.class, + com.google.cloud.aiplatform.v1.GetPipelineJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the PipelineJob resource.
+   * Format:
+   * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
+   * 
+ * + * + * 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 PipelineJob resource.
+   * Format:
+   * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
+   * 
+ * + * + * 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 (!getNameBytes().isEmpty()) { + 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 (!getNameBytes().isEmpty()) { + 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.GetPipelineJobRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.GetPipelineJobRequest other = + (com.google.cloud.aiplatform.v1.GetPipelineJobRequest) 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.GetPipelineJobRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GetPipelineJobRequest 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.GetPipelineJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GetPipelineJobRequest 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.GetPipelineJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GetPipelineJobRequest 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.GetPipelineJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GetPipelineJobRequest 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.GetPipelineJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GetPipelineJobRequest 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.GetPipelineJobRequest 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.GetPipelineJobRequest 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.GetPipelineJobRequest 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 [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1.PipelineService.GetPipelineJob].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GetPipelineJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.GetPipelineJobRequest) + com.google.cloud.aiplatform.v1.GetPipelineJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_GetPipelineJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_GetPipelineJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.GetPipelineJobRequest.class, + com.google.cloud.aiplatform.v1.GetPipelineJobRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.GetPipelineJobRequest.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.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_GetPipelineJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GetPipelineJobRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.GetPipelineJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GetPipelineJobRequest build() { + com.google.cloud.aiplatform.v1.GetPipelineJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GetPipelineJobRequest buildPartial() { + com.google.cloud.aiplatform.v1.GetPipelineJobRequest result = + new com.google.cloud.aiplatform.v1.GetPipelineJobRequest(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.GetPipelineJobRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.GetPipelineJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetPipelineJobRequest other) { + if (other == com.google.cloud.aiplatform.v1.GetPipelineJobRequest.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.GetPipelineJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1.GetPipelineJobRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the PipelineJob resource.
+     * Format:
+     * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
+     * 
+ * + * + * 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 PipelineJob resource.
+     * Format:
+     * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
+     * 
+ * + * + * 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 PipelineJob resource.
+     * Format:
+     * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
+     * 
+ * + * + * 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 PipelineJob resource.
+     * Format:
+     * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
+     * 
+ * + * + * 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 PipelineJob resource.
+     * Format:
+     * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
+     * 
+ * + * + * 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.GetPipelineJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GetPipelineJobRequest) + private static final com.google.cloud.aiplatform.v1.GetPipelineJobRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.GetPipelineJobRequest(); + } + + public static com.google.cloud.aiplatform.v1.GetPipelineJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPipelineJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetPipelineJobRequest(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.GetPipelineJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetPipelineJobRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetPipelineJobRequestOrBuilder.java new file mode 100644 index 000000000..a5a2ff15a --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetPipelineJobRequestOrBuilder.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/pipeline_service.proto + +package com.google.cloud.aiplatform.v1; + +public interface GetPipelineJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.GetPipelineJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the PipelineJob resource.
+   * Format:
+   * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the PipelineJob resource.
+   * Format:
+   * `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
+   * 
+ * + * + * 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/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobProto.java index 5074db162..6a22b1520 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobProto.java @@ -79,11 +79,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\t:\0028\001:\225\001\352A\221\001\n1aiplatform.googleapis.com/" + "HyperparameterTuningJob\022\\projects/{proje" + "ct}/locations/{location}/hyperparameterT" - + "uningJobs/{hyperparameter_tuning_job}B\206\001" + + "uningJobs/{hyperparameter_tuning_job}B\340\001" + "\n\036com.google.cloud.aiplatform.v1B\034Hyperp" + "arameterTuningJobProtoP\001ZDgoogle.golang." + "org/genproto/googleapis/cloud/aiplatform" - + "/v1;aiplatformb\006proto3" + + "/v1;aiplatform\252\002\032Google.Cloud.AIPlatform" + + ".V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Googl" + + "e::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IoProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IoProto.java index 919b3a877..0cb98291b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IoProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IoProto.java @@ -64,10 +64,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\001 \001(\tB\003\340A\002\"(\n\016BigQuerySource\022\026\n\tinput_ur" + "i\030\001 \001(\tB\003\340A\002\".\n\023BigQueryDestination\022\027\n\no" + "utput_uri\030\001 \001(\tB\003\340A\002\"7\n\034ContainerRegistr" - + "yDestination\022\027\n\noutput_uri\030\001 \001(\tB\003\340A\002Bq\n" - + "\036com.google.cloud.aiplatform.v1B\007IoProto" - + "P\001ZDgoogle.golang.org/genproto/googleapi" - + "s/cloud/aiplatform/v1;aiplatformb\006proto3" + + "yDestination\022\027\n\noutput_uri\030\001 \001(\tB\003\340A\002B\313\001" + + "\n\036com.google.cloud.aiplatform.v1B\007IoProt" + + "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( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JobServiceProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JobServiceProto.java index 83571e7ae..169d2f981 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JobServiceProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JobServiceProto.java @@ -337,10 +337,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e=projects/*/locations/*/batchPrediction" + "Jobs/*}:cancel:\001*\332A\004name\032M\312A\031aiplatform." + "googleapis.com\322A.https://www.googleapis." - + "com/auth/cloud-platformBy\n\036com.google.cl" - + "oud.aiplatform.v1B\017JobServiceProtoP\001ZDgo" - + "ogle.golang.org/genproto/googleapis/clou" - + "d/aiplatform/v1;aiplatformb\006proto3" + + "com/auth/cloud-platformB\323\001\n\036com.google.c" + + "loud.aiplatform.v1B\017JobServiceProtoP\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( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JobState.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JobState.java index 76591466f..3ca914f13 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JobState.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JobState.java @@ -119,6 +119,16 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { * JOB_STATE_PAUSED = 8; */ JOB_STATE_PAUSED(8), + /** + * + * + *
+   * The job has expired.
+   * 
+ * + * JOB_STATE_EXPIRED = 9; + */ + JOB_STATE_EXPIRED(9), UNRECOGNIZED(-1), ; @@ -213,6 +223,16 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { * JOB_STATE_PAUSED = 8; */ public static final int JOB_STATE_PAUSED_VALUE = 8; + /** + * + * + *
+   * The job has expired.
+   * 
+ * + * JOB_STATE_EXPIRED = 9; + */ + public static final int JOB_STATE_EXPIRED_VALUE = 9; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -256,6 +276,8 @@ public static JobState forNumber(int value) { return JOB_STATE_CANCELLED; case 8: return JOB_STATE_PAUSED; + case 9: + return JOB_STATE_EXPIRED; default: return null; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JobStateProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JobStateProto.java index e5414e634..1804cd9dc 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JobStateProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/JobStateProto.java @@ -37,16 +37,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n*google/cloud/aiplatform/v1/job_state.p" + "roto\022\032google.cloud.aiplatform.v1\032\034google" - + "/api/annotations.proto*\341\001\n\010JobState\022\031\n\025J" + + "/api/annotations.proto*\370\001\n\010JobState\022\031\n\025J" + "OB_STATE_UNSPECIFIED\020\000\022\024\n\020JOB_STATE_QUEU" + "ED\020\001\022\025\n\021JOB_STATE_PENDING\020\002\022\025\n\021JOB_STATE" + "_RUNNING\020\003\022\027\n\023JOB_STATE_SUCCEEDED\020\004\022\024\n\020J" + "OB_STATE_FAILED\020\005\022\030\n\024JOB_STATE_CANCELLIN" + "G\020\006\022\027\n\023JOB_STATE_CANCELLED\020\007\022\024\n\020JOB_STAT" - + "E_PAUSED\020\010Bw\n\036com.google.cloud.aiplatfor" - + "m.v1B\rJobStateProtoP\001ZDgoogle.golang.org" - + "/genproto/googleapis/cloud/aiplatform/v1" - + ";aiplatformb\006proto3" + + "E_PAUSED\020\010\022\025\n\021JOB_STATE_EXPIRED\020\tB\321\001\n\036co" + + "m.google.cloud.aiplatform.v1B\rJobStatePr" + + "otoP\001ZDgoogle.golang.org/genproto/google" + + "apis/cloud/aiplatform/v1;aiplatform\252\002\032Go" + + "ogle.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\" + + "AIPlatform\\V1\352\002\035Google::Cloud::AIPlatfor" + + "m::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequest.java new file mode 100644 index 000000000..eef4b6f91 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequest.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/pipeline_service.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListPipelineJobsRequest} + */ +public final class ListPipelineJobsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ListPipelineJobsRequest) + ListPipelineJobsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListPipelineJobsRequest.newBuilder() to construct. + private ListPipelineJobsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPipelineJobsRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPipelineJobsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListPipelineJobsRequest( + 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(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_ListPipelineJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_ListPipelineJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListPipelineJobsRequest.class, + com.google.cloud.aiplatform.v1.ListPipelineJobsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the Location to list the PipelineJobs from.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the Location to list the PipelineJobs from.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * The standard list filter.
+   * Supported fields:
+   * * `display_name` supports `=` and `!=`.
+   * * `state` supports `=` and `!=`.
+   * The following examples demonstrate how to filter the list of PipelineJobs:
+   * * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
+   * * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
+   * * `NOT display_name="my_pipeline"`
+   * * `state="PIPELINE_STATE_FAILED"`
+   * 
+ * + * string filter = 2; + * + * @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; + } + } + /** + * + * + *
+   * The standard list filter.
+   * Supported fields:
+   * * `display_name` supports `=` and `!=`.
+   * * `state` supports `=` and `!=`.
+   * The following examples demonstrate how to filter the list of PipelineJobs:
+   * * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
+   * * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
+   * * `NOT display_name="my_pipeline"`
+   * * `state="PIPELINE_STATE_FAILED"`
+   * 
+ * + * string filter = 2; + * + * @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 PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_; + /** + * + * + *
+   * The standard list page size.
+   * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * The standard list page token.
+   * Typically obtained via
+   * [ListPipelineJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListPipelineJobsResponse.next_page_token] of the previous
+   * [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs] call.
+   * 
+ * + * string page_token = 4; + * + * @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
+   * [ListPipelineJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListPipelineJobsResponse.next_page_token] of the previous
+   * [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs] call.
+   * 
+ * + * string page_token = 4; + * + * @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; + } + } + + 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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + 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.ListPipelineJobsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ListPipelineJobsRequest other = + (com.google.cloud.aiplatform.v1.ListPipelineJobsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ListPipelineJobsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListPipelineJobsRequest 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.ListPipelineJobsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListPipelineJobsRequest 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.ListPipelineJobsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListPipelineJobsRequest 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.ListPipelineJobsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListPipelineJobsRequest 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.ListPipelineJobsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListPipelineJobsRequest 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.ListPipelineJobsRequest 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.ListPipelineJobsRequest 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.ListPipelineJobsRequest 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 [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListPipelineJobsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ListPipelineJobsRequest) + com.google.cloud.aiplatform.v1.ListPipelineJobsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_ListPipelineJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_ListPipelineJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListPipelineJobsRequest.class, + com.google.cloud.aiplatform.v1.ListPipelineJobsRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ListPipelineJobsRequest.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(); + parent_ = ""; + + filter_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_ListPipelineJobsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListPipelineJobsRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ListPipelineJobsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListPipelineJobsRequest build() { + com.google.cloud.aiplatform.v1.ListPipelineJobsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListPipelineJobsRequest buildPartial() { + com.google.cloud.aiplatform.v1.ListPipelineJobsRequest result = + new com.google.cloud.aiplatform.v1.ListPipelineJobsRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + 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.ListPipelineJobsRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.ListPipelineJobsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListPipelineJobsRequest other) { + if (other == com.google.cloud.aiplatform.v1.ListPipelineJobsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + 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.ListPipelineJobsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1.ListPipelineJobsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the Location to list the PipelineJobs from.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Location to list the PipelineJobs from.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Location to list the PipelineJobs from.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Location to list the PipelineJobs from.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Location to list the PipelineJobs from.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * The standard list filter.
+     * Supported fields:
+     * * `display_name` supports `=` and `!=`.
+     * * `state` supports `=` and `!=`.
+     * The following examples demonstrate how to filter the list of PipelineJobs:
+     * * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
+     * * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
+     * * `NOT display_name="my_pipeline"`
+     * * `state="PIPELINE_STATE_FAILED"`
+     * 
+ * + * string filter = 2; + * + * @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; + } + } + /** + * + * + *
+     * The standard list filter.
+     * Supported fields:
+     * * `display_name` supports `=` and `!=`.
+     * * `state` supports `=` and `!=`.
+     * The following examples demonstrate how to filter the list of PipelineJobs:
+     * * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
+     * * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
+     * * `NOT display_name="my_pipeline"`
+     * * `state="PIPELINE_STATE_FAILED"`
+     * 
+ * + * string filter = 2; + * + * @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; + } + } + /** + * + * + *
+     * The standard list filter.
+     * Supported fields:
+     * * `display_name` supports `=` and `!=`.
+     * * `state` supports `=` and `!=`.
+     * The following examples demonstrate how to filter the list of PipelineJobs:
+     * * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
+     * * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
+     * * `NOT display_name="my_pipeline"`
+     * * `state="PIPELINE_STATE_FAILED"`
+     * 
+ * + * string filter = 2; + * + * @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; + } + /** + * + * + *
+     * The standard list filter.
+     * Supported fields:
+     * * `display_name` supports `=` and `!=`.
+     * * `state` supports `=` and `!=`.
+     * The following examples demonstrate how to filter the list of PipelineJobs:
+     * * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
+     * * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
+     * * `NOT display_name="my_pipeline"`
+     * * `state="PIPELINE_STATE_FAILED"`
+     * 
+ * + * string filter = 2; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * The standard list filter.
+     * Supported fields:
+     * * `display_name` supports `=` and `!=`.
+     * * `state` supports `=` and `!=`.
+     * The following examples demonstrate how to filter the list of PipelineJobs:
+     * * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
+     * * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
+     * * `NOT display_name="my_pipeline"`
+     * * `state="PIPELINE_STATE_FAILED"`
+     * 
+ * + * string filter = 2; + * + * @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 int pageSize_; + /** + * + * + *
+     * The standard list page size.
+     * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The standard list page size.
+     * 
+ * + * int32 page_size = 3; + * + * @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 = 3; + * + * @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
+     * [ListPipelineJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListPipelineJobsResponse.next_page_token] of the previous
+     * [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs] call.
+     * 
+ * + * string page_token = 4; + * + * @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
+     * [ListPipelineJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListPipelineJobsResponse.next_page_token] of the previous
+     * [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs] call.
+     * 
+ * + * string page_token = 4; + * + * @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
+     * [ListPipelineJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListPipelineJobsResponse.next_page_token] of the previous
+     * [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs] call.
+     * 
+ * + * string page_token = 4; + * + * @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
+     * [ListPipelineJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListPipelineJobsResponse.next_page_token] of the previous
+     * [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs] call.
+     * 
+ * + * string page_token = 4; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * The standard list page token.
+     * Typically obtained via
+     * [ListPipelineJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListPipelineJobsResponse.next_page_token] of the previous
+     * [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs] call.
+     * 
+ * + * string page_token = 4; + * + * @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; + } + + @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.ListPipelineJobsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ListPipelineJobsRequest) + private static final com.google.cloud.aiplatform.v1.ListPipelineJobsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ListPipelineJobsRequest(); + } + + public static com.google.cloud.aiplatform.v1.ListPipelineJobsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPipelineJobsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListPipelineJobsRequest(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.ListPipelineJobsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequestOrBuilder.java new file mode 100644 index 000000000..d50c5d449 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequestOrBuilder.java @@ -0,0 +1,141 @@ +/* + * 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_service.proto + +package com.google.cloud.aiplatform.v1; + +public interface ListPipelineJobsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ListPipelineJobsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Location to list the PipelineJobs from.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the Location to list the PipelineJobs from.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The standard list filter.
+   * Supported fields:
+   * * `display_name` supports `=` and `!=`.
+   * * `state` supports `=` and `!=`.
+   * The following examples demonstrate how to filter the list of PipelineJobs:
+   * * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
+   * * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
+   * * `NOT display_name="my_pipeline"`
+   * * `state="PIPELINE_STATE_FAILED"`
+   * 
+ * + * string filter = 2; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * The standard list filter.
+   * Supported fields:
+   * * `display_name` supports `=` and `!=`.
+   * * `state` supports `=` and `!=`.
+   * The following examples demonstrate how to filter the list of PipelineJobs:
+   * * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
+   * * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
+   * * `NOT display_name="my_pipeline"`
+   * * `state="PIPELINE_STATE_FAILED"`
+   * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * The standard list page size.
+   * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * The standard list page token.
+   * Typically obtained via
+   * [ListPipelineJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListPipelineJobsResponse.next_page_token] of the previous
+   * [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs] call.
+   * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * The standard list page token.
+   * Typically obtained via
+   * [ListPipelineJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListPipelineJobsResponse.next_page_token] of the previous
+   * [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs] call.
+   * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsResponse.java new file mode 100644 index 000000000..f79e1cf0d --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsResponse.java @@ -0,0 +1,1139 @@ +/* + * 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_service.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Response message for [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs]
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListPipelineJobsResponse} + */ +public final class ListPipelineJobsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ListPipelineJobsResponse) + ListPipelineJobsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListPipelineJobsResponse.newBuilder() to construct. + private ListPipelineJobsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPipelineJobsResponse() { + pipelineJobs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPipelineJobsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListPipelineJobsResponse( + 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)) { + pipelineJobs_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + pipelineJobs_.add( + input.readMessage( + com.google.cloud.aiplatform.v1.PipelineJob.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 (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + pipelineJobs_ = java.util.Collections.unmodifiableList(pipelineJobs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_ListPipelineJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_ListPipelineJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListPipelineJobsResponse.class, + com.google.cloud.aiplatform.v1.ListPipelineJobsResponse.Builder.class); + } + + public static final int PIPELINE_JOBS_FIELD_NUMBER = 1; + private java.util.List pipelineJobs_; + /** + * + * + *
+   * List of PipelineJobs in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + @java.lang.Override + public java.util.List getPipelineJobsList() { + return pipelineJobs_; + } + /** + * + * + *
+   * List of PipelineJobs in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + @java.lang.Override + public java.util.List + getPipelineJobsOrBuilderList() { + return pipelineJobs_; + } + /** + * + * + *
+   * List of PipelineJobs in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + @java.lang.Override + public int getPipelineJobsCount() { + return pipelineJobs_.size(); + } + /** + * + * + *
+   * List of PipelineJobs in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineJob getPipelineJobs(int index) { + return pipelineJobs_.get(index); + } + /** + * + * + *
+   * List of PipelineJobs in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineJobOrBuilder getPipelineJobsOrBuilder(int index) { + return pipelineJobs_.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 [ListPipelineJobsRequest.page_token][google.cloud.aiplatform.v1.ListPipelineJobsRequest.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 [ListPipelineJobsRequest.page_token][google.cloud.aiplatform.v1.ListPipelineJobsRequest.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 < pipelineJobs_.size(); i++) { + output.writeMessage(1, pipelineJobs_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + 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 < pipelineJobs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, pipelineJobs_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + 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.ListPipelineJobsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ListPipelineJobsResponse other = + (com.google.cloud.aiplatform.v1.ListPipelineJobsResponse) obj; + + if (!getPipelineJobsList().equals(other.getPipelineJobsList())) 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 (getPipelineJobsCount() > 0) { + hash = (37 * hash) + PIPELINE_JOBS_FIELD_NUMBER; + hash = (53 * hash) + getPipelineJobsList().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.ListPipelineJobsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListPipelineJobsResponse 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.ListPipelineJobsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListPipelineJobsResponse 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.ListPipelineJobsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListPipelineJobsResponse 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.ListPipelineJobsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListPipelineJobsResponse 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.ListPipelineJobsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListPipelineJobsResponse 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.ListPipelineJobsResponse 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.ListPipelineJobsResponse 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.ListPipelineJobsResponse 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 [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs]
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListPipelineJobsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ListPipelineJobsResponse) + com.google.cloud.aiplatform.v1.ListPipelineJobsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_ListPipelineJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_ListPipelineJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListPipelineJobsResponse.class, + com.google.cloud.aiplatform.v1.ListPipelineJobsResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ListPipelineJobsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPipelineJobsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (pipelineJobsBuilder_ == null) { + pipelineJobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + pipelineJobsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_ListPipelineJobsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListPipelineJobsResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ListPipelineJobsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListPipelineJobsResponse build() { + com.google.cloud.aiplatform.v1.ListPipelineJobsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListPipelineJobsResponse buildPartial() { + com.google.cloud.aiplatform.v1.ListPipelineJobsResponse result = + new com.google.cloud.aiplatform.v1.ListPipelineJobsResponse(this); + int from_bitField0_ = bitField0_; + if (pipelineJobsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + pipelineJobs_ = java.util.Collections.unmodifiableList(pipelineJobs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.pipelineJobs_ = pipelineJobs_; + } else { + result.pipelineJobs_ = pipelineJobsBuilder_.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.ListPipelineJobsResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1.ListPipelineJobsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListPipelineJobsResponse other) { + if (other == com.google.cloud.aiplatform.v1.ListPipelineJobsResponse.getDefaultInstance()) + return this; + if (pipelineJobsBuilder_ == null) { + if (!other.pipelineJobs_.isEmpty()) { + if (pipelineJobs_.isEmpty()) { + pipelineJobs_ = other.pipelineJobs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePipelineJobsIsMutable(); + pipelineJobs_.addAll(other.pipelineJobs_); + } + onChanged(); + } + } else { + if (!other.pipelineJobs_.isEmpty()) { + if (pipelineJobsBuilder_.isEmpty()) { + pipelineJobsBuilder_.dispose(); + pipelineJobsBuilder_ = null; + pipelineJobs_ = other.pipelineJobs_; + bitField0_ = (bitField0_ & ~0x00000001); + pipelineJobsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPipelineJobsFieldBuilder() + : null; + } else { + pipelineJobsBuilder_.addAllMessages(other.pipelineJobs_); + } + } + } + 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.ListPipelineJobsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1.ListPipelineJobsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List pipelineJobs_ = + java.util.Collections.emptyList(); + + private void ensurePipelineJobsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + pipelineJobs_ = + new java.util.ArrayList(pipelineJobs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineJob, + com.google.cloud.aiplatform.v1.PipelineJob.Builder, + com.google.cloud.aiplatform.v1.PipelineJobOrBuilder> + pipelineJobsBuilder_; + + /** + * + * + *
+     * List of PipelineJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + public java.util.List getPipelineJobsList() { + if (pipelineJobsBuilder_ == null) { + return java.util.Collections.unmodifiableList(pipelineJobs_); + } else { + return pipelineJobsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of PipelineJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + public int getPipelineJobsCount() { + if (pipelineJobsBuilder_ == null) { + return pipelineJobs_.size(); + } else { + return pipelineJobsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of PipelineJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + public com.google.cloud.aiplatform.v1.PipelineJob getPipelineJobs(int index) { + if (pipelineJobsBuilder_ == null) { + return pipelineJobs_.get(index); + } else { + return pipelineJobsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of PipelineJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + public Builder setPipelineJobs(int index, com.google.cloud.aiplatform.v1.PipelineJob value) { + if (pipelineJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePipelineJobsIsMutable(); + pipelineJobs_.set(index, value); + onChanged(); + } else { + pipelineJobsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of PipelineJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + public Builder setPipelineJobs( + int index, com.google.cloud.aiplatform.v1.PipelineJob.Builder builderForValue) { + if (pipelineJobsBuilder_ == null) { + ensurePipelineJobsIsMutable(); + pipelineJobs_.set(index, builderForValue.build()); + onChanged(); + } else { + pipelineJobsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of PipelineJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + public Builder addPipelineJobs(com.google.cloud.aiplatform.v1.PipelineJob value) { + if (pipelineJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePipelineJobsIsMutable(); + pipelineJobs_.add(value); + onChanged(); + } else { + pipelineJobsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of PipelineJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + public Builder addPipelineJobs(int index, com.google.cloud.aiplatform.v1.PipelineJob value) { + if (pipelineJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePipelineJobsIsMutable(); + pipelineJobs_.add(index, value); + onChanged(); + } else { + pipelineJobsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of PipelineJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + public Builder addPipelineJobs( + com.google.cloud.aiplatform.v1.PipelineJob.Builder builderForValue) { + if (pipelineJobsBuilder_ == null) { + ensurePipelineJobsIsMutable(); + pipelineJobs_.add(builderForValue.build()); + onChanged(); + } else { + pipelineJobsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of PipelineJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + public Builder addPipelineJobs( + int index, com.google.cloud.aiplatform.v1.PipelineJob.Builder builderForValue) { + if (pipelineJobsBuilder_ == null) { + ensurePipelineJobsIsMutable(); + pipelineJobs_.add(index, builderForValue.build()); + onChanged(); + } else { + pipelineJobsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of PipelineJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + public Builder addAllPipelineJobs( + java.lang.Iterable values) { + if (pipelineJobsBuilder_ == null) { + ensurePipelineJobsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pipelineJobs_); + onChanged(); + } else { + pipelineJobsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of PipelineJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + public Builder clearPipelineJobs() { + if (pipelineJobsBuilder_ == null) { + pipelineJobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + pipelineJobsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of PipelineJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + public Builder removePipelineJobs(int index) { + if (pipelineJobsBuilder_ == null) { + ensurePipelineJobsIsMutable(); + pipelineJobs_.remove(index); + onChanged(); + } else { + pipelineJobsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of PipelineJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + public com.google.cloud.aiplatform.v1.PipelineJob.Builder getPipelineJobsBuilder(int index) { + return getPipelineJobsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of PipelineJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + public com.google.cloud.aiplatform.v1.PipelineJobOrBuilder getPipelineJobsOrBuilder(int index) { + if (pipelineJobsBuilder_ == null) { + return pipelineJobs_.get(index); + } else { + return pipelineJobsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of PipelineJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + public java.util.List + getPipelineJobsOrBuilderList() { + if (pipelineJobsBuilder_ != null) { + return pipelineJobsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(pipelineJobs_); + } + } + /** + * + * + *
+     * List of PipelineJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + public com.google.cloud.aiplatform.v1.PipelineJob.Builder addPipelineJobsBuilder() { + return getPipelineJobsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.PipelineJob.getDefaultInstance()); + } + /** + * + * + *
+     * List of PipelineJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + public com.google.cloud.aiplatform.v1.PipelineJob.Builder addPipelineJobsBuilder(int index) { + return getPipelineJobsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1.PipelineJob.getDefaultInstance()); + } + /** + * + * + *
+     * List of PipelineJobs in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + public java.util.List + getPipelineJobsBuilderList() { + return getPipelineJobsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineJob, + com.google.cloud.aiplatform.v1.PipelineJob.Builder, + com.google.cloud.aiplatform.v1.PipelineJobOrBuilder> + getPipelineJobsFieldBuilder() { + if (pipelineJobsBuilder_ == null) { + pipelineJobsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineJob, + com.google.cloud.aiplatform.v1.PipelineJob.Builder, + com.google.cloud.aiplatform.v1.PipelineJobOrBuilder>( + pipelineJobs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + pipelineJobs_ = null; + } + return pipelineJobsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * Pass to [ListPipelineJobsRequest.page_token][google.cloud.aiplatform.v1.ListPipelineJobsRequest.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 [ListPipelineJobsRequest.page_token][google.cloud.aiplatform.v1.ListPipelineJobsRequest.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 [ListPipelineJobsRequest.page_token][google.cloud.aiplatform.v1.ListPipelineJobsRequest.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 [ListPipelineJobsRequest.page_token][google.cloud.aiplatform.v1.ListPipelineJobsRequest.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 [ListPipelineJobsRequest.page_token][google.cloud.aiplatform.v1.ListPipelineJobsRequest.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.ListPipelineJobsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ListPipelineJobsResponse) + private static final com.google.cloud.aiplatform.v1.ListPipelineJobsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ListPipelineJobsResponse(); + } + + public static com.google.cloud.aiplatform.v1.ListPipelineJobsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPipelineJobsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListPipelineJobsResponse(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.ListPipelineJobsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsResponseOrBuilder.java new file mode 100644 index 000000000..a5b47a980 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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_service.proto + +package com.google.cloud.aiplatform.v1; + +public interface ListPipelineJobsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ListPipelineJobsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of PipelineJobs in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + java.util.List getPipelineJobsList(); + /** + * + * + *
+   * List of PipelineJobs in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + com.google.cloud.aiplatform.v1.PipelineJob getPipelineJobs(int index); + /** + * + * + *
+   * List of PipelineJobs in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + int getPipelineJobsCount(); + /** + * + * + *
+   * List of PipelineJobs in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + java.util.List + getPipelineJobsOrBuilderList(); + /** + * + * + *
+   * List of PipelineJobs in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + com.google.cloud.aiplatform.v1.PipelineJobOrBuilder getPipelineJobsOrBuilder(int index); + + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * Pass to [ListPipelineJobsRequest.page_token][google.cloud.aiplatform.v1.ListPipelineJobsRequest.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 [ListPipelineJobsRequest.page_token][google.cloud.aiplatform.v1.ListPipelineJobsRequest.page_token] to obtain that page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesRequest.java index b3964de50..5d60f30e9 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesRequest.java @@ -208,15 +208,27 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The standard list filter.
-   * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
-   * Some examples of using the filter are:
-   *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-   *  * `NOT display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_FAILED"`
+   * Lists the PipelineJobs that match the filter expression. The following
+   * fields are supported:
+   * * `pipeline_name`: Supports `=` and `!=` comparisons.
+   * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+   *   Values must be in RFC 3339 format.
+   * * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+   *   Values must be in RFC 3339 format.
+   * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+   *   Values must be in RFC 3339 format.
+   * * `labels`: Supports key-value equality and key presence.
+   * Filter expressions can be combined together using logical operators
+   * (`AND` & `OR`).
+   * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`.
+   * The syntax to define filter expression is based on
+   * https://google.aip.dev/160.
+   * Examples:
+   * * `create_time>"2021-05-18T00:00:00Z" OR
+   *   update_time>"2020-05-18T00:00:00Z"` PipelineJobs created or updated
+   *   after 2020-05-18 00:00:00 UTC.
+   * * `labels.env = "prod"`
+   *   PipelineJobs with label "env" set to "prod".
    * 
* * string filter = 2; @@ -239,15 +251,27 @@ public java.lang.String getFilter() { * * *
-   * The standard list filter.
-   * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
-   * Some examples of using the filter are:
-   *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-   *  * `NOT display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_FAILED"`
+   * Lists the PipelineJobs that match the filter expression. The following
+   * fields are supported:
+   * * `pipeline_name`: Supports `=` and `!=` comparisons.
+   * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+   *   Values must be in RFC 3339 format.
+   * * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+   *   Values must be in RFC 3339 format.
+   * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+   *   Values must be in RFC 3339 format.
+   * * `labels`: Supports key-value equality and key presence.
+   * Filter expressions can be combined together using logical operators
+   * (`AND` & `OR`).
+   * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`.
+   * The syntax to define filter expression is based on
+   * https://google.aip.dev/160.
+   * Examples:
+   * * `create_time>"2021-05-18T00:00:00Z" OR
+   *   update_time>"2020-05-18T00:00:00Z"` PipelineJobs created or updated
+   *   after 2020-05-18 00:00:00 UTC.
+   * * `labels.env = "prod"`
+   *   PipelineJobs with label "env" set to "prod".
    * 
* * string filter = 2; @@ -906,15 +930,27 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The standard list filter.
-     * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
-     * Some examples of using the filter are:
-     *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-     *  * `NOT display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_FAILED"`
+     * Lists the PipelineJobs that match the filter expression. The following
+     * fields are supported:
+     * * `pipeline_name`: Supports `=` and `!=` comparisons.
+     * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+     *   Values must be in RFC 3339 format.
+     * * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+     *   Values must be in RFC 3339 format.
+     * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+     *   Values must be in RFC 3339 format.
+     * * `labels`: Supports key-value equality and key presence.
+     * Filter expressions can be combined together using logical operators
+     * (`AND` & `OR`).
+     * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`.
+     * The syntax to define filter expression is based on
+     * https://google.aip.dev/160.
+     * Examples:
+     * * `create_time>"2021-05-18T00:00:00Z" OR
+     *   update_time>"2020-05-18T00:00:00Z"` PipelineJobs created or updated
+     *   after 2020-05-18 00:00:00 UTC.
+     * * `labels.env = "prod"`
+     *   PipelineJobs with label "env" set to "prod".
      * 
* * string filter = 2; @@ -936,15 +972,27 @@ public java.lang.String getFilter() { * * *
-     * The standard list filter.
-     * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
-     * Some examples of using the filter are:
-     *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-     *  * `NOT display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_FAILED"`
+     * Lists the PipelineJobs that match the filter expression. The following
+     * fields are supported:
+     * * `pipeline_name`: Supports `=` and `!=` comparisons.
+     * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+     *   Values must be in RFC 3339 format.
+     * * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+     *   Values must be in RFC 3339 format.
+     * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+     *   Values must be in RFC 3339 format.
+     * * `labels`: Supports key-value equality and key presence.
+     * Filter expressions can be combined together using logical operators
+     * (`AND` & `OR`).
+     * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`.
+     * The syntax to define filter expression is based on
+     * https://google.aip.dev/160.
+     * Examples:
+     * * `create_time>"2021-05-18T00:00:00Z" OR
+     *   update_time>"2020-05-18T00:00:00Z"` PipelineJobs created or updated
+     *   after 2020-05-18 00:00:00 UTC.
+     * * `labels.env = "prod"`
+     *   PipelineJobs with label "env" set to "prod".
      * 
* * string filter = 2; @@ -966,15 +1014,27 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-     * The standard list filter.
-     * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
-     * Some examples of using the filter are:
-     *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-     *  * `NOT display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_FAILED"`
+     * Lists the PipelineJobs that match the filter expression. The following
+     * fields are supported:
+     * * `pipeline_name`: Supports `=` and `!=` comparisons.
+     * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+     *   Values must be in RFC 3339 format.
+     * * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+     *   Values must be in RFC 3339 format.
+     * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+     *   Values must be in RFC 3339 format.
+     * * `labels`: Supports key-value equality and key presence.
+     * Filter expressions can be combined together using logical operators
+     * (`AND` & `OR`).
+     * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`.
+     * The syntax to define filter expression is based on
+     * https://google.aip.dev/160.
+     * Examples:
+     * * `create_time>"2021-05-18T00:00:00Z" OR
+     *   update_time>"2020-05-18T00:00:00Z"` PipelineJobs created or updated
+     *   after 2020-05-18 00:00:00 UTC.
+     * * `labels.env = "prod"`
+     *   PipelineJobs with label "env" set to "prod".
      * 
* * string filter = 2; @@ -995,15 +1055,27 @@ public Builder setFilter(java.lang.String value) { * * *
-     * The standard list filter.
-     * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
-     * Some examples of using the filter are:
-     *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-     *  * `NOT display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_FAILED"`
+     * Lists the PipelineJobs that match the filter expression. The following
+     * fields are supported:
+     * * `pipeline_name`: Supports `=` and `!=` comparisons.
+     * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+     *   Values must be in RFC 3339 format.
+     * * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+     *   Values must be in RFC 3339 format.
+     * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+     *   Values must be in RFC 3339 format.
+     * * `labels`: Supports key-value equality and key presence.
+     * Filter expressions can be combined together using logical operators
+     * (`AND` & `OR`).
+     * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`.
+     * The syntax to define filter expression is based on
+     * https://google.aip.dev/160.
+     * Examples:
+     * * `create_time>"2021-05-18T00:00:00Z" OR
+     *   update_time>"2020-05-18T00:00:00Z"` PipelineJobs created or updated
+     *   after 2020-05-18 00:00:00 UTC.
+     * * `labels.env = "prod"`
+     *   PipelineJobs with label "env" set to "prod".
      * 
* * string filter = 2; @@ -1020,15 +1092,27 @@ public Builder clearFilter() { * * *
-     * The standard list filter.
-     * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
-     * Some examples of using the filter are:
-     *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-     *  * `NOT display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_FAILED"`
+     * Lists the PipelineJobs that match the filter expression. The following
+     * fields are supported:
+     * * `pipeline_name`: Supports `=` and `!=` comparisons.
+     * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+     *   Values must be in RFC 3339 format.
+     * * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+     *   Values must be in RFC 3339 format.
+     * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+     *   Values must be in RFC 3339 format.
+     * * `labels`: Supports key-value equality and key presence.
+     * Filter expressions can be combined together using logical operators
+     * (`AND` & `OR`).
+     * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`.
+     * The syntax to define filter expression is based on
+     * https://google.aip.dev/160.
+     * Examples:
+     * * `create_time>"2021-05-18T00:00:00Z" OR
+     *   update_time>"2020-05-18T00:00:00Z"` PipelineJobs created or updated
+     *   after 2020-05-18 00:00:00 UTC.
+     * * `labels.env = "prod"`
+     *   PipelineJobs with label "env" set to "prod".
      * 
* * string filter = 2; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesRequestOrBuilder.java index 27be8acdc..b46ea9ba0 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesRequestOrBuilder.java @@ -58,15 +58,27 @@ public interface ListTrainingPipelinesRequestOrBuilder * * *
-   * The standard list filter.
-   * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
-   * Some examples of using the filter are:
-   *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-   *  * `NOT display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_FAILED"`
+   * Lists the PipelineJobs that match the filter expression. The following
+   * fields are supported:
+   * * `pipeline_name`: Supports `=` and `!=` comparisons.
+   * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+   *   Values must be in RFC 3339 format.
+   * * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+   *   Values must be in RFC 3339 format.
+   * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+   *   Values must be in RFC 3339 format.
+   * * `labels`: Supports key-value equality and key presence.
+   * Filter expressions can be combined together using logical operators
+   * (`AND` & `OR`).
+   * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`.
+   * The syntax to define filter expression is based on
+   * https://google.aip.dev/160.
+   * Examples:
+   * * `create_time>"2021-05-18T00:00:00Z" OR
+   *   update_time>"2020-05-18T00:00:00Z"` PipelineJobs created or updated
+   *   after 2020-05-18 00:00:00 UTC.
+   * * `labels.env = "prod"`
+   *   PipelineJobs with label "env" set to "prod".
    * 
* * string filter = 2; @@ -78,15 +90,27 @@ public interface ListTrainingPipelinesRequestOrBuilder * * *
-   * The standard list filter.
-   * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
-   * Some examples of using the filter are:
-   *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-   *  * `NOT display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_FAILED"`
+   * Lists the PipelineJobs that match the filter expression. The following
+   * fields are supported:
+   * * `pipeline_name`: Supports `=` and `!=` comparisons.
+   * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+   *   Values must be in RFC 3339 format.
+   * * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+   *   Values must be in RFC 3339 format.
+   * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+   *   Values must be in RFC 3339 format.
+   * * `labels`: Supports key-value equality and key presence.
+   * Filter expressions can be combined together using logical operators
+   * (`AND` & `OR`).
+   * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`.
+   * The syntax to define filter expression is based on
+   * https://google.aip.dev/160.
+   * Examples:
+   * * `create_time>"2021-05-18T00:00:00Z" OR
+   *   update_time>"2020-05-18T00:00:00Z"` PipelineJobs created or updated
+   *   after 2020-05-18 00:00:00 UTC.
+   * * `labels.env = "prod"`
+   *   PipelineJobs with label "env" set to "prod".
    * 
* * string filter = 2; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineResourcesProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineResourcesProto.java index a4eceb4ed..dd1ae8487 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineResourcesProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineResourcesProto.java @@ -51,6 +51,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_DiskSpec_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_DiskSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_AutoscalingMetricSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_AutoscalingMetricSpec_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -68,24 +72,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "achineSpec\022\031\n\014machine_type\030\001 \001(\tB\003\340A\005\022J\n" + "\020accelerator_type\030\002 \001(\0162+.google.cloud.a" + "iplatform.v1.AcceleratorTypeB\003\340A\005\022\031\n\021acc" - + "elerator_count\030\003 \001(\005\"\236\001\n\022DedicatedResour" + + "elerator_count\030\003 \001(\005\"\370\001\n\022DedicatedResour" + "ces\022E\n\014machine_spec\030\001 \001(\0132\'.google.cloud" + ".aiplatform.v1.MachineSpecB\006\340A\002\340A\005\022!\n\021mi" + "n_replica_count\030\002 \001(\005B\006\340A\002\340A\005\022\036\n\021max_rep" - + "lica_count\030\003 \001(\005B\003\340A\005\"T\n\022AutomaticResour" - + "ces\022\036\n\021min_replica_count\030\001 \001(\005B\003\340A\005\022\036\n\021m" - + "ax_replica_count\030\002 \001(\005B\003\340A\005\"\245\001\n\027BatchDed" - + "icatedResources\022E\n\014machine_spec\030\001 \001(\0132\'." - + "google.cloud.aiplatform.v1.MachineSpecB\006" - + "\340A\002\340A\005\022#\n\026starting_replica_count\030\002 \001(\005B\003" - + "\340A\005\022\036\n\021max_replica_count\030\003 \001(\005B\003\340A\005\"/\n\021R" - + "esourcesConsumed\022\032\n\rreplica_hours\030\001 \001(\001B" - + "\003\340A\003\"=\n\010DiskSpec\022\026\n\016boot_disk_type\030\001 \001(\t" - + "\022\031\n\021boot_disk_size_gb\030\002 \001(\005B\177\n\036com.googl" - + "e.cloud.aiplatform.v1B\025MachineResourcesP" - + "rotoP\001ZDgoogle.golang.org/genproto/googl" - + "eapis/cloud/aiplatform/v1;aiplatformb\006pr" - + "oto3" + + "lica_count\030\003 \001(\005B\003\340A\005\022X\n\030autoscaling_met" + + "ric_specs\030\004 \003(\01321.google.cloud.aiplatfor" + + "m.v1.AutoscalingMetricSpecB\003\340A\005\"T\n\022Autom" + + "aticResources\022\036\n\021min_replica_count\030\001 \001(\005" + + "B\003\340A\005\022\036\n\021max_replica_count\030\002 \001(\005B\003\340A\005\"\245\001" + + "\n\027BatchDedicatedResources\022E\n\014machine_spe" + + "c\030\001 \001(\0132\'.google.cloud.aiplatform.v1.Mac" + + "hineSpecB\006\340A\002\340A\005\022#\n\026starting_replica_cou" + + "nt\030\002 \001(\005B\003\340A\005\022\036\n\021max_replica_count\030\003 \001(\005" + + "B\003\340A\005\"/\n\021ResourcesConsumed\022\032\n\rreplica_ho" + + "urs\030\001 \001(\001B\003\340A\003\"=\n\010DiskSpec\022\026\n\016boot_disk_" + + "type\030\001 \001(\t\022\031\n\021boot_disk_size_gb\030\002 \001(\005\"A\n" + + "\025AutoscalingMetricSpec\022\030\n\013metric_name\030\001 " + + "\001(\tB\003\340A\002\022\016\n\006target\030\002 \001(\005B\331\001\n\036com.google." + + "cloud.aiplatform.v1B\025MachineResourcesPro" + + "toP\001ZDgoogle.golang.org/genproto/googlea" + + "pis/cloud/aiplatform/v1;aiplatform\252\002\032Goo" + + "gle.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\A" + + "IPlatform\\V1\352\002\035Google::Cloud::AIPlatform" + + "::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -109,7 +119,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_DedicatedResources_descriptor, new java.lang.String[] { - "MachineSpec", "MinReplicaCount", "MaxReplicaCount", + "MachineSpec", "MinReplicaCount", "MaxReplicaCount", "AutoscalingMetricSpecs", }); internal_static_google_cloud_aiplatform_v1_AutomaticResources_descriptor = getDescriptor().getMessageTypes().get(2); @@ -143,6 +153,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "BootDiskType", "BootDiskSizeGb", }); + internal_static_google_cloud_aiplatform_v1_AutoscalingMetricSpec_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_aiplatform_v1_AutoscalingMetricSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_AutoscalingMetricSpec_descriptor, + new java.lang.String[] { + "MetricName", "Target", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ManualBatchTuningParametersProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ManualBatchTuningParametersProto.java index d6b417b1c..d8a67b852 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ManualBatchTuningParametersProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ManualBatchTuningParametersProto.java @@ -45,11 +45,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "aiplatform.v1\032\037google/api/field_behavior" + ".proto\032\034google/api/annotations.proto\"6\n\033" + "ManualBatchTuningParameters\022\027\n\nbatch_siz" - + "e\030\001 \001(\005B\003\340A\005B\212\001\n\036com.google.cloud.aiplat" + + "e\030\001 \001(\005B\003\340A\005B\344\001\n\036com.google.cloud.aiplat" + "form.v1B ManualBatchTuningParametersProt" + "oP\001ZDgoogle.golang.org/genproto/googleap" - + "is/cloud/aiplatform/v1;aiplatformb\006proto" - + "3" + + "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( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Measurement.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Measurement.java index ea85b8825..c1b6073f9 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Measurement.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Measurement.java @@ -73,6 +73,21 @@ private Measurement( case 0: done = true; break; + case 10: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (elapsedDuration_ != null) { + subBuilder = elapsedDuration_.toBuilder(); + } + elapsedDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(elapsedDuration_); + elapsedDuration_ = subBuilder.buildPartial(); + } + + break; + } case 16: { stepCount_ = input.readInt64(); @@ -896,6 +911,60 @@ public com.google.cloud.aiplatform.v1.Measurement.Metric getDefaultInstanceForTy } } + public static final int ELAPSED_DURATION_FIELD_NUMBER = 1; + private com.google.protobuf.Duration elapsedDuration_; + /** + * + * + *
+   * Output only. Time that the Trial has been running at the point of this Measurement.
+   * 
+ * + * + * .google.protobuf.Duration elapsed_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the elapsedDuration field is set. + */ + @java.lang.Override + public boolean hasElapsedDuration() { + return elapsedDuration_ != null; + } + /** + * + * + *
+   * Output only. Time that the Trial has been running at the point of this Measurement.
+   * 
+ * + * + * .google.protobuf.Duration elapsed_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The elapsedDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getElapsedDuration() { + return elapsedDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : elapsedDuration_; + } + /** + * + * + *
+   * Output only. Time that the Trial has been running at the point of this Measurement.
+   * 
+ * + * + * .google.protobuf.Duration elapsed_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getElapsedDurationOrBuilder() { + return getElapsedDuration(); + } + public static final int STEP_COUNT_FIELD_NUMBER = 2; private long stepCount_; /** @@ -1013,6 +1082,9 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (elapsedDuration_ != null) { + output.writeMessage(1, getElapsedDuration()); + } if (stepCount_ != 0L) { output.writeInt64(2, stepCount_); } @@ -1028,6 +1100,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; + if (elapsedDuration_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getElapsedDuration()); + } if (stepCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, stepCount_); } @@ -1050,6 +1125,10 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.aiplatform.v1.Measurement other = (com.google.cloud.aiplatform.v1.Measurement) obj; + if (hasElapsedDuration() != other.hasElapsedDuration()) return false; + if (hasElapsedDuration()) { + if (!getElapsedDuration().equals(other.getElapsedDuration())) return false; + } if (getStepCount() != other.getStepCount()) return false; if (!getMetricsList().equals(other.getMetricsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -1063,6 +1142,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasElapsedDuration()) { + hash = (37 * hash) + ELAPSED_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getElapsedDuration().hashCode(); + } hash = (37 * hash) + STEP_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getStepCount()); if (getMetricsCount() > 0) { @@ -1218,6 +1301,12 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (elapsedDurationBuilder_ == null) { + elapsedDuration_ = null; + } else { + elapsedDuration_ = null; + elapsedDurationBuilder_ = null; + } stepCount_ = 0L; if (metricsBuilder_ == null) { @@ -1254,6 +1343,11 @@ public com.google.cloud.aiplatform.v1.Measurement buildPartial() { com.google.cloud.aiplatform.v1.Measurement result = new com.google.cloud.aiplatform.v1.Measurement(this); int from_bitField0_ = bitField0_; + if (elapsedDurationBuilder_ == null) { + result.elapsedDuration_ = elapsedDuration_; + } else { + result.elapsedDuration_ = elapsedDurationBuilder_.build(); + } result.stepCount_ = stepCount_; if (metricsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1313,6 +1407,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.aiplatform.v1.Measurement other) { if (other == com.google.cloud.aiplatform.v1.Measurement.getDefaultInstance()) return this; + if (other.hasElapsedDuration()) { + mergeElapsedDuration(other.getElapsedDuration()); + } if (other.getStepCount() != 0L) { setStepCount(other.getStepCount()); } @@ -1374,6 +1471,209 @@ public Builder mergeFrom( private int bitField0_; + private com.google.protobuf.Duration elapsedDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + elapsedDurationBuilder_; + /** + * + * + *
+     * Output only. Time that the Trial has been running at the point of this Measurement.
+     * 
+ * + * + * .google.protobuf.Duration elapsed_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the elapsedDuration field is set. + */ + public boolean hasElapsedDuration() { + return elapsedDurationBuilder_ != null || elapsedDuration_ != null; + } + /** + * + * + *
+     * Output only. Time that the Trial has been running at the point of this Measurement.
+     * 
+ * + * + * .google.protobuf.Duration elapsed_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The elapsedDuration. + */ + public com.google.protobuf.Duration getElapsedDuration() { + if (elapsedDurationBuilder_ == null) { + return elapsedDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : elapsedDuration_; + } else { + return elapsedDurationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time that the Trial has been running at the point of this Measurement.
+     * 
+ * + * + * .google.protobuf.Duration elapsed_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setElapsedDuration(com.google.protobuf.Duration value) { + if (elapsedDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + elapsedDuration_ = value; + onChanged(); + } else { + elapsedDurationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Time that the Trial has been running at the point of this Measurement.
+     * 
+ * + * + * .google.protobuf.Duration elapsed_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setElapsedDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (elapsedDurationBuilder_ == null) { + elapsedDuration_ = builderForValue.build(); + onChanged(); + } else { + elapsedDurationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Time that the Trial has been running at the point of this Measurement.
+     * 
+ * + * + * .google.protobuf.Duration elapsed_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeElapsedDuration(com.google.protobuf.Duration value) { + if (elapsedDurationBuilder_ == null) { + if (elapsedDuration_ != null) { + elapsedDuration_ = + com.google.protobuf.Duration.newBuilder(elapsedDuration_) + .mergeFrom(value) + .buildPartial(); + } else { + elapsedDuration_ = value; + } + onChanged(); + } else { + elapsedDurationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Time that the Trial has been running at the point of this Measurement.
+     * 
+ * + * + * .google.protobuf.Duration elapsed_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearElapsedDuration() { + if (elapsedDurationBuilder_ == null) { + elapsedDuration_ = null; + onChanged(); + } else { + elapsedDuration_ = null; + elapsedDurationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Time that the Trial has been running at the point of this Measurement.
+     * 
+ * + * + * .google.protobuf.Duration elapsed_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Duration.Builder getElapsedDurationBuilder() { + + onChanged(); + return getElapsedDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time that the Trial has been running at the point of this Measurement.
+     * 
+ * + * + * .google.protobuf.Duration elapsed_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.DurationOrBuilder getElapsedDurationOrBuilder() { + if (elapsedDurationBuilder_ != null) { + return elapsedDurationBuilder_.getMessageOrBuilder(); + } else { + return elapsedDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : elapsedDuration_; + } + } + /** + * + * + *
+     * Output only. Time that the Trial has been running at the point of this Measurement.
+     * 
+ * + * + * .google.protobuf.Duration elapsed_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getElapsedDurationFieldBuilder() { + if (elapsedDurationBuilder_ == null) { + elapsedDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getElapsedDuration(), getParentForChildren(), isClean()); + elapsedDuration_ = null; + } + return elapsedDurationBuilder_; + } + private long stepCount_; /** * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MeasurementOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MeasurementOrBuilder.java index 2e78c07ab..160bff415 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MeasurementOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MeasurementOrBuilder.java @@ -23,6 +23,47 @@ public interface MeasurementOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.Measurement) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * Output only. Time that the Trial has been running at the point of this Measurement.
+   * 
+ * + * + * .google.protobuf.Duration elapsed_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the elapsedDuration field is set. + */ + boolean hasElapsedDuration(); + /** + * + * + *
+   * Output only. Time that the Trial has been running at the point of this Measurement.
+   * 
+ * + * + * .google.protobuf.Duration elapsed_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The elapsedDuration. + */ + com.google.protobuf.Duration getElapsedDuration(); + /** + * + * + *
+   * Output only. Time that the Trial has been running at the point of this Measurement.
+   * 
+ * + * + * .google.protobuf.Duration elapsed_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.DurationOrBuilder getElapsedDurationOrBuilder(); + /** * * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigratableResourceProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigratableResourceProto.java index 2096f3f31..05073328c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigratableResourceProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigratableResourceProto.java @@ -96,22 +96,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "otated_dataset\030\001 \001(\tB1\372A.\n,datalabeling." + "googleapis.com/AnnotatedDataset\022&\n\036annot" + "ated_dataset_display_name\030\003 \001(\tB\n\n\010resou" - + "rceB\330\004\n\036com.google.cloud.aiplatform.v1B\027" + + "rceB\262\005\n\036com.google.cloud.aiplatform.v1B\027" + "MigratableResourceProtoP\001ZDgoogle.golang" + ".org/genproto/googleapis/cloud/aiplatfor" - + "m/v1;aiplatform\352AQ\n\031ml.googleapis.com/Ve" - + "rsion\0224projects/{project}/models/{model}" - + "/versions/{version}\352AU\n\033automl.googleapi" - + "s.com/Model\0226projects/{project}/location" - + "s/{location}/models/{model}\352A[\n\035automl.g" - + "oogleapis.com/Dataset\022:projects/{project" - + "}/locations/{location}/datasets/{dataset" - + "}\352AL\n#datalabeling.googleapis.com/Datase" - + "t\022%projects/{project}/datasets/{dataset}" - + "\352A{\n,datalabeling.googleapis.com/Annotat" - + "edDataset\022Kprojects/{project}/datasets/{" - + "dataset}/annotatedDatasets/{annotated_da" - + "taset}b\006proto3" + + "m/v1;aiplatform\252\002\032Google.Cloud.AIPlatfor" + + "m.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Goog" + + "le::Cloud::AIPlatform::V1\352AQ\n\031ml.googlea" + + "pis.com/Version\0224projects/{project}/mode" + + "ls/{model}/versions/{version}\352AU\n\033automl" + + ".googleapis.com/Model\0226projects/{project" + + "}/locations/{location}/models/{model}\352A[" + + "\n\035automl.googleapis.com/Dataset\022:project" + + "s/{project}/locations/{location}/dataset" + + "s/{dataset}\352AL\n#datalabeling.googleapis." + + "com/Dataset\022%projects/{project}/datasets" + + "/{dataset}\352A{\n,datalabeling.googleapis.c" + + "om/AnnotatedDataset\022Kprojects/{project}/" + + "datasets/{dataset}/annotatedDatasets/{an" + + "notated_dataset}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceProto.java index a3881088b..914ba2b5f 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceProto.java @@ -182,10 +182,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ateResourcesResponse\022&BatchMigrateResour" + "cesOperationMetadata\032M\312A\031aiplatform.goog" + "leapis.com\322A.https://www.googleapis.com/" - + "auth/cloud-platformB\177\n\036com.google.cloud." - + "aiplatform.v1B\025MigrationServiceProtoP\001ZD" - + "google.golang.org/genproto/googleapis/cl" - + "oud/aiplatform/v1;aiplatformb\006proto3" + + "auth/cloud-platformB\331\001\n\036com.google.cloud" + + ".aiplatform.v1B\025MigrationServiceProtoP\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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationProto.java index 25688003d..27cbba0ba 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationProto.java @@ -54,10 +54,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\n)aiplatform.googleapis.com/ModelEvaluat" + "ion\022Oprojects/{project}/locations/{locat" + "ion}/models/{model}/evaluations/{evaluat" - + "ion}B~\n\036com.google.cloud.aiplatform.v1B\024" - + "ModelEvaluationProtoP\001ZDgoogle.golang.or" - + "g/genproto/googleapis/cloud/aiplatform/v" - + "1;aiplatformb\006proto3" + + "ion}B\330\001\n\036com.google.cloud.aiplatform.v1B" + + "\024ModelEvaluationProtoP\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( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSliceProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSliceProto.java index f946cf783..e8ac640d6 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSliceProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelEvaluationSliceProto.java @@ -61,10 +61,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "orm.googleapis.com/ModelEvaluationSlice\022" + "^projects/{project}/locations/{location}" + "/models/{model}/evaluations/{evaluation}" - + "/slices/{slice}B\203\001\n\036com.google.cloud.aip" + + "/slices/{slice}B\335\001\n\036com.google.cloud.aip" + "latform.v1B\031ModelEvaluationSliceProtoP\001Z" + "Dgoogle.golang.org/genproto/googleapis/c" - + "loud/aiplatform/v1;aiplatformb\006proto3" + + "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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelProto.java index 04db5dde4..9a6dcb851 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelProto.java @@ -118,10 +118,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "google.cloud.aiplatform.v1.PortB\003\340A\005\022\032\n\r" + "predict_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_port\030\003 " - + "\001(\005Bt\n\036com.google.cloud.aiplatform.v1B\nM" - + "odelProtoP\001ZDgoogle.golang.org/genproto/" - + "googleapis/cloud/aiplatform/v1;aiplatfor" - + "mb\006proto3" + + "\001(\005B\316\001\n\036com.google.cloud.aiplatform.v1B\n" + + "ModelProtoP\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( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceProto.java index 01d27a837..7a984b638 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceProto.java @@ -239,10 +239,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ions/*/models/*/evaluations/*}/slices\332A\006" + "parent\032M\312A\031aiplatform.googleapis.com\322A.h" + "ttps://www.googleapis.com/auth/cloud-pla" - + "tformB{\n\036com.google.cloud.aiplatform.v1B" - + "\021ModelServiceProtoP\001ZDgoogle.golang.org/" - + "genproto/googleapis/cloud/aiplatform/v1;" - + "aiplatformb\006proto3" + + "tformB\325\001\n\036com.google.cloud.aiplatform.v1" + + "B\021ModelServiceProtoP\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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/OperationProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/OperationProto.java index ed01380f6..39cbbbd82 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/OperationProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/OperationProto.java @@ -56,10 +56,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "otobuf.TimestampB\003\340A\003\"i\n\027DeleteOperation" + "Metadata\022N\n\020generic_metadata\030\001 \001(\01324.goo" + "gle.cloud.aiplatform.v1.GenericOperation" - + "MetadataBx\n\036com.google.cloud.aiplatform." - + "v1B\016OperationProtoP\001ZDgoogle.golang.org/" - + "genproto/googleapis/cloud/aiplatform/v1;" - + "aiplatformb\006proto3" + + "MetadataB\322\001\n\036com.google.cloud.aiplatform" + + ".v1B\016OperationProtoP\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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Pipeline.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Pipeline.java new file mode 100644 index 000000000..833ab03cb --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Pipeline.java @@ -0,0 +1,358 @@ +/* + * 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 final class Pipeline { + private Pipeline() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_PipelineJob_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_PipelineJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_PipelineJob_RuntimeConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_PipelineJob_RuntimeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_PipelineJob_RuntimeConfig_ParametersEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_PipelineJob_RuntimeConfig_ParametersEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + 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_PipelineJobDetail_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_PipelineJobDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_ArtifactList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_ArtifactList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_InputsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_InputsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_OutputsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_OutputsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_PipelineTaskExecutorDetail_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_PipelineTaskExecutorDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_PipelineTaskExecutorDetail_ContainerDetail_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_PipelineTaskExecutorDetail_ContainerDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_PipelineTaskExecutorDetail_CustomJobDetail_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_PipelineTaskExecutorDetail_CustomJobDetail_fieldAccessorTable; + + 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/v1/pipeline_jo" + + "b.proto\022\032google.cloud.aiplatform.v1\032\037goo" + + "gle/api/field_behavior.proto\032\031google/api" + + "/resource.proto\032)google/cloud/aiplatform" + + "/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\032\034google/api/annotations.prot" + + "o\"\234\t\n\013PipelineJob\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014" + + "display_name\030\002 \001(\t\0224\n\013create_time\030\003 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\0223\n\nstar" + + "t_time\030\004 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\0221\n\010end_time\030\005 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\0223\n\rpipeli" + + "ne_spec\030\007 \001(\0132\027.google.protobuf.StructB\003" + + "\340A\002\022=\n\005state\030\010 \001(\0162).google.cloud.aiplat" + + "form.v1.PipelineStateB\003\340A\003\022F\n\njob_detail" + + "\030\t \001(\0132-.google.cloud.aiplatform.v1.Pipe" + + "lineJobDetailB\003\340A\003\022&\n\005error\030\n \001(\0132\022.goog" + + "le.rpc.StatusB\003\340A\003\022C\n\006labels\030\013 \003(\01323.goo" + + "gle.cloud.aiplatform.v1.PipelineJob.Labe" + + "lsEntry\022M\n\016runtime_config\030\014 \001(\01325.google" + + ".cloud.aiplatform.v1.PipelineJob.Runtime" + + "Config\022C\n\017encryption_spec\030\020 \001(\0132*.google" + + ".cloud.aiplatform.v1.EncryptionSpec\022\027\n\017s" + + "ervice_account\030\021 \001(\t\0224\n\007network\030\022 \001(\tB#\372" + + "A \n\036compute.googleapis.com/Network\032\343\001\n\rR" + + "untimeConfig\022Y\n\nparameters\030\001 \003(\0132E.googl" + + "e.cloud.aiplatform.v1.PipelineJob.Runtim" + + "eConfig.ParametersEntry\022!\n\024gcs_output_di" + + "rectory\030\002 \001(\tB\003\340A\002\032T\n\017ParametersEntry\022\013\n" + + "\003key\030\001 \001(\t\0220\n\005value\030\002 \001(\0132!.google.cloud" + + ".aiplatform.v1.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%ai" + + "platform.googleapis.com/PipelineJob\022Cpro" + + "jects/{project}/locations/{location}/pip" + + "elineJobs/{pipeline_job}\"\352\001\n\021PipelineJob" + + "Detail\022B\n\020pipeline_context\030\001 \001(\0132#.googl" + + "e.cloud.aiplatform.v1.ContextB\003\340A\003\022F\n\024pi" + + "peline_run_context\030\002 \001(\0132#.google.cloud." + + "aiplatform.v1.ContextB\003\340A\003\022I\n\014task_detai" + + "ls\030\003 \003(\0132..google.cloud.aiplatform.v1.Pi" + + "pelineTaskDetailB\003\340A\003\"\370\010\n\022PipelineTaskDe" + + "tail\022\024\n\007task_id\030\001 \001(\003B\003\340A\003\022\033\n\016parent_tas" + + "k_id\030\014 \001(\003B\003\340A\003\022\026\n\ttask_name\030\002 \001(\tB\003\340A\003\022" + + "4\n\013create_time\030\003 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\0223\n\nstart_time\030\004 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022T\n" + + "\017executor_detail\030\006 \001(\01326.google.cloud.ai" + + "platform.v1.PipelineTaskExecutorDetailB\003" + + "\340A\003\022H\n\005state\030\007 \001(\01624.google.cloud.aiplat" + + "form.v1.PipelineTaskDetail.StateB\003\340A\003\022=\n" + + "\texecution\030\010 \001(\0132%.google.cloud.aiplatfo" + + "rm.v1.ExecutionB\003\340A\003\022&\n\005error\030\t \001(\0132\022.go" + + "ogle.rpc.StatusB\003\340A\003\022O\n\006inputs\030\n \003(\0132:.g" + + "oogle.cloud.aiplatform.v1.PipelineTaskDe" + + "tail.InputsEntryB\003\340A\003\022Q\n\007outputs\030\013 \003(\0132;" + + ".google.cloud.aiplatform.v1.PipelineTask" + + "Detail.OutputsEntryB\003\340A\003\032L\n\014ArtifactList" + + "\022<\n\tartifacts\030\001 \003(\0132$.google.cloud.aipla" + + "tform.v1.ArtifactB\003\340A\003\032j\n\013InputsEntry\022\013\n" + + "\003key\030\001 \001(\t\022J\n\005value\030\002 \001(\0132;.google.cloud" + + ".aiplatform.v1.PipelineTaskDetail.Artifa" + + "ctList:\0028\001\032k\n\014OutputsEntry\022\013\n\003key\030\001 \001(\t\022" + + "J\n\005value\030\002 \001(\0132;.google.cloud.aiplatform" + + ".v1.PipelineTaskDetail.ArtifactList:\0028\001\"" + + "\246\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PEND" + + "ING\020\001\022\013\n\007RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\022\n\016CAN" + + "CEL_PENDING\020\004\022\016\n\nCANCELLING\020\005\022\r\n\tCANCELL" + + "ED\020\006\022\n\n\006FAILED\020\007\022\013\n\007SKIPPED\020\010\022\021\n\rNOT_TRI" + + "GGERED\020\t\"\354\003\n\032PipelineTaskExecutorDetail\022" + + "g\n\020container_detail\030\001 \001(\0132F.google.cloud" + + ".aiplatform.v1.PipelineTaskExecutorDetai" + + "l.ContainerDetailB\003\340A\003H\000\022j\n\021custom_job_d" + + "etail\030\002 \001(\0132F.google.cloud.aiplatform.v1" + + ".PipelineTaskExecutorDetail.CustomJobDet" + + "ailB\005\030\001\340A\003H\000\032\234\001\n\017ContainerDetail\022=\n\010main" + + "_job\030\001 \001(\tB+\340A\003\372A%\n#aiplatform.googleapi" + + "s.com/CustomJob\022J\n\025pre_caching_check_job" + + "\030\002 \001(\tB+\340A\003\372A%\n#aiplatform.googleapis.co" + + "m/CustomJob\032O\n\017CustomJobDetail\0228\n\003job\030\001 " + + "\001(\tB+\340A\003\372A%\n#aiplatform.googleapis.com/C" + + "ustomJob:\002\030\001B\t\n\007detailsB\235\002\n\036com.google.c" + + "loud.aiplatform.v1B\010PipelineP\001ZDgoogle.g" + + "olang.org/genproto/googleapis/cloud/aipl" + + "atform/v1;aiplatform\252\002\032Google.Cloud.AIPl" + + "atform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002" + + "\035Google::Cloud::AIPlatform::V1\352AN\n\036compu" + + "te.googleapis.com/Network\022,projects/{pro" + + "ject}/global/networks/{network}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.aiplatform.v1.ArtifactProto.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.PipelineStateProto.getDescriptor(), + com.google.cloud.aiplatform.v1.ValueProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1_PipelineJob_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1_PipelineJob_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_PipelineJob_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "CreateTime", + "StartTime", + "EndTime", + "UpdateTime", + "PipelineSpec", + "State", + "JobDetail", + "Error", + "Labels", + "RuntimeConfig", + "EncryptionSpec", + "ServiceAccount", + "Network", + }); + internal_static_google_cloud_aiplatform_v1_PipelineJob_RuntimeConfig_descriptor = + internal_static_google_cloud_aiplatform_v1_PipelineJob_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_aiplatform_v1_PipelineJob_RuntimeConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_PipelineJob_RuntimeConfig_descriptor, + new java.lang.String[] { + "Parameters", "GcsOutputDirectory", + }); + internal_static_google_cloud_aiplatform_v1_PipelineJob_RuntimeConfig_ParametersEntry_descriptor = + internal_static_google_cloud_aiplatform_v1_PipelineJob_RuntimeConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1_PipelineJob_RuntimeConfig_ParametersEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_PipelineJob_RuntimeConfig_ParametersEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_aiplatform_v1_PipelineJob_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1_PipelineJob_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_aiplatform_v1_PipelineJob_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_PipelineJob_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_aiplatform_v1_PipelineJobDetail_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_aiplatform_v1_PipelineJobDetail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_PipelineJobDetail_descriptor, + new java.lang.String[] { + "PipelineContext", "PipelineRunContext", "TaskDetails", + }); + internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_descriptor, + new java.lang.String[] { + "TaskId", + "ParentTaskId", + "TaskName", + "CreateTime", + "StartTime", + "EndTime", + "ExecutorDetail", + "State", + "Execution", + "Error", + "Inputs", + "Outputs", + }); + internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_ArtifactList_descriptor = + internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_ArtifactList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_ArtifactList_descriptor, + new java.lang.String[] { + "Artifacts", + }); + internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_InputsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_InputsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_InputsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_OutputsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_OutputsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_OutputsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_aiplatform_v1_PipelineTaskExecutorDetail_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_aiplatform_v1_PipelineTaskExecutorDetail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_PipelineTaskExecutorDetail_descriptor, + new java.lang.String[] { + "ContainerDetail", "CustomJobDetail", "Details", + }); + internal_static_google_cloud_aiplatform_v1_PipelineTaskExecutorDetail_ContainerDetail_descriptor = + internal_static_google_cloud_aiplatform_v1_PipelineTaskExecutorDetail_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1_PipelineTaskExecutorDetail_ContainerDetail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_PipelineTaskExecutorDetail_ContainerDetail_descriptor, + new java.lang.String[] { + "MainJob", "PreCachingCheckJob", + }); + internal_static_google_cloud_aiplatform_v1_PipelineTaskExecutorDetail_CustomJobDetail_descriptor = + internal_static_google_cloud_aiplatform_v1_PipelineTaskExecutorDetail_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_aiplatform_v1_PipelineTaskExecutorDetail_CustomJobDetail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_PipelineTaskExecutorDetail_CustomJobDetail_descriptor, + new java.lang.String[] { + "Job", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1.ArtifactProto.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.PipelineStateProto.getDescriptor(); + com.google.cloud.aiplatform.v1.ValueProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJob.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJob.java new file mode 100644 index 000000000..e147b5174 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJob.java @@ -0,0 +1,5566 @@ +/* + * 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; + +/** + * + * + *
+ * An instance of a machine learning PipelineJob.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.PipelineJob} + */ +public final class PipelineJob extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.PipelineJob) + PipelineJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use PipelineJob.newBuilder() to construct. + private PipelineJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PipelineJob() { + name_ = ""; + displayName_ = ""; + state_ = 0; + serviceAccount_ = ""; + network_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PipelineJob(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PipelineJob( + 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(); + + displayName_ = s; + break; + } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 58: + { + com.google.protobuf.Struct.Builder subBuilder = null; + if (pipelineSpec_ != null) { + subBuilder = pipelineSpec_.toBuilder(); + } + pipelineSpec_ = + input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pipelineSpec_); + pipelineSpec_ = subBuilder.buildPartial(); + } + + break; + } + case 64: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 74: + { + com.google.cloud.aiplatform.v1.PipelineJobDetail.Builder subBuilder = null; + if (jobDetail_ != null) { + subBuilder = jobDetail_.toBuilder(); + } + jobDetail_ = + input.readMessage( + com.google.cloud.aiplatform.v1.PipelineJobDetail.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(jobDetail_); + jobDetail_ = subBuilder.buildPartial(); + } + + break; + } + case 82: + { + com.google.rpc.Status.Builder subBuilder = null; + if (error_ != null) { + subBuilder = error_.toBuilder(); + } + error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(error_); + error_ = subBuilder.buildPartial(); + } + + break; + } + case 90: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; + } + case 98: + { + com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.Builder subBuilder = null; + if (runtimeConfig_ != null) { + subBuilder = runtimeConfig_.toBuilder(); + } + runtimeConfig_ = + input.readMessage( + com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(runtimeConfig_); + runtimeConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 130: + { + com.google.cloud.aiplatform.v1.EncryptionSpec.Builder subBuilder = null; + if (encryptionSpec_ != null) { + subBuilder = encryptionSpec_.toBuilder(); + } + encryptionSpec_ = + input.readMessage( + com.google.cloud.aiplatform.v1.EncryptionSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(encryptionSpec_); + encryptionSpec_ = subBuilder.buildPartial(); + } + + break; + } + case 138: + { + java.lang.String s = input.readStringRequireUtf8(); + + serviceAccount_ = s; + break; + } + case 146: + { + java.lang.String s = input.readStringRequireUtf8(); + + network_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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_PipelineJob_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 11: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.PipelineJob.class, + com.google.cloud.aiplatform.v1.PipelineJob.Builder.class); + } + + public interface RuntimeConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The runtime parameters of the PipelineJob. The parameters will be
+     * passed into [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] to replace the placeholders
+     * at runtime.
+     * 
+ * + * map<string, .google.cloud.aiplatform.v1.Value> parameters = 1; + */ + int getParametersCount(); + /** + * + * + *
+     * The runtime parameters of the PipelineJob. The parameters will be
+     * passed into [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] to replace the placeholders
+     * at runtime.
+     * 
+ * + * map<string, .google.cloud.aiplatform.v1.Value> parameters = 1; + */ + boolean containsParameters(java.lang.String key); + /** Use {@link #getParametersMap()} instead. */ + @java.lang.Deprecated + java.util.Map getParameters(); + /** + * + * + *
+     * The runtime parameters of the PipelineJob. The parameters will be
+     * passed into [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] to replace the placeholders
+     * at runtime.
+     * 
+ * + * map<string, .google.cloud.aiplatform.v1.Value> parameters = 1; + */ + java.util.Map getParametersMap(); + /** + * + * + *
+     * The runtime parameters of the PipelineJob. The parameters will be
+     * passed into [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] to replace the placeholders
+     * at runtime.
+     * 
+ * + * map<string, .google.cloud.aiplatform.v1.Value> parameters = 1; + */ + com.google.cloud.aiplatform.v1.Value getParametersOrDefault( + java.lang.String key, com.google.cloud.aiplatform.v1.Value defaultValue); + /** + * + * + *
+     * The runtime parameters of the PipelineJob. The parameters will be
+     * passed into [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] to replace the placeholders
+     * at runtime.
+     * 
+ * + * map<string, .google.cloud.aiplatform.v1.Value> parameters = 1; + */ + com.google.cloud.aiplatform.v1.Value getParametersOrThrow(java.lang.String key); + + /** + * + * + *
+     * Required. A path in a Cloud Storage bucket, which will be treated as the root
+     * output directory of the pipeline. It is used by the system to
+     * generate the paths of output artifacts. The artifact paths are generated
+     * with a sub-path pattern `{job_id}/{task_id}/{output_key}` under the
+     * specified output directory. The service account specified in this
+     * pipeline must have the `storage.objects.get` and `storage.objects.create`
+     * permissions for this bucket.
+     * 
+ * + * string gcs_output_directory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gcsOutputDirectory. + */ + java.lang.String getGcsOutputDirectory(); + /** + * + * + *
+     * Required. A path in a Cloud Storage bucket, which will be treated as the root
+     * output directory of the pipeline. It is used by the system to
+     * generate the paths of output artifacts. The artifact paths are generated
+     * with a sub-path pattern `{job_id}/{task_id}/{output_key}` under the
+     * specified output directory. The service account specified in this
+     * pipeline must have the `storage.objects.get` and `storage.objects.create`
+     * permissions for this bucket.
+     * 
+ * + * string gcs_output_directory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gcsOutputDirectory. + */ + com.google.protobuf.ByteString getGcsOutputDirectoryBytes(); + } + /** + * + * + *
+   * The runtime config of a PipelineJob.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig} + */ + public static final class RuntimeConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig) + RuntimeConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use RuntimeConfig.newBuilder() to construct. + private RuntimeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RuntimeConfig() { + gcsOutputDirectory_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RuntimeConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RuntimeConfig( + 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)) { + parameters_ = + com.google.protobuf.MapField.newMapField( + ParametersDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + parameters__ = + input.readMessage( + ParametersDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + parameters_.getMutableMap().put(parameters__.getKey(), parameters__.getValue()); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + gcsOutputDirectory_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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_PipelineJob_RuntimeConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetParameters(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineJob_RuntimeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.class, + com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.Builder.class); + } + + public static final int PARAMETERS_FIELD_NUMBER = 1; + + private static final class ParametersDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1.Value> + defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineJob_RuntimeConfig_ParametersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.aiplatform.v1.Value.getDefaultInstance()); + } + + private com.google.protobuf.MapField + parameters_; + + private com.google.protobuf.MapField + internalGetParameters() { + if (parameters_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParametersDefaultEntryHolder.defaultEntry); + } + return parameters_; + } + + public int getParametersCount() { + return internalGetParameters().getMap().size(); + } + /** + * + * + *
+     * The runtime parameters of the PipelineJob. The parameters will be
+     * passed into [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] to replace the placeholders
+     * at runtime.
+     * 
+ * + * map<string, .google.cloud.aiplatform.v1.Value> parameters = 1; + */ + @java.lang.Override + public boolean containsParameters(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetParameters().getMap().containsKey(key); + } + /** Use {@link #getParametersMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getParameters() { + return getParametersMap(); + } + /** + * + * + *
+     * The runtime parameters of the PipelineJob. The parameters will be
+     * passed into [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] to replace the placeholders
+     * at runtime.
+     * 
+ * + * map<string, .google.cloud.aiplatform.v1.Value> parameters = 1; + */ + @java.lang.Override + public java.util.Map + getParametersMap() { + return internalGetParameters().getMap(); + } + /** + * + * + *
+     * The runtime parameters of the PipelineJob. The parameters will be
+     * passed into [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] to replace the placeholders
+     * at runtime.
+     * 
+ * + * map<string, .google.cloud.aiplatform.v1.Value> parameters = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Value getParametersOrDefault( + java.lang.String key, com.google.cloud.aiplatform.v1.Value defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetParameters().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * The runtime parameters of the PipelineJob. The parameters will be
+     * passed into [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] to replace the placeholders
+     * at runtime.
+     * 
+ * + * map<string, .google.cloud.aiplatform.v1.Value> parameters = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Value getParametersOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetParameters().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int GCS_OUTPUT_DIRECTORY_FIELD_NUMBER = 2; + private volatile java.lang.Object gcsOutputDirectory_; + /** + * + * + *
+     * Required. A path in a Cloud Storage bucket, which will be treated as the root
+     * output directory of the pipeline. It is used by the system to
+     * generate the paths of output artifacts. The artifact paths are generated
+     * with a sub-path pattern `{job_id}/{task_id}/{output_key}` under the
+     * specified output directory. The service account specified in this
+     * pipeline must have the `storage.objects.get` and `storage.objects.create`
+     * permissions for this bucket.
+     * 
+ * + * string gcs_output_directory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gcsOutputDirectory. + */ + @java.lang.Override + public java.lang.String getGcsOutputDirectory() { + java.lang.Object ref = gcsOutputDirectory_; + 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(); + gcsOutputDirectory_ = s; + return s; + } + } + /** + * + * + *
+     * Required. A path in a Cloud Storage bucket, which will be treated as the root
+     * output directory of the pipeline. It is used by the system to
+     * generate the paths of output artifacts. The artifact paths are generated
+     * with a sub-path pattern `{job_id}/{task_id}/{output_key}` under the
+     * specified output directory. The service account specified in this
+     * pipeline must have the `storage.objects.get` and `storage.objects.create`
+     * permissions for this bucket.
+     * 
+ * + * string gcs_output_directory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gcsOutputDirectory. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { + java.lang.Object ref = gcsOutputDirectory_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsOutputDirectory_ = 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 { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetParameters(), ParametersDefaultEntryHolder.defaultEntry, 1); + if (!getGcsOutputDirectoryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, gcsOutputDirectory_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry : + internalGetParameters().getMap().entrySet()) { + com.google.protobuf.MapEntry + parameters__ = + ParametersDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, parameters__); + } + if (!getGcsOutputDirectoryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, gcsOutputDirectory_); + } + 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.PipelineJob.RuntimeConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig other = + (com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig) obj; + + if (!internalGetParameters().equals(other.internalGetParameters())) return false; + if (!getGcsOutputDirectory().equals(other.getGcsOutputDirectory())) 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 (!internalGetParameters().getMap().isEmpty()) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + internalGetParameters().hashCode(); + } + hash = (37 * hash) + GCS_OUTPUT_DIRECTORY_FIELD_NUMBER; + hash = (53 * hash) + getGcsOutputDirectory().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig 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.PipelineJob.RuntimeConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig 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.PipelineJob.RuntimeConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig 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.PipelineJob.RuntimeConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig 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.PipelineJob.RuntimeConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig 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.PipelineJob.RuntimeConfig 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.PipelineJob.RuntimeConfig 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.PipelineJob.RuntimeConfig 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; + } + /** + * + * + *
+     * The runtime config of a PipelineJob.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig) + com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineJob_RuntimeConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetParameters(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 1: + return internalGetMutableParameters(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineJob_RuntimeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.class, + com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.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(); + internalGetMutableParameters().clear(); + gcsOutputDirectory_ = ""; + + 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_PipelineJob_RuntimeConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig build() { + com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig buildPartial() { + com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig result = + new com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig(this); + int from_bitField0_ = bitField0_; + result.parameters_ = internalGetParameters(); + result.parameters_.makeImmutable(); + result.gcsOutputDirectory_ = gcsOutputDirectory_; + 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.PipelineJob.RuntimeConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig other) { + if (other == com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.getDefaultInstance()) + return this; + internalGetMutableParameters().mergeFrom(other.internalGetParameters()); + if (!other.getGcsOutputDirectory().isEmpty()) { + gcsOutputDirectory_ = other.gcsOutputDirectory_; + 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.PipelineJob.RuntimeConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.MapField + parameters_; + + private com.google.protobuf.MapField + internalGetParameters() { + if (parameters_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParametersDefaultEntryHolder.defaultEntry); + } + return parameters_; + } + + private com.google.protobuf.MapField + internalGetMutableParameters() { + onChanged(); + ; + if (parameters_ == null) { + parameters_ = + com.google.protobuf.MapField.newMapField(ParametersDefaultEntryHolder.defaultEntry); + } + if (!parameters_.isMutable()) { + parameters_ = parameters_.copy(); + } + return parameters_; + } + + public int getParametersCount() { + return internalGetParameters().getMap().size(); + } + /** + * + * + *
+       * The runtime parameters of the PipelineJob. The parameters will be
+       * passed into [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] to replace the placeholders
+       * at runtime.
+       * 
+ * + * map<string, .google.cloud.aiplatform.v1.Value> parameters = 1; + */ + @java.lang.Override + public boolean containsParameters(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetParameters().getMap().containsKey(key); + } + /** Use {@link #getParametersMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getParameters() { + return getParametersMap(); + } + /** + * + * + *
+       * The runtime parameters of the PipelineJob. The parameters will be
+       * passed into [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] to replace the placeholders
+       * at runtime.
+       * 
+ * + * map<string, .google.cloud.aiplatform.v1.Value> parameters = 1; + */ + @java.lang.Override + public java.util.Map + getParametersMap() { + return internalGetParameters().getMap(); + } + /** + * + * + *
+       * The runtime parameters of the PipelineJob. The parameters will be
+       * passed into [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] to replace the placeholders
+       * at runtime.
+       * 
+ * + * map<string, .google.cloud.aiplatform.v1.Value> parameters = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Value getParametersOrDefault( + java.lang.String key, com.google.cloud.aiplatform.v1.Value defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetParameters().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+       * The runtime parameters of the PipelineJob. The parameters will be
+       * passed into [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] to replace the placeholders
+       * at runtime.
+       * 
+ * + * map<string, .google.cloud.aiplatform.v1.Value> parameters = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Value getParametersOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetParameters().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearParameters() { + internalGetMutableParameters().getMutableMap().clear(); + return this; + } + /** + * + * + *
+       * The runtime parameters of the PipelineJob. The parameters will be
+       * passed into [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] to replace the placeholders
+       * at runtime.
+       * 
+ * + * map<string, .google.cloud.aiplatform.v1.Value> parameters = 1; + */ + public Builder removeParameters(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableParameters().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableParameters() { + return internalGetMutableParameters().getMutableMap(); + } + /** + * + * + *
+       * The runtime parameters of the PipelineJob. The parameters will be
+       * passed into [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] to replace the placeholders
+       * at runtime.
+       * 
+ * + * map<string, .google.cloud.aiplatform.v1.Value> parameters = 1; + */ + public Builder putParameters( + java.lang.String key, com.google.cloud.aiplatform.v1.Value value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableParameters().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+       * The runtime parameters of the PipelineJob. The parameters will be
+       * passed into [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] to replace the placeholders
+       * at runtime.
+       * 
+ * + * map<string, .google.cloud.aiplatform.v1.Value> parameters = 1; + */ + public Builder putAllParameters( + java.util.Map values) { + internalGetMutableParameters().getMutableMap().putAll(values); + return this; + } + + private java.lang.Object gcsOutputDirectory_ = ""; + /** + * + * + *
+       * Required. A path in a Cloud Storage bucket, which will be treated as the root
+       * output directory of the pipeline. It is used by the system to
+       * generate the paths of output artifacts. The artifact paths are generated
+       * with a sub-path pattern `{job_id}/{task_id}/{output_key}` under the
+       * specified output directory. The service account specified in this
+       * pipeline must have the `storage.objects.get` and `storage.objects.create`
+       * permissions for this bucket.
+       * 
+ * + * string gcs_output_directory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gcsOutputDirectory. + */ + public java.lang.String getGcsOutputDirectory() { + java.lang.Object ref = gcsOutputDirectory_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsOutputDirectory_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. A path in a Cloud Storage bucket, which will be treated as the root
+       * output directory of the pipeline. It is used by the system to
+       * generate the paths of output artifacts. The artifact paths are generated
+       * with a sub-path pattern `{job_id}/{task_id}/{output_key}` under the
+       * specified output directory. The service account specified in this
+       * pipeline must have the `storage.objects.get` and `storage.objects.create`
+       * permissions for this bucket.
+       * 
+ * + * string gcs_output_directory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gcsOutputDirectory. + */ + public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { + java.lang.Object ref = gcsOutputDirectory_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsOutputDirectory_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. A path in a Cloud Storage bucket, which will be treated as the root
+       * output directory of the pipeline. It is used by the system to
+       * generate the paths of output artifacts. The artifact paths are generated
+       * with a sub-path pattern `{job_id}/{task_id}/{output_key}` under the
+       * specified output directory. The service account specified in this
+       * pipeline must have the `storage.objects.get` and `storage.objects.create`
+       * permissions for this bucket.
+       * 
+ * + * string gcs_output_directory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The gcsOutputDirectory to set. + * @return This builder for chaining. + */ + public Builder setGcsOutputDirectory(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + gcsOutputDirectory_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. A path in a Cloud Storage bucket, which will be treated as the root
+       * output directory of the pipeline. It is used by the system to
+       * generate the paths of output artifacts. The artifact paths are generated
+       * with a sub-path pattern `{job_id}/{task_id}/{output_key}` under the
+       * specified output directory. The service account specified in this
+       * pipeline must have the `storage.objects.get` and `storage.objects.create`
+       * permissions for this bucket.
+       * 
+ * + * string gcs_output_directory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearGcsOutputDirectory() { + + gcsOutputDirectory_ = getDefaultInstance().getGcsOutputDirectory(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. A path in a Cloud Storage bucket, which will be treated as the root
+       * output directory of the pipeline. It is used by the system to
+       * generate the paths of output artifacts. The artifact paths are generated
+       * with a sub-path pattern `{job_id}/{task_id}/{output_key}` under the
+       * specified output directory. The service account specified in this
+       * pipeline must have the `storage.objects.get` and `storage.objects.create`
+       * permissions for this bucket.
+       * 
+ * + * string gcs_output_directory = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for gcsOutputDirectory to set. + * @return This builder for chaining. + */ + public Builder setGcsOutputDirectoryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + gcsOutputDirectory_ = 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.PipelineJob.RuntimeConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig) + private static final com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig(); + } + + public static com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RuntimeConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RuntimeConfig(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.PipelineJob.RuntimeConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. The resource name of the PipelineJob.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+   * Output only. The resource name of the PipelineJob.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 DISPLAY_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * The display name of the Pipeline.
+   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * characters.
+   * 
+ * + * string display_name = 2; + * + * @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 Pipeline.
+   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * characters.
+   * 
+ * + * string display_name = 2; + * + * @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 CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Pipeline creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Pipeline creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Pipeline creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int START_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * Output only. Pipeline start time.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return startTime_ != null; + } + /** + * + * + *
+   * Output only. Pipeline start time.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * Output only. Pipeline start time.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int END_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * Output only. Pipeline end time.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return endTime_ != null; + } + /** + * + * + *
+   * Output only. Pipeline end time.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * Output only. Pipeline end time.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Timestamp when this PipelineJob was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. Timestamp when this PipelineJob was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. Timestamp when this PipelineJob was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int PIPELINE_SPEC_FIELD_NUMBER = 7; + private com.google.protobuf.Struct pipelineSpec_; + /** + * + * + *
+   * Required. The spec of the pipeline.
+   * 
+ * + * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the pipelineSpec field is set. + */ + @java.lang.Override + public boolean hasPipelineSpec() { + return pipelineSpec_ != null; + } + /** + * + * + *
+   * Required. The spec of the pipeline.
+   * 
+ * + * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The pipelineSpec. + */ + @java.lang.Override + public com.google.protobuf.Struct getPipelineSpec() { + return pipelineSpec_ == null ? com.google.protobuf.Struct.getDefaultInstance() : pipelineSpec_; + } + /** + * + * + *
+   * Required. The spec of the pipeline.
+   * 
+ * + * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getPipelineSpecOrBuilder() { + return getPipelineSpec(); + } + + public static final int STATE_FIELD_NUMBER = 8; + private int state_; + /** + * + * + *
+   * Output only. The detailed state of the job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. The detailed state of the job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineState getState() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1.PipelineState result = + com.google.cloud.aiplatform.v1.PipelineState.valueOf(state_); + return result == null ? com.google.cloud.aiplatform.v1.PipelineState.UNRECOGNIZED : result; + } + + public static final int JOB_DETAIL_FIELD_NUMBER = 9; + private com.google.cloud.aiplatform.v1.PipelineJobDetail jobDetail_; + /** + * + * + *
+   * Output only. The details of pipeline run. Not available in the list view.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineJobDetail job_detail = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the jobDetail field is set. + */ + @java.lang.Override + public boolean hasJobDetail() { + return jobDetail_ != null; + } + /** + * + * + *
+   * Output only. The details of pipeline run. Not available in the list view.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineJobDetail job_detail = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The jobDetail. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineJobDetail getJobDetail() { + return jobDetail_ == null + ? com.google.cloud.aiplatform.v1.PipelineJobDetail.getDefaultInstance() + : jobDetail_; + } + /** + * + * + *
+   * Output only. The details of pipeline run. Not available in the list view.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineJobDetail job_detail = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineJobDetailOrBuilder getJobDetailOrBuilder() { + return getJobDetail(); + } + + public static final int ERROR_FIELD_NUMBER = 10; + private com.google.rpc.Status error_; + /** + * + * + *
+   * Output only. The error that occurred during pipeline execution.
+   * Only populated when the pipeline's state is FAILED or CANCELLED.
+   * 
+ * + * .google.rpc.Status error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return error_ != null; + } + /** + * + * + *
+   * Output only. The error that occurred during pipeline execution.
+   * Only populated when the pipeline's state is FAILED or CANCELLED.
+   * 
+ * + * .google.rpc.Status error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + /** + * + * + *
+   * Output only. The error that occurred during pipeline execution.
+   * Only populated when the pipeline's state is FAILED or CANCELLED.
+   * 
+ * + * .google.rpc.Status error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + return getError(); + } + + public static final int LABELS_FIELD_NUMBER = 11; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineJob_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+   * The labels with user-defined metadata to organize PipelineJob.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * 
+ * + * map<string, string> labels = 11; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+   * The labels with user-defined metadata to organize PipelineJob.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * 
+ * + * map<string, string> labels = 11; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * The labels with user-defined metadata to organize PipelineJob.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * 
+ * + * map<string, string> labels = 11; + */ + @java.lang.Override + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * The labels with user-defined metadata to organize PipelineJob.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * 
+ * + * map<string, string> labels = 11; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int RUNTIME_CONFIG_FIELD_NUMBER = 12; + private com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig runtimeConfig_; + /** + * + * + *
+   * Runtime config of the pipeline.
+   * 
+ * + * .google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig runtime_config = 12; + * + * @return Whether the runtimeConfig field is set. + */ + @java.lang.Override + public boolean hasRuntimeConfig() { + return runtimeConfig_ != null; + } + /** + * + * + *
+   * Runtime config of the pipeline.
+   * 
+ * + * .google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig runtime_config = 12; + * + * @return The runtimeConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig getRuntimeConfig() { + return runtimeConfig_ == null + ? com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.getDefaultInstance() + : runtimeConfig_; + } + /** + * + * + *
+   * Runtime config of the pipeline.
+   * 
+ * + * .google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig runtime_config = 12; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfigOrBuilder + getRuntimeConfigOrBuilder() { + return getRuntimeConfig(); + } + + public static final int ENCRYPTION_SPEC_FIELD_NUMBER = 16; + private com.google.cloud.aiplatform.v1.EncryptionSpec encryptionSpec_; + /** + * + * + *
+   * Customer-managed encryption key spec for a pipelineJob. If set, this
+   * PipelineJob and all of its sub-resources will be secured by this key.
+   * 
+ * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; + * + * @return Whether the encryptionSpec field is set. + */ + @java.lang.Override + public boolean hasEncryptionSpec() { + return encryptionSpec_ != null; + } + /** + * + * + *
+   * Customer-managed encryption key spec for a pipelineJob. If set, this
+   * PipelineJob and all of its sub-resources will be secured by this key.
+   * 
+ * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; + * + * @return The encryptionSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.EncryptionSpec getEncryptionSpec() { + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; + } + /** + * + * + *
+   * Customer-managed encryption key spec for a pipelineJob. If set, this
+   * PipelineJob and all of its sub-resources will be secured by this key.
+   * 
+ * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { + return getEncryptionSpec(); + } + + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 17; + private volatile java.lang.Object serviceAccount_; + /** + * + * + *
+   * The service account that the pipeline workload runs as.
+   * If not specified, the Compute Engine default service account in the project
+   * will be used.
+   * See
+   * https://cloud.google.com/compute/docs/access/service-accounts#default_service_account
+   * Users starting the pipeline must have the `iam.serviceAccounts.actAs`
+   * permission on this service account.
+   * 
+ * + * string service_account = 17; + * + * @return The serviceAccount. + */ + @java.lang.Override + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + 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(); + serviceAccount_ = s; + return s; + } + } + /** + * + * + *
+   * The service account that the pipeline workload runs as.
+   * If not specified, the Compute Engine default service account in the project
+   * will be used.
+   * See
+   * https://cloud.google.com/compute/docs/access/service-accounts#default_service_account
+   * Users starting the pipeline must have the `iam.serviceAccounts.actAs`
+   * permission on this service account.
+   * 
+ * + * string service_account = 17; + * + * @return The bytes for serviceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_FIELD_NUMBER = 18; + private volatile java.lang.Object network_; + /** + * + * + *
+   * The full name of the Compute Engine
+   * [network](/compute/docs/networks-and-firewalls#networks) to which the
+   * Pipeline Job's workload should be peered. For example,
+   * `projects/12345/global/networks/myVPC`.
+   * [Format](/compute/docs/reference/rest/v1/networks/insert)
+   * is of the form `projects/{project}/global/networks/{network}`.
+   * Where {project} is a project number, as in `12345`, and {network} is a
+   * network name.
+   * Private services access must already be configured for the network.
+   * Pipeline job will apply the network configuration to the GCP resources
+   * being launched, if applied, such as Vertex AI
+   * Training or Dataflow job. If left unspecified, the workload is not peered
+   * with any network.
+   * 
+ * + * string network = 18 [(.google.api.resource_reference) = { ... } + * + * @return The network. + */ + @java.lang.Override + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + 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(); + network_ = s; + return s; + } + } + /** + * + * + *
+   * The full name of the Compute Engine
+   * [network](/compute/docs/networks-and-firewalls#networks) to which the
+   * Pipeline Job's workload should be peered. For example,
+   * `projects/12345/global/networks/myVPC`.
+   * [Format](/compute/docs/reference/rest/v1/networks/insert)
+   * is of the form `projects/{project}/global/networks/{network}`.
+   * Where {project} is a project number, as in `12345`, and {network} is a
+   * network name.
+   * Private services access must already be configured for the network.
+   * Pipeline job will apply the network configuration to the GCP resources
+   * being launched, if applied, such as Vertex AI
+   * Training or Dataflow job. If left unspecified, the workload is not peered
+   * with any network.
+   * 
+ * + * string network = 18 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for network. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (createTime_ != null) { + output.writeMessage(3, getCreateTime()); + } + if (startTime_ != null) { + output.writeMessage(4, getStartTime()); + } + if (endTime_ != null) { + output.writeMessage(5, getEndTime()); + } + if (updateTime_ != null) { + output.writeMessage(6, getUpdateTime()); + } + if (pipelineSpec_ != null) { + output.writeMessage(7, getPipelineSpec()); + } + if (state_ + != com.google.cloud.aiplatform.v1.PipelineState.PIPELINE_STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(8, state_); + } + if (jobDetail_ != null) { + output.writeMessage(9, getJobDetail()); + } + if (error_ != null) { + output.writeMessage(10, getError()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 11); + if (runtimeConfig_ != null) { + output.writeMessage(12, getRuntimeConfig()); + } + if (encryptionSpec_ != null) { + output.writeMessage(16, getEncryptionSpec()); + } + if (!getServiceAccountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 17, serviceAccount_); + } + if (!getNetworkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, network_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); + } + if (pipelineSpec_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getPipelineSpec()); + } + if (state_ + != com.google.cloud.aiplatform.v1.PipelineState.PIPELINE_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); + } + if (jobDetail_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getJobDetail()); + } + if (error_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getError()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, labels__); + } + if (runtimeConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getRuntimeConfig()); + } + if (encryptionSpec_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getEncryptionSpec()); + } + if (!getServiceAccountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, serviceAccount_); + } + if (!getNetworkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, network_); + } + 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.PipelineJob)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.PipelineJob other = + (com.google.cloud.aiplatform.v1.PipelineJob) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (hasPipelineSpec() != other.hasPipelineSpec()) return false; + if (hasPipelineSpec()) { + if (!getPipelineSpec().equals(other.getPipelineSpec())) return false; + } + if (state_ != other.state_) return false; + if (hasJobDetail() != other.hasJobDetail()) return false; + if (hasJobDetail()) { + if (!getJobDetail().equals(other.getJobDetail())) return false; + } + if (hasError() != other.hasError()) return false; + if (hasError()) { + if (!getError().equals(other.getError())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (hasRuntimeConfig() != other.hasRuntimeConfig()) return false; + if (hasRuntimeConfig()) { + if (!getRuntimeConfig().equals(other.getRuntimeConfig())) return false; + } + if (hasEncryptionSpec() != other.hasEncryptionSpec()) return false; + if (hasEncryptionSpec()) { + if (!getEncryptionSpec().equals(other.getEncryptionSpec())) return false; + } + if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (!getNetwork().equals(other.getNetwork())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasPipelineSpec()) { + hash = (37 * hash) + PIPELINE_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getPipelineSpec().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasJobDetail()) { + hash = (37 * hash) + JOB_DETAIL_FIELD_NUMBER; + hash = (53 * hash) + getJobDetail().hashCode(); + } + if (hasError()) { + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (hasRuntimeConfig()) { + hash = (37 * hash) + RUNTIME_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRuntimeConfig().hashCode(); + } + if (hasEncryptionSpec()) { + hash = (37 * hash) + ENCRYPTION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getEncryptionSpec().hashCode(); + } + hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.PipelineJob parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PipelineJob 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.PipelineJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PipelineJob 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.PipelineJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PipelineJob 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.PipelineJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.PipelineJob 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.PipelineJob parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.PipelineJob 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.PipelineJob 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.PipelineJob 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.PipelineJob 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; + } + /** + * + * + *
+   * An instance of a machine learning PipelineJob.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.PipelineJob} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.PipelineJob) + com.google.cloud.aiplatform.v1.PipelineJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineJob_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 11: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 11: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.PipelineJob.class, + com.google.cloud.aiplatform.v1.PipelineJob.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.PipelineJob.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_ = ""; + + displayName_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + if (pipelineSpecBuilder_ == null) { + pipelineSpec_ = null; + } else { + pipelineSpec_ = null; + pipelineSpecBuilder_ = null; + } + state_ = 0; + + if (jobDetailBuilder_ == null) { + jobDetail_ = null; + } else { + jobDetail_ = null; + jobDetailBuilder_ = null; + } + if (errorBuilder_ == null) { + error_ = null; + } else { + error_ = null; + errorBuilder_ = null; + } + internalGetMutableLabels().clear(); + if (runtimeConfigBuilder_ == null) { + runtimeConfig_ = null; + } else { + runtimeConfig_ = null; + runtimeConfigBuilder_ = null; + } + if (encryptionSpecBuilder_ == null) { + encryptionSpec_ = null; + } else { + encryptionSpec_ = null; + encryptionSpecBuilder_ = null; + } + serviceAccount_ = ""; + + network_ = ""; + + 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_PipelineJob_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineJob getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.PipelineJob.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineJob build() { + com.google.cloud.aiplatform.v1.PipelineJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineJob buildPartial() { + com.google.cloud.aiplatform.v1.PipelineJob result = + new com.google.cloud.aiplatform.v1.PipelineJob(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.displayName_ = displayName_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + if (pipelineSpecBuilder_ == null) { + result.pipelineSpec_ = pipelineSpec_; + } else { + result.pipelineSpec_ = pipelineSpecBuilder_.build(); + } + result.state_ = state_; + if (jobDetailBuilder_ == null) { + result.jobDetail_ = jobDetail_; + } else { + result.jobDetail_ = jobDetailBuilder_.build(); + } + if (errorBuilder_ == null) { + result.error_ = error_; + } else { + result.error_ = errorBuilder_.build(); + } + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + if (runtimeConfigBuilder_ == null) { + result.runtimeConfig_ = runtimeConfig_; + } else { + result.runtimeConfig_ = runtimeConfigBuilder_.build(); + } + if (encryptionSpecBuilder_ == null) { + result.encryptionSpec_ = encryptionSpec_; + } else { + result.encryptionSpec_ = encryptionSpecBuilder_.build(); + } + result.serviceAccount_ = serviceAccount_; + result.network_ = network_; + 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.PipelineJob) { + return mergeFrom((com.google.cloud.aiplatform.v1.PipelineJob) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.PipelineJob other) { + if (other == com.google.cloud.aiplatform.v1.PipelineJob.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasPipelineSpec()) { + mergePipelineSpec(other.getPipelineSpec()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasJobDetail()) { + mergeJobDetail(other.getJobDetail()); + } + if (other.hasError()) { + mergeError(other.getError()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + if (other.hasRuntimeConfig()) { + mergeRuntimeConfig(other.getRuntimeConfig()); + } + if (other.hasEncryptionSpec()) { + mergeEncryptionSpec(other.getEncryptionSpec()); + } + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + onChanged(); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + 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.PipelineJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1.PipelineJob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name of the PipelineJob.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+     * Output only. The resource name of the PipelineJob.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+     * Output only. The resource name of the PipelineJob.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + /** + * + * + *
+     * Output only. The resource name of the PipelineJob.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the PipelineJob.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 displayName_ = ""; + /** + * + * + *
+     * The display name of the Pipeline.
+     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * characters.
+     * 
+ * + * string display_name = 2; + * + * @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 Pipeline.
+     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * characters.
+     * 
+ * + * string display_name = 2; + * + * @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 Pipeline.
+     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * characters.
+     * 
+ * + * string display_name = 2; + * + * @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 Pipeline.
+     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * characters.
+     * 
+ * + * string display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The display name of the Pipeline.
+     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * characters.
+     * 
+ * + * string display_name = 2; + * + * @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 com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Pipeline creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Output only. Pipeline creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Pipeline creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Pipeline creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Pipeline creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Pipeline creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Pipeline creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Pipeline creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Pipeline creation time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * Output only. Pipeline start time.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + * + * + *
+     * Output only. Pipeline start time.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Pipeline start time.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Pipeline start time.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Pipeline start time.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Pipeline start time.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Pipeline start time.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Pipeline start time.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * Output only. Pipeline start time.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * Output only. Pipeline end time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + * + * + *
+     * Output only. Pipeline end time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Pipeline end time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Pipeline end time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Pipeline end time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Pipeline end time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Pipeline end time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Pipeline end time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * Output only. Pipeline end time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when this PipelineJob was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + * + * + *
+     * Output only. Timestamp when this PipelineJob was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp when this PipelineJob was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this PipelineJob was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this PipelineJob was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this PipelineJob was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this PipelineJob was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this PipelineJob was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp when this PipelineJob was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.Struct pipelineSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + pipelineSpecBuilder_; + /** + * + * + *
+     * Required. The spec of the pipeline.
+     * 
+ * + * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the pipelineSpec field is set. + */ + public boolean hasPipelineSpec() { + return pipelineSpecBuilder_ != null || pipelineSpec_ != null; + } + /** + * + * + *
+     * Required. The spec of the pipeline.
+     * 
+ * + * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The pipelineSpec. + */ + public com.google.protobuf.Struct getPipelineSpec() { + if (pipelineSpecBuilder_ == null) { + return pipelineSpec_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : pipelineSpec_; + } else { + return pipelineSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The spec of the pipeline.
+     * 
+ * + * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPipelineSpec(com.google.protobuf.Struct value) { + if (pipelineSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pipelineSpec_ = value; + onChanged(); + } else { + pipelineSpecBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The spec of the pipeline.
+     * 
+ * + * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPipelineSpec(com.google.protobuf.Struct.Builder builderForValue) { + if (pipelineSpecBuilder_ == null) { + pipelineSpec_ = builderForValue.build(); + onChanged(); + } else { + pipelineSpecBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The spec of the pipeline.
+     * 
+ * + * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePipelineSpec(com.google.protobuf.Struct value) { + if (pipelineSpecBuilder_ == null) { + if (pipelineSpec_ != null) { + pipelineSpec_ = + com.google.protobuf.Struct.newBuilder(pipelineSpec_).mergeFrom(value).buildPartial(); + } else { + pipelineSpec_ = value; + } + onChanged(); + } else { + pipelineSpecBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The spec of the pipeline.
+     * 
+ * + * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPipelineSpec() { + if (pipelineSpecBuilder_ == null) { + pipelineSpec_ = null; + onChanged(); + } else { + pipelineSpec_ = null; + pipelineSpecBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The spec of the pipeline.
+     * 
+ * + * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Struct.Builder getPipelineSpecBuilder() { + + onChanged(); + return getPipelineSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The spec of the pipeline.
+     * 
+ * + * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.StructOrBuilder getPipelineSpecOrBuilder() { + if (pipelineSpecBuilder_ != null) { + return pipelineSpecBuilder_.getMessageOrBuilder(); + } else { + return pipelineSpec_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : pipelineSpec_; + } + } + /** + * + * + *
+     * Required. The spec of the pipeline.
+     * 
+ * + * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getPipelineSpecFieldBuilder() { + if (pipelineSpecBuilder_ == null) { + pipelineSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getPipelineSpec(), getParentForChildren(), isClean()); + pipelineSpec_ = null; + } + return pipelineSpecBuilder_; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. The detailed state of the job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. The detailed state of the job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The detailed state of the job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineState getState() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1.PipelineState result = + com.google.cloud.aiplatform.v1.PipelineState.valueOf(state_); + return result == null ? com.google.cloud.aiplatform.v1.PipelineState.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Output only. The detailed state of the job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.aiplatform.v1.PipelineState value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The detailed state of the job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1.PipelineJobDetail jobDetail_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineJobDetail, + com.google.cloud.aiplatform.v1.PipelineJobDetail.Builder, + com.google.cloud.aiplatform.v1.PipelineJobDetailOrBuilder> + jobDetailBuilder_; + /** + * + * + *
+     * Output only. The details of pipeline run. Not available in the list view.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineJobDetail job_detail = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the jobDetail field is set. + */ + public boolean hasJobDetail() { + return jobDetailBuilder_ != null || jobDetail_ != null; + } + /** + * + * + *
+     * Output only. The details of pipeline run. Not available in the list view.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineJobDetail job_detail = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The jobDetail. + */ + public com.google.cloud.aiplatform.v1.PipelineJobDetail getJobDetail() { + if (jobDetailBuilder_ == null) { + return jobDetail_ == null + ? com.google.cloud.aiplatform.v1.PipelineJobDetail.getDefaultInstance() + : jobDetail_; + } else { + return jobDetailBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The details of pipeline run. Not available in the list view.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineJobDetail job_detail = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setJobDetail(com.google.cloud.aiplatform.v1.PipelineJobDetail value) { + if (jobDetailBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + jobDetail_ = value; + onChanged(); + } else { + jobDetailBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The details of pipeline run. Not available in the list view.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineJobDetail job_detail = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setJobDetail( + com.google.cloud.aiplatform.v1.PipelineJobDetail.Builder builderForValue) { + if (jobDetailBuilder_ == null) { + jobDetail_ = builderForValue.build(); + onChanged(); + } else { + jobDetailBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The details of pipeline run. Not available in the list view.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineJobDetail job_detail = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeJobDetail(com.google.cloud.aiplatform.v1.PipelineJobDetail value) { + if (jobDetailBuilder_ == null) { + if (jobDetail_ != null) { + jobDetail_ = + com.google.cloud.aiplatform.v1.PipelineJobDetail.newBuilder(jobDetail_) + .mergeFrom(value) + .buildPartial(); + } else { + jobDetail_ = value; + } + onChanged(); + } else { + jobDetailBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The details of pipeline run. Not available in the list view.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineJobDetail job_detail = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearJobDetail() { + if (jobDetailBuilder_ == null) { + jobDetail_ = null; + onChanged(); + } else { + jobDetail_ = null; + jobDetailBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The details of pipeline run. Not available in the list view.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineJobDetail job_detail = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.PipelineJobDetail.Builder getJobDetailBuilder() { + + onChanged(); + return getJobDetailFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The details of pipeline run. Not available in the list view.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineJobDetail job_detail = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.PipelineJobDetailOrBuilder getJobDetailOrBuilder() { + if (jobDetailBuilder_ != null) { + return jobDetailBuilder_.getMessageOrBuilder(); + } else { + return jobDetail_ == null + ? com.google.cloud.aiplatform.v1.PipelineJobDetail.getDefaultInstance() + : jobDetail_; + } + } + /** + * + * + *
+     * Output only. The details of pipeline run. Not available in the list view.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineJobDetail job_detail = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineJobDetail, + com.google.cloud.aiplatform.v1.PipelineJobDetail.Builder, + com.google.cloud.aiplatform.v1.PipelineJobDetailOrBuilder> + getJobDetailFieldBuilder() { + if (jobDetailBuilder_ == null) { + jobDetailBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineJobDetail, + com.google.cloud.aiplatform.v1.PipelineJobDetail.Builder, + com.google.cloud.aiplatform.v1.PipelineJobDetailOrBuilder>( + getJobDetail(), getParentForChildren(), isClean()); + jobDetail_ = null; + } + return jobDetailBuilder_; + } + + private com.google.rpc.Status error_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; + /** + * + * + *
+     * Output only. The error that occurred during pipeline execution.
+     * Only populated when the pipeline's state is FAILED or CANCELLED.
+     * 
+ * + * .google.rpc.Status error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + public boolean hasError() { + return errorBuilder_ != null || error_ != null; + } + /** + * + * + *
+     * Output only. The error that occurred during pipeline execution.
+     * Only populated when the pipeline's state is FAILED or CANCELLED.
+     * 
+ * + * .google.rpc.Status error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } else { + return errorBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The error that occurred during pipeline execution.
+     * Only populated when the pipeline's state is FAILED or CANCELLED.
+     * 
+ * + * .google.rpc.Status error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The error that occurred during pipeline execution.
+     * Only populated when the pipeline's state is FAILED or CANCELLED.
+     * 
+ * + * .google.rpc.Status error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setError(com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The error that occurred during pipeline execution.
+     * Only populated when the pipeline's state is FAILED or CANCELLED.
+     * 
+ * + * .google.rpc.Status error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (error_ != null) { + error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + } else { + error_ = value; + } + onChanged(); + } else { + errorBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The error that occurred during pipeline execution.
+     * Only populated when the pipeline's state is FAILED or CANCELLED.
+     * 
+ * + * .google.rpc.Status error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + error_ = null; + onChanged(); + } else { + error_ = null; + errorBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The error that occurred during pipeline execution.
+     * Only populated when the pipeline's state is FAILED or CANCELLED.
+     * 
+ * + * .google.rpc.Status error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + + onChanged(); + return getErrorFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The error that occurred during pipeline execution.
+     * Only populated when the pipeline's state is FAILED or CANCELLED.
+     * 
+ * + * .google.rpc.Status error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + } + /** + * + * + *
+     * Output only. The error that occurred during pipeline execution.
+     * Only populated when the pipeline's state is FAILED or CANCELLED.
+     * 
+ * + * .google.rpc.Status error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); + error_ = null; + } + return errorBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged(); + ; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * The labels with user-defined metadata to organize PipelineJob.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * 
+ * + * map<string, string> labels = 11; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+     * The labels with user-defined metadata to organize PipelineJob.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * 
+ * + * map<string, string> labels = 11; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * The labels with user-defined metadata to organize PipelineJob.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * 
+ * + * map<string, string> labels = 11; + */ + @java.lang.Override + public java.lang.String getLabelsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * The labels with user-defined metadata to organize PipelineJob.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * 
+ * + * map<string, string> labels = 11; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * The labels with user-defined metadata to organize PipelineJob.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * 
+ * + * map<string, string> labels = 11; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
+     * The labels with user-defined metadata to organize PipelineJob.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * 
+ * + * map<string, string> labels = 11; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * The labels with user-defined metadata to organize PipelineJob.
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     * See https://goo.gl/xmQnxf for more information and examples of labels.
+     * 
+ * + * map<string, string> labels = 11; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + return this; + } + + private com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig runtimeConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig, + com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.Builder, + com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfigOrBuilder> + runtimeConfigBuilder_; + /** + * + * + *
+     * Runtime config of the pipeline.
+     * 
+ * + * .google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig runtime_config = 12; + * + * @return Whether the runtimeConfig field is set. + */ + public boolean hasRuntimeConfig() { + return runtimeConfigBuilder_ != null || runtimeConfig_ != null; + } + /** + * + * + *
+     * Runtime config of the pipeline.
+     * 
+ * + * .google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig runtime_config = 12; + * + * @return The runtimeConfig. + */ + public com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig getRuntimeConfig() { + if (runtimeConfigBuilder_ == null) { + return runtimeConfig_ == null + ? com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.getDefaultInstance() + : runtimeConfig_; + } else { + return runtimeConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Runtime config of the pipeline.
+     * 
+ * + * .google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig runtime_config = 12; + */ + public Builder setRuntimeConfig( + com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig value) { + if (runtimeConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + runtimeConfig_ = value; + onChanged(); + } else { + runtimeConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Runtime config of the pipeline.
+     * 
+ * + * .google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig runtime_config = 12; + */ + public Builder setRuntimeConfig( + com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.Builder builderForValue) { + if (runtimeConfigBuilder_ == null) { + runtimeConfig_ = builderForValue.build(); + onChanged(); + } else { + runtimeConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Runtime config of the pipeline.
+     * 
+ * + * .google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig runtime_config = 12; + */ + public Builder mergeRuntimeConfig( + com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig value) { + if (runtimeConfigBuilder_ == null) { + if (runtimeConfig_ != null) { + runtimeConfig_ = + com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.newBuilder(runtimeConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + runtimeConfig_ = value; + } + onChanged(); + } else { + runtimeConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Runtime config of the pipeline.
+     * 
+ * + * .google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig runtime_config = 12; + */ + public Builder clearRuntimeConfig() { + if (runtimeConfigBuilder_ == null) { + runtimeConfig_ = null; + onChanged(); + } else { + runtimeConfig_ = null; + runtimeConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Runtime config of the pipeline.
+     * 
+ * + * .google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig runtime_config = 12; + */ + public com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.Builder + getRuntimeConfigBuilder() { + + onChanged(); + return getRuntimeConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Runtime config of the pipeline.
+     * 
+ * + * .google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig runtime_config = 12; + */ + public com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfigOrBuilder + getRuntimeConfigOrBuilder() { + if (runtimeConfigBuilder_ != null) { + return runtimeConfigBuilder_.getMessageOrBuilder(); + } else { + return runtimeConfig_ == null + ? com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.getDefaultInstance() + : runtimeConfig_; + } + } + /** + * + * + *
+     * Runtime config of the pipeline.
+     * 
+ * + * .google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig runtime_config = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig, + com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.Builder, + com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfigOrBuilder> + getRuntimeConfigFieldBuilder() { + if (runtimeConfigBuilder_ == null) { + runtimeConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig, + com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.Builder, + com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfigOrBuilder>( + getRuntimeConfig(), getParentForChildren(), isClean()); + runtimeConfig_ = null; + } + return runtimeConfigBuilder_; + } + + private com.google.cloud.aiplatform.v1.EncryptionSpec encryptionSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.EncryptionSpec, + com.google.cloud.aiplatform.v1.EncryptionSpec.Builder, + com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder> + encryptionSpecBuilder_; + /** + * + * + *
+     * Customer-managed encryption key spec for a pipelineJob. If set, this
+     * PipelineJob and all of its sub-resources will be secured by this key.
+     * 
+ * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; + * + * @return Whether the encryptionSpec field is set. + */ + public boolean hasEncryptionSpec() { + return encryptionSpecBuilder_ != null || encryptionSpec_ != null; + } + /** + * + * + *
+     * Customer-managed encryption key spec for a pipelineJob. If set, this
+     * PipelineJob and all of its sub-resources will be secured by this key.
+     * 
+ * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; + * + * @return The encryptionSpec. + */ + public com.google.cloud.aiplatform.v1.EncryptionSpec getEncryptionSpec() { + if (encryptionSpecBuilder_ == null) { + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; + } else { + return encryptionSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Customer-managed encryption key spec for a pipelineJob. If set, this
+     * PipelineJob and all of its sub-resources will be secured by this key.
+     * 
+ * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; + */ + public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec value) { + if (encryptionSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryptionSpec_ = value; + onChanged(); + } else { + encryptionSpecBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Customer-managed encryption key spec for a pipelineJob. If set, this
+     * PipelineJob and all of its sub-resources will be secured by this key.
+     * 
+ * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; + */ + public Builder setEncryptionSpec( + com.google.cloud.aiplatform.v1.EncryptionSpec.Builder builderForValue) { + if (encryptionSpecBuilder_ == null) { + encryptionSpec_ = builderForValue.build(); + onChanged(); + } else { + encryptionSpecBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Customer-managed encryption key spec for a pipelineJob. If set, this
+     * PipelineJob and all of its sub-resources will be secured by this key.
+     * 
+ * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; + */ + public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec value) { + if (encryptionSpecBuilder_ == null) { + if (encryptionSpec_ != null) { + encryptionSpec_ = + com.google.cloud.aiplatform.v1.EncryptionSpec.newBuilder(encryptionSpec_) + .mergeFrom(value) + .buildPartial(); + } else { + encryptionSpec_ = value; + } + onChanged(); + } else { + encryptionSpecBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Customer-managed encryption key spec for a pipelineJob. If set, this
+     * PipelineJob and all of its sub-resources will be secured by this key.
+     * 
+ * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; + */ + public Builder clearEncryptionSpec() { + if (encryptionSpecBuilder_ == null) { + encryptionSpec_ = null; + onChanged(); + } else { + encryptionSpec_ = null; + encryptionSpecBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Customer-managed encryption key spec for a pipelineJob. If set, this
+     * PipelineJob and all of its sub-resources will be secured by this key.
+     * 
+ * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; + */ + public com.google.cloud.aiplatform.v1.EncryptionSpec.Builder getEncryptionSpecBuilder() { + + onChanged(); + return getEncryptionSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Customer-managed encryption key spec for a pipelineJob. If set, this
+     * PipelineJob and all of its sub-resources will be secured by this key.
+     * 
+ * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; + */ + public com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { + if (encryptionSpecBuilder_ != null) { + return encryptionSpecBuilder_.getMessageOrBuilder(); + } else { + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; + } + } + /** + * + * + *
+     * Customer-managed encryption key spec for a pipelineJob. If set, this
+     * PipelineJob and all of its sub-resources will be secured by this key.
+     * 
+ * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.EncryptionSpec, + com.google.cloud.aiplatform.v1.EncryptionSpec.Builder, + com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder> + getEncryptionSpecFieldBuilder() { + if (encryptionSpecBuilder_ == null) { + encryptionSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.EncryptionSpec, + com.google.cloud.aiplatform.v1.EncryptionSpec.Builder, + com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder>( + getEncryptionSpec(), getParentForChildren(), isClean()); + encryptionSpec_ = null; + } + return encryptionSpecBuilder_; + } + + private java.lang.Object serviceAccount_ = ""; + /** + * + * + *
+     * The service account that the pipeline workload runs as.
+     * If not specified, the Compute Engine default service account in the project
+     * will be used.
+     * See
+     * https://cloud.google.com/compute/docs/access/service-accounts#default_service_account
+     * Users starting the pipeline must have the `iam.serviceAccounts.actAs`
+     * permission on this service account.
+     * 
+ * + * string service_account = 17; + * + * @return The serviceAccount. + */ + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The service account that the pipeline workload runs as.
+     * If not specified, the Compute Engine default service account in the project
+     * will be used.
+     * See
+     * https://cloud.google.com/compute/docs/access/service-accounts#default_service_account
+     * Users starting the pipeline must have the `iam.serviceAccounts.actAs`
+     * permission on this service account.
+     * 
+ * + * string service_account = 17; + * + * @return The bytes for serviceAccount. + */ + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The service account that the pipeline workload runs as.
+     * If not specified, the Compute Engine default service account in the project
+     * will be used.
+     * See
+     * https://cloud.google.com/compute/docs/access/service-accounts#default_service_account
+     * Users starting the pipeline must have the `iam.serviceAccounts.actAs`
+     * permission on this service account.
+     * 
+ * + * string service_account = 17; + * + * @param value The serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceAccount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The service account that the pipeline workload runs as.
+     * If not specified, the Compute Engine default service account in the project
+     * will be used.
+     * See
+     * https://cloud.google.com/compute/docs/access/service-accounts#default_service_account
+     * Users starting the pipeline must have the `iam.serviceAccounts.actAs`
+     * permission on this service account.
+     * 
+ * + * string service_account = 17; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccount() { + + serviceAccount_ = getDefaultInstance().getServiceAccount(); + onChanged(); + return this; + } + /** + * + * + *
+     * The service account that the pipeline workload runs as.
+     * If not specified, the Compute Engine default service account in the project
+     * will be used.
+     * See
+     * https://cloud.google.com/compute/docs/access/service-accounts#default_service_account
+     * Users starting the pipeline must have the `iam.serviceAccounts.actAs`
+     * permission on this service account.
+     * 
+ * + * string service_account = 17; + * + * @param value The bytes for serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceAccount_ = value; + onChanged(); + return this; + } + + private java.lang.Object network_ = ""; + /** + * + * + *
+     * The full name of the Compute Engine
+     * [network](/compute/docs/networks-and-firewalls#networks) to which the
+     * Pipeline Job's workload should be peered. For example,
+     * `projects/12345/global/networks/myVPC`.
+     * [Format](/compute/docs/reference/rest/v1/networks/insert)
+     * is of the form `projects/{project}/global/networks/{network}`.
+     * Where {project} is a project number, as in `12345`, and {network} is a
+     * network name.
+     * Private services access must already be configured for the network.
+     * Pipeline job will apply the network configuration to the GCP resources
+     * being launched, if applied, such as Vertex AI
+     * Training or Dataflow job. If left unspecified, the workload is not peered
+     * with any network.
+     * 
+ * + * string network = 18 [(.google.api.resource_reference) = { ... } + * + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The full name of the Compute Engine
+     * [network](/compute/docs/networks-and-firewalls#networks) to which the
+     * Pipeline Job's workload should be peered. For example,
+     * `projects/12345/global/networks/myVPC`.
+     * [Format](/compute/docs/reference/rest/v1/networks/insert)
+     * is of the form `projects/{project}/global/networks/{network}`.
+     * Where {project} is a project number, as in `12345`, and {network} is a
+     * network name.
+     * Private services access must already be configured for the network.
+     * Pipeline job will apply the network configuration to the GCP resources
+     * being launched, if applied, such as Vertex AI
+     * Training or Dataflow job. If left unspecified, the workload is not peered
+     * with any network.
+     * 
+ * + * string network = 18 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for network. + */ + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The full name of the Compute Engine
+     * [network](/compute/docs/networks-and-firewalls#networks) to which the
+     * Pipeline Job's workload should be peered. For example,
+     * `projects/12345/global/networks/myVPC`.
+     * [Format](/compute/docs/reference/rest/v1/networks/insert)
+     * is of the form `projects/{project}/global/networks/{network}`.
+     * Where {project} is a project number, as in `12345`, and {network} is a
+     * network name.
+     * Private services access must already be configured for the network.
+     * Pipeline job will apply the network configuration to the GCP resources
+     * being launched, if applied, such as Vertex AI
+     * Training or Dataflow job. If left unspecified, the workload is not peered
+     * with any network.
+     * 
+ * + * string network = 18 [(.google.api.resource_reference) = { ... } + * + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + network_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The full name of the Compute Engine
+     * [network](/compute/docs/networks-and-firewalls#networks) to which the
+     * Pipeline Job's workload should be peered. For example,
+     * `projects/12345/global/networks/myVPC`.
+     * [Format](/compute/docs/reference/rest/v1/networks/insert)
+     * is of the form `projects/{project}/global/networks/{network}`.
+     * Where {project} is a project number, as in `12345`, and {network} is a
+     * network name.
+     * Private services access must already be configured for the network.
+     * Pipeline job will apply the network configuration to the GCP resources
+     * being launched, if applied, such as Vertex AI
+     * Training or Dataflow job. If left unspecified, the workload is not peered
+     * with any network.
+     * 
+ * + * string network = 18 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + + network_ = getDefaultInstance().getNetwork(); + onChanged(); + return this; + } + /** + * + * + *
+     * The full name of the Compute Engine
+     * [network](/compute/docs/networks-and-firewalls#networks) to which the
+     * Pipeline Job's workload should be peered. For example,
+     * `projects/12345/global/networks/myVPC`.
+     * [Format](/compute/docs/reference/rest/v1/networks/insert)
+     * is of the form `projects/{project}/global/networks/{network}`.
+     * Where {project} is a project number, as in `12345`, and {network} is a
+     * network name.
+     * Private services access must already be configured for the network.
+     * Pipeline job will apply the network configuration to the GCP resources
+     * being launched, if applied, such as Vertex AI
+     * Training or Dataflow job. If left unspecified, the workload is not peered
+     * with any network.
+     * 
+ * + * string network = 18 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + network_ = 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.PipelineJob) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.PipelineJob) + private static final com.google.cloud.aiplatform.v1.PipelineJob DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.PipelineJob(); + } + + public static com.google.cloud.aiplatform.v1.PipelineJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PipelineJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PipelineJob(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.PipelineJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobDetail.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobDetail.java new file mode 100644 index 000000000..4ff4abb6c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobDetail.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/v1/pipeline_job.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * The runtime detail of PipelineJob.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.PipelineJobDetail} + */ +public final class PipelineJobDetail extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.PipelineJobDetail) + PipelineJobDetailOrBuilder { + private static final long serialVersionUID = 0L; + // Use PipelineJobDetail.newBuilder() to construct. + private PipelineJobDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PipelineJobDetail() { + taskDetails_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PipelineJobDetail(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PipelineJobDetail( + 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: + { + com.google.cloud.aiplatform.v1.Context.Builder subBuilder = null; + if (pipelineContext_ != null) { + subBuilder = pipelineContext_.toBuilder(); + } + pipelineContext_ = + input.readMessage( + com.google.cloud.aiplatform.v1.Context.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pipelineContext_); + pipelineContext_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.cloud.aiplatform.v1.Context.Builder subBuilder = null; + if (pipelineRunContext_ != null) { + subBuilder = pipelineRunContext_.toBuilder(); + } + pipelineRunContext_ = + input.readMessage( + com.google.cloud.aiplatform.v1.Context.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pipelineRunContext_); + pipelineRunContext_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + taskDetails_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + taskDetails_.add( + input.readMessage( + com.google.cloud.aiplatform.v1.PipelineTaskDetail.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + taskDetails_ = java.util.Collections.unmodifiableList(taskDetails_); + } + 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_PipelineJobDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineJobDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.PipelineJobDetail.class, + com.google.cloud.aiplatform.v1.PipelineJobDetail.Builder.class); + } + + public static final int PIPELINE_CONTEXT_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.Context pipelineContext_; + /** + * + * + *
+   * Output only. The context of the pipeline.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the pipelineContext field is set. + */ + @java.lang.Override + public boolean hasPipelineContext() { + return pipelineContext_ != null; + } + /** + * + * + *
+   * Output only. The context of the pipeline.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pipelineContext. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Context getPipelineContext() { + return pipelineContext_ == null + ? com.google.cloud.aiplatform.v1.Context.getDefaultInstance() + : pipelineContext_; + } + /** + * + * + *
+   * Output only. The context of the pipeline.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ContextOrBuilder getPipelineContextOrBuilder() { + return getPipelineContext(); + } + + public static final int PIPELINE_RUN_CONTEXT_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1.Context pipelineRunContext_; + /** + * + * + *
+   * Output only. The context of the current pipeline run.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the pipelineRunContext field is set. + */ + @java.lang.Override + public boolean hasPipelineRunContext() { + return pipelineRunContext_ != null; + } + /** + * + * + *
+   * Output only. The context of the current pipeline run.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pipelineRunContext. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Context getPipelineRunContext() { + return pipelineRunContext_ == null + ? com.google.cloud.aiplatform.v1.Context.getDefaultInstance() + : pipelineRunContext_; + } + /** + * + * + *
+   * Output only. The context of the current pipeline run.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ContextOrBuilder getPipelineRunContextOrBuilder() { + return getPipelineRunContext(); + } + + public static final int TASK_DETAILS_FIELD_NUMBER = 3; + private java.util.List taskDetails_; + /** + * + * + *
+   * Output only. The runtime details of the tasks under the pipeline.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getTaskDetailsList() { + return taskDetails_; + } + /** + * + * + *
+   * Output only. The runtime details of the tasks under the pipeline.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getTaskDetailsOrBuilderList() { + return taskDetails_; + } + /** + * + * + *
+   * Output only. The runtime details of the tasks under the pipeline.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getTaskDetailsCount() { + return taskDetails_.size(); + } + /** + * + * + *
+   * Output only. The runtime details of the tasks under the pipeline.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskDetail getTaskDetails(int index) { + return taskDetails_.get(index); + } + /** + * + * + *
+   * Output only. The runtime details of the tasks under the pipeline.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskDetailOrBuilder getTaskDetailsOrBuilder( + int index) { + return taskDetails_.get(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 (pipelineContext_ != null) { + output.writeMessage(1, getPipelineContext()); + } + if (pipelineRunContext_ != null) { + output.writeMessage(2, getPipelineRunContext()); + } + for (int i = 0; i < taskDetails_.size(); i++) { + output.writeMessage(3, taskDetails_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (pipelineContext_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPipelineContext()); + } + if (pipelineRunContext_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPipelineRunContext()); + } + for (int i = 0; i < taskDetails_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, taskDetails_.get(i)); + } + 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.PipelineJobDetail)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.PipelineJobDetail other = + (com.google.cloud.aiplatform.v1.PipelineJobDetail) obj; + + if (hasPipelineContext() != other.hasPipelineContext()) return false; + if (hasPipelineContext()) { + if (!getPipelineContext().equals(other.getPipelineContext())) return false; + } + if (hasPipelineRunContext() != other.hasPipelineRunContext()) return false; + if (hasPipelineRunContext()) { + if (!getPipelineRunContext().equals(other.getPipelineRunContext())) return false; + } + if (!getTaskDetailsList().equals(other.getTaskDetailsList())) 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 (hasPipelineContext()) { + hash = (37 * hash) + PIPELINE_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getPipelineContext().hashCode(); + } + if (hasPipelineRunContext()) { + hash = (37 * hash) + PIPELINE_RUN_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getPipelineRunContext().hashCode(); + } + if (getTaskDetailsCount() > 0) { + hash = (37 * hash) + TASK_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getTaskDetailsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.PipelineJobDetail parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PipelineJobDetail 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.PipelineJobDetail parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PipelineJobDetail 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.PipelineJobDetail parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PipelineJobDetail 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.PipelineJobDetail parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.PipelineJobDetail 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.PipelineJobDetail parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.PipelineJobDetail 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.PipelineJobDetail 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.PipelineJobDetail 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.PipelineJobDetail 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; + } + /** + * + * + *
+   * The runtime detail of PipelineJob.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.PipelineJobDetail} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.PipelineJobDetail) + com.google.cloud.aiplatform.v1.PipelineJobDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineJobDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineJobDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.PipelineJobDetail.class, + com.google.cloud.aiplatform.v1.PipelineJobDetail.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.PipelineJobDetail.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTaskDetailsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (pipelineContextBuilder_ == null) { + pipelineContext_ = null; + } else { + pipelineContext_ = null; + pipelineContextBuilder_ = null; + } + if (pipelineRunContextBuilder_ == null) { + pipelineRunContext_ = null; + } else { + pipelineRunContext_ = null; + pipelineRunContextBuilder_ = null; + } + if (taskDetailsBuilder_ == null) { + taskDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + taskDetailsBuilder_.clear(); + } + 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_PipelineJobDetail_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineJobDetail getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.PipelineJobDetail.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineJobDetail build() { + com.google.cloud.aiplatform.v1.PipelineJobDetail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineJobDetail buildPartial() { + com.google.cloud.aiplatform.v1.PipelineJobDetail result = + new com.google.cloud.aiplatform.v1.PipelineJobDetail(this); + int from_bitField0_ = bitField0_; + if (pipelineContextBuilder_ == null) { + result.pipelineContext_ = pipelineContext_; + } else { + result.pipelineContext_ = pipelineContextBuilder_.build(); + } + if (pipelineRunContextBuilder_ == null) { + result.pipelineRunContext_ = pipelineRunContext_; + } else { + result.pipelineRunContext_ = pipelineRunContextBuilder_.build(); + } + if (taskDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + taskDetails_ = java.util.Collections.unmodifiableList(taskDetails_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.taskDetails_ = taskDetails_; + } else { + result.taskDetails_ = taskDetailsBuilder_.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.PipelineJobDetail) { + return mergeFrom((com.google.cloud.aiplatform.v1.PipelineJobDetail) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.PipelineJobDetail other) { + if (other == com.google.cloud.aiplatform.v1.PipelineJobDetail.getDefaultInstance()) + return this; + if (other.hasPipelineContext()) { + mergePipelineContext(other.getPipelineContext()); + } + if (other.hasPipelineRunContext()) { + mergePipelineRunContext(other.getPipelineRunContext()); + } + if (taskDetailsBuilder_ == null) { + if (!other.taskDetails_.isEmpty()) { + if (taskDetails_.isEmpty()) { + taskDetails_ = other.taskDetails_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTaskDetailsIsMutable(); + taskDetails_.addAll(other.taskDetails_); + } + onChanged(); + } + } else { + if (!other.taskDetails_.isEmpty()) { + if (taskDetailsBuilder_.isEmpty()) { + taskDetailsBuilder_.dispose(); + taskDetailsBuilder_ = null; + taskDetails_ = other.taskDetails_; + bitField0_ = (bitField0_ & ~0x00000001); + taskDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTaskDetailsFieldBuilder() + : null; + } else { + taskDetailsBuilder_.addAllMessages(other.taskDetails_); + } + } + } + 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.PipelineJobDetail parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1.PipelineJobDetail) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1.Context pipelineContext_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Context, + com.google.cloud.aiplatform.v1.Context.Builder, + com.google.cloud.aiplatform.v1.ContextOrBuilder> + pipelineContextBuilder_; + /** + * + * + *
+     * Output only. The context of the pipeline.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the pipelineContext field is set. + */ + public boolean hasPipelineContext() { + return pipelineContextBuilder_ != null || pipelineContext_ != null; + } + /** + * + * + *
+     * Output only. The context of the pipeline.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pipelineContext. + */ + public com.google.cloud.aiplatform.v1.Context getPipelineContext() { + if (pipelineContextBuilder_ == null) { + return pipelineContext_ == null + ? com.google.cloud.aiplatform.v1.Context.getDefaultInstance() + : pipelineContext_; + } else { + return pipelineContextBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The context of the pipeline.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPipelineContext(com.google.cloud.aiplatform.v1.Context value) { + if (pipelineContextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pipelineContext_ = value; + onChanged(); + } else { + pipelineContextBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The context of the pipeline.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPipelineContext( + com.google.cloud.aiplatform.v1.Context.Builder builderForValue) { + if (pipelineContextBuilder_ == null) { + pipelineContext_ = builderForValue.build(); + onChanged(); + } else { + pipelineContextBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The context of the pipeline.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePipelineContext(com.google.cloud.aiplatform.v1.Context value) { + if (pipelineContextBuilder_ == null) { + if (pipelineContext_ != null) { + pipelineContext_ = + com.google.cloud.aiplatform.v1.Context.newBuilder(pipelineContext_) + .mergeFrom(value) + .buildPartial(); + } else { + pipelineContext_ = value; + } + onChanged(); + } else { + pipelineContextBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The context of the pipeline.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPipelineContext() { + if (pipelineContextBuilder_ == null) { + pipelineContext_ = null; + onChanged(); + } else { + pipelineContext_ = null; + pipelineContextBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The context of the pipeline.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.Context.Builder getPipelineContextBuilder() { + + onChanged(); + return getPipelineContextFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The context of the pipeline.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ContextOrBuilder getPipelineContextOrBuilder() { + if (pipelineContextBuilder_ != null) { + return pipelineContextBuilder_.getMessageOrBuilder(); + } else { + return pipelineContext_ == null + ? com.google.cloud.aiplatform.v1.Context.getDefaultInstance() + : pipelineContext_; + } + } + /** + * + * + *
+     * Output only. The context of the pipeline.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Context, + com.google.cloud.aiplatform.v1.Context.Builder, + com.google.cloud.aiplatform.v1.ContextOrBuilder> + getPipelineContextFieldBuilder() { + if (pipelineContextBuilder_ == null) { + pipelineContextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Context, + com.google.cloud.aiplatform.v1.Context.Builder, + com.google.cloud.aiplatform.v1.ContextOrBuilder>( + getPipelineContext(), getParentForChildren(), isClean()); + pipelineContext_ = null; + } + return pipelineContextBuilder_; + } + + private com.google.cloud.aiplatform.v1.Context pipelineRunContext_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Context, + com.google.cloud.aiplatform.v1.Context.Builder, + com.google.cloud.aiplatform.v1.ContextOrBuilder> + pipelineRunContextBuilder_; + /** + * + * + *
+     * Output only. The context of the current pipeline run.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the pipelineRunContext field is set. + */ + public boolean hasPipelineRunContext() { + return pipelineRunContextBuilder_ != null || pipelineRunContext_ != null; + } + /** + * + * + *
+     * Output only. The context of the current pipeline run.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pipelineRunContext. + */ + public com.google.cloud.aiplatform.v1.Context getPipelineRunContext() { + if (pipelineRunContextBuilder_ == null) { + return pipelineRunContext_ == null + ? com.google.cloud.aiplatform.v1.Context.getDefaultInstance() + : pipelineRunContext_; + } else { + return pipelineRunContextBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The context of the current pipeline run.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPipelineRunContext(com.google.cloud.aiplatform.v1.Context value) { + if (pipelineRunContextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pipelineRunContext_ = value; + onChanged(); + } else { + pipelineRunContextBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The context of the current pipeline run.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPipelineRunContext( + com.google.cloud.aiplatform.v1.Context.Builder builderForValue) { + if (pipelineRunContextBuilder_ == null) { + pipelineRunContext_ = builderForValue.build(); + onChanged(); + } else { + pipelineRunContextBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The context of the current pipeline run.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePipelineRunContext(com.google.cloud.aiplatform.v1.Context value) { + if (pipelineRunContextBuilder_ == null) { + if (pipelineRunContext_ != null) { + pipelineRunContext_ = + com.google.cloud.aiplatform.v1.Context.newBuilder(pipelineRunContext_) + .mergeFrom(value) + .buildPartial(); + } else { + pipelineRunContext_ = value; + } + onChanged(); + } else { + pipelineRunContextBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The context of the current pipeline run.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPipelineRunContext() { + if (pipelineRunContextBuilder_ == null) { + pipelineRunContext_ = null; + onChanged(); + } else { + pipelineRunContext_ = null; + pipelineRunContextBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The context of the current pipeline run.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.Context.Builder getPipelineRunContextBuilder() { + + onChanged(); + return getPipelineRunContextFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The context of the current pipeline run.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ContextOrBuilder getPipelineRunContextOrBuilder() { + if (pipelineRunContextBuilder_ != null) { + return pipelineRunContextBuilder_.getMessageOrBuilder(); + } else { + return pipelineRunContext_ == null + ? com.google.cloud.aiplatform.v1.Context.getDefaultInstance() + : pipelineRunContext_; + } + } + /** + * + * + *
+     * Output only. The context of the current pipeline run.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Context, + com.google.cloud.aiplatform.v1.Context.Builder, + com.google.cloud.aiplatform.v1.ContextOrBuilder> + getPipelineRunContextFieldBuilder() { + if (pipelineRunContextBuilder_ == null) { + pipelineRunContextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Context, + com.google.cloud.aiplatform.v1.Context.Builder, + com.google.cloud.aiplatform.v1.ContextOrBuilder>( + getPipelineRunContext(), getParentForChildren(), isClean()); + pipelineRunContext_ = null; + } + return pipelineRunContextBuilder_; + } + + private java.util.List taskDetails_ = + java.util.Collections.emptyList(); + + private void ensureTaskDetailsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + taskDetails_ = + new java.util.ArrayList( + taskDetails_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineTaskDetail, + com.google.cloud.aiplatform.v1.PipelineTaskDetail.Builder, + com.google.cloud.aiplatform.v1.PipelineTaskDetailOrBuilder> + taskDetailsBuilder_; + + /** + * + * + *
+     * Output only. The runtime details of the tasks under the pipeline.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getTaskDetailsList() { + if (taskDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(taskDetails_); + } else { + return taskDetailsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. The runtime details of the tasks under the pipeline.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getTaskDetailsCount() { + if (taskDetailsBuilder_ == null) { + return taskDetails_.size(); + } else { + return taskDetailsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. The runtime details of the tasks under the pipeline.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.PipelineTaskDetail getTaskDetails(int index) { + if (taskDetailsBuilder_ == null) { + return taskDetails_.get(index); + } else { + return taskDetailsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. The runtime details of the tasks under the pipeline.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTaskDetails( + int index, com.google.cloud.aiplatform.v1.PipelineTaskDetail value) { + if (taskDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaskDetailsIsMutable(); + taskDetails_.set(index, value); + onChanged(); + } else { + taskDetailsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. The runtime details of the tasks under the pipeline.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTaskDetails( + int index, com.google.cloud.aiplatform.v1.PipelineTaskDetail.Builder builderForValue) { + if (taskDetailsBuilder_ == null) { + ensureTaskDetailsIsMutable(); + taskDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + taskDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. The runtime details of the tasks under the pipeline.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTaskDetails(com.google.cloud.aiplatform.v1.PipelineTaskDetail value) { + if (taskDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaskDetailsIsMutable(); + taskDetails_.add(value); + onChanged(); + } else { + taskDetailsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. The runtime details of the tasks under the pipeline.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTaskDetails( + int index, com.google.cloud.aiplatform.v1.PipelineTaskDetail value) { + if (taskDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaskDetailsIsMutable(); + taskDetails_.add(index, value); + onChanged(); + } else { + taskDetailsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. The runtime details of the tasks under the pipeline.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTaskDetails( + com.google.cloud.aiplatform.v1.PipelineTaskDetail.Builder builderForValue) { + if (taskDetailsBuilder_ == null) { + ensureTaskDetailsIsMutable(); + taskDetails_.add(builderForValue.build()); + onChanged(); + } else { + taskDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. The runtime details of the tasks under the pipeline.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTaskDetails( + int index, com.google.cloud.aiplatform.v1.PipelineTaskDetail.Builder builderForValue) { + if (taskDetailsBuilder_ == null) { + ensureTaskDetailsIsMutable(); + taskDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + taskDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. The runtime details of the tasks under the pipeline.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllTaskDetails( + java.lang.Iterable values) { + if (taskDetailsBuilder_ == null) { + ensureTaskDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, taskDetails_); + onChanged(); + } else { + taskDetailsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. The runtime details of the tasks under the pipeline.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTaskDetails() { + if (taskDetailsBuilder_ == null) { + taskDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + taskDetailsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. The runtime details of the tasks under the pipeline.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeTaskDetails(int index) { + if (taskDetailsBuilder_ == null) { + ensureTaskDetailsIsMutable(); + taskDetails_.remove(index); + onChanged(); + } else { + taskDetailsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. The runtime details of the tasks under the pipeline.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.PipelineTaskDetail.Builder getTaskDetailsBuilder( + int index) { + return getTaskDetailsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. The runtime details of the tasks under the pipeline.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.PipelineTaskDetailOrBuilder getTaskDetailsOrBuilder( + int index) { + if (taskDetailsBuilder_ == null) { + return taskDetails_.get(index); + } else { + return taskDetailsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. The runtime details of the tasks under the pipeline.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getTaskDetailsOrBuilderList() { + if (taskDetailsBuilder_ != null) { + return taskDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(taskDetails_); + } + } + /** + * + * + *
+     * Output only. The runtime details of the tasks under the pipeline.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.PipelineTaskDetail.Builder addTaskDetailsBuilder() { + return getTaskDetailsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.PipelineTaskDetail.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. The runtime details of the tasks under the pipeline.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.PipelineTaskDetail.Builder addTaskDetailsBuilder( + int index) { + return getTaskDetailsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1.PipelineTaskDetail.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. The runtime details of the tasks under the pipeline.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getTaskDetailsBuilderList() { + return getTaskDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineTaskDetail, + com.google.cloud.aiplatform.v1.PipelineTaskDetail.Builder, + com.google.cloud.aiplatform.v1.PipelineTaskDetailOrBuilder> + getTaskDetailsFieldBuilder() { + if (taskDetailsBuilder_ == null) { + taskDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineTaskDetail, + com.google.cloud.aiplatform.v1.PipelineTaskDetail.Builder, + com.google.cloud.aiplatform.v1.PipelineTaskDetailOrBuilder>( + taskDetails_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + taskDetails_ = null; + } + return taskDetailsBuilder_; + } + + @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.PipelineJobDetail) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.PipelineJobDetail) + private static final com.google.cloud.aiplatform.v1.PipelineJobDetail DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.PipelineJobDetail(); + } + + public static com.google.cloud.aiplatform.v1.PipelineJobDetail getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PipelineJobDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PipelineJobDetail(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.PipelineJobDetail getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobDetailOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobDetailOrBuilder.java new file mode 100644 index 000000000..8c57f037e --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobDetailOrBuilder.java @@ -0,0 +1,169 @@ +/* + * 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 PipelineJobDetailOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.PipelineJobDetail) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The context of the pipeline.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the pipelineContext field is set. + */ + boolean hasPipelineContext(); + /** + * + * + *
+   * Output only. The context of the pipeline.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pipelineContext. + */ + com.google.cloud.aiplatform.v1.Context getPipelineContext(); + /** + * + * + *
+   * Output only. The context of the pipeline.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.ContextOrBuilder getPipelineContextOrBuilder(); + + /** + * + * + *
+   * Output only. The context of the current pipeline run.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the pipelineRunContext field is set. + */ + boolean hasPipelineRunContext(); + /** + * + * + *
+   * Output only. The context of the current pipeline run.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pipelineRunContext. + */ + com.google.cloud.aiplatform.v1.Context getPipelineRunContext(); + /** + * + * + *
+   * Output only. The context of the current pipeline run.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.ContextOrBuilder getPipelineRunContextOrBuilder(); + + /** + * + * + *
+   * Output only. The runtime details of the tasks under the pipeline.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getTaskDetailsList(); + /** + * + * + *
+   * Output only. The runtime details of the tasks under the pipeline.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.PipelineTaskDetail getTaskDetails(int index); + /** + * + * + *
+   * Output only. The runtime details of the tasks under the pipeline.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getTaskDetailsCount(); + /** + * + * + *
+   * Output only. The runtime details of the tasks under the pipeline.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getTaskDetailsOrBuilderList(); + /** + * + * + *
+   * Output only. The runtime details of the tasks under the pipeline.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.PipelineTaskDetailOrBuilder getTaskDetailsOrBuilder(int index); +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrialName.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobName.java similarity index 60% rename from proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrialName.java rename to proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobName.java index 81fd0d8c4..1a496f3b5 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrialName.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobName.java @@ -28,29 +28,26 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. @Generated("by gapic-generator-java") -public class TrialName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_STUDY_TRIAL = +public class PipelineJobName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_PIPELINE_JOB = PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/studies/{study}/trials/{trial}"); + "projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}"); private volatile Map fieldValuesMap; private final String project; private final String location; - private final String study; - private final String trial; + private final String pipelineJob; @Deprecated - protected TrialName() { + protected PipelineJobName() { project = null; location = null; - study = null; - trial = null; + pipelineJob = null; } - private TrialName(Builder builder) { + private PipelineJobName(Builder builder) { project = Preconditions.checkNotNull(builder.getProject()); location = Preconditions.checkNotNull(builder.getLocation()); - study = Preconditions.checkNotNull(builder.getStudy()); - trial = Preconditions.checkNotNull(builder.getTrial()); + pipelineJob = Preconditions.checkNotNull(builder.getPipelineJob()); } public String getProject() { @@ -61,12 +58,8 @@ public String getLocation() { return location; } - public String getStudy() { - return study; - } - - public String getTrial() { - return trial; + public String getPipelineJob() { + return pipelineJob; } public static Builder newBuilder() { @@ -77,50 +70,44 @@ public Builder toBuilder() { return new Builder(this); } - public static TrialName of(String project, String location, String study, String trial) { + public static PipelineJobName of(String project, String location, String pipelineJob) { return newBuilder() .setProject(project) .setLocation(location) - .setStudy(study) - .setTrial(trial) + .setPipelineJob(pipelineJob) .build(); } - public static String format(String project, String location, String study, String trial) { + public static String format(String project, String location, String pipelineJob) { return newBuilder() .setProject(project) .setLocation(location) - .setStudy(study) - .setTrial(trial) + .setPipelineJob(pipelineJob) .build() .toString(); } - public static TrialName parse(String formattedString) { + public static PipelineJobName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } Map matchMap = - PROJECT_LOCATION_STUDY_TRIAL.validatedMatch( - formattedString, "TrialName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), - matchMap.get("location"), - matchMap.get("study"), - matchMap.get("trial")); + PROJECT_LOCATION_PIPELINE_JOB.validatedMatch( + formattedString, "PipelineJobName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("pipeline_job")); } - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); for (String formattedString : formattedStrings) { list.add(parse(formattedString)); } return list; } - public static List toStringList(List values) { + public static List toStringList(List values) { List list = new ArrayList<>(values.size()); - for (TrialName value : values) { + for (PipelineJobName value : values) { if (value == null) { list.add(""); } else { @@ -131,7 +118,7 @@ public static List toStringList(List values) { } public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_STUDY_TRIAL.matches(formattedString); + return PROJECT_LOCATION_PIPELINE_JOB.matches(formattedString); } @Override @@ -146,11 +133,8 @@ public Map getFieldValuesMap() { if (location != null) { fieldMapBuilder.put("location", location); } - if (study != null) { - fieldMapBuilder.put("study", study); - } - if (trial != null) { - fieldMapBuilder.put("trial", trial); + if (pipelineJob != null) { + fieldMapBuilder.put("pipeline_job", pipelineJob); } fieldValuesMap = fieldMapBuilder.build(); } @@ -165,8 +149,8 @@ public String getFieldValue(String fieldName) { @Override public String toString() { - return PROJECT_LOCATION_STUDY_TRIAL.instantiate( - "project", project, "location", location, "study", study, "trial", trial); + return PROJECT_LOCATION_PIPELINE_JOB.instantiate( + "project", project, "location", location, "pipeline_job", pipelineJob); } @Override @@ -175,11 +159,10 @@ public boolean equals(Object o) { return true; } if (o != null || getClass() == o.getClass()) { - TrialName that = ((TrialName) o); + PipelineJobName that = ((PipelineJobName) o); return Objects.equals(this.project, that.project) && Objects.equals(this.location, that.location) - && Objects.equals(this.study, that.study) - && Objects.equals(this.trial, that.trial); + && Objects.equals(this.pipelineJob, that.pipelineJob); } return false; } @@ -192,18 +175,15 @@ public int hashCode() { h *= 1000003; h ^= Objects.hashCode(location); h *= 1000003; - h ^= Objects.hashCode(study); - h *= 1000003; - h ^= Objects.hashCode(trial); + h ^= Objects.hashCode(pipelineJob); return h; } - /** Builder for projects/{project}/locations/{location}/studies/{study}/trials/{trial}. */ + /** Builder for projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}. */ public static class Builder { private String project; private String location; - private String study; - private String trial; + private String pipelineJob; protected Builder() {} @@ -215,12 +195,8 @@ public String getLocation() { return location; } - public String getStudy() { - return study; - } - - public String getTrial() { - return trial; + public String getPipelineJob() { + return pipelineJob; } public Builder setProject(String project) { @@ -233,25 +209,19 @@ public Builder setLocation(String location) { return this; } - public Builder setStudy(String study) { - this.study = study; - return this; - } - - public Builder setTrial(String trial) { - this.trial = trial; + public Builder setPipelineJob(String pipelineJob) { + this.pipelineJob = pipelineJob; return this; } - private Builder(TrialName trialName) { - this.project = trialName.project; - this.location = trialName.location; - this.study = trialName.study; - this.trial = trialName.trial; + private Builder(PipelineJobName pipelineJobName) { + this.project = pipelineJobName.project; + this.location = pipelineJobName.location; + this.pipelineJob = pipelineJobName.pipelineJob; } - public TrialName build() { - return new TrialName(this); + public PipelineJobName build() { + return new PipelineJobName(this); } } } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobOrBuilder.java new file mode 100644 index 000000000..db63576d0 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobOrBuilder.java @@ -0,0 +1,610 @@ +/* + * 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 PipelineJobOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.PipelineJob) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name of the PipelineJob.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name of the PipelineJob.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The display name of the Pipeline.
+   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * characters.
+   * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * The display name of the Pipeline.
+   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * characters.
+   * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. Pipeline creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Pipeline creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Pipeline creation time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Pipeline start time.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
+   * Output only. Pipeline start time.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * Output only. Pipeline start time.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Pipeline end time.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
+   * Output only. Pipeline end time.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * Output only. Pipeline end time.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when this PipelineJob was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this PipelineJob was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this PipelineJob was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Required. The spec of the pipeline.
+   * 
+ * + * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the pipelineSpec field is set. + */ + boolean hasPipelineSpec(); + /** + * + * + *
+   * Required. The spec of the pipeline.
+   * 
+ * + * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The pipelineSpec. + */ + com.google.protobuf.Struct getPipelineSpec(); + /** + * + * + *
+   * Required. The spec of the pipeline.
+   * 
+ * + * .google.protobuf.Struct pipeline_spec = 7 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.StructOrBuilder getPipelineSpecOrBuilder(); + + /** + * + * + *
+   * Output only. The detailed state of the job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. The detailed state of the job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.aiplatform.v1.PipelineState getState(); + + /** + * + * + *
+   * Output only. The details of pipeline run. Not available in the list view.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineJobDetail job_detail = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the jobDetail field is set. + */ + boolean hasJobDetail(); + /** + * + * + *
+   * Output only. The details of pipeline run. Not available in the list view.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineJobDetail job_detail = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The jobDetail. + */ + com.google.cloud.aiplatform.v1.PipelineJobDetail getJobDetail(); + /** + * + * + *
+   * Output only. The details of pipeline run. Not available in the list view.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineJobDetail job_detail = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.PipelineJobDetailOrBuilder getJobDetailOrBuilder(); + + /** + * + * + *
+   * Output only. The error that occurred during pipeline execution.
+   * Only populated when the pipeline's state is FAILED or CANCELLED.
+   * 
+ * + * .google.rpc.Status error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + boolean hasError(); + /** + * + * + *
+   * Output only. The error that occurred during pipeline execution.
+   * Only populated when the pipeline's state is FAILED or CANCELLED.
+   * 
+ * + * .google.rpc.Status error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + com.google.rpc.Status getError(); + /** + * + * + *
+   * Output only. The error that occurred during pipeline execution.
+   * Only populated when the pipeline's state is FAILED or CANCELLED.
+   * 
+ * + * .google.rpc.Status error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.rpc.StatusOrBuilder getErrorOrBuilder(); + + /** + * + * + *
+   * The labels with user-defined metadata to organize PipelineJob.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * 
+ * + * map<string, string> labels = 11; + */ + int getLabelsCount(); + /** + * + * + *
+   * The labels with user-defined metadata to organize PipelineJob.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * 
+ * + * map<string, string> labels = 11; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * The labels with user-defined metadata to organize PipelineJob.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * 
+ * + * map<string, string> labels = 11; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * The labels with user-defined metadata to organize PipelineJob.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * 
+ * + * map<string, string> labels = 11; + */ + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * The labels with user-defined metadata to organize PipelineJob.
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   * See https://goo.gl/xmQnxf for more information and examples of labels.
+   * 
+ * + * map<string, string> labels = 11; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Runtime config of the pipeline.
+   * 
+ * + * .google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig runtime_config = 12; + * + * @return Whether the runtimeConfig field is set. + */ + boolean hasRuntimeConfig(); + /** + * + * + *
+   * Runtime config of the pipeline.
+   * 
+ * + * .google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig runtime_config = 12; + * + * @return The runtimeConfig. + */ + com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig getRuntimeConfig(); + /** + * + * + *
+   * Runtime config of the pipeline.
+   * 
+ * + * .google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig runtime_config = 12; + */ + com.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfigOrBuilder getRuntimeConfigOrBuilder(); + + /** + * + * + *
+   * Customer-managed encryption key spec for a pipelineJob. If set, this
+   * PipelineJob and all of its sub-resources will be secured by this key.
+   * 
+ * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; + * + * @return Whether the encryptionSpec field is set. + */ + boolean hasEncryptionSpec(); + /** + * + * + *
+   * Customer-managed encryption key spec for a pipelineJob. If set, this
+   * PipelineJob and all of its sub-resources will be secured by this key.
+   * 
+ * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; + * + * @return The encryptionSpec. + */ + com.google.cloud.aiplatform.v1.EncryptionSpec getEncryptionSpec(); + /** + * + * + *
+   * Customer-managed encryption key spec for a pipelineJob. If set, this
+   * PipelineJob and all of its sub-resources will be secured by this key.
+   * 
+ * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; + */ + com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder(); + + /** + * + * + *
+   * The service account that the pipeline workload runs as.
+   * If not specified, the Compute Engine default service account in the project
+   * will be used.
+   * See
+   * https://cloud.google.com/compute/docs/access/service-accounts#default_service_account
+   * Users starting the pipeline must have the `iam.serviceAccounts.actAs`
+   * permission on this service account.
+   * 
+ * + * string service_account = 17; + * + * @return The serviceAccount. + */ + java.lang.String getServiceAccount(); + /** + * + * + *
+   * The service account that the pipeline workload runs as.
+   * If not specified, the Compute Engine default service account in the project
+   * will be used.
+   * See
+   * https://cloud.google.com/compute/docs/access/service-accounts#default_service_account
+   * Users starting the pipeline must have the `iam.serviceAccounts.actAs`
+   * permission on this service account.
+   * 
+ * + * string service_account = 17; + * + * @return The bytes for serviceAccount. + */ + com.google.protobuf.ByteString getServiceAccountBytes(); + + /** + * + * + *
+   * The full name of the Compute Engine
+   * [network](/compute/docs/networks-and-firewalls#networks) to which the
+   * Pipeline Job's workload should be peered. For example,
+   * `projects/12345/global/networks/myVPC`.
+   * [Format](/compute/docs/reference/rest/v1/networks/insert)
+   * is of the form `projects/{project}/global/networks/{network}`.
+   * Where {project} is a project number, as in `12345`, and {network} is a
+   * network name.
+   * Private services access must already be configured for the network.
+   * Pipeline job will apply the network configuration to the GCP resources
+   * being launched, if applied, such as Vertex AI
+   * Training or Dataflow job. If left unspecified, the workload is not peered
+   * with any network.
+   * 
+ * + * string network = 18 [(.google.api.resource_reference) = { ... } + * + * @return The network. + */ + java.lang.String getNetwork(); + /** + * + * + *
+   * The full name of the Compute Engine
+   * [network](/compute/docs/networks-and-firewalls#networks) to which the
+   * Pipeline Job's workload should be peered. For example,
+   * `projects/12345/global/networks/myVPC`.
+   * [Format](/compute/docs/reference/rest/v1/networks/insert)
+   * is of the form `projects/{project}/global/networks/{network}`.
+   * Where {project} is a project number, as in `12345`, and {network} is a
+   * network name.
+   * Private services access must already be configured for the network.
+   * Pipeline job will apply the network configuration to the GCP resources
+   * being launched, if applied, such as Vertex AI
+   * Training or Dataflow job. If left unspecified, the workload is not peered
+   * with any network.
+   * 
+ * + * string network = 18 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceProto.java index 0c7042e77..eff607778 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceProto.java @@ -51,6 +51,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_CancelTrainingPipelineRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_CancelTrainingPipelineRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_CreatePipelineJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_CreatePipelineJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_GetPipelineJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_GetPipelineJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ListPipelineJobsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ListPipelineJobsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ListPipelineJobsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ListPipelineJobsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_DeletePipelineJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_DeletePipelineJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_CancelPipelineJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_CancelPipelineJobRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -64,64 +88,110 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "rvice.proto\022\032google.cloud.aiplatform.v1\032" + "\034google/api/annotations.proto\032\027google/ap" + "i/client.proto\032\037google/api/field_behavio" - + "r.proto\032\031google/api/resource.proto\0322goog" - + "le/cloud/aiplatform/v1/training_pipeline" - + ".proto\032#google/longrunning/operations.pr" - + "oto\032\033google/protobuf/empty.proto\032 google" - + "/protobuf/field_mask.proto\"\250\001\n\035CreateTra" - + "iningPipelineRequest\0229\n\006parent\030\001 \001(\tB)\340A" - + "\002\372A#\n!locations.googleapis.com/Location\022" - + "L\n\021training_pipeline\030\002 \001(\0132,.google.clou" - + "d.aiplatform.v1.TrainingPipelineB\003\340A\002\"^\n" - + "\032GetTrainingPipelineRequest\022@\n\004name\030\001 \001(" - + "\tB2\340A\002\372A,\n*aiplatform.googleapis.com/Tra" - + "iningPipeline\"\277\001\n\034ListTrainingPipelinesR" - + "equest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!location" - + "s.googleapis.com/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.Fi" - + "eldMask\"\202\001\n\035ListTrainingPipelinesRespons" - + "e\022H\n\022training_pipelines\030\001 \003(\0132,.google.c" - + "loud.aiplatform.v1.TrainingPipeline\022\027\n\017n" - + "ext_page_token\030\002 \001(\t\"a\n\035DeleteTrainingPi" - + "pelineRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*aip" - + "latform.googleapis.com/TrainingPipeline\"" - + "a\n\035CancelTrainingPipelineRequest\022@\n\004name" - + "\030\001 \001(\tB2\340A\002\372A,\n*aiplatform.googleapis.co" - + "m/TrainingPipeline2\230\t\n\017PipelineService\022\356" - + "\001\n\026CreateTrainingPipeline\0229.google.cloud" - + ".aiplatform.v1.CreateTrainingPipelineReq" - + "uest\032,.google.cloud.aiplatform.v1.Traini" - + "ngPipeline\"k\202\323\344\223\002J\"5/v1/{parent=projects" - + "/*/locations/*}/trainingPipelines:\021train" - + "ing_pipeline\332A\030parent,training_pipeline\022" - + "\301\001\n\023GetTrainingPipeline\0226.google.cloud.a" - + "iplatform.v1.GetTrainingPipelineRequest\032" - + ",.google.cloud.aiplatform.v1.TrainingPip" - + "eline\"D\202\323\344\223\0027\0225/v1/{name=projects/*/loca" - + "tions/*/trainingPipelines/*}\332A\004name\022\324\001\n\025" - + "ListTrainingPipelines\0228.google.cloud.aip" - + "latform.v1.ListTrainingPipelinesRequest\032" - + "9.google.cloud.aiplatform.v1.ListTrainin" - + "gPipelinesResponse\"F\202\323\344\223\0027\0225/v1/{parent=" - + "projects/*/locations/*}/trainingPipeline" - + "s\332A\006parent\022\353\001\n\026DeleteTrainingPipeline\0229." - + "google.cloud.aiplatform.v1.DeleteTrainin" - + "gPipelineRequest\032\035.google.longrunning.Op" - + "eration\"w\202\323\344\223\0027*5/v1/{name=projects/*/lo" - + "cations/*/trainingPipelines/*}\332A\004name\312A0" - + "\n\025google.protobuf.Empty\022\027DeleteOperation" - + "Metadata\022\273\001\n\026CancelTrainingPipeline\0229.go" - + "ogle.cloud.aiplatform.v1.CancelTrainingP" - + "ipelineRequest\032\026.google.protobuf.Empty\"N" - + "\202\323\344\223\002A\"\n\rpipeline_jobs\030" + + "\001 \003(\0132\'.google.cloud.aiplatform.v1.Pipel" + + "ineJob\022\027\n\017next_page_token\030\002 \001(\t\"W\n\030Delet" + + "ePipelineJobRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A" + + "\'\n%aiplatform.googleapis.com/PipelineJob" + + "\"W\n\030CancelPipelineJobRequest\022;\n\004name\030\001 \001" + + "(\tB-\340A\002\372A\'\n%aiplatform.googleapis.com/Pi" + + "pelineJob2\374\020\n\017PipelineService\022\356\001\n\026Create" + + "TrainingPipeline\0229.google.cloud.aiplatfo" + + "rm.v1.CreateTrainingPipelineRequest\032,.go" + + "ogle.cloud.aiplatform.v1.TrainingPipelin" + + "e\"k\202\323\344\223\002J\"5/v1/{parent=projects/*/locati" + + "ons/*}/trainingPipelines:\021training_pipel" + + "ine\332A\030parent,training_pipeline\022\301\001\n\023GetTr" + + "ainingPipeline\0226.google.cloud.aiplatform" + + ".v1.GetTrainingPipelineRequest\032,.google." + + "cloud.aiplatform.v1.TrainingPipeline\"D\202\323" + + "\344\223\0027\0225/v1/{name=projects/*/locations/*/t" + + "rainingPipelines/*}\332A\004name\022\324\001\n\025ListTrain" + + "ingPipelines\0228.google.cloud.aiplatform.v" + + "1.ListTrainingPipelinesRequest\0329.google." + + "cloud.aiplatform.v1.ListTrainingPipeline" + + "sResponse\"F\202\323\344\223\0027\0225/v1/{parent=projects/" + + "*/locations/*}/trainingPipelines\332A\006paren" + + "t\022\353\001\n\026DeleteTrainingPipeline\0229.google.cl" + + "oud.aiplatform.v1.DeleteTrainingPipeline" + + "Request\032\035.google.longrunning.Operation\"w" + + "\202\323\344\223\0027*5/v1/{name=projects/*/locations/*" + + "/trainingPipelines/*}\332A\004name\312A0\n\025google." + + "protobuf.Empty\022\027DeleteOperationMetadata\022" + + "\273\001\n\026CancelTrainingPipeline\0229.google.clou" + + "d.aiplatform.v1.CancelTrainingPipelineRe" + + "quest\032\026.google.protobuf.Empty\"N\202\323\344\223\002A\" + * The runtime detail of a task execution. + * + * + * Protobuf type {@code google.cloud.aiplatform.v1.PipelineTaskDetail} + */ +public final class PipelineTaskDetail extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.PipelineTaskDetail) + PipelineTaskDetailOrBuilder { + private static final long serialVersionUID = 0L; + // Use PipelineTaskDetail.newBuilder() to construct. + private PipelineTaskDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PipelineTaskDetail() { + taskName_ = ""; + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PipelineTaskDetail(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PipelineTaskDetail( + 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: + { + taskId_ = input.readInt64(); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + taskName_ = s; + break; + } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.Builder subBuilder = null; + if (executorDetail_ != null) { + subBuilder = executorDetail_.toBuilder(); + } + executorDetail_ = + input.readMessage( + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(executorDetail_); + executorDetail_ = subBuilder.buildPartial(); + } + + break; + } + case 56: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 66: + { + com.google.cloud.aiplatform.v1.Execution.Builder subBuilder = null; + if (execution_ != null) { + subBuilder = execution_.toBuilder(); + } + execution_ = + input.readMessage( + com.google.cloud.aiplatform.v1.Execution.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(execution_); + execution_ = subBuilder.buildPartial(); + } + + break; + } + case 74: + { + com.google.rpc.Status.Builder subBuilder = null; + if (error_ != null) { + subBuilder = error_.toBuilder(); + } + error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(error_); + error_ = subBuilder.buildPartial(); + } + + break; + } + case 82: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + inputs_ = + com.google.protobuf.MapField.newMapField(InputsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + inputs__ = + input.readMessage( + InputsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + inputs_.getMutableMap().put(inputs__.getKey(), inputs__.getValue()); + break; + } + case 90: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + outputs_ = + com.google.protobuf.MapField.newMapField( + OutputsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + outputs__ = + input.readMessage( + OutputsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + outputs_.getMutableMap().put(outputs__.getKey(), outputs__.getValue()); + break; + } + case 96: + { + parentTaskId_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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_PipelineTaskDetail_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 10: + return internalGetInputs(); + case 11: + return internalGetOutputs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.PipelineTaskDetail.class, + com.google.cloud.aiplatform.v1.PipelineTaskDetail.Builder.class); + } + + /** + * + * + *
+   * Specifies state of TaskExecution
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1.PipelineTaskDetail.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Specifies pending state for the task.
+     * 
+ * + * PENDING = 1; + */ + PENDING(1), + /** + * + * + *
+     * Specifies task is being executed.
+     * 
+ * + * RUNNING = 2; + */ + RUNNING(2), + /** + * + * + *
+     * Specifies task completed successfully.
+     * 
+ * + * SUCCEEDED = 3; + */ + SUCCEEDED(3), + /** + * + * + *
+     * Specifies Task cancel is in pending state.
+     * 
+ * + * CANCEL_PENDING = 4; + */ + CANCEL_PENDING(4), + /** + * + * + *
+     * Specifies task is being cancelled.
+     * 
+ * + * CANCELLING = 5; + */ + CANCELLING(5), + /** + * + * + *
+     * Specifies task was cancelled.
+     * 
+ * + * CANCELLED = 6; + */ + CANCELLED(6), + /** + * + * + *
+     * Specifies task failed.
+     * 
+ * + * FAILED = 7; + */ + FAILED(7), + /** + * + * + *
+     * Specifies task was skipped due to cache hit.
+     * 
+ * + * SKIPPED = 8; + */ + SKIPPED(8), + /** + * + * + *
+     * Specifies that the task was not triggered because the task's trigger
+     * policy is not satisfied. The trigger policy is specified in the
+     * `condition` field of [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec].
+     * 
+ * + * NOT_TRIGGERED = 9; + */ + NOT_TRIGGERED(9), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Specifies pending state for the task.
+     * 
+ * + * PENDING = 1; + */ + public static final int PENDING_VALUE = 1; + /** + * + * + *
+     * Specifies task is being executed.
+     * 
+ * + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + /** + * + * + *
+     * Specifies task completed successfully.
+     * 
+ * + * SUCCEEDED = 3; + */ + public static final int SUCCEEDED_VALUE = 3; + /** + * + * + *
+     * Specifies Task cancel is in pending state.
+     * 
+ * + * CANCEL_PENDING = 4; + */ + public static final int CANCEL_PENDING_VALUE = 4; + /** + * + * + *
+     * Specifies task is being cancelled.
+     * 
+ * + * CANCELLING = 5; + */ + public static final int CANCELLING_VALUE = 5; + /** + * + * + *
+     * Specifies task was cancelled.
+     * 
+ * + * CANCELLED = 6; + */ + public static final int CANCELLED_VALUE = 6; + /** + * + * + *
+     * Specifies task failed.
+     * 
+ * + * FAILED = 7; + */ + public static final int FAILED_VALUE = 7; + /** + * + * + *
+     * Specifies task was skipped due to cache hit.
+     * 
+ * + * SKIPPED = 8; + */ + public static final int SKIPPED_VALUE = 8; + /** + * + * + *
+     * Specifies that the task was not triggered because the task's trigger
+     * policy is not satisfied. The trigger policy is specified in the
+     * `condition` field of [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec].
+     * 
+ * + * NOT_TRIGGERED = 9; + */ + public static final int NOT_TRIGGERED_VALUE = 9; + + 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 State 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 State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return PENDING; + case 2: + return RUNNING; + case 3: + return SUCCEEDED; + case 4: + return CANCEL_PENDING; + case 5: + return CANCELLING; + case 6: + return CANCELLED; + case 7: + return FAILED; + case 8: + return SKIPPED; + case 9: + return NOT_TRIGGERED; + 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 State findValueByNumber(int number) { + return State.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.PipelineTaskDetail.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State 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 State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.PipelineTaskDetail.State) + } + + public interface ArtifactListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. A list of artifact metadata.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getArtifactsList(); + /** + * + * + *
+     * Output only. A list of artifact metadata.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.Artifact getArtifacts(int index); + /** + * + * + *
+     * Output only. A list of artifact metadata.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getArtifactsCount(); + /** + * + * + *
+     * Output only. A list of artifact metadata.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getArtifactsOrBuilderList(); + /** + * + * + *
+     * Output only. A list of artifact metadata.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.ArtifactOrBuilder getArtifactsOrBuilder(int index); + } + /** + * + * + *
+   * A list of artifact metadata.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList} + */ + public static final class ArtifactList extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList) + ArtifactListOrBuilder { + private static final long serialVersionUID = 0L; + // Use ArtifactList.newBuilder() to construct. + private ArtifactList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ArtifactList() { + artifacts_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ArtifactList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ArtifactList( + 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)) { + artifacts_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + artifacts_.add( + input.readMessage( + com.google.cloud.aiplatform.v1.Artifact.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + artifacts_ = java.util.Collections.unmodifiableList(artifacts_); + } + 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_PipelineTaskDetail_ArtifactList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_ArtifactList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.class, + com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.Builder.class); + } + + public static final int ARTIFACTS_FIELD_NUMBER = 1; + private java.util.List artifacts_; + /** + * + * + *
+     * Output only. A list of artifact metadata.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getArtifactsList() { + return artifacts_; + } + /** + * + * + *
+     * Output only. A list of artifact metadata.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getArtifactsOrBuilderList() { + return artifacts_; + } + /** + * + * + *
+     * Output only. A list of artifact metadata.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getArtifactsCount() { + return artifacts_.size(); + } + /** + * + * + *
+     * Output only. A list of artifact metadata.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Artifact getArtifacts(int index) { + return artifacts_.get(index); + } + /** + * + * + *
+     * Output only. A list of artifact metadata.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ArtifactOrBuilder getArtifactsOrBuilder(int index) { + return artifacts_.get(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 { + for (int i = 0; i < artifacts_.size(); i++) { + output.writeMessage(1, artifacts_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < artifacts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, artifacts_.get(i)); + } + 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.PipelineTaskDetail.ArtifactList)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList other = + (com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList) obj; + + if (!getArtifactsList().equals(other.getArtifactsList())) 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 (getArtifactsCount() > 0) { + hash = (37 * hash) + ARTIFACTS_FIELD_NUMBER; + hash = (53 * hash) + getArtifactsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList 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.PipelineTaskDetail.ArtifactList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList 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.PipelineTaskDetail.ArtifactList parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList 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.PipelineTaskDetail.ArtifactList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList 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.PipelineTaskDetail.ArtifactList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList 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.PipelineTaskDetail.ArtifactList 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.PipelineTaskDetail.ArtifactList 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.PipelineTaskDetail.ArtifactList 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; + } + /** + * + * + *
+     * A list of artifact metadata.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList) + com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_ArtifactList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_ArtifactList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.class, + com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getArtifactsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (artifactsBuilder_ == null) { + artifacts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + artifactsBuilder_.clear(); + } + 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_PipelineTaskDetail_ArtifactList_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList build() { + com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList buildPartial() { + com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList result = + new com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList(this); + int from_bitField0_ = bitField0_; + if (artifactsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + artifacts_ = java.util.Collections.unmodifiableList(artifacts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.artifacts_ = artifacts_; + } else { + result.artifacts_ = artifactsBuilder_.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.PipelineTaskDetail.ArtifactList) { + return mergeFrom((com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList other) { + if (other + == com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.getDefaultInstance()) + return this; + if (artifactsBuilder_ == null) { + if (!other.artifacts_.isEmpty()) { + if (artifacts_.isEmpty()) { + artifacts_ = other.artifacts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureArtifactsIsMutable(); + artifacts_.addAll(other.artifacts_); + } + onChanged(); + } + } else { + if (!other.artifacts_.isEmpty()) { + if (artifactsBuilder_.isEmpty()) { + artifactsBuilder_.dispose(); + artifactsBuilder_ = null; + artifacts_ = other.artifacts_; + bitField0_ = (bitField0_ & ~0x00000001); + artifactsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getArtifactsFieldBuilder() + : null; + } else { + artifactsBuilder_.addAllMessages(other.artifacts_); + } + } + } + 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.PipelineTaskDetail.ArtifactList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List artifacts_ = + java.util.Collections.emptyList(); + + private void ensureArtifactsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + artifacts_ = new java.util.ArrayList(artifacts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Artifact, + com.google.cloud.aiplatform.v1.Artifact.Builder, + com.google.cloud.aiplatform.v1.ArtifactOrBuilder> + artifactsBuilder_; + + /** + * + * + *
+       * Output only. A list of artifact metadata.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getArtifactsList() { + if (artifactsBuilder_ == null) { + return java.util.Collections.unmodifiableList(artifacts_); + } else { + return artifactsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Output only. A list of artifact metadata.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getArtifactsCount() { + if (artifactsBuilder_ == null) { + return artifacts_.size(); + } else { + return artifactsBuilder_.getCount(); + } + } + /** + * + * + *
+       * Output only. A list of artifact metadata.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.Artifact getArtifacts(int index) { + if (artifactsBuilder_ == null) { + return artifacts_.get(index); + } else { + return artifactsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Output only. A list of artifact metadata.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setArtifacts(int index, com.google.cloud.aiplatform.v1.Artifact value) { + if (artifactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArtifactsIsMutable(); + artifacts_.set(index, value); + onChanged(); + } else { + artifactsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Output only. A list of artifact metadata.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setArtifacts( + int index, com.google.cloud.aiplatform.v1.Artifact.Builder builderForValue) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.set(index, builderForValue.build()); + onChanged(); + } else { + artifactsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Output only. A list of artifact metadata.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addArtifacts(com.google.cloud.aiplatform.v1.Artifact value) { + if (artifactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArtifactsIsMutable(); + artifacts_.add(value); + onChanged(); + } else { + artifactsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Output only. A list of artifact metadata.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addArtifacts(int index, com.google.cloud.aiplatform.v1.Artifact value) { + if (artifactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArtifactsIsMutable(); + artifacts_.add(index, value); + onChanged(); + } else { + artifactsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Output only. A list of artifact metadata.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addArtifacts(com.google.cloud.aiplatform.v1.Artifact.Builder builderForValue) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.add(builderForValue.build()); + onChanged(); + } else { + artifactsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Output only. A list of artifact metadata.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addArtifacts( + int index, com.google.cloud.aiplatform.v1.Artifact.Builder builderForValue) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.add(index, builderForValue.build()); + onChanged(); + } else { + artifactsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Output only. A list of artifact metadata.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllArtifacts( + java.lang.Iterable values) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, artifacts_); + onChanged(); + } else { + artifactsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Output only. A list of artifact metadata.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearArtifacts() { + if (artifactsBuilder_ == null) { + artifacts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + artifactsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Output only. A list of artifact metadata.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeArtifacts(int index) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.remove(index); + onChanged(); + } else { + artifactsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Output only. A list of artifact metadata.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.Artifact.Builder getArtifactsBuilder(int index) { + return getArtifactsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Output only. A list of artifact metadata.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ArtifactOrBuilder getArtifactsOrBuilder(int index) { + if (artifactsBuilder_ == null) { + return artifacts_.get(index); + } else { + return artifactsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Output only. A list of artifact metadata.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getArtifactsOrBuilderList() { + if (artifactsBuilder_ != null) { + return artifactsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(artifacts_); + } + } + /** + * + * + *
+       * Output only. A list of artifact metadata.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.Artifact.Builder addArtifactsBuilder() { + return getArtifactsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.Artifact.getDefaultInstance()); + } + /** + * + * + *
+       * Output only. A list of artifact metadata.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.Artifact.Builder addArtifactsBuilder(int index) { + return getArtifactsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1.Artifact.getDefaultInstance()); + } + /** + * + * + *
+       * Output only. A list of artifact metadata.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Artifact artifacts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getArtifactsBuilderList() { + return getArtifactsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Artifact, + com.google.cloud.aiplatform.v1.Artifact.Builder, + com.google.cloud.aiplatform.v1.ArtifactOrBuilder> + getArtifactsFieldBuilder() { + if (artifactsBuilder_ == null) { + artifactsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Artifact, + com.google.cloud.aiplatform.v1.Artifact.Builder, + com.google.cloud.aiplatform.v1.ArtifactOrBuilder>( + artifacts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + artifacts_ = null; + } + return artifactsBuilder_; + } + + @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.PipelineTaskDetail.ArtifactList) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList) + private static final com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList(); + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArtifactList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ArtifactList(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.PipelineTaskDetail.ArtifactList + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int TASK_ID_FIELD_NUMBER = 1; + private long taskId_; + /** + * + * + *
+   * Output only. The system generated ID of the task.
+   * 
+ * + * int64 task_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The taskId. + */ + @java.lang.Override + public long getTaskId() { + return taskId_; + } + + public static final int PARENT_TASK_ID_FIELD_NUMBER = 12; + private long parentTaskId_; + /** + * + * + *
+   * Output only. The id of the parent task if the task is within a component scope.
+   * Empty if the task is at the root level.
+   * 
+ * + * int64 parent_task_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The parentTaskId. + */ + @java.lang.Override + public long getParentTaskId() { + return parentTaskId_; + } + + public static final int TASK_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object taskName_; + /** + * + * + *
+   * Output only. The user specified name of the task that is defined in
+   * [PipelineJob.spec][].
+   * 
+ * + * string task_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The taskName. + */ + @java.lang.Override + public java.lang.String getTaskName() { + java.lang.Object ref = taskName_; + 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(); + taskName_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The user specified name of the task that is defined in
+   * [PipelineJob.spec][].
+   * 
+ * + * string task_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for taskName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTaskNameBytes() { + java.lang.Object ref = taskName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + taskName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Task create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Task create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Task create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int START_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * Output only. Task start time.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return startTime_ != null; + } + /** + * + * + *
+   * Output only. Task start time.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * Output only. Task start time.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int END_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * Output only. Task end time.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return endTime_ != null; + } + /** + * + * + *
+   * Output only. Task end time.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * Output only. Task end time.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + public static final int EXECUTOR_DETAIL_FIELD_NUMBER = 6; + private com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail executorDetail_; + /** + * + * + *
+   * Output only. The detailed execution info.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail executor_detail = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the executorDetail field is set. + */ + @java.lang.Override + public boolean hasExecutorDetail() { + return executorDetail_ != null; + } + /** + * + * + *
+   * Output only. The detailed execution info.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail executor_detail = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The executorDetail. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail getExecutorDetail() { + return executorDetail_ == null + ? com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.getDefaultInstance() + : executorDetail_; + } + /** + * + * + *
+   * Output only. The detailed execution info.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail executor_detail = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetailOrBuilder + getExecutorDetailOrBuilder() { + return getExecutorDetail(); + } + + public static final int STATE_FIELD_NUMBER = 7; + private int state_; + /** + * + * + *
+   * Output only. State of the task.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskDetail.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. State of the task.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskDetail.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskDetail.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1.PipelineTaskDetail.State result = + com.google.cloud.aiplatform.v1.PipelineTaskDetail.State.valueOf(state_); + return result == null + ? com.google.cloud.aiplatform.v1.PipelineTaskDetail.State.UNRECOGNIZED + : result; + } + + public static final int EXECUTION_FIELD_NUMBER = 8; + private com.google.cloud.aiplatform.v1.Execution execution_; + /** + * + * + *
+   * Output only. The execution metadata of the task.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Execution execution = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the execution field is set. + */ + @java.lang.Override + public boolean hasExecution() { + return execution_ != null; + } + /** + * + * + *
+   * Output only. The execution metadata of the task.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Execution execution = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The execution. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Execution getExecution() { + return execution_ == null + ? com.google.cloud.aiplatform.v1.Execution.getDefaultInstance() + : execution_; + } + /** + * + * + *
+   * Output only. The execution metadata of the task.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Execution execution = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ExecutionOrBuilder getExecutionOrBuilder() { + return getExecution(); + } + + public static final int ERROR_FIELD_NUMBER = 9; + private com.google.rpc.Status error_; + /** + * + * + *
+   * Output only. The error that occurred during task execution.
+   * Only populated when the task's state is FAILED or CANCELLED.
+   * 
+ * + * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return error_ != null; + } + /** + * + * + *
+   * Output only. The error that occurred during task execution.
+   * Only populated when the task's state is FAILED or CANCELLED.
+   * 
+ * + * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + /** + * + * + *
+   * Output only. The error that occurred during task execution.
+   * Only populated when the task's state is FAILED or CANCELLED.
+   * 
+ * + * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + return getError(); + } + + public static final int INPUTS_FIELD_NUMBER = 10; + + private static final class InputsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_InputsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + .getDefaultInstance()); + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + inputs_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + internalGetInputs() { + if (inputs_ == null) { + return com.google.protobuf.MapField.emptyMapField(InputsDefaultEntryHolder.defaultEntry); + } + return inputs_; + } + + public int getInputsCount() { + return internalGetInputs().getMap().size(); + } + /** + * + * + *
+   * Output only. The runtime input artifacts of the task.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> inputs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsInputs(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetInputs().getMap().containsKey(key); + } + /** Use {@link #getInputsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + getInputs() { + return getInputsMap(); + } + /** + * + * + *
+   * Output only. The runtime input artifacts of the task.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> inputs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + getInputsMap() { + return internalGetInputs().getMap(); + } + /** + * + * + *
+   * Output only. The runtime input artifacts of the task.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> inputs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getInputsOrDefault( + java.lang.String key, + com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map + map = internalGetInputs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Output only. The runtime input artifacts of the task.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> inputs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getInputsOrThrow( + java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map + map = internalGetInputs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int OUTPUTS_FIELD_NUMBER = 11; + + private static final class OutputsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_OutputsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + .getDefaultInstance()); + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + outputs_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + internalGetOutputs() { + if (outputs_ == null) { + return com.google.protobuf.MapField.emptyMapField(OutputsDefaultEntryHolder.defaultEntry); + } + return outputs_; + } + + public int getOutputsCount() { + return internalGetOutputs().getMap().size(); + } + /** + * + * + *
+   * Output only. The runtime output artifacts of the task.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> outputs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsOutputs(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetOutputs().getMap().containsKey(key); + } + /** Use {@link #getOutputsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + getOutputs() { + return getOutputsMap(); + } + /** + * + * + *
+   * Output only. The runtime output artifacts of the task.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> outputs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + getOutputsMap() { + return internalGetOutputs().getMap(); + } + /** + * + * + *
+   * Output only. The runtime output artifacts of the task.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> outputs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getOutputsOrDefault( + java.lang.String key, + com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map + map = internalGetOutputs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Output only. The runtime output artifacts of the task.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> outputs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getOutputsOrThrow( + java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map + map = internalGetOutputs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 (taskId_ != 0L) { + output.writeInt64(1, taskId_); + } + if (!getTaskNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, taskName_); + } + if (createTime_ != null) { + output.writeMessage(3, getCreateTime()); + } + if (startTime_ != null) { + output.writeMessage(4, getStartTime()); + } + if (endTime_ != null) { + output.writeMessage(5, getEndTime()); + } + if (executorDetail_ != null) { + output.writeMessage(6, getExecutorDetail()); + } + if (state_ + != com.google.cloud.aiplatform.v1.PipelineTaskDetail.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(7, state_); + } + if (execution_ != null) { + output.writeMessage(8, getExecution()); + } + if (error_ != null) { + output.writeMessage(9, getError()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetInputs(), InputsDefaultEntryHolder.defaultEntry, 10); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetOutputs(), OutputsDefaultEntryHolder.defaultEntry, 11); + if (parentTaskId_ != 0L) { + output.writeInt64(12, parentTaskId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (taskId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, taskId_); + } + if (!getTaskNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, taskName_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndTime()); + } + if (executorDetail_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getExecutorDetail()); + } + if (state_ + != com.google.cloud.aiplatform.v1.PipelineTaskDetail.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); + } + if (execution_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getExecution()); + } + if (error_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getError()); + } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + entry : internalGetInputs().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + inputs__ = + InputsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, inputs__); + } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + entry : internalGetOutputs().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + outputs__ = + OutputsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, outputs__); + } + if (parentTaskId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(12, parentTaskId_); + } + 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.PipelineTaskDetail)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.PipelineTaskDetail other = + (com.google.cloud.aiplatform.v1.PipelineTaskDetail) obj; + + if (getTaskId() != other.getTaskId()) return false; + if (getParentTaskId() != other.getParentTaskId()) return false; + if (!getTaskName().equals(other.getTaskName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (hasExecutorDetail() != other.hasExecutorDetail()) return false; + if (hasExecutorDetail()) { + if (!getExecutorDetail().equals(other.getExecutorDetail())) return false; + } + if (state_ != other.state_) return false; + if (hasExecution() != other.hasExecution()) return false; + if (hasExecution()) { + if (!getExecution().equals(other.getExecution())) return false; + } + if (hasError() != other.hasError()) return false; + if (hasError()) { + if (!getError().equals(other.getError())) return false; + } + if (!internalGetInputs().equals(other.internalGetInputs())) return false; + if (!internalGetOutputs().equals(other.internalGetOutputs())) 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) + TASK_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTaskId()); + hash = (37 * hash) + PARENT_TASK_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getParentTaskId()); + hash = (37 * hash) + TASK_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTaskName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + if (hasExecutorDetail()) { + hash = (37 * hash) + EXECUTOR_DETAIL_FIELD_NUMBER; + hash = (53 * hash) + getExecutorDetail().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasExecution()) { + hash = (37 * hash) + EXECUTION_FIELD_NUMBER; + hash = (53 * hash) + getExecution().hashCode(); + } + if (hasError()) { + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + } + if (!internalGetInputs().getMap().isEmpty()) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + internalGetInputs().hashCode(); + } + if (!internalGetOutputs().getMap().isEmpty()) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + internalGetOutputs().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskDetail parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskDetail 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.PipelineTaskDetail parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskDetail 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.PipelineTaskDetail parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskDetail 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.PipelineTaskDetail parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskDetail 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.PipelineTaskDetail parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskDetail 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.PipelineTaskDetail 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.PipelineTaskDetail 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.PipelineTaskDetail 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; + } + /** + * + * + *
+   * The runtime detail of a task execution.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.PipelineTaskDetail} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.PipelineTaskDetail) + com.google.cloud.aiplatform.v1.PipelineTaskDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 10: + return internalGetInputs(); + case 11: + return internalGetOutputs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 10: + return internalGetMutableInputs(); + case 11: + return internalGetMutableOutputs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineTaskDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.PipelineTaskDetail.class, + com.google.cloud.aiplatform.v1.PipelineTaskDetail.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.PipelineTaskDetail.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(); + taskId_ = 0L; + + parentTaskId_ = 0L; + + taskName_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + if (executorDetailBuilder_ == null) { + executorDetail_ = null; + } else { + executorDetail_ = null; + executorDetailBuilder_ = null; + } + state_ = 0; + + if (executionBuilder_ == null) { + execution_ = null; + } else { + execution_ = null; + executionBuilder_ = null; + } + if (errorBuilder_ == null) { + error_ = null; + } else { + error_ = null; + errorBuilder_ = null; + } + internalGetMutableInputs().clear(); + internalGetMutableOutputs().clear(); + 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_PipelineTaskDetail_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskDetail getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.PipelineTaskDetail.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskDetail build() { + com.google.cloud.aiplatform.v1.PipelineTaskDetail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskDetail buildPartial() { + com.google.cloud.aiplatform.v1.PipelineTaskDetail result = + new com.google.cloud.aiplatform.v1.PipelineTaskDetail(this); + int from_bitField0_ = bitField0_; + result.taskId_ = taskId_; + result.parentTaskId_ = parentTaskId_; + result.taskName_ = taskName_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + if (executorDetailBuilder_ == null) { + result.executorDetail_ = executorDetail_; + } else { + result.executorDetail_ = executorDetailBuilder_.build(); + } + result.state_ = state_; + if (executionBuilder_ == null) { + result.execution_ = execution_; + } else { + result.execution_ = executionBuilder_.build(); + } + if (errorBuilder_ == null) { + result.error_ = error_; + } else { + result.error_ = errorBuilder_.build(); + } + result.inputs_ = internalGetInputs(); + result.inputs_.makeImmutable(); + result.outputs_ = internalGetOutputs(); + result.outputs_.makeImmutable(); + 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.PipelineTaskDetail) { + return mergeFrom((com.google.cloud.aiplatform.v1.PipelineTaskDetail) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.PipelineTaskDetail other) { + if (other == com.google.cloud.aiplatform.v1.PipelineTaskDetail.getDefaultInstance()) + return this; + if (other.getTaskId() != 0L) { + setTaskId(other.getTaskId()); + } + if (other.getParentTaskId() != 0L) { + setParentTaskId(other.getParentTaskId()); + } + if (!other.getTaskName().isEmpty()) { + taskName_ = other.taskName_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (other.hasExecutorDetail()) { + mergeExecutorDetail(other.getExecutorDetail()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasExecution()) { + mergeExecution(other.getExecution()); + } + if (other.hasError()) { + mergeError(other.getError()); + } + internalGetMutableInputs().mergeFrom(other.internalGetInputs()); + internalGetMutableOutputs().mergeFrom(other.internalGetOutputs()); + 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.PipelineTaskDetail parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1.PipelineTaskDetail) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private long taskId_; + /** + * + * + *
+     * Output only. The system generated ID of the task.
+     * 
+ * + * int64 task_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The taskId. + */ + @java.lang.Override + public long getTaskId() { + return taskId_; + } + /** + * + * + *
+     * Output only. The system generated ID of the task.
+     * 
+ * + * int64 task_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The taskId to set. + * @return This builder for chaining. + */ + public Builder setTaskId(long value) { + + taskId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The system generated ID of the task.
+     * 
+ * + * int64 task_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTaskId() { + + taskId_ = 0L; + onChanged(); + return this; + } + + private long parentTaskId_; + /** + * + * + *
+     * Output only. The id of the parent task if the task is within a component scope.
+     * Empty if the task is at the root level.
+     * 
+ * + * int64 parent_task_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The parentTaskId. + */ + @java.lang.Override + public long getParentTaskId() { + return parentTaskId_; + } + /** + * + * + *
+     * Output only. The id of the parent task if the task is within a component scope.
+     * Empty if the task is at the root level.
+     * 
+ * + * int64 parent_task_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The parentTaskId to set. + * @return This builder for chaining. + */ + public Builder setParentTaskId(long value) { + + parentTaskId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The id of the parent task if the task is within a component scope.
+     * Empty if the task is at the root level.
+     * 
+ * + * int64 parent_task_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearParentTaskId() { + + parentTaskId_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object taskName_ = ""; + /** + * + * + *
+     * Output only. The user specified name of the task that is defined in
+     * [PipelineJob.spec][].
+     * 
+ * + * string task_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The taskName. + */ + public java.lang.String getTaskName() { + java.lang.Object ref = taskName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The user specified name of the task that is defined in
+     * [PipelineJob.spec][].
+     * 
+ * + * string task_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for taskName. + */ + public com.google.protobuf.ByteString getTaskNameBytes() { + java.lang.Object ref = taskName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + taskName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The user specified name of the task that is defined in
+     * [PipelineJob.spec][].
+     * 
+ * + * string task_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The taskName to set. + * @return This builder for chaining. + */ + public Builder setTaskName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + taskName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The user specified name of the task that is defined in
+     * [PipelineJob.spec][].
+     * 
+ * + * string task_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTaskName() { + + taskName_ = getDefaultInstance().getTaskName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The user specified name of the task that is defined in
+     * [PipelineJob.spec][].
+     * 
+ * + * string task_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for taskName to set. + * @return This builder for chaining. + */ + public Builder setTaskNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + taskName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Task create time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Output only. Task create time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Task create time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Task create time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Task create time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Task create time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Task create time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Task create time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Task create time.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * Output only. Task start time.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + * + * + *
+     * Output only. Task start time.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Task start time.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Task start time.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Task start time.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Task start time.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Task start time.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Task start time.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * Output only. Task start time.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * Output only. Task end time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + * + * + *
+     * Output only. Task end time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Task end time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Task end time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Task end time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Task end time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Task end time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Task end time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * Output only. Task end time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail executorDetail_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail, + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.Builder, + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetailOrBuilder> + executorDetailBuilder_; + /** + * + * + *
+     * Output only. The detailed execution info.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail executor_detail = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the executorDetail field is set. + */ + public boolean hasExecutorDetail() { + return executorDetailBuilder_ != null || executorDetail_ != null; + } + /** + * + * + *
+     * Output only. The detailed execution info.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail executor_detail = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The executorDetail. + */ + public com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail getExecutorDetail() { + if (executorDetailBuilder_ == null) { + return executorDetail_ == null + ? com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.getDefaultInstance() + : executorDetail_; + } else { + return executorDetailBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The detailed execution info.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail executor_detail = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExecutorDetail( + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail value) { + if (executorDetailBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + executorDetail_ = value; + onChanged(); + } else { + executorDetailBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The detailed execution info.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail executor_detail = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExecutorDetail( + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.Builder builderForValue) { + if (executorDetailBuilder_ == null) { + executorDetail_ = builderForValue.build(); + onChanged(); + } else { + executorDetailBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The detailed execution info.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail executor_detail = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeExecutorDetail( + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail value) { + if (executorDetailBuilder_ == null) { + if (executorDetail_ != null) { + executorDetail_ = + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.newBuilder(executorDetail_) + .mergeFrom(value) + .buildPartial(); + } else { + executorDetail_ = value; + } + onChanged(); + } else { + executorDetailBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The detailed execution info.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail executor_detail = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearExecutorDetail() { + if (executorDetailBuilder_ == null) { + executorDetail_ = null; + onChanged(); + } else { + executorDetail_ = null; + executorDetailBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The detailed execution info.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail executor_detail = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.Builder + getExecutorDetailBuilder() { + + onChanged(); + return getExecutorDetailFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The detailed execution info.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail executor_detail = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetailOrBuilder + getExecutorDetailOrBuilder() { + if (executorDetailBuilder_ != null) { + return executorDetailBuilder_.getMessageOrBuilder(); + } else { + return executorDetail_ == null + ? com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.getDefaultInstance() + : executorDetail_; + } + } + /** + * + * + *
+     * Output only. The detailed execution info.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail executor_detail = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail, + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.Builder, + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetailOrBuilder> + getExecutorDetailFieldBuilder() { + if (executorDetailBuilder_ == null) { + executorDetailBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail, + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.Builder, + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetailOrBuilder>( + getExecutorDetail(), getParentForChildren(), isClean()); + executorDetail_ = null; + } + return executorDetailBuilder_; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. State of the task.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskDetail.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. State of the task.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskDetail.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the task.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskDetail.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskDetail.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1.PipelineTaskDetail.State result = + com.google.cloud.aiplatform.v1.PipelineTaskDetail.State.valueOf(state_); + return result == null + ? com.google.cloud.aiplatform.v1.PipelineTaskDetail.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. State of the task.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskDetail.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.aiplatform.v1.PipelineTaskDetail.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the task.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskDetail.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1.Execution execution_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Execution, + com.google.cloud.aiplatform.v1.Execution.Builder, + com.google.cloud.aiplatform.v1.ExecutionOrBuilder> + executionBuilder_; + /** + * + * + *
+     * Output only. The execution metadata of the task.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Execution execution = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the execution field is set. + */ + public boolean hasExecution() { + return executionBuilder_ != null || execution_ != null; + } + /** + * + * + *
+     * Output only. The execution metadata of the task.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Execution execution = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The execution. + */ + public com.google.cloud.aiplatform.v1.Execution getExecution() { + if (executionBuilder_ == null) { + return execution_ == null + ? com.google.cloud.aiplatform.v1.Execution.getDefaultInstance() + : execution_; + } else { + return executionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The execution metadata of the task.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Execution execution = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExecution(com.google.cloud.aiplatform.v1.Execution value) { + if (executionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + execution_ = value; + onChanged(); + } else { + executionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The execution metadata of the task.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Execution execution = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExecution(com.google.cloud.aiplatform.v1.Execution.Builder builderForValue) { + if (executionBuilder_ == null) { + execution_ = builderForValue.build(); + onChanged(); + } else { + executionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The execution metadata of the task.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Execution execution = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeExecution(com.google.cloud.aiplatform.v1.Execution value) { + if (executionBuilder_ == null) { + if (execution_ != null) { + execution_ = + com.google.cloud.aiplatform.v1.Execution.newBuilder(execution_) + .mergeFrom(value) + .buildPartial(); + } else { + execution_ = value; + } + onChanged(); + } else { + executionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The execution metadata of the task.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Execution execution = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearExecution() { + if (executionBuilder_ == null) { + execution_ = null; + onChanged(); + } else { + execution_ = null; + executionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The execution metadata of the task.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Execution execution = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.Execution.Builder getExecutionBuilder() { + + onChanged(); + return getExecutionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The execution metadata of the task.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Execution execution = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ExecutionOrBuilder getExecutionOrBuilder() { + if (executionBuilder_ != null) { + return executionBuilder_.getMessageOrBuilder(); + } else { + return execution_ == null + ? com.google.cloud.aiplatform.v1.Execution.getDefaultInstance() + : execution_; + } + } + /** + * + * + *
+     * Output only. The execution metadata of the task.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Execution execution = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Execution, + com.google.cloud.aiplatform.v1.Execution.Builder, + com.google.cloud.aiplatform.v1.ExecutionOrBuilder> + getExecutionFieldBuilder() { + if (executionBuilder_ == null) { + executionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Execution, + com.google.cloud.aiplatform.v1.Execution.Builder, + com.google.cloud.aiplatform.v1.ExecutionOrBuilder>( + getExecution(), getParentForChildren(), isClean()); + execution_ = null; + } + return executionBuilder_; + } + + private com.google.rpc.Status error_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; + /** + * + * + *
+     * Output only. The error that occurred during task execution.
+     * Only populated when the task's state is FAILED or CANCELLED.
+     * 
+ * + * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + public boolean hasError() { + return errorBuilder_ != null || error_ != null; + } + /** + * + * + *
+     * Output only. The error that occurred during task execution.
+     * Only populated when the task's state is FAILED or CANCELLED.
+     * 
+ * + * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } else { + return errorBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The error that occurred during task execution.
+     * Only populated when the task's state is FAILED or CANCELLED.
+     * 
+ * + * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The error that occurred during task execution.
+     * Only populated when the task's state is FAILED or CANCELLED.
+     * 
+ * + * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setError(com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The error that occurred during task execution.
+     * Only populated when the task's state is FAILED or CANCELLED.
+     * 
+ * + * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (error_ != null) { + error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + } else { + error_ = value; + } + onChanged(); + } else { + errorBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The error that occurred during task execution.
+     * Only populated when the task's state is FAILED or CANCELLED.
+     * 
+ * + * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + error_ = null; + onChanged(); + } else { + error_ = null; + errorBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The error that occurred during task execution.
+     * Only populated when the task's state is FAILED or CANCELLED.
+     * 
+ * + * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + + onChanged(); + return getErrorFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The error that occurred during task execution.
+     * Only populated when the task's state is FAILED or CANCELLED.
+     * 
+ * + * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + } + /** + * + * + *
+     * Output only. The error that occurred during task execution.
+     * Only populated when the task's state is FAILED or CANCELLED.
+     * 
+ * + * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); + error_ = null; + } + return errorBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + inputs_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + internalGetInputs() { + if (inputs_ == null) { + return com.google.protobuf.MapField.emptyMapField(InputsDefaultEntryHolder.defaultEntry); + } + return inputs_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + internalGetMutableInputs() { + onChanged(); + ; + if (inputs_ == null) { + inputs_ = com.google.protobuf.MapField.newMapField(InputsDefaultEntryHolder.defaultEntry); + } + if (!inputs_.isMutable()) { + inputs_ = inputs_.copy(); + } + return inputs_; + } + + public int getInputsCount() { + return internalGetInputs().getMap().size(); + } + /** + * + * + *
+     * Output only. The runtime input artifacts of the task.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> inputs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsInputs(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetInputs().getMap().containsKey(key); + } + /** Use {@link #getInputsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + getInputs() { + return getInputsMap(); + } + /** + * + * + *
+     * Output only. The runtime input artifacts of the task.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> inputs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + getInputsMap() { + return internalGetInputs().getMap(); + } + /** + * + * + *
+     * Output only. The runtime input artifacts of the task.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> inputs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getInputsOrDefault( + java.lang.String key, + com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + map = internalGetInputs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Output only. The runtime input artifacts of the task.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> inputs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getInputsOrThrow( + java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + map = internalGetInputs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearInputs() { + internalGetMutableInputs().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Output only. The runtime input artifacts of the task.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> inputs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeInputs(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableInputs().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + getMutableInputs() { + return internalGetMutableInputs().getMutableMap(); + } + /** + * + * + *
+     * Output only. The runtime input artifacts of the task.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> inputs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putInputs( + java.lang.String key, + com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableInputs().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Output only. The runtime input artifacts of the task.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> inputs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllInputs( + java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + values) { + internalGetMutableInputs().getMutableMap().putAll(values); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + outputs_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + internalGetOutputs() { + if (outputs_ == null) { + return com.google.protobuf.MapField.emptyMapField(OutputsDefaultEntryHolder.defaultEntry); + } + return outputs_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + internalGetMutableOutputs() { + onChanged(); + ; + if (outputs_ == null) { + outputs_ = com.google.protobuf.MapField.newMapField(OutputsDefaultEntryHolder.defaultEntry); + } + if (!outputs_.isMutable()) { + outputs_ = outputs_.copy(); + } + return outputs_; + } + + public int getOutputsCount() { + return internalGetOutputs().getMap().size(); + } + /** + * + * + *
+     * Output only. The runtime output artifacts of the task.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> outputs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsOutputs(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetOutputs().getMap().containsKey(key); + } + /** Use {@link #getOutputsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + getOutputs() { + return getOutputsMap(); + } + /** + * + * + *
+     * Output only. The runtime output artifacts of the task.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> outputs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + getOutputsMap() { + return internalGetOutputs().getMap(); + } + /** + * + * + *
+     * Output only. The runtime output artifacts of the task.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> outputs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getOutputsOrDefault( + java.lang.String key, + com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + map = internalGetOutputs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Output only. The runtime output artifacts of the task.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> outputs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getOutputsOrThrow( + java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + map = internalGetOutputs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearOutputs() { + internalGetMutableOutputs().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Output only. The runtime output artifacts of the task.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> outputs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeOutputs(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableOutputs().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + getMutableOutputs() { + return internalGetMutableOutputs().getMutableMap(); + } + /** + * + * + *
+     * Output only. The runtime output artifacts of the task.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> outputs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putOutputs( + java.lang.String key, + com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableOutputs().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Output only. The runtime output artifacts of the task.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> outputs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllOutputs( + java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> + values) { + internalGetMutableOutputs().getMutableMap().putAll(values); + 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.PipelineTaskDetail) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.PipelineTaskDetail) + private static final com.google.cloud.aiplatform.v1.PipelineTaskDetail DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.PipelineTaskDetail(); + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskDetail getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PipelineTaskDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PipelineTaskDetail(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.PipelineTaskDetail getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskDetailOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskDetailOrBuilder.java new file mode 100644 index 000000000..bc4588cb0 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskDetailOrBuilder.java @@ -0,0 +1,480 @@ +/* + * 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 PipelineTaskDetailOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.PipelineTaskDetail) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The system generated ID of the task.
+   * 
+ * + * int64 task_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The taskId. + */ + long getTaskId(); + + /** + * + * + *
+   * Output only. The id of the parent task if the task is within a component scope.
+   * Empty if the task is at the root level.
+   * 
+ * + * int64 parent_task_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The parentTaskId. + */ + long getParentTaskId(); + + /** + * + * + *
+   * Output only. The user specified name of the task that is defined in
+   * [PipelineJob.spec][].
+   * 
+ * + * string task_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The taskName. + */ + java.lang.String getTaskName(); + /** + * + * + *
+   * Output only. The user specified name of the task that is defined in
+   * [PipelineJob.spec][].
+   * 
+ * + * string task_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for taskName. + */ + com.google.protobuf.ByteString getTaskNameBytes(); + + /** + * + * + *
+   * Output only. Task create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Task create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Task create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Task start time.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
+   * Output only. Task start time.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * Output only. Task start time.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Task end time.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
+   * Output only. Task end time.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * Output only. Task end time.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The detailed execution info.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail executor_detail = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the executorDetail field is set. + */ + boolean hasExecutorDetail(); + /** + * + * + *
+   * Output only. The detailed execution info.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail executor_detail = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The executorDetail. + */ + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail getExecutorDetail(); + /** + * + * + *
+   * Output only. The detailed execution info.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail executor_detail = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetailOrBuilder getExecutorDetailOrBuilder(); + + /** + * + * + *
+   * Output only. State of the task.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskDetail.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. State of the task.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskDetail.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.aiplatform.v1.PipelineTaskDetail.State getState(); + + /** + * + * + *
+   * Output only. The execution metadata of the task.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Execution execution = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the execution field is set. + */ + boolean hasExecution(); + /** + * + * + *
+   * Output only. The execution metadata of the task.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Execution execution = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The execution. + */ + com.google.cloud.aiplatform.v1.Execution getExecution(); + /** + * + * + *
+   * Output only. The execution metadata of the task.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Execution execution = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.ExecutionOrBuilder getExecutionOrBuilder(); + + /** + * + * + *
+   * Output only. The error that occurred during task execution.
+   * Only populated when the task's state is FAILED or CANCELLED.
+   * 
+ * + * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + boolean hasError(); + /** + * + * + *
+   * Output only. The error that occurred during task execution.
+   * Only populated when the task's state is FAILED or CANCELLED.
+   * 
+ * + * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + com.google.rpc.Status getError(); + /** + * + * + *
+   * Output only. The error that occurred during task execution.
+   * Only populated when the task's state is FAILED or CANCELLED.
+   * 
+ * + * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.rpc.StatusOrBuilder getErrorOrBuilder(); + + /** + * + * + *
+   * Output only. The runtime input artifacts of the task.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> inputs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getInputsCount(); + /** + * + * + *
+   * Output only. The runtime input artifacts of the task.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> inputs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsInputs(java.lang.String key); + /** Use {@link #getInputsMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getInputs(); + /** + * + * + *
+   * Output only. The runtime input artifacts of the task.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> inputs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map + getInputsMap(); + /** + * + * + *
+   * Output only. The runtime input artifacts of the task.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> inputs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getInputsOrDefault( + java.lang.String key, + com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList defaultValue); + /** + * + * + *
+   * Output only. The runtime input artifacts of the task.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> inputs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getInputsOrThrow( + java.lang.String key); + + /** + * + * + *
+   * Output only. The runtime output artifacts of the task.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> outputs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getOutputsCount(); + /** + * + * + *
+   * Output only. The runtime output artifacts of the task.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> outputs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsOutputs(java.lang.String key); + /** Use {@link #getOutputsMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getOutputs(); + /** + * + * + *
+   * Output only. The runtime output artifacts of the task.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> outputs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map + getOutputsMap(); + /** + * + * + *
+   * Output only. The runtime output artifacts of the task.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> outputs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getOutputsOrDefault( + java.lang.String key, + com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList defaultValue); + /** + * + * + *
+   * Output only. The runtime output artifacts of the task.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList> outputs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList getOutputsOrThrow( + java.lang.String key); +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskExecutorDetail.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskExecutorDetail.java new file mode 100644 index 000000000..e24a902e6 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskExecutorDetail.java @@ -0,0 +1,2907 @@ +/* + * 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; + +/** + * + * + *
+ * The runtime detail of a pipeline executor.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} + */ +public final class PipelineTaskExecutorDetail extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.PipelineTaskExecutorDetail) + PipelineTaskExecutorDetailOrBuilder { + private static final long serialVersionUID = 0L; + // Use PipelineTaskExecutorDetail.newBuilder() to construct. + private PipelineTaskExecutorDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PipelineTaskExecutorDetail() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PipelineTaskExecutorDetail(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PipelineTaskExecutorDetail( + 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.v1.PipelineTaskExecutorDetail.ContainerDetail.Builder + subBuilder = null; + if (detailsCase_ == 1) { + subBuilder = + ((com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail) + details_) + .toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail) + details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 1; + break; + } + case 18: + { + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.Builder + subBuilder = null; + if (detailsCase_ == 2) { + subBuilder = + ((com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail) + details_) + .toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail) + details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 2; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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_PipelineTaskExecutorDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineTaskExecutorDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.class, + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.Builder.class); + } + + public interface ContainerDetailOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob] for the main container execution.
+     * 
+ * + * + * string main_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The mainJob. + */ + java.lang.String getMainJob(); + /** + * + * + *
+     * Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob] for the main container execution.
+     * 
+ * + * + * string main_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for mainJob. + */ + com.google.protobuf.ByteString getMainJobBytes(); + + /** + * + * + *
+     * Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob] for the pre-caching-check container
+     * execution. This job will be available if the
+     * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] specifies the `pre_caching_check` hook in
+     * the lifecycle events.
+     * 
+ * + * + * string pre_caching_check_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The preCachingCheckJob. + */ + java.lang.String getPreCachingCheckJob(); + /** + * + * + *
+     * Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob] for the pre-caching-check container
+     * execution. This job will be available if the
+     * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] specifies the `pre_caching_check` hook in
+     * the lifecycle events.
+     * 
+ * + * + * string pre_caching_check_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for preCachingCheckJob. + */ + com.google.protobuf.ByteString getPreCachingCheckJobBytes(); + } + /** + * + * + *
+   * The detail of a container execution. It contains the job names of the
+   * lifecycle of a container execution.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail} + */ + public static final class ContainerDetail extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail) + ContainerDetailOrBuilder { + private static final long serialVersionUID = 0L; + // Use ContainerDetail.newBuilder() to construct. + private ContainerDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ContainerDetail() { + mainJob_ = ""; + preCachingCheckJob_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ContainerDetail(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ContainerDetail( + 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(); + + mainJob_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + preCachingCheckJob_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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_PipelineTaskExecutorDetail_ContainerDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineTaskExecutorDetail_ContainerDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.class, + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.Builder + .class); + } + + public static final int MAIN_JOB_FIELD_NUMBER = 1; + private volatile java.lang.Object mainJob_; + /** + * + * + *
+     * Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob] for the main container execution.
+     * 
+ * + * + * string main_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The mainJob. + */ + @java.lang.Override + public java.lang.String getMainJob() { + java.lang.Object ref = mainJob_; + 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(); + mainJob_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob] for the main container execution.
+     * 
+ * + * + * string main_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for mainJob. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMainJobBytes() { + java.lang.Object ref = mainJob_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mainJob_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRE_CACHING_CHECK_JOB_FIELD_NUMBER = 2; + private volatile java.lang.Object preCachingCheckJob_; + /** + * + * + *
+     * Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob] for the pre-caching-check container
+     * execution. This job will be available if the
+     * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] specifies the `pre_caching_check` hook in
+     * the lifecycle events.
+     * 
+ * + * + * string pre_caching_check_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The preCachingCheckJob. + */ + @java.lang.Override + public java.lang.String getPreCachingCheckJob() { + java.lang.Object ref = preCachingCheckJob_; + 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(); + preCachingCheckJob_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob] for the pre-caching-check container
+     * execution. This job will be available if the
+     * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] specifies the `pre_caching_check` hook in
+     * the lifecycle events.
+     * 
+ * + * + * string pre_caching_check_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for preCachingCheckJob. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPreCachingCheckJobBytes() { + java.lang.Object ref = preCachingCheckJob_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + preCachingCheckJob_ = 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 (!getMainJobBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mainJob_); + } + if (!getPreCachingCheckJobBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, preCachingCheckJob_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getMainJobBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mainJob_); + } + if (!getPreCachingCheckJobBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, preCachingCheckJob_); + } + 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.PipelineTaskExecutorDetail.ContainerDetail)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail other = + (com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail) obj; + + if (!getMainJob().equals(other.getMainJob())) return false; + if (!getPreCachingCheckJob().equals(other.getPreCachingCheckJob())) 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) + MAIN_JOB_FIELD_NUMBER; + hash = (53 * hash) + getMainJob().hashCode(); + hash = (37 * hash) + PRE_CACHING_CHECK_JOB_FIELD_NUMBER; + hash = (53 * hash) + getPreCachingCheckJob().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + 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.PipelineTaskExecutorDetail.ContainerDetail + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + 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.PipelineTaskExecutorDetail.ContainerDetail + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + 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.PipelineTaskExecutorDetail.ContainerDetail + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + 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.PipelineTaskExecutorDetail.ContainerDetail + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + 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.PipelineTaskExecutorDetail.ContainerDetail + 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.PipelineTaskExecutorDetail.ContainerDetail + 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.PipelineTaskExecutorDetail.ContainerDetail 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; + } + /** + * + * + *
+     * The detail of a container execution. It contains the job names of the
+     * lifecycle of a container execution.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail) + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineTaskExecutorDetail_ContainerDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineTaskExecutorDetail_ContainerDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.class, + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.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(); + mainJob_ = ""; + + preCachingCheckJob_ = ""; + + 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_PipelineTaskExecutorDetail_ContainerDetail_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail build() { + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + buildPartial() { + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail result = + new com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail(this); + result.mainJob_ = mainJob_; + result.preCachingCheckJob_ = preCachingCheckJob_; + 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.PipelineTaskExecutorDetail.ContainerDetail) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail other) { + if (other + == com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + .getDefaultInstance()) return this; + if (!other.getMainJob().isEmpty()) { + mainJob_ = other.mainJob_; + onChanged(); + } + if (!other.getPreCachingCheckJob().isEmpty()) { + preCachingCheckJob_ = other.preCachingCheckJob_; + 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.PipelineTaskExecutorDetail.ContainerDetail parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object mainJob_ = ""; + /** + * + * + *
+       * Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob] for the main container execution.
+       * 
+ * + * + * string main_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The mainJob. + */ + public java.lang.String getMainJob() { + java.lang.Object ref = mainJob_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mainJob_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob] for the main container execution.
+       * 
+ * + * + * string main_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for mainJob. + */ + public com.google.protobuf.ByteString getMainJobBytes() { + java.lang.Object ref = mainJob_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mainJob_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob] for the main container execution.
+       * 
+ * + * + * string main_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The mainJob to set. + * @return This builder for chaining. + */ + public Builder setMainJob(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + mainJob_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob] for the main container execution.
+       * 
+ * + * + * string main_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearMainJob() { + + mainJob_ = getDefaultInstance().getMainJob(); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob] for the main container execution.
+       * 
+ * + * + * string main_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for mainJob to set. + * @return This builder for chaining. + */ + public Builder setMainJobBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + mainJob_ = value; + onChanged(); + return this; + } + + private java.lang.Object preCachingCheckJob_ = ""; + /** + * + * + *
+       * Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob] for the pre-caching-check container
+       * execution. This job will be available if the
+       * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] specifies the `pre_caching_check` hook in
+       * the lifecycle events.
+       * 
+ * + * + * string pre_caching_check_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The preCachingCheckJob. + */ + public java.lang.String getPreCachingCheckJob() { + java.lang.Object ref = preCachingCheckJob_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + preCachingCheckJob_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob] for the pre-caching-check container
+       * execution. This job will be available if the
+       * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] specifies the `pre_caching_check` hook in
+       * the lifecycle events.
+       * 
+ * + * + * string pre_caching_check_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for preCachingCheckJob. + */ + public com.google.protobuf.ByteString getPreCachingCheckJobBytes() { + java.lang.Object ref = preCachingCheckJob_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + preCachingCheckJob_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob] for the pre-caching-check container
+       * execution. This job will be available if the
+       * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] specifies the `pre_caching_check` hook in
+       * the lifecycle events.
+       * 
+ * + * + * string pre_caching_check_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The preCachingCheckJob to set. + * @return This builder for chaining. + */ + public Builder setPreCachingCheckJob(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + preCachingCheckJob_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob] for the pre-caching-check container
+       * execution. This job will be available if the
+       * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] specifies the `pre_caching_check` hook in
+       * the lifecycle events.
+       * 
+ * + * + * string pre_caching_check_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearPreCachingCheckJob() { + + preCachingCheckJob_ = getDefaultInstance().getPreCachingCheckJob(); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob] for the pre-caching-check container
+       * execution. This job will be available if the
+       * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] specifies the `pre_caching_check` hook in
+       * the lifecycle events.
+       * 
+ * + * + * string pre_caching_check_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for preCachingCheckJob to set. + * @return This builder for chaining. + */ + public Builder setPreCachingCheckJobBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + preCachingCheckJob_ = 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.PipelineTaskExecutorDetail.ContainerDetail) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail) + private static final com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail(); + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContainerDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ContainerDetail(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.PipelineTaskExecutorDetail.ContainerDetail + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + @java.lang.Deprecated + public interface CustomJobDetailOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob].
+     * 
+ * + * + * string job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The job. + */ + java.lang.String getJob(); + /** + * + * + *
+     * Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob].
+     * 
+ * + * + * string job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for job. + */ + com.google.protobuf.ByteString getJobBytes(); + } + /** + * + * + *
+   * The detailed info for a custom job executor.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail} + */ + @java.lang.Deprecated + public static final class CustomJobDetail extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail) + CustomJobDetailOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomJobDetail.newBuilder() to construct. + private CustomJobDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomJobDetail() { + job_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomJobDetail(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CustomJobDetail( + 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(); + + job_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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_PipelineTaskExecutorDetail_CustomJobDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineTaskExecutorDetail_CustomJobDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.class, + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.Builder + .class); + } + + public static final int JOB_FIELD_NUMBER = 1; + private volatile java.lang.Object job_; + /** + * + * + *
+     * Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob].
+     * 
+ * + * + * string job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The job. + */ + @java.lang.Override + public java.lang.String getJob() { + java.lang.Object ref = job_; + 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(); + job_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob].
+     * 
+ * + * + * string job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for job. + */ + @java.lang.Override + public com.google.protobuf.ByteString getJobBytes() { + java.lang.Object ref = job_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + job_ = 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 (!getJobBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, job_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getJobBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, job_); + } + 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.PipelineTaskExecutorDetail.CustomJobDetail)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail other = + (com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail) obj; + + if (!getJob().equals(other.getJob())) 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) + JOB_FIELD_NUMBER; + hash = (53 * hash) + getJob().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + 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.PipelineTaskExecutorDetail.CustomJobDetail + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + 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.PipelineTaskExecutorDetail.CustomJobDetail + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + 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.PipelineTaskExecutorDetail.CustomJobDetail + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + 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.PipelineTaskExecutorDetail.CustomJobDetail + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + 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.PipelineTaskExecutorDetail.CustomJobDetail + 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.PipelineTaskExecutorDetail.CustomJobDetail + 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.PipelineTaskExecutorDetail.CustomJobDetail 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; + } + /** + * + * + *
+     * The detailed info for a custom job executor.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail) + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineTaskExecutorDetail_CustomJobDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineTaskExecutorDetail_CustomJobDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.class, + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.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(); + job_ = ""; + + 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_PipelineTaskExecutorDetail_CustomJobDetail_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail build() { + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + buildPartial() { + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail result = + new com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail(this); + result.job_ = job_; + 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.PipelineTaskExecutorDetail.CustomJobDetail) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail other) { + if (other + == com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + .getDefaultInstance()) return this; + if (!other.getJob().isEmpty()) { + job_ = other.job_; + 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.PipelineTaskExecutorDetail.CustomJobDetail parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object job_ = ""; + /** + * + * + *
+       * Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob].
+       * 
+ * + * + * string job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The job. + */ + public java.lang.String getJob() { + java.lang.Object ref = job_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + job_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob].
+       * 
+ * + * + * string job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for job. + */ + public com.google.protobuf.ByteString getJobBytes() { + java.lang.Object ref = job_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + job_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob].
+       * 
+ * + * + * string job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The job to set. + * @return This builder for chaining. + */ + public Builder setJob(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + job_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob].
+       * 
+ * + * + * string job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearJob() { + + job_ = getDefaultInstance().getJob(); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob].
+       * 
+ * + * + * string job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for job to set. + * @return This builder for chaining. + */ + public Builder setJobBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + job_ = 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.PipelineTaskExecutorDetail.CustomJobDetail) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail) + private static final com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail(); + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomJobDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomJobDetail(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.PipelineTaskExecutorDetail.CustomJobDetail + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int detailsCase_ = 0; + private java.lang.Object details_; + + public enum DetailsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CONTAINER_DETAIL(1), + @java.lang.Deprecated + CUSTOM_JOB_DETAIL(2), + DETAILS_NOT_SET(0); + private final int value; + + private DetailsCase(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 DetailsCase valueOf(int value) { + return forNumber(value); + } + + public static DetailsCase forNumber(int value) { + switch (value) { + case 1: + return CONTAINER_DETAIL; + case 2: + return CUSTOM_JOB_DETAIL; + case 0: + return DETAILS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DetailsCase getDetailsCase() { + return DetailsCase.forNumber(detailsCase_); + } + + public static final int CONTAINER_DETAIL_FIELD_NUMBER = 1; + /** + * + * + *
+   * Output only. The detailed info for a container executor.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail container_detail = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the containerDetail field is set. + */ + @java.lang.Override + public boolean hasContainerDetail() { + return detailsCase_ == 1; + } + /** + * + * + *
+   * Output only. The detailed info for a container executor.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail container_detail = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The containerDetail. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + getContainerDetail() { + if (detailsCase_ == 1) { + return (com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail) details_; + } + return com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + .getDefaultInstance(); + } + /** + * + * + *
+   * Output only. The detailed info for a container executor.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail container_detail = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetailOrBuilder + getContainerDetailOrBuilder() { + if (detailsCase_ == 1) { + return (com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail) details_; + } + return com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + .getDefaultInstance(); + } + + public static final int CUSTOM_JOB_DETAIL_FIELD_NUMBER = 2; + /** + * + * + *
+   * Output only. The detailed info for a custom job executor.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the customJobDetail field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasCustomJobDetail() { + return detailsCase_ == 2; + } + /** + * + * + *
+   * Output only. The detailed info for a custom job executor.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The customJobDetail. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + getCustomJobDetail() { + if (detailsCase_ == 2) { + return (com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail) details_; + } + return com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + .getDefaultInstance(); + } + /** + * + * + *
+   * Output only. The detailed info for a custom job executor.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetailOrBuilder + getCustomJobDetailOrBuilder() { + if (detailsCase_ == 2) { + return (com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail) details_; + } + return com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + .getDefaultInstance(); + } + + 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 (detailsCase_ == 1) { + output.writeMessage( + 1, (com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail) details_); + } + if (detailsCase_ == 2) { + output.writeMessage( + 2, (com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail) details_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (detailsCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail) details_); + } + if (detailsCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail) details_); + } + 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.PipelineTaskExecutorDetail)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail other = + (com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail) obj; + + if (!getDetailsCase().equals(other.getDetailsCase())) return false; + switch (detailsCase_) { + case 1: + if (!getContainerDetail().equals(other.getContainerDetail())) return false; + break; + case 2: + if (!getCustomJobDetail().equals(other.getCustomJobDetail())) return false; + break; + case 0: + default: + } + 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(); + switch (detailsCase_) { + case 1: + hash = (37 * hash) + CONTAINER_DETAIL_FIELD_NUMBER; + hash = (53 * hash) + getContainerDetail().hashCode(); + break; + case 2: + hash = (37 * hash) + CUSTOM_JOB_DETAIL_FIELD_NUMBER; + hash = (53 * hash) + getCustomJobDetail().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail 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.PipelineTaskExecutorDetail parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail 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.PipelineTaskExecutorDetail parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail 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.PipelineTaskExecutorDetail parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail 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.PipelineTaskExecutorDetail parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail 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.PipelineTaskExecutorDetail 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.PipelineTaskExecutorDetail 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.PipelineTaskExecutorDetail 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; + } + /** + * + * + *
+   * The runtime detail of a pipeline executor.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.PipelineTaskExecutorDetail) + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineTaskExecutorDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.Pipeline + .internal_static_google_cloud_aiplatform_v1_PipelineTaskExecutorDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.class, + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.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(); + detailsCase_ = 0; + details_ = null; + 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_PipelineTaskExecutorDetail_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail build() { + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail buildPartial() { + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail result = + new com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail(this); + if (detailsCase_ == 1) { + if (containerDetailBuilder_ == null) { + result.details_ = details_; + } else { + result.details_ = containerDetailBuilder_.build(); + } + } + if (detailsCase_ == 2) { + if (customJobDetailBuilder_ == null) { + result.details_ = details_; + } else { + result.details_ = customJobDetailBuilder_.build(); + } + } + result.detailsCase_ = detailsCase_; + 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.PipelineTaskExecutorDetail) { + return mergeFrom((com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail other) { + if (other == com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.getDefaultInstance()) + return this; + switch (other.getDetailsCase()) { + case CONTAINER_DETAIL: + { + mergeContainerDetail(other.getContainerDetail()); + break; + } + case CUSTOM_JOB_DETAIL: + { + mergeCustomJobDetail(other.getCustomJobDetail()); + break; + } + case DETAILS_NOT_SET: + { + break; + } + } + 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.PipelineTaskExecutorDetail parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int detailsCase_ = 0; + private java.lang.Object details_; + + public DetailsCase getDetailsCase() { + return DetailsCase.forNumber(detailsCase_); + } + + public Builder clearDetails() { + detailsCase_ = 0; + details_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail, + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.Builder, + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetailOrBuilder> + containerDetailBuilder_; + /** + * + * + *
+     * Output only. The detailed info for a container executor.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail container_detail = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the containerDetail field is set. + */ + @java.lang.Override + public boolean hasContainerDetail() { + return detailsCase_ == 1; + } + /** + * + * + *
+     * Output only. The detailed info for a container executor.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail container_detail = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The containerDetail. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + getContainerDetail() { + if (containerDetailBuilder_ == null) { + if (detailsCase_ == 1) { + return (com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail) + details_; + } + return com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + .getDefaultInstance(); + } else { + if (detailsCase_ == 1) { + return containerDetailBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. The detailed info for a container executor.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail container_detail = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setContainerDetail( + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail value) { + if (containerDetailBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + containerDetailBuilder_.setMessage(value); + } + detailsCase_ = 1; + return this; + } + /** + * + * + *
+     * Output only. The detailed info for a container executor.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail container_detail = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setContainerDetail( + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.Builder + builderForValue) { + if (containerDetailBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + containerDetailBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 1; + return this; + } + /** + * + * + *
+     * Output only. The detailed info for a container executor.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail container_detail = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeContainerDetail( + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail value) { + if (containerDetailBuilder_ == null) { + if (detailsCase_ == 1 + && details_ + != com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + .getDefaultInstance()) { + details_ = + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.newBuilder( + (com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail) + details_) + .mergeFrom(value) + .buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 1) { + containerDetailBuilder_.mergeFrom(value); + } + containerDetailBuilder_.setMessage(value); + } + detailsCase_ = 1; + return this; + } + /** + * + * + *
+     * Output only. The detailed info for a container executor.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail container_detail = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearContainerDetail() { + if (containerDetailBuilder_ == null) { + if (detailsCase_ == 1) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 1) { + detailsCase_ = 0; + details_ = null; + } + containerDetailBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. The detailed info for a container executor.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail container_detail = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.Builder + getContainerDetailBuilder() { + return getContainerDetailFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The detailed info for a container executor.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail container_detail = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetailOrBuilder + getContainerDetailOrBuilder() { + if ((detailsCase_ == 1) && (containerDetailBuilder_ != null)) { + return containerDetailBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 1) { + return (com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail) + details_; + } + return com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. The detailed info for a container executor.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail container_detail = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail, + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.Builder, + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetailOrBuilder> + getContainerDetailFieldBuilder() { + if (containerDetailBuilder_ == null) { + if (!(detailsCase_ == 1)) { + details_ = + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + .getDefaultInstance(); + } + containerDetailBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail, + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.Builder, + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetailOrBuilder>( + (com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail) + details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 1; + onChanged(); + ; + return containerDetailBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail, + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.Builder, + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetailOrBuilder> + customJobDetailBuilder_; + /** + * + * + *
+     * Output only. The detailed info for a custom job executor.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the customJobDetail field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasCustomJobDetail() { + return detailsCase_ == 2; + } + /** + * + * + *
+     * Output only. The detailed info for a custom job executor.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The customJobDetail. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + getCustomJobDetail() { + if (customJobDetailBuilder_ == null) { + if (detailsCase_ == 2) { + return (com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail) + details_; + } + return com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + .getDefaultInstance(); + } else { + if (detailsCase_ == 2) { + return customJobDetailBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. The detailed info for a custom job executor.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder setCustomJobDetail( + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail value) { + if (customJobDetailBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + customJobDetailBuilder_.setMessage(value); + } + detailsCase_ = 2; + return this; + } + /** + * + * + *
+     * Output only. The detailed info for a custom job executor.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder setCustomJobDetail( + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.Builder + builderForValue) { + if (customJobDetailBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + customJobDetailBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 2; + return this; + } + /** + * + * + *
+     * Output only. The detailed info for a custom job executor.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder mergeCustomJobDetail( + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail value) { + if (customJobDetailBuilder_ == null) { + if (detailsCase_ == 2 + && details_ + != com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + .getDefaultInstance()) { + details_ = + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.newBuilder( + (com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail) + details_) + .mergeFrom(value) + .buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 2) { + customJobDetailBuilder_.mergeFrom(value); + } + customJobDetailBuilder_.setMessage(value); + } + detailsCase_ = 2; + return this; + } + /** + * + * + *
+     * Output only. The detailed info for a custom job executor.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public Builder clearCustomJobDetail() { + if (customJobDetailBuilder_ == null) { + if (detailsCase_ == 2) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 2) { + detailsCase_ = 0; + details_ = null; + } + customJobDetailBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. The detailed info for a custom job executor.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.Builder + getCustomJobDetailBuilder() { + return getCustomJobDetailFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The detailed info for a custom job executor.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetailOrBuilder + getCustomJobDetailOrBuilder() { + if ((detailsCase_ == 2) && (customJobDetailBuilder_ != null)) { + return customJobDetailBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 2) { + return (com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail) + details_; + } + return com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. The detailed info for a custom job executor.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail, + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.Builder, + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetailOrBuilder> + getCustomJobDetailFieldBuilder() { + if (customJobDetailBuilder_ == null) { + if (!(detailsCase_ == 2)) { + details_ = + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + .getDefaultInstance(); + } + customJobDetailBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail, + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.Builder, + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetailOrBuilder>( + (com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail) + details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 2; + onChanged(); + ; + return customJobDetailBuilder_; + } + + @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.PipelineTaskExecutorDetail) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.PipelineTaskExecutorDetail) + private static final com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail(); + } + + public static com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PipelineTaskExecutorDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PipelineTaskExecutorDetail(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.PipelineTaskExecutorDetail getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskExecutorDetailOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskExecutorDetailOrBuilder.java new file mode 100644 index 000000000..01e199dce --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineTaskExecutorDetailOrBuilder.java @@ -0,0 +1,114 @@ +/* + * 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 PipelineTaskExecutorDetailOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.PipelineTaskExecutorDetail) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The detailed info for a container executor.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail container_detail = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the containerDetail field is set. + */ + boolean hasContainerDetail(); + /** + * + * + *
+   * Output only. The detailed info for a container executor.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail container_detail = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The containerDetail. + */ + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail getContainerDetail(); + /** + * + * + *
+   * Output only. The detailed info for a container executor.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail container_detail = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetailOrBuilder + getContainerDetailOrBuilder(); + + /** + * + * + *
+   * Output only. The detailed info for a custom job executor.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the customJobDetail field is set. + */ + @java.lang.Deprecated + boolean hasCustomJobDetail(); + /** + * + * + *
+   * Output only. The detailed info for a custom job executor.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The customJobDetail. + */ + @java.lang.Deprecated + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail getCustomJobDetail(); + /** + * + * + *
+   * Output only. The detailed info for a custom job executor.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail custom_job_detail = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Deprecated + com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetailOrBuilder + getCustomJobDetailOrBuilder(); + + public com.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.DetailsCase getDetailsCase(); +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java index 3cfde4261..f3b833bad 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java @@ -48,26 +48,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "service.proto\022\032google.cloud.aiplatform.v" + "1\032\034google/api/annotations.proto\032\027google/" + "api/client.proto\032\037google/api/field_behav" - + "ior.proto\032\031google/api/resource.proto\032\034go" - + "ogle/protobuf/struct.proto\"\252\001\n\016PredictRe" - + "quest\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatf" - + "orm.googleapis.com/Endpoint\022.\n\tinstances" - + "\030\002 \003(\0132\026.google.protobuf.ValueB\003\340A\002\022*\n\np" - + "arameters\030\003 \001(\0132\026.google.protobuf.Value\"" - + "Y\n\017PredictResponse\022+\n\013predictions\030\001 \003(\0132" - + "\026.google.protobuf.Value\022\031\n\021deployed_mode" - + "l_id\030\002 \001(\t2\255\002\n\021PredictionService\022\310\001\n\007Pre" - + "dict\022*.google.cloud.aiplatform.v1.Predic" - + "tRequest\032+.google.cloud.aiplatform.v1.Pr" - + "edictResponse\"d\202\323\344\223\002>\"9/v1/{endpoint=pro" - + "jects/*/locations/*/endpoints/*}:predict" - + ":\001*\332A\035endpoint,instances,parameters\032M\312A\031" - + "aiplatform.googleapis.com\322A.https://www." - + "googleapis.com/auth/cloud-platformB\200\001\n\036c" - + "om.google.cloud.aiplatform.v1B\026Predictio" - + "nServiceProtoP\001ZDgoogle.golang.org/genpr" - + "oto/googleapis/cloud/aiplatform/v1;aipla" - + "tformb\006proto3" + + "ior.proto\032\031google/api/httpbody.proto\032\031go" + + "ogle/api/resource.proto\032\034google/protobuf" + + "/struct.proto\"\252\001\n\016PredictRequest\022<\n\010endp" + + "oint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.googleapi" + + "s.com/Endpoint\022.\n\tinstances\030\002 \003(\0132\026.goog" + + "le.protobuf.ValueB\003\340A\002\022*\n\nparameters\030\003 \001" + + "(\0132\026.google.protobuf.Value\"Y\n\017PredictRes" + + "ponse\022+\n\013predictions\030\001 \003(\0132\026.google.prot" + + "obuf.Value\022\031\n\021deployed_model_id\030\002 \001(\t2\255\002" + + "\n\021PredictionService\022\310\001\n\007Predict\022*.google" + + ".cloud.aiplatform.v1.PredictRequest\032+.go" + + "ogle.cloud.aiplatform.v1.PredictResponse" + + "\"d\202\323\344\223\002>\"9/v1/{endpoint=projects/*/locat" + + "ions/*/endpoints/*}:predict:\001*\332A\035endpoin" + + "t,instances,parameters\032M\312A\031aiplatform.go" + + "ogleapis.com\322A.https://www.googleapis.co" + + "m/auth/cloud-platformB\332\001\n\036com.google.clo" + + "ud.aiplatform.v1B\026PredictionServiceProto" + + "P\001ZDgoogle.golang.org/genproto/googleapi" + + "s/cloud/aiplatform/v1;aiplatform\252\002\032Googl" + + "e.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AIP" + + "latform\\V1\352\002\035Google::Cloud::AIPlatform::" + + "V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -76,6 +79,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.HttpBodyProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), }); @@ -108,6 +112,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.HttpBodyProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolProto.java index 2f9025092..4115ac91b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolProto.java @@ -51,11 +51,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "data_labeling_jobs\030\005 \003(\tB\003\340A\003:x\352Au\n(aipl" + "atform.googleapis.com/SpecialistPool\022Ipr" + "ojects/{project}/locations/{location}/sp" - + "ecialistPools/{specialist_pool}B}\n\036com.g" - + "oogle.cloud.aiplatform.v1B\023SpecialistPoo" - + "lProtoP\001ZDgoogle.golang.org/genproto/goo" - + "gleapis/cloud/aiplatform/v1;aiplatformb\006" - + "proto3" + + "ecialistPools/{specialist_pool}B\327\001\n\036com." + + "google.cloud.aiplatform.v1B\023SpecialistPo" + + "olProtoP\001ZDgoogle.golang.org/genproto/go" + + "ogleapis/cloud/aiplatform/v1;aiplatform\252" + + "\002\032Google.Cloud.AIPlatform.V1\312\002\032Google\\Cl" + + "oud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPla" + + "tform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceProto.java index 9a46c5d97..db12e9979 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceProto.java @@ -138,10 +138,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "A7\n\016SpecialistPool\022%UpdateSpecialistPool" + "OperationMetadata\032M\312A\031aiplatform.googlea" + "pis.com\322A.https://www.googleapis.com/aut" - + "h/cloud-platformB\204\001\n\036com.google.cloud.ai" + + "h/cloud-platformB\336\001\n\036com.google.cloud.ai" + "platform.v1B\032SpecialistPoolServiceProtoP" + "\001ZDgoogle.golang.org/genproto/googleapis" - + "/cloud/aiplatform/v1;aiplatformb\006proto3" + + "/cloud/aiplatform/v1;aiplatform\252\002\032Google" + + ".Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPl" + + "atform\\V1\352\002\035Google::Cloud::AIPlatform::V" + + "1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudyProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudyProto.java index 45d3a0dbd..04676bbd3 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudyProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudyProto.java @@ -101,97 +101,108 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/field_behavior.proto\032\031google/api/resour" + "ce.proto\032\036google/protobuf/duration.proto" + "\032\034google/protobuf/struct.proto\032\037google/p" - + "rotobuf/timestamp.proto\032\036google/protobuf" - + "/wrappers.proto\032\034google/api/annotations." - + "proto\"\267\005\n\005Trial\022\017\n\002id\030\002 \001(\tB\003\340A\003\022;\n\005stat" - + "e\030\003 \001(\0162\'.google.cloud.aiplatform.v1.Tri" - + "al.StateB\003\340A\003\022D\n\nparameters\030\004 \003(\0132+.goog" - + "le.cloud.aiplatform.v1.Trial.ParameterB\003" - + "\340A\003\022G\n\021final_measurement\030\005 \001(\0132\'.google." - + "cloud.aiplatform.v1.MeasurementB\003\340A\003\0223\n\n" - + "start_time\030\007 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\0221\n\010end_time\030\010 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\022?\n\ncustom_job\030\013 \001(\t" - + "B+\340A\003\372A%\n#aiplatform.googleapis.com/Cust" - + "omJob\032R\n\tParameter\022\031\n\014parameter_id\030\001 \001(\t" - + "B\003\340A\003\022*\n\005value\030\002 \001(\0132\026.google.protobuf.V" - + "alueB\003\340A\003\"f\n\005State\022\025\n\021STATE_UNSPECIFIED\020" - + "\000\022\r\n\tREQUESTED\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010STOPPING" - + "\020\003\022\r\n\tSUCCEEDED\020\004\022\016\n\nINFEASIBLE\020\005:l\352Ai\n\037" - + "aiplatform.googleapis.com/Trial\022Fproject" - + "s/{project}/locations/{location}/studies" - + "/{study}/trials/{trial}\"\366\023\n\tStudySpec\022F\n" - + "\007metrics\030\001 \003(\01320.google.cloud.aiplatform" - + ".v1.StudySpec.MetricSpecB\003\340A\002\022L\n\nparamet" - + "ers\030\002 \003(\01323.google.cloud.aiplatform.v1.S" - + "tudySpec.ParameterSpecB\003\340A\002\022B\n\talgorithm" - + "\030\003 \001(\0162/.google.cloud.aiplatform.v1.Stud" - + "ySpec.Algorithm\022Q\n\021observation_noise\030\006 \001" - + "(\01626.google.cloud.aiplatform.v1.StudySpe" - + "c.ObservationNoise\022b\n\032measurement_select" - + "ion_type\030\007 \001(\0162>.google.cloud.aiplatform" - + ".v1.StudySpec.MeasurementSelectionType\032\265" - + "\001\n\nMetricSpec\022\026\n\tmetric_id\030\001 \001(\tB\003\340A\002\022L\n" - + "\004goal\030\002 \001(\01629.google.cloud.aiplatform.v1" - + ".StudySpec.MetricSpec.GoalTypeB\003\340A\002\"A\n\010G" - + "oalType\022\031\n\025GOAL_TYPE_UNSPECIFIED\020\000\022\014\n\010MA" - + "XIMIZE\020\001\022\014\n\010MINIMIZE\020\002\032\225\r\n\rParameterSpec" - + "\022`\n\021double_value_spec\030\002 \001(\0132C.google.clo" - + "ud.aiplatform.v1.StudySpec.ParameterSpec" - + ".DoubleValueSpecH\000\022b\n\022integer_value_spec" - + "\030\003 \001(\0132D.google.cloud.aiplatform.v1.Stud" - + "ySpec.ParameterSpec.IntegerValueSpecH\000\022j" - + "\n\026categorical_value_spec\030\004 \001(\0132H.google." - + "cloud.aiplatform.v1.StudySpec.ParameterS" - + "pec.CategoricalValueSpecH\000\022d\n\023discrete_v" - + "alue_spec\030\005 \001(\0132E.google.cloud.aiplatfor" - + "m.v1.StudySpec.ParameterSpec.DiscreteVal" - + "ueSpecH\000\022\031\n\014parameter_id\030\001 \001(\tB\003\340A\002\022Q\n\ns" - + "cale_type\030\006 \001(\0162=.google.cloud.aiplatfor" - + "m.v1.StudySpec.ParameterSpec.ScaleType\022q" - + "\n\033conditional_parameter_specs\030\n \003(\0132L.go" - + "ogle.cloud.aiplatform.v1.StudySpec.Param" - + "eterSpec.ConditionalParameterSpec\032A\n\017Dou" - + "bleValueSpec\022\026\n\tmin_value\030\001 \001(\001B\003\340A\002\022\026\n\t" - + "max_value\030\002 \001(\001B\003\340A\002\032B\n\020IntegerValueSpec" - + "\022\026\n\tmin_value\030\001 \001(\003B\003\340A\002\022\026\n\tmax_value\030\002 " - + "\001(\003B\003\340A\002\032+\n\024CategoricalValueSpec\022\023\n\006valu" - + "es\030\001 \003(\tB\003\340A\002\032(\n\021DiscreteValueSpec\022\023\n\006va" - + "lues\030\001 \003(\001B\003\340A\002\032\244\005\n\030ConditionalParameter" - + "Spec\022\205\001\n\026parent_discrete_values\030\002 \001(\0132c." + + "rotobuf/timestamp.proto\032\034google/api/anno" + + "tations.proto\"\306\006\n\005Trial\022\021\n\004name\030\001 \001(\tB\003\340" + + "A\003\022\017\n\002id\030\002 \001(\tB\003\340A\003\022;\n\005state\030\003 \001(\0162\'.goo" + + "gle.cloud.aiplatform.v1.Trial.StateB\003\340A\003" + + "\022D\n\nparameters\030\004 \003(\0132+.google.cloud.aipl" + + "atform.v1.Trial.ParameterB\003\340A\003\022G\n\021final_" + + "measurement\030\005 \001(\0132\'.google.cloud.aiplatf" + + "orm.v1.MeasurementB\003\340A\003\022B\n\014measurements\030" + + "\006 \003(\0132\'.google.cloud.aiplatform.v1.Measu" + + "rementB\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\022\026\n\tc" + + "lient_id\030\t \001(\tB\003\340A\003\022\036\n\021infeasible_reason" + + "\030\n \001(\tB\003\340A\003\022?\n\ncustom_job\030\013 \001(\tB+\340A\003\372A%\n" + + "#aiplatform.googleapis.com/CustomJob\032R\n\t" + + "Parameter\022\031\n\014parameter_id\030\001 \001(\tB\003\340A\003\022*\n\005" + + "value\030\002 \001(\0132\026.google.protobuf.ValueB\003\340A\003" + + "\"f\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\r\n\tREQU" + + "ESTED\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010STOPPING\020\003\022\r\n\tSUC" + + "CEEDED\020\004\022\016\n\nINFEASIBLE\020\005:l\352Ai\n\037aiplatfor" + + "m.googleapis.com/Trial\022Fprojects/{projec" + + "t}/locations/{location}/studies/{study}/" + + "trials/{trial}\"\256\025\n\tStudySpec\022F\n\007metrics\030" + + "\001 \003(\01320.google.cloud.aiplatform.v1.Study" + + "Spec.MetricSpecB\003\340A\002\022L\n\nparameters\030\002 \003(\013" + + "23.google.cloud.aiplatform.v1.StudySpec." + + "ParameterSpecB\003\340A\002\022B\n\talgorithm\030\003 \001(\0162/." + + "google.cloud.aiplatform.v1.StudySpec.Alg" + + "orithm\022Q\n\021observation_noise\030\006 \001(\01626.goog" + + "le.cloud.aiplatform.v1.StudySpec.Observa" + + "tionNoise\022b\n\032measurement_selection_type\030" + + "\007 \001(\0162>.google.cloud.aiplatform.v1.Study" + + "Spec.MeasurementSelectionType\032\265\001\n\nMetric" + + "Spec\022\026\n\tmetric_id\030\001 \001(\tB\003\340A\002\022L\n\004goal\030\002 \001" + + "(\01629.google.cloud.aiplatform.v1.StudySpe" + + "c.MetricSpec.GoalTypeB\003\340A\002\"A\n\010GoalType\022\031" + + "\n\025GOAL_TYPE_UNSPECIFIED\020\000\022\014\n\010MAXIMIZE\020\001\022" + + "\014\n\010MINIMIZE\020\002\032\315\016\n\rParameterSpec\022`\n\021doubl" + + "e_value_spec\030\002 \001(\0132C.google.cloud.aiplat" + + "form.v1.StudySpec.ParameterSpec.DoubleVa" + + "lueSpecH\000\022b\n\022integer_value_spec\030\003 \001(\0132D." + "google.cloud.aiplatform.v1.StudySpec.Par" - + "ameterSpec.ConditionalParameterSpec.Disc" - + "reteValueConditionH\000\022{\n\021parent_int_value" - + "s\030\003 \001(\0132^.google.cloud.aiplatform.v1.Stu" - + "dySpec.ParameterSpec.ConditionalParamete" - + "rSpec.IntValueConditionH\000\022\213\001\n\031parent_cat" - + "egorical_values\030\004 \001(\0132f.google.cloud.aip" - + "latform.v1.StudySpec.ParameterSpec.Condi" - + "tionalParameterSpec.CategoricalValueCond" - + "itionH\000\022P\n\016parameter_spec\030\001 \001(\01323.google" - + ".cloud.aiplatform.v1.StudySpec.Parameter" - + "SpecB\003\340A\002\032-\n\026DiscreteValueCondition\022\023\n\006v" - + "alues\030\001 \003(\001B\003\340A\002\032(\n\021IntValueCondition\022\023\n" - + "\006values\030\001 \003(\003B\003\340A\002\0320\n\031CategoricalValueCo" - + "ndition\022\023\n\006values\030\001 \003(\tB\003\340A\002B\030\n\026parent_v" - + "alue_condition\"n\n\tScaleType\022\032\n\026SCALE_TYP" - + "E_UNSPECIFIED\020\000\022\025\n\021UNIT_LINEAR_SCALE\020\001\022\022" - + "\n\016UNIT_LOG_SCALE\020\002\022\032\n\026UNIT_REVERSE_LOG_S" - + "CALE\020\003B\026\n\024parameter_value_spec\"J\n\tAlgori" - + "thm\022\031\n\025ALGORITHM_UNSPECIFIED\020\000\022\017\n\013GRID_S" - + "EARCH\020\002\022\021\n\rRANDOM_SEARCH\020\003\"H\n\020Observatio" - + "nNoise\022!\n\035OBSERVATION_NOISE_UNSPECIFIED\020" - + "\000\022\007\n\003LOW\020\001\022\010\n\004HIGH\020\002\"r\n\030MeasurementSelec" - + "tionType\022*\n&MEASUREMENT_SELECTION_TYPE_U" - + "NSPECIFIED\020\000\022\024\n\020LAST_MEASUREMENT\020\001\022\024\n\020BE" - + "ST_MEASUREMENT\020\002\"\242\001\n\013Measurement\022\027\n\nstep" - + "_count\030\002 \001(\003B\003\340A\003\022D\n\007metrics\030\003 \003(\0132..goo" - + "gle.cloud.aiplatform.v1.Measurement.Metr" - + "icB\003\340A\003\0324\n\006Metric\022\026\n\tmetric_id\030\001 \001(\tB\003\340A" - + "\003\022\022\n\005value\030\002 \001(\001B\003\340A\003Bt\n\036com.google.clou" - + "d.aiplatform.v1B\nStudyProtoP\001ZDgoogle.go" - + "lang.org/genproto/googleapis/cloud/aipla" - + "tform/v1;aiplatformb\006proto3" + + "ameterSpec.IntegerValueSpecH\000\022j\n\026categor" + + "ical_value_spec\030\004 \001(\0132H.google.cloud.aip" + + "latform.v1.StudySpec.ParameterSpec.Categ" + + "oricalValueSpecH\000\022d\n\023discrete_value_spec" + + "\030\005 \001(\0132E.google.cloud.aiplatform.v1.Stud" + + "ySpec.ParameterSpec.DiscreteValueSpecH\000\022" + + "\031\n\014parameter_id\030\001 \001(\tB\003\340A\002\022Q\n\nscale_type" + + "\030\006 \001(\0162=.google.cloud.aiplatform.v1.Stud" + + "ySpec.ParameterSpec.ScaleType\022q\n\033conditi" + + "onal_parameter_specs\030\n \003(\0132L.google.clou" + + "d.aiplatform.v1.StudySpec.ParameterSpec." + + "ConditionalParameterSpec\032o\n\017DoubleValueS" + + "pec\022\026\n\tmin_value\030\001 \001(\001B\003\340A\002\022\026\n\tmax_value" + + "\030\002 \001(\001B\003\340A\002\022\032\n\rdefault_value\030\004 \001(\001H\000\210\001\001B" + + "\020\n\016_default_value\032p\n\020IntegerValueSpec\022\026\n" + + "\tmin_value\030\001 \001(\003B\003\340A\002\022\026\n\tmax_value\030\002 \001(\003" + + "B\003\340A\002\022\032\n\rdefault_value\030\004 \001(\003H\000\210\001\001B\020\n\016_de" + + "fault_value\032Y\n\024CategoricalValueSpec\022\023\n\006v" + + "alues\030\001 \003(\tB\003\340A\002\022\032\n\rdefault_value\030\003 \001(\tH" + + "\000\210\001\001B\020\n\016_default_value\032V\n\021DiscreteValueS" + + "pec\022\023\n\006values\030\001 \003(\001B\003\340A\002\022\032\n\rdefault_valu" + + "e\030\003 \001(\001H\000\210\001\001B\020\n\016_default_value\032\244\005\n\030Condi" + + "tionalParameterSpec\022\205\001\n\026parent_discrete_" + + "values\030\002 \001(\0132c.google.cloud.aiplatform.v" + + "1.StudySpec.ParameterSpec.ConditionalPar" + + "ameterSpec.DiscreteValueConditionH\000\022{\n\021p" + + "arent_int_values\030\003 \001(\0132^.google.cloud.ai" + + "platform.v1.StudySpec.ParameterSpec.Cond" + + "itionalParameterSpec.IntValueConditionH\000" + + "\022\213\001\n\031parent_categorical_values\030\004 \001(\0132f.g" + + "oogle.cloud.aiplatform.v1.StudySpec.Para" + + "meterSpec.ConditionalParameterSpec.Categ" + + "oricalValueConditionH\000\022P\n\016parameter_spec" + + "\030\001 \001(\01323.google.cloud.aiplatform.v1.Stud" + + "ySpec.ParameterSpecB\003\340A\002\032-\n\026DiscreteValu" + + "eCondition\022\023\n\006values\030\001 \003(\001B\003\340A\002\032(\n\021IntVa" + + "lueCondition\022\023\n\006values\030\001 \003(\003B\003\340A\002\0320\n\031Cat" + + "egoricalValueCondition\022\023\n\006values\030\001 \003(\tB\003" + + "\340A\002B\030\n\026parent_value_condition\"n\n\tScaleTy" + + "pe\022\032\n\026SCALE_TYPE_UNSPECIFIED\020\000\022\025\n\021UNIT_L" + + "INEAR_SCALE\020\001\022\022\n\016UNIT_LOG_SCALE\020\002\022\032\n\026UNI" + + "T_REVERSE_LOG_SCALE\020\003B\026\n\024parameter_value" + + "_spec\"J\n\tAlgorithm\022\031\n\025ALGORITHM_UNSPECIF" + + "IED\020\000\022\017\n\013GRID_SEARCH\020\002\022\021\n\rRANDOM_SEARCH\020" + + "\003\"H\n\020ObservationNoise\022!\n\035OBSERVATION_NOI" + + "SE_UNSPECIFIED\020\000\022\007\n\003LOW\020\001\022\010\n\004HIGH\020\002\"r\n\030M" + + "easurementSelectionType\022*\n&MEASUREMENT_S" + + "ELECTION_TYPE_UNSPECIFIED\020\000\022\024\n\020LAST_MEAS" + + "UREMENT\020\001\022\024\n\020BEST_MEASUREMENT\020\002\"\334\001\n\013Meas" + + "urement\0228\n\020elapsed_duration\030\001 \001(\0132\031.goog" + + "le.protobuf.DurationB\003\340A\003\022\027\n\nstep_count\030" + + "\002 \001(\003B\003\340A\003\022D\n\007metrics\030\003 \003(\0132..google.clo" + + "ud.aiplatform.v1.Measurement.MetricB\003\340A\003" + + "\0324\n\006Metric\022\026\n\tmetric_id\030\001 \001(\tB\003\340A\003\022\022\n\005va" + + "lue\030\002 \001(\001B\003\340A\003B\316\001\n\036com.google.cloud.aipl" + + "atform.v1B\nStudyProtoP\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( @@ -202,7 +213,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), }); internal_static_google_cloud_aiplatform_v1_Trial_descriptor = @@ -211,7 +221,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_Trial_descriptor, new java.lang.String[] { - "Id", "State", "Parameters", "FinalMeasurement", "StartTime", "EndTime", "CustomJob", + "Name", + "Id", + "State", + "Parameters", + "FinalMeasurement", + "Measurements", + "StartTime", + "EndTime", + "ClientId", + "InfeasibleReason", + "CustomJob", }); internal_static_google_cloud_aiplatform_v1_Trial_Parameter_descriptor = internal_static_google_cloud_aiplatform_v1_Trial_descriptor.getNestedTypes().get(0); @@ -260,7 +280,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_StudySpec_ParameterSpec_DoubleValueSpec_descriptor, new java.lang.String[] { - "MinValue", "MaxValue", + "MinValue", "MaxValue", "DefaultValue", "DefaultValue", }); internal_static_google_cloud_aiplatform_v1_StudySpec_ParameterSpec_IntegerValueSpec_descriptor = internal_static_google_cloud_aiplatform_v1_StudySpec_ParameterSpec_descriptor @@ -270,7 +290,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_StudySpec_ParameterSpec_IntegerValueSpec_descriptor, new java.lang.String[] { - "MinValue", "MaxValue", + "MinValue", "MaxValue", "DefaultValue", "DefaultValue", }); internal_static_google_cloud_aiplatform_v1_StudySpec_ParameterSpec_CategoricalValueSpec_descriptor = internal_static_google_cloud_aiplatform_v1_StudySpec_ParameterSpec_descriptor @@ -280,7 +300,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_StudySpec_ParameterSpec_CategoricalValueSpec_descriptor, new java.lang.String[] { - "Values", + "Values", "DefaultValue", "DefaultValue", }); internal_static_google_cloud_aiplatform_v1_StudySpec_ParameterSpec_DiscreteValueSpec_descriptor = internal_static_google_cloud_aiplatform_v1_StudySpec_ParameterSpec_descriptor @@ -290,7 +310,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_StudySpec_ParameterSpec_DiscreteValueSpec_descriptor, new java.lang.String[] { - "Values", + "Values", "DefaultValue", "DefaultValue", }); internal_static_google_cloud_aiplatform_v1_StudySpec_ParameterSpec_ConditionalParameterSpec_descriptor = internal_static_google_cloud_aiplatform_v1_StudySpec_ParameterSpec_descriptor @@ -342,7 +362,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_Measurement_descriptor, new java.lang.String[] { - "StepCount", "Metrics", + "ElapsedDuration", "StepCount", "Metrics", }); internal_static_google_cloud_aiplatform_v1_Measurement_Metric_descriptor = internal_static_google_cloud_aiplatform_v1_Measurement_descriptor.getNestedTypes().get(0); @@ -364,7 +384,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudySpec.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudySpec.java index 0608bc913..2a36ccb78 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudySpec.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudySpec.java @@ -2439,6 +2439,39 @@ public interface DoubleValueSpecOrBuilder * @return The maxValue. */ double getMaxValue(); + + /** + * + * + *
+       * A default value for a `DOUBLE` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * double default_value = 4; + * + * @return Whether the defaultValue field is set. + */ + boolean hasDefaultValue(); + /** + * + * + *
+       * A default value for a `DOUBLE` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * double default_value = 4; + * + * @return The defaultValue. + */ + double getDefaultValue(); } /** * @@ -2480,6 +2513,7 @@ private DoubleValueSpec( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -2500,6 +2534,12 @@ private DoubleValueSpec( maxValue_ = input.readDouble(); break; } + case 33: + { + bitField0_ |= 0x00000001; + defaultValue_ = input.readDouble(); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -2536,6 +2576,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .class); } + private int bitField0_; public static final int MIN_VALUE_FIELD_NUMBER = 1; private double minValue_; /** @@ -2572,6 +2613,47 @@ public double getMaxValue() { return maxValue_; } + public static final int DEFAULT_VALUE_FIELD_NUMBER = 4; + private double defaultValue_; + /** + * + * + *
+       * A default value for a `DOUBLE` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * double default_value = 4; + * + * @return Whether the defaultValue field is set. + */ + @java.lang.Override + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * A default value for a `DOUBLE` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * double default_value = 4; + * + * @return The defaultValue. + */ + @java.lang.Override + public double getDefaultValue() { + return defaultValue_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2592,6 +2674,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (maxValue_ != 0D) { output.writeDouble(2, maxValue_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(4, defaultValue_); + } unknownFields.writeTo(output); } @@ -2607,6 +2692,9 @@ public int getSerializedSize() { if (maxValue_ != 0D) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, maxValue_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, defaultValue_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -2628,6 +2716,11 @@ public boolean equals(final java.lang.Object obj) { != java.lang.Double.doubleToLongBits(other.getMinValue())) return false; if (java.lang.Double.doubleToLongBits(getMaxValue()) != java.lang.Double.doubleToLongBits(other.getMaxValue())) return false; + if (hasDefaultValue() != other.hasDefaultValue()) return false; + if (hasDefaultValue()) { + if (java.lang.Double.doubleToLongBits(getDefaultValue()) + != java.lang.Double.doubleToLongBits(other.getDefaultValue())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2649,6 +2742,13 @@ public int hashCode() { (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMaxValue())); + if (hasDefaultValue()) { + hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDefaultValue())); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -2811,6 +2911,8 @@ public Builder clear() { maxValue_ = 0D; + defaultValue_ = 0D; + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -2842,8 +2944,15 @@ public com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec bu buildPartial() { com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec result = new com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DoubleValueSpec(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; result.minValue_ = minValue_; result.maxValue_ = maxValue_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.defaultValue_ = defaultValue_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -2906,6 +3015,9 @@ public Builder mergeFrom( if (other.getMaxValue() != 0D) { setMaxValue(other.getMaxValue()); } + if (other.hasDefaultValue()) { + setDefaultValue(other.getDefaultValue()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2938,6 +3050,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private double minValue_; /** * @@ -3042,6 +3156,89 @@ public Builder clearMaxValue() { return this; } + private double defaultValue_; + /** + * + * + *
+         * A default value for a `DOUBLE` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * double default_value = 4; + * + * @return Whether the defaultValue field is set. + */ + @java.lang.Override + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+         * A default value for a `DOUBLE` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * double default_value = 4; + * + * @return The defaultValue. + */ + @java.lang.Override + public double getDefaultValue() { + return defaultValue_; + } + /** + * + * + *
+         * A default value for a `DOUBLE` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * double default_value = 4; + * + * @param value The defaultValue to set. + * @return This builder for chaining. + */ + public Builder setDefaultValue(double value) { + bitField0_ |= 0x00000001; + defaultValue_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * A default value for a `DOUBLE` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * double default_value = 4; + * + * @return This builder for chaining. + */ + public Builder clearDefaultValue() { + bitField0_ = (bitField0_ & ~0x00000001); + defaultValue_ = 0D; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3128,6 +3325,39 @@ public interface IntegerValueSpecOrBuilder * @return The maxValue. */ long getMaxValue(); + + /** + * + * + *
+       * A default value for an `INTEGER` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * int64 default_value = 4; + * + * @return Whether the defaultValue field is set. + */ + boolean hasDefaultValue(); + /** + * + * + *
+       * A default value for an `INTEGER` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * int64 default_value = 4; + * + * @return The defaultValue. + */ + long getDefaultValue(); } /** * @@ -3169,6 +3399,7 @@ private IntegerValueSpec( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -3189,6 +3420,12 @@ private IntegerValueSpec( maxValue_ = input.readInt64(); break; } + case 32: + { + bitField0_ |= 0x00000001; + defaultValue_ = input.readInt64(); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -3225,6 +3462,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .class); } + private int bitField0_; public static final int MIN_VALUE_FIELD_NUMBER = 1; private long minValue_; /** @@ -3261,6 +3499,47 @@ public long getMaxValue() { return maxValue_; } + public static final int DEFAULT_VALUE_FIELD_NUMBER = 4; + private long defaultValue_; + /** + * + * + *
+       * A default value for an `INTEGER` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * int64 default_value = 4; + * + * @return Whether the defaultValue field is set. + */ + @java.lang.Override + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * A default value for an `INTEGER` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * int64 default_value = 4; + * + * @return The defaultValue. + */ + @java.lang.Override + public long getDefaultValue() { + return defaultValue_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3281,6 +3560,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (maxValue_ != 0L) { output.writeInt64(2, maxValue_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt64(4, defaultValue_); + } unknownFields.writeTo(output); } @@ -3296,6 +3578,9 @@ public int getSerializedSize() { if (maxValue_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, maxValue_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, defaultValue_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -3315,6 +3600,10 @@ public boolean equals(final java.lang.Object obj) { if (getMinValue() != other.getMinValue()) return false; if (getMaxValue() != other.getMaxValue()) return false; + if (hasDefaultValue() != other.hasDefaultValue()) return false; + if (hasDefaultValue()) { + if (getDefaultValue() != other.getDefaultValue()) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3330,6 +3619,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMinValue()); hash = (37 * hash) + MAX_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxValue()); + if (hasDefaultValue()) { + hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDefaultValue()); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -3492,6 +3785,8 @@ public Builder clear() { maxValue_ = 0L; + defaultValue_ = 0L; + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -3523,8 +3818,15 @@ public com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec b buildPartial() { com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec result = new com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.IntegerValueSpec(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; result.minValue_ = minValue_; result.maxValue_ = maxValue_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.defaultValue_ = defaultValue_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -3587,6 +3889,9 @@ public Builder mergeFrom( if (other.getMaxValue() != 0L) { setMaxValue(other.getMaxValue()); } + if (other.hasDefaultValue()) { + setDefaultValue(other.getDefaultValue()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -3619,6 +3924,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private long minValue_; /** * @@ -3723,6 +4030,89 @@ public Builder clearMaxValue() { return this; } + private long defaultValue_; + /** + * + * + *
+         * A default value for an `INTEGER` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * int64 default_value = 4; + * + * @return Whether the defaultValue field is set. + */ + @java.lang.Override + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+         * A default value for an `INTEGER` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * int64 default_value = 4; + * + * @return The defaultValue. + */ + @java.lang.Override + public long getDefaultValue() { + return defaultValue_; + } + /** + * + * + *
+         * A default value for an `INTEGER` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * int64 default_value = 4; + * + * @param value The defaultValue to set. + * @return This builder for chaining. + */ + public Builder setDefaultValue(long value) { + bitField0_ |= 0x00000001; + defaultValue_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * A default value for an `INTEGER` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * int64 default_value = 4; + * + * @return This builder for chaining. + */ + public Builder clearDefaultValue() { + bitField0_ = (bitField0_ & ~0x00000001); + defaultValue_ = 0L; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3834,6 +4224,55 @@ public interface CategoricalValueSpecOrBuilder * @return The bytes of the values at the given index. */ com.google.protobuf.ByteString getValuesBytes(int index); + + /** + * + * + *
+       * A default value for a `CATEGORICAL` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * string default_value = 3; + * + * @return Whether the defaultValue field is set. + */ + boolean hasDefaultValue(); + /** + * + * + *
+       * A default value for a `CATEGORICAL` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * string default_value = 3; + * + * @return The defaultValue. + */ + java.lang.String getDefaultValue(); + /** + * + * + *
+       * A default value for a `CATEGORICAL` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * string default_value = 3; + * + * @return The bytes for defaultValue. + */ + com.google.protobuf.ByteString getDefaultValueBytes(); } /** * @@ -3856,6 +4295,7 @@ private CategoricalValueSpec(com.google.protobuf.GeneratedMessageV3.Builder b private CategoricalValueSpec() { values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + defaultValue_ = ""; } @java.lang.Override @@ -3898,6 +4338,13 @@ private CategoricalValueSpec( values_.add(s); break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + defaultValue_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -3937,6 +4384,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .class); } + private int bitField0_; public static final int VALUES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList values_; /** @@ -3998,6 +4446,82 @@ public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } + public static final int DEFAULT_VALUE_FIELD_NUMBER = 3; + private volatile java.lang.Object defaultValue_; + /** + * + * + *
+       * A default value for a `CATEGORICAL` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * string default_value = 3; + * + * @return Whether the defaultValue field is set. + */ + @java.lang.Override + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * A default value for a `CATEGORICAL` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * string default_value = 3; + * + * @return The defaultValue. + */ + @java.lang.Override + public java.lang.String getDefaultValue() { + java.lang.Object ref = defaultValue_; + 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(); + defaultValue_ = s; + return s; + } + } + /** + * + * + *
+       * A default value for a `CATEGORICAL` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * string default_value = 3; + * + * @return The bytes for defaultValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultValueBytes() { + java.lang.Object ref = defaultValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4015,6 +4539,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < values_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, defaultValue_); + } unknownFields.writeTo(output); } @@ -4032,6 +4559,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getValuesList().size(); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, defaultValue_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -4051,6 +4581,10 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec) obj; if (!getValuesList().equals(other.getValuesList())) return false; + if (hasDefaultValue() != other.hasDefaultValue()) return false; + if (hasDefaultValue()) { + if (!getDefaultValue().equals(other.getDefaultValue())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4066,6 +4600,10 @@ public int hashCode() { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + getValuesList().hashCode(); } + if (hasDefaultValue()) { + hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultValue().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -4227,6 +4765,8 @@ public Builder clear() { super.clear(); values_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); + defaultValue_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -4259,11 +4799,17 @@ public com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSp com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec result = new com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.CategoricalValueSpec(this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) != 0)) { values_ = values_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.values_ = values_; + if (((from_bitField0_ & 0x00000002) != 0)) { + to_bitField0_ |= 0x00000001; + } + result.defaultValue_ = defaultValue_; + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -4332,6 +4878,11 @@ public Builder mergeFrom( } onChanged(); } + if (other.hasDefaultValue()) { + bitField0_ |= 0x00000002; + defaultValue_ = other.defaultValue_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -4534,6 +5085,150 @@ public Builder addValuesBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object defaultValue_ = ""; + /** + * + * + *
+         * A default value for a `CATEGORICAL` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * string default_value = 3; + * + * @return Whether the defaultValue field is set. + */ + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+         * A default value for a `CATEGORICAL` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * string default_value = 3; + * + * @return The defaultValue. + */ + public java.lang.String getDefaultValue() { + java.lang.Object ref = defaultValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * A default value for a `CATEGORICAL` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * string default_value = 3; + * + * @return The bytes for defaultValue. + */ + public com.google.protobuf.ByteString getDefaultValueBytes() { + java.lang.Object ref = defaultValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * A default value for a `CATEGORICAL` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * string default_value = 3; + * + * @param value The defaultValue to set. + * @return This builder for chaining. + */ + public Builder setDefaultValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + defaultValue_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * A default value for a `CATEGORICAL` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * string default_value = 3; + * + * @return This builder for chaining. + */ + public Builder clearDefaultValue() { + bitField0_ = (bitField0_ & ~0x00000002); + defaultValue_ = getDefaultInstance().getDefaultValue(); + onChanged(); + return this; + } + /** + * + * + *
+         * A default value for a `CATEGORICAL` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * string default_value = 3; + * + * @param value The bytes for defaultValue to set. + * @return This builder for chaining. + */ + public Builder setDefaultValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bitField0_ |= 0x00000002; + defaultValue_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4642,6 +5337,41 @@ public interface DiscreteValueSpecOrBuilder * @return The values at the given index. */ double getValues(int index); + + /** + * + * + *
+       * A default value for a `DISCRETE` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.  It automatically rounds to the
+       * nearest feasible discrete point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * double default_value = 3; + * + * @return Whether the defaultValue field is set. + */ + boolean hasDefaultValue(); + /** + * + * + *
+       * A default value for a `DISCRETE` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.  It automatically rounds to the
+       * nearest feasible discrete point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * double default_value = 3; + * + * @return The defaultValue. + */ + double getDefaultValue(); } /** * @@ -4719,6 +5449,12 @@ private DiscreteValueSpec( input.popLimit(limit); break; } + case 25: + { + bitField0_ |= 0x00000001; + defaultValue_ = input.readDouble(); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -4758,6 +5494,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .class); } + private int bitField0_; public static final int VALUES_FIELD_NUMBER = 1; private com.google.protobuf.Internal.DoubleList values_; /** @@ -4816,6 +5553,49 @@ public double getValues(int index) { private int valuesMemoizedSerializedSize = -1; + public static final int DEFAULT_VALUE_FIELD_NUMBER = 3; + private double defaultValue_; + /** + * + * + *
+       * A default value for a `DISCRETE` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.  It automatically rounds to the
+       * nearest feasible discrete point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * double default_value = 3; + * + * @return Whether the defaultValue field is set. + */ + @java.lang.Override + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * A default value for a `DISCRETE` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.  It automatically rounds to the
+       * nearest feasible discrete point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * double default_value = 3; + * + * @return The defaultValue. + */ + @java.lang.Override + public double getDefaultValue() { + return defaultValue_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4838,6 +5618,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < values_.size(); i++) { output.writeDoubleNoTag(values_.getDouble(i)); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(3, defaultValue_); + } unknownFields.writeTo(output); } @@ -4857,6 +5640,9 @@ public int getSerializedSize() { } valuesMemoizedSerializedSize = dataSize; } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, defaultValue_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -4875,6 +5661,11 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec) obj; if (!getValuesList().equals(other.getValuesList())) return false; + if (hasDefaultValue() != other.hasDefaultValue()) return false; + if (hasDefaultValue()) { + if (java.lang.Double.doubleToLongBits(getDefaultValue()) + != java.lang.Double.doubleToLongBits(other.getDefaultValue())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4890,6 +5681,13 @@ public int hashCode() { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + getValuesList().hashCode(); } + if (hasDefaultValue()) { + hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDefaultValue())); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -5050,6 +5848,8 @@ public Builder clear() { super.clear(); values_ = emptyDoubleList(); bitField0_ = (bitField0_ & ~0x00000001); + defaultValue_ = 0D; + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -5082,11 +5882,17 @@ public com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec result = new com.google.cloud.aiplatform.v1.StudySpec.ParameterSpec.DiscreteValueSpec(this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) != 0)) { values_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.values_ = values_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.defaultValue_ = defaultValue_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -5153,6 +5959,9 @@ public Builder mergeFrom( } onChanged(); } + if (other.hasDefaultValue()) { + setDefaultValue(other.getDefaultValue()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -5334,6 +6143,93 @@ public Builder clearValues() { return this; } + private double defaultValue_; + /** + * + * + *
+         * A default value for a `DISCRETE` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.  It automatically rounds to the
+         * nearest feasible discrete point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * double default_value = 3; + * + * @return Whether the defaultValue field is set. + */ + @java.lang.Override + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+         * A default value for a `DISCRETE` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.  It automatically rounds to the
+         * nearest feasible discrete point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * double default_value = 3; + * + * @return The defaultValue. + */ + @java.lang.Override + public double getDefaultValue() { + return defaultValue_; + } + /** + * + * + *
+         * A default value for a `DISCRETE` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.  It automatically rounds to the
+         * nearest feasible discrete point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * double default_value = 3; + * + * @param value The defaultValue to set. + * @return This builder for chaining. + */ + public Builder setDefaultValue(double value) { + bitField0_ |= 0x00000002; + defaultValue_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * A default value for a `DISCRETE` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.  It automatically rounds to the
+         * nearest feasible discrete point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * double default_value = 3; + * + * @return This builder for chaining. + */ + public Builder clearDefaultValue() { + bitField0_ = (bitField0_ & ~0x00000002); + defaultValue_ = 0D; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineProto.java index 7340a3bd9..cd18d990d 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineProto.java @@ -125,10 +125,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\n\003key\030\001 \001(\tB\003\340A\002\"q\n\016TimestampSplit\022\031\n\021tr" + "aining_fraction\030\001 \001(\001\022\033\n\023validation_frac" + "tion\030\002 \001(\001\022\025\n\rtest_fraction\030\003 \001(\001\022\020\n\003key" - + "\030\004 \001(\tB\003\340A\002B\177\n\036com.google.cloud.aiplatfo" - + "rm.v1B\025TrainingPipelineProtoP\001ZDgoogle.g" - + "olang.org/genproto/googleapis/cloud/aipl" - + "atform/v1;aiplatformb\006proto3" + + "\030\004 \001(\tB\003\340A\002B\331\001\n\036com.google.cloud.aiplatf" + + "orm.v1B\025TrainingPipelineProtoP\001ZDgoogle." + + "golang.org/genproto/googleapis/cloud/aip" + + "latform/v1;aiplatform\252\002\032Google.Cloud.AIP" + + "latform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352" + + "\002\035Google::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Trial.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Trial.java index 0c276de45..98558db92 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Trial.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Trial.java @@ -40,9 +40,13 @@ private Trial(com.google.protobuf.GeneratedMessageV3.Builder builder) { } private Trial() { + name_ = ""; id_ = ""; state_ = 0; parameters_ = java.util.Collections.emptyList(); + measurements_ = java.util.Collections.emptyList(); + clientId_ = ""; + infeasibleReason_ = ""; customJob_ = ""; } @@ -76,6 +80,13 @@ private Trial( case 0: done = true; break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } case 18: { java.lang.String s = input.readStringRequireUtf8(); @@ -118,6 +129,18 @@ private Trial( break; } + case 50: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + measurements_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + measurements_.add( + input.readMessage( + com.google.cloud.aiplatform.v1.Measurement.parser(), extensionRegistry)); + break; + } case 58: { com.google.protobuf.Timestamp.Builder subBuilder = null; @@ -146,6 +169,20 @@ private Trial( endTime_ = subBuilder.buildPartial(); } + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + + clientId_ = s; + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + + infeasibleReason_ = s; break; } case 90: @@ -172,6 +209,9 @@ private Trial( if (((mutable_bitField0_ & 0x00000001) != 0)) { parameters_ = java.util.Collections.unmodifiableList(parameters_); } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + measurements_ = java.util.Collections.unmodifiableList(measurements_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -1442,6 +1482,55 @@ public com.google.cloud.aiplatform.v1.Trial.Parameter getDefaultInstanceForType( } } + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. Resource name of the Trial assigned by the service.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + /** + * + * + *
+   * Output only. Resource name of the Trial assigned by the service.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 ID_FIELD_NUMBER = 2; private volatile java.lang.Object id_; /** @@ -1664,6 +1753,95 @@ public com.google.cloud.aiplatform.v1.MeasurementOrBuilder getFinalMeasurementOr return getFinalMeasurement(); } + public static final int MEASUREMENTS_FIELD_NUMBER = 6; + private java.util.List measurements_; + /** + * + * + *
+   * Output only. A list of measurements that are strictly lexicographically
+   * ordered by their induced tuples (steps, elapsed_duration).
+   * These are used for early stopping computations.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getMeasurementsList() { + return measurements_; + } + /** + * + * + *
+   * Output only. A list of measurements that are strictly lexicographically
+   * ordered by their induced tuples (steps, elapsed_duration).
+   * These are used for early stopping computations.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getMeasurementsOrBuilderList() { + return measurements_; + } + /** + * + * + *
+   * Output only. A list of measurements that are strictly lexicographically
+   * ordered by their induced tuples (steps, elapsed_duration).
+   * These are used for early stopping computations.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getMeasurementsCount() { + return measurements_.size(); + } + /** + * + * + *
+   * Output only. A list of measurements that are strictly lexicographically
+   * ordered by their induced tuples (steps, elapsed_duration).
+   * These are used for early stopping computations.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Measurement getMeasurements(int index) { + return measurements_.get(index); + } + /** + * + * + *
+   * Output only. A list of measurements that are strictly lexicographically
+   * ordered by their induced tuples (steps, elapsed_duration).
+   * These are used for early stopping computations.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.MeasurementOrBuilder getMeasurementsOrBuilder(int index) { + return measurements_.get(index); + } + public static final int START_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp startTime_; /** @@ -1762,6 +1940,120 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { return getEndTime(); } + public static final int CLIENT_ID_FIELD_NUMBER = 9; + private volatile java.lang.Object clientId_; + /** + * + * + *
+   * Output only. The identifier of the client that originally requested this Trial.
+   * Each client is identified by a unique client_id. When a client
+   * asks for a suggestion, Vizier will assign it a Trial. The client should
+   * evaluate the Trial, complete it, and report back to Vizier.
+   * If suggestion is asked again by same client_id before the Trial is
+   * completed, the same Trial will be returned. Multiple clients with
+   * different client_ids can ask for suggestions simultaneously, each of them
+   * will get their own Trial.
+   * 
+ * + * string client_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The clientId. + */ + @java.lang.Override + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + 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(); + clientId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The identifier of the client that originally requested this Trial.
+   * Each client is identified by a unique client_id. When a client
+   * asks for a suggestion, Vizier will assign it a Trial. The client should
+   * evaluate the Trial, complete it, and report back to Vizier.
+   * If suggestion is asked again by same client_id before the Trial is
+   * completed, the same Trial will be returned. Multiple clients with
+   * different client_ids can ask for suggestions simultaneously, each of them
+   * will get their own Trial.
+   * 
+ * + * string client_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for clientId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INFEASIBLE_REASON_FIELD_NUMBER = 10; + private volatile java.lang.Object infeasibleReason_; + /** + * + * + *
+   * Output only. A human readable string describing why the Trial is
+   * infeasible. This is set only if Trial state is `INFEASIBLE`.
+   * 
+ * + * string infeasible_reason = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The infeasibleReason. + */ + @java.lang.Override + public java.lang.String getInfeasibleReason() { + java.lang.Object ref = infeasibleReason_; + 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(); + infeasibleReason_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. A human readable string describing why the Trial is
+   * infeasible. This is set only if Trial state is `INFEASIBLE`.
+   * 
+ * + * string infeasible_reason = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for infeasibleReason. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInfeasibleReasonBytes() { + java.lang.Object ref = infeasibleReason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + infeasibleReason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int CUSTOM_JOB_FIELD_NUMBER = 11; private volatile java.lang.Object customJob_; /** @@ -1831,6 +2123,9 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } if (!getIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); } @@ -1843,12 +2138,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (finalMeasurement_ != null) { output.writeMessage(5, getFinalMeasurement()); } + for (int i = 0; i < measurements_.size(); i++) { + output.writeMessage(6, measurements_.get(i)); + } if (startTime_ != null) { output.writeMessage(7, getStartTime()); } if (endTime_ != null) { output.writeMessage(8, getEndTime()); } + if (!getClientIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, clientId_); + } + if (!getInfeasibleReasonBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, infeasibleReason_); + } if (!getCustomJobBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, customJob_); } @@ -1861,6 +2165,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } if (!getIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); } @@ -1873,12 +2180,21 @@ public int getSerializedSize() { if (finalMeasurement_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getFinalMeasurement()); } + for (int i = 0; i < measurements_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, measurements_.get(i)); + } if (startTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getStartTime()); } if (endTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getEndTime()); } + if (!getClientIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, clientId_); + } + if (!getInfeasibleReasonBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, infeasibleReason_); + } if (!getCustomJobBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, customJob_); } @@ -1897,6 +2213,7 @@ public boolean equals(final java.lang.Object obj) { } com.google.cloud.aiplatform.v1.Trial other = (com.google.cloud.aiplatform.v1.Trial) obj; + if (!getName().equals(other.getName())) return false; if (!getId().equals(other.getId())) return false; if (state_ != other.state_) return false; if (!getParametersList().equals(other.getParametersList())) return false; @@ -1904,6 +2221,7 @@ public boolean equals(final java.lang.Object obj) { if (hasFinalMeasurement()) { if (!getFinalMeasurement().equals(other.getFinalMeasurement())) return false; } + if (!getMeasurementsList().equals(other.getMeasurementsList())) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { if (!getStartTime().equals(other.getStartTime())) return false; @@ -1912,6 +2230,8 @@ public boolean equals(final java.lang.Object obj) { if (hasEndTime()) { if (!getEndTime().equals(other.getEndTime())) return false; } + if (!getClientId().equals(other.getClientId())) return false; + if (!getInfeasibleReason().equals(other.getInfeasibleReason())) return false; if (!getCustomJob().equals(other.getCustomJob())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1924,6 +2244,8 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + STATE_FIELD_NUMBER; @@ -1936,6 +2258,10 @@ public int hashCode() { hash = (37 * hash) + FINAL_MEASUREMENT_FIELD_NUMBER; hash = (53 * hash) + getFinalMeasurement().hashCode(); } + if (getMeasurementsCount() > 0) { + hash = (37 * hash) + MEASUREMENTS_FIELD_NUMBER; + hash = (53 * hash) + getMeasurementsList().hashCode(); + } if (hasStartTime()) { hash = (37 * hash) + START_TIME_FIELD_NUMBER; hash = (53 * hash) + getStartTime().hashCode(); @@ -1944,6 +2270,10 @@ public int hashCode() { hash = (37 * hash) + END_TIME_FIELD_NUMBER; hash = (53 * hash) + getEndTime().hashCode(); } + hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getClientId().hashCode(); + hash = (37 * hash) + INFEASIBLE_REASON_FIELD_NUMBER; + hash = (53 * hash) + getInfeasibleReason().hashCode(); hash = (37 * hash) + CUSTOM_JOB_FIELD_NUMBER; hash = (53 * hash) + getCustomJob().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -2088,12 +2418,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getParametersFieldBuilder(); + getMeasurementsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); + name_ = ""; + id_ = ""; state_ = 0; @@ -2110,6 +2443,12 @@ public Builder clear() { finalMeasurement_ = null; finalMeasurementBuilder_ = null; } + if (measurementsBuilder_ == null) { + measurements_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + measurementsBuilder_.clear(); + } if (startTimeBuilder_ == null) { startTime_ = null; } else { @@ -2122,6 +2461,10 @@ public Builder clear() { endTime_ = null; endTimeBuilder_ = null; } + clientId_ = ""; + + infeasibleReason_ = ""; + customJob_ = ""; return this; @@ -2151,6 +2494,7 @@ public com.google.cloud.aiplatform.v1.Trial build() { public com.google.cloud.aiplatform.v1.Trial buildPartial() { com.google.cloud.aiplatform.v1.Trial result = new com.google.cloud.aiplatform.v1.Trial(this); int from_bitField0_ = bitField0_; + result.name_ = name_; result.id_ = id_; result.state_ = state_; if (parametersBuilder_ == null) { @@ -2167,6 +2511,15 @@ public com.google.cloud.aiplatform.v1.Trial buildPartial() { } else { result.finalMeasurement_ = finalMeasurementBuilder_.build(); } + if (measurementsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + measurements_ = java.util.Collections.unmodifiableList(measurements_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.measurements_ = measurements_; + } else { + result.measurements_ = measurementsBuilder_.build(); + } if (startTimeBuilder_ == null) { result.startTime_ = startTime_; } else { @@ -2177,6 +2530,8 @@ public com.google.cloud.aiplatform.v1.Trial buildPartial() { } else { result.endTime_ = endTimeBuilder_.build(); } + result.clientId_ = clientId_; + result.infeasibleReason_ = infeasibleReason_; result.customJob_ = customJob_; onBuilt(); return result; @@ -2227,6 +2582,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.aiplatform.v1.Trial other) { if (other == com.google.cloud.aiplatform.v1.Trial.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); @@ -2264,12 +2623,47 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Trial other) { if (other.hasFinalMeasurement()) { mergeFinalMeasurement(other.getFinalMeasurement()); } + if (measurementsBuilder_ == null) { + if (!other.measurements_.isEmpty()) { + if (measurements_.isEmpty()) { + measurements_ = other.measurements_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureMeasurementsIsMutable(); + measurements_.addAll(other.measurements_); + } + onChanged(); + } + } else { + if (!other.measurements_.isEmpty()) { + if (measurementsBuilder_.isEmpty()) { + measurementsBuilder_.dispose(); + measurementsBuilder_ = null; + measurements_ = other.measurements_; + bitField0_ = (bitField0_ & ~0x00000002); + measurementsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMeasurementsFieldBuilder() + : null; + } else { + measurementsBuilder_.addAllMessages(other.measurements_); + } + } + } if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } if (other.hasEndTime()) { mergeEndTime(other.getEndTime()); } + if (!other.getClientId().isEmpty()) { + clientId_ = other.clientId_; + onChanged(); + } + if (!other.getInfeasibleReason().isEmpty()) { + infeasibleReason_ = other.infeasibleReason_; + onChanged(); + } if (!other.getCustomJob().isEmpty()) { customJob_ = other.customJob_; onChanged(); @@ -2305,24 +2699,24 @@ public Builder mergeFrom( private int bitField0_; - private java.lang.Object id_ = ""; + private java.lang.Object name_ = ""; /** * * *
-     * Output only. The identifier of the Trial assigned by the service.
+     * Output only. Resource name of the Trial assigned by the service.
      * 
* - * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The id. + * @return The name. */ - public java.lang.String getId() { - java.lang.Object ref = id_; + 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(); - id_ = s; + name_ = s; return s; } else { return (java.lang.String) ref; @@ -2332,19 +2726,19 @@ public java.lang.String getId() { * * *
-     * Output only. The identifier of the Trial assigned by the service.
+     * Output only. Resource name of the Trial assigned by the service.
      * 
* - * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The bytes for id. + * @return The bytes for name. */ - public com.google.protobuf.ByteString getIdBytes() { - java.lang.Object ref = id_; + 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); - id_ = b; + name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -2354,20 +2748,20 @@ public com.google.protobuf.ByteString getIdBytes() { * * *
-     * Output only. The identifier of the Trial assigned by the service.
+     * Output only. Resource name of the Trial assigned by the service.
      * 
* - * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The id to set. + * @param value The name to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + name_ = value; onChanged(); return this; } @@ -2375,16 +2769,16 @@ public Builder setId(java.lang.String value) { * * *
-     * Output only. The identifier of the Trial assigned by the service.
+     * Output only. Resource name of the Trial assigned by the service.
      * 
* - * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ - public Builder clearId() { + public Builder clearName() { - id_ = getDefaultInstance().getId(); + name_ = getDefaultInstance().getName(); onChanged(); return this; } @@ -2392,42 +2786,148 @@ public Builder clearId() { * * *
-     * Output only. The identifier of the Trial assigned by the service.
+     * Output only. Resource name of the Trial assigned by the service.
      * 
* - * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The bytes for id to set. + * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + name_ = value; onChanged(); return this; } - private int state_ = 0; + private java.lang.Object id_ = ""; /** * * *
-     * Output only. The detailed state of the Trial.
+     * Output only. The identifier of the Trial assigned by the service.
      * 
* - * - * .google.cloud.aiplatform.v1.Trial.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The enum numeric value on the wire for state. + * @return The id. */ - @java.lang.Override - public int getStateValue() { - return state_; + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The identifier of the Trial assigned by the service.
+     * 
+ * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The identifier of the Trial assigned by the service.
+     * 
+ * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The identifier of the Trial assigned by the service.
+     * 
+ * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The identifier of the Trial assigned by the service.
+     * 
+ * + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. The detailed state of the Trial.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Trial.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; } /** * @@ -3104,214 +3604,637 @@ public com.google.cloud.aiplatform.v1.MeasurementOrBuilder getFinalMeasurementOr return finalMeasurementBuilder_; } - private com.google.protobuf.Timestamp startTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + private java.util.List measurements_ = + java.util.Collections.emptyList(); + + private void ensureMeasurementsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + measurements_ = + new java.util.ArrayList(measurements_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Measurement, + com.google.cloud.aiplatform.v1.Measurement.Builder, + com.google.cloud.aiplatform.v1.MeasurementOrBuilder> + measurementsBuilder_; + /** * * *
-     * Output only. Time when the Trial was started.
+     * Output only. A list of measurements that are strictly lexicographically
+     * ordered by their induced tuples (steps, elapsed_duration).
+     * These are used for early stopping computations.
      * 
* - * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return Whether the startTime field is set. */ - public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + public java.util.List getMeasurementsList() { + if (measurementsBuilder_ == null) { + return java.util.Collections.unmodifiableList(measurements_); + } else { + return measurementsBuilder_.getMessageList(); + } } /** * * *
-     * Output only. Time when the Trial was started.
+     * Output only. A list of measurements that are strictly lexicographically
+     * ordered by their induced tuples (steps, elapsed_duration).
+     * These are used for early stopping computations.
      * 
* - * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + */ + public int getMeasurementsCount() { + if (measurementsBuilder_ == null) { + return measurements_.size(); + } else { + return measurementsBuilder_.getCount(); + } + } + /** * - * @return The startTime. + * + *
+     * Output only. A list of measurements that are strictly lexicographically
+     * ordered by their induced tuples (steps, elapsed_duration).
+     * These are used for early stopping computations.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.protobuf.Timestamp getStartTime() { - if (startTimeBuilder_ == null) { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + public com.google.cloud.aiplatform.v1.Measurement getMeasurements(int index) { + if (measurementsBuilder_ == null) { + return measurements_.get(index); } else { - return startTimeBuilder_.getMessage(); + return measurementsBuilder_.getMessage(index); } } /** * * *
-     * Output only. Time when the Trial was started.
+     * Output only. A list of measurements that are strictly lexicographically
+     * ordered by their induced tuples (steps, elapsed_duration).
+     * These are used for early stopping computations.
      * 
* - * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setStartTime(com.google.protobuf.Timestamp value) { - if (startTimeBuilder_ == null) { + public Builder setMeasurements(int index, com.google.cloud.aiplatform.v1.Measurement value) { + if (measurementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - startTime_ = value; + ensureMeasurementsIsMutable(); + measurements_.set(index, value); onChanged(); } else { - startTimeBuilder_.setMessage(value); + measurementsBuilder_.setMessage(index, value); } - return this; } /** * * *
-     * Output only. Time when the Trial was started.
+     * Output only. A list of measurements that are strictly lexicographically
+     * ordered by their induced tuples (steps, elapsed_duration).
+     * These are used for early stopping computations.
      * 
* - * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (startTimeBuilder_ == null) { - startTime_ = builderForValue.build(); + public Builder setMeasurements( + int index, com.google.cloud.aiplatform.v1.Measurement.Builder builderForValue) { + if (measurementsBuilder_ == null) { + ensureMeasurementsIsMutable(); + measurements_.set(index, builderForValue.build()); onChanged(); } else { - startTimeBuilder_.setMessage(builderForValue.build()); + measurementsBuilder_.setMessage(index, builderForValue.build()); } - return this; } /** * * *
-     * Output only. Time when the Trial was started.
+     * Output only. A list of measurements that are strictly lexicographically
+     * ordered by their induced tuples (steps, elapsed_duration).
+     * These are used for early stopping computations.
      * 
* - * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeStartTime(com.google.protobuf.Timestamp value) { - if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); - } else { - startTime_ = value; + public Builder addMeasurements(com.google.cloud.aiplatform.v1.Measurement value) { + if (measurementsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensureMeasurementsIsMutable(); + measurements_.add(value); onChanged(); } else { - startTimeBuilder_.mergeFrom(value); + measurementsBuilder_.addMessage(value); } - return this; } /** * * *
-     * Output only. Time when the Trial was started.
+     * Output only. A list of measurements that are strictly lexicographically
+     * ordered by their induced tuples (steps, elapsed_duration).
+     * These are used for early stopping computations.
      * 
* - * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; + public Builder addMeasurements(int index, com.google.cloud.aiplatform.v1.Measurement value) { + if (measurementsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMeasurementsIsMutable(); + measurements_.add(index, value); onChanged(); } else { - startTime_ = null; - startTimeBuilder_ = null; + measurementsBuilder_.addMessage(index, value); } - return this; } /** * * *
-     * Output only. Time when the Trial was started.
+     * Output only. A list of measurements that are strictly lexicographically
+     * ordered by their induced tuples (steps, elapsed_duration).
+     * These are used for early stopping computations.
      * 
* - * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - - onChanged(); - return getStartTimeFieldBuilder().getBuilder(); + public Builder addMeasurements( + com.google.cloud.aiplatform.v1.Measurement.Builder builderForValue) { + if (measurementsBuilder_ == null) { + ensureMeasurementsIsMutable(); + measurements_.add(builderForValue.build()); + onChanged(); + } else { + measurementsBuilder_.addMessage(builderForValue.build()); + } + return this; } /** * * *
-     * Output only. Time when the Trial was started.
+     * Output only. A list of measurements that are strictly lexicographically
+     * ordered by their induced tuples (steps, elapsed_duration).
+     * These are used for early stopping computations.
      * 
* - * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - if (startTimeBuilder_ != null) { - return startTimeBuilder_.getMessageOrBuilder(); + public Builder addMeasurements( + int index, com.google.cloud.aiplatform.v1.Measurement.Builder builderForValue) { + if (measurementsBuilder_ == null) { + ensureMeasurementsIsMutable(); + measurements_.add(index, builderForValue.build()); + onChanged(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + measurementsBuilder_.addMessage(index, builderForValue.build()); } + return this; } /** * * *
-     * Output only. Time when the Trial was started.
+     * Output only. A list of measurements that are strictly lexicographically
+     * ordered by their induced tuples (steps, elapsed_duration).
+     * These are used for early stopping computations.
      * 
* - * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getStartTimeFieldBuilder() { - if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); - startTime_ = null; + public Builder addAllMeasurements( + java.lang.Iterable values) { + if (measurementsBuilder_ == null) { + ensureMeasurementsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, measurements_); + onChanged(); + } else { + measurementsBuilder_.addAllMessages(values); } - return startTimeBuilder_; + return this; } - - private com.google.protobuf.Timestamp endTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; /** * * *
-     * Output only. Time when the Trial's status changed to `SUCCEEDED` or `INFEASIBLE`.
+     * Output only. A list of measurements that are strictly lexicographically
+     * ordered by their induced tuples (steps, elapsed_duration).
+     * These are used for early stopping computations.
      * 
* - * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return Whether the endTime field is set. */ - public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; + public Builder clearMeasurements() { + if (measurementsBuilder_ == null) { + measurements_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + measurementsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. A list of measurements that are strictly lexicographically
+     * ordered by their induced tuples (steps, elapsed_duration).
+     * These are used for early stopping computations.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeMeasurements(int index) { + if (measurementsBuilder_ == null) { + ensureMeasurementsIsMutable(); + measurements_.remove(index); + onChanged(); + } else { + measurementsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. A list of measurements that are strictly lexicographically
+     * ordered by their induced tuples (steps, elapsed_duration).
+     * These are used for early stopping computations.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.Measurement.Builder getMeasurementsBuilder(int index) { + return getMeasurementsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. A list of measurements that are strictly lexicographically
+     * ordered by their induced tuples (steps, elapsed_duration).
+     * These are used for early stopping computations.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.MeasurementOrBuilder getMeasurementsOrBuilder(int index) { + if (measurementsBuilder_ == null) { + return measurements_.get(index); + } else { + return measurementsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. A list of measurements that are strictly lexicographically
+     * ordered by their induced tuples (steps, elapsed_duration).
+     * These are used for early stopping computations.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getMeasurementsOrBuilderList() { + if (measurementsBuilder_ != null) { + return measurementsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(measurements_); + } + } + /** + * + * + *
+     * Output only. A list of measurements that are strictly lexicographically
+     * ordered by their induced tuples (steps, elapsed_duration).
+     * These are used for early stopping computations.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.Measurement.Builder addMeasurementsBuilder() { + return getMeasurementsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.Measurement.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. A list of measurements that are strictly lexicographically
+     * ordered by their induced tuples (steps, elapsed_duration).
+     * These are used for early stopping computations.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.Measurement.Builder addMeasurementsBuilder(int index) { + return getMeasurementsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1.Measurement.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. A list of measurements that are strictly lexicographically
+     * ordered by their induced tuples (steps, elapsed_duration).
+     * These are used for early stopping computations.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getMeasurementsBuilderList() { + return getMeasurementsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Measurement, + com.google.cloud.aiplatform.v1.Measurement.Builder, + com.google.cloud.aiplatform.v1.MeasurementOrBuilder> + getMeasurementsFieldBuilder() { + if (measurementsBuilder_ == null) { + measurementsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Measurement, + com.google.cloud.aiplatform.v1.Measurement.Builder, + com.google.cloud.aiplatform.v1.MeasurementOrBuilder>( + measurements_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + measurements_ = null; + } + return measurementsBuilder_; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * Output only. Time when the Trial was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + * + * + *
+     * Output only. Time when the Trial was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time when the Trial was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Time when the Trial was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Time when the Trial was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Time when the Trial was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Time when the Trial was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time when the Trial was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * Output only. Time when the Trial was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * Output only. Time when the Trial's status changed to `SUCCEEDED` or `INFEASIBLE`.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; } /** * @@ -3480,6 +4403,258 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { return endTimeBuilder_; } + private java.lang.Object clientId_ = ""; + /** + * + * + *
+     * Output only. The identifier of the client that originally requested this Trial.
+     * Each client is identified by a unique client_id. When a client
+     * asks for a suggestion, Vizier will assign it a Trial. The client should
+     * evaluate the Trial, complete it, and report back to Vizier.
+     * If suggestion is asked again by same client_id before the Trial is
+     * completed, the same Trial will be returned. Multiple clients with
+     * different client_ids can ask for suggestions simultaneously, each of them
+     * will get their own Trial.
+     * 
+ * + * string client_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The clientId. + */ + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The identifier of the client that originally requested this Trial.
+     * Each client is identified by a unique client_id. When a client
+     * asks for a suggestion, Vizier will assign it a Trial. The client should
+     * evaluate the Trial, complete it, and report back to Vizier.
+     * If suggestion is asked again by same client_id before the Trial is
+     * completed, the same Trial will be returned. Multiple clients with
+     * different client_ids can ask for suggestions simultaneously, each of them
+     * will get their own Trial.
+     * 
+ * + * string client_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for clientId. + */ + public com.google.protobuf.ByteString getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The identifier of the client that originally requested this Trial.
+     * Each client is identified by a unique client_id. When a client
+     * asks for a suggestion, Vizier will assign it a Trial. The client should
+     * evaluate the Trial, complete it, and report back to Vizier.
+     * If suggestion is asked again by same client_id before the Trial is
+     * completed, the same Trial will be returned. Multiple clients with
+     * different client_ids can ask for suggestions simultaneously, each of them
+     * will get their own Trial.
+     * 
+ * + * string client_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The clientId to set. + * @return This builder for chaining. + */ + public Builder setClientId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clientId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The identifier of the client that originally requested this Trial.
+     * Each client is identified by a unique client_id. When a client
+     * asks for a suggestion, Vizier will assign it a Trial. The client should
+     * evaluate the Trial, complete it, and report back to Vizier.
+     * If suggestion is asked again by same client_id before the Trial is
+     * completed, the same Trial will be returned. Multiple clients with
+     * different client_ids can ask for suggestions simultaneously, each of them
+     * will get their own Trial.
+     * 
+ * + * string client_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearClientId() { + + clientId_ = getDefaultInstance().getClientId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The identifier of the client that originally requested this Trial.
+     * Each client is identified by a unique client_id. When a client
+     * asks for a suggestion, Vizier will assign it a Trial. The client should
+     * evaluate the Trial, complete it, and report back to Vizier.
+     * If suggestion is asked again by same client_id before the Trial is
+     * completed, the same Trial will be returned. Multiple clients with
+     * different client_ids can ask for suggestions simultaneously, each of them
+     * will get their own Trial.
+     * 
+ * + * string client_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for clientId to set. + * @return This builder for chaining. + */ + public Builder setClientIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clientId_ = value; + onChanged(); + return this; + } + + private java.lang.Object infeasibleReason_ = ""; + /** + * + * + *
+     * Output only. A human readable string describing why the Trial is
+     * infeasible. This is set only if Trial state is `INFEASIBLE`.
+     * 
+ * + * string infeasible_reason = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The infeasibleReason. + */ + public java.lang.String getInfeasibleReason() { + java.lang.Object ref = infeasibleReason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + infeasibleReason_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. A human readable string describing why the Trial is
+     * infeasible. This is set only if Trial state is `INFEASIBLE`.
+     * 
+ * + * string infeasible_reason = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for infeasibleReason. + */ + public com.google.protobuf.ByteString getInfeasibleReasonBytes() { + java.lang.Object ref = infeasibleReason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + infeasibleReason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. A human readable string describing why the Trial is
+     * infeasible. This is set only if Trial state is `INFEASIBLE`.
+     * 
+ * + * string infeasible_reason = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The infeasibleReason to set. + * @return This builder for chaining. + */ + public Builder setInfeasibleReason(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + infeasibleReason_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. A human readable string describing why the Trial is
+     * infeasible. This is set only if Trial state is `INFEASIBLE`.
+     * 
+ * + * string infeasible_reason = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearInfeasibleReason() { + + infeasibleReason_ = getDefaultInstance().getInfeasibleReason(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. A human readable string describing why the Trial is
+     * infeasible. This is set only if Trial state is `INFEASIBLE`.
+     * 
+ * + * string infeasible_reason = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for infeasibleReason to set. + * @return This builder for chaining. + */ + public Builder setInfeasibleReasonBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + infeasibleReason_ = value; + onChanged(); + return this; + } + private java.lang.Object customJob_ = ""; /** * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrialOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrialOrBuilder.java index e4e6d8d84..735e56e33 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrialOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrialOrBuilder.java @@ -23,6 +23,31 @@ public interface TrialOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.Trial) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * Output only. Resource name of the Trial assigned by the service.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of the Trial assigned by the service.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + /** * * @@ -180,6 +205,78 @@ public interface TrialOrBuilder */ com.google.cloud.aiplatform.v1.MeasurementOrBuilder getFinalMeasurementOrBuilder(); + /** + * + * + *
+   * Output only. A list of measurements that are strictly lexicographically
+   * ordered by their induced tuples (steps, elapsed_duration).
+   * These are used for early stopping computations.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getMeasurementsList(); + /** + * + * + *
+   * Output only. A list of measurements that are strictly lexicographically
+   * ordered by their induced tuples (steps, elapsed_duration).
+   * These are used for early stopping computations.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.Measurement getMeasurements(int index); + /** + * + * + *
+   * Output only. A list of measurements that are strictly lexicographically
+   * ordered by their induced tuples (steps, elapsed_duration).
+   * These are used for early stopping computations.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getMeasurementsCount(); + /** + * + * + *
+   * Output only. A list of measurements that are strictly lexicographically
+   * ordered by their induced tuples (steps, elapsed_duration).
+   * These are used for early stopping computations.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getMeasurementsOrBuilderList(); + /** + * + * + *
+   * Output only. A list of measurements that are strictly lexicographically
+   * ordered by their induced tuples (steps, elapsed_duration).
+   * These are used for early stopping computations.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.MeasurementOrBuilder getMeasurementsOrBuilder(int index); + /** * * @@ -256,6 +353,72 @@ public interface TrialOrBuilder */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + /** + * + * + *
+   * Output only. The identifier of the client that originally requested this Trial.
+   * Each client is identified by a unique client_id. When a client
+   * asks for a suggestion, Vizier will assign it a Trial. The client should
+   * evaluate the Trial, complete it, and report back to Vizier.
+   * If suggestion is asked again by same client_id before the Trial is
+   * completed, the same Trial will be returned. Multiple clients with
+   * different client_ids can ask for suggestions simultaneously, each of them
+   * will get their own Trial.
+   * 
+ * + * string client_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The clientId. + */ + java.lang.String getClientId(); + /** + * + * + *
+   * Output only. The identifier of the client that originally requested this Trial.
+   * Each client is identified by a unique client_id. When a client
+   * asks for a suggestion, Vizier will assign it a Trial. The client should
+   * evaluate the Trial, complete it, and report back to Vizier.
+   * If suggestion is asked again by same client_id before the Trial is
+   * completed, the same Trial will be returned. Multiple clients with
+   * different client_ids can ask for suggestions simultaneously, each of them
+   * will get their own Trial.
+   * 
+ * + * string client_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for clientId. + */ + com.google.protobuf.ByteString getClientIdBytes(); + + /** + * + * + *
+   * Output only. A human readable string describing why the Trial is
+   * infeasible. This is set only if Trial state is `INFEASIBLE`.
+   * 
+ * + * string infeasible_reason = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The infeasibleReason. + */ + java.lang.String getInfeasibleReason(); + /** + * + * + *
+   * Output only. A human readable string describing why the Trial is
+   * infeasible. This is set only if Trial state is `INFEASIBLE`.
+   * 
+ * + * string infeasible_reason = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for infeasibleReason. + */ + com.google.protobuf.ByteString getInfeasibleReasonBytes(); + /** * * diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UserActionReferenceProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UserActionReferenceProto.java index 98d774580..18ede5cf6 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UserActionReferenceProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UserActionReferenceProto.java @@ -45,10 +45,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "m.v1\032\034google/api/annotations.proto\"d\n\023Us" + "erActionReference\022\023\n\toperation\030\001 \001(\tH\000\022\033" + "\n\021data_labeling_job\030\002 \001(\tH\000\022\016\n\006method\030\003 " - + "\001(\tB\013\n\treferenceB\202\001\n\036com.google.cloud.ai" + + "\001(\tB\013\n\treferenceB\334\001\n\036com.google.cloud.ai" + "platform.v1B\030UserActionReferenceProtoP\001Z" + "Dgoogle.golang.org/genproto/googleapis/c" - + "loud/aiplatform/v1;aiplatformb\006proto3" + + "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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Value.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Value.java new file mode 100644 index 000000000..c57731153 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Value.java @@ -0,0 +1,1037 @@ +/* + * 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/value.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Value is the value of the field.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.Value} + */ +public final class Value extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.Value) + ValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use Value.newBuilder() to construct. + private Value(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Value() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Value(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Value( + 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: + { + valueCase_ = 1; + value_ = input.readInt64(); + break; + } + case 17: + { + valueCase_ = 2; + value_ = input.readDouble(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + valueCase_ = 3; + value_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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.ValueProto + .internal_static_google_cloud_aiplatform_v1_Value_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ValueProto + .internal_static_google_cloud_aiplatform_v1_Value_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.Value.class, + com.google.cloud.aiplatform.v1.Value.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + + public enum ValueCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + INT_VALUE(1), + DOUBLE_VALUE(2), + STRING_VALUE(3), + VALUE_NOT_SET(0); + private final int value; + + private ValueCase(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 ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: + return INT_VALUE; + case 2: + return DOUBLE_VALUE; + case 3: + return STRING_VALUE; + case 0: + return VALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public static final int INT_VALUE_FIELD_NUMBER = 1; + /** + * + * + *
+   * An integer value.
+   * 
+ * + * int64 int_value = 1; + * + * @return Whether the intValue field is set. + */ + @java.lang.Override + public boolean hasIntValue() { + return valueCase_ == 1; + } + /** + * + * + *
+   * An integer value.
+   * 
+ * + * int64 int_value = 1; + * + * @return The intValue. + */ + @java.lang.Override + public long getIntValue() { + if (valueCase_ == 1) { + return (java.lang.Long) value_; + } + return 0L; + } + + public static final int DOUBLE_VALUE_FIELD_NUMBER = 2; + /** + * + * + *
+   * A double value.
+   * 
+ * + * double double_value = 2; + * + * @return Whether the doubleValue field is set. + */ + @java.lang.Override + public boolean hasDoubleValue() { + return valueCase_ == 2; + } + /** + * + * + *
+   * A double value.
+   * 
+ * + * double double_value = 2; + * + * @return The doubleValue. + */ + @java.lang.Override + public double getDoubleValue() { + if (valueCase_ == 2) { + return (java.lang.Double) value_; + } + return 0D; + } + + public static final int STRING_VALUE_FIELD_NUMBER = 3; + /** + * + * + *
+   * A string value.
+   * 
+ * + * string string_value = 3; + * + * @return Whether the stringValue field is set. + */ + public boolean hasStringValue() { + return valueCase_ == 3; + } + /** + * + * + *
+   * A string value.
+   * 
+ * + * string string_value = 3; + * + * @return The stringValue. + */ + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (valueCase_ == 3) { + ref = value_; + } + 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(); + if (valueCase_ == 3) { + value_ = s; + } + return s; + } + } + /** + * + * + *
+   * A string value.
+   * 
+ * + * string string_value = 3; + * + * @return The bytes for stringValue. + */ + public com.google.protobuf.ByteString getStringValueBytes() { + java.lang.Object ref = ""; + if (valueCase_ == 3) { + ref = value_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (valueCase_ == 3) { + value_ = 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 (valueCase_ == 1) { + output.writeInt64(1, (long) ((java.lang.Long) value_)); + } + if (valueCase_ == 2) { + output.writeDouble(2, (double) ((java.lang.Double) value_)); + } + if (valueCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valueCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size( + 1, (long) ((java.lang.Long) value_)); + } + if (valueCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 2, (double) ((java.lang.Double) value_)); + } + if (valueCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); + } + 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.Value)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.Value other = (com.google.cloud.aiplatform.v1.Value) obj; + + if (!getValueCase().equals(other.getValueCase())) return false; + switch (valueCase_) { + case 1: + if (getIntValue() != other.getIntValue()) return false; + break; + case 2: + if (java.lang.Double.doubleToLongBits(getDoubleValue()) + != java.lang.Double.doubleToLongBits(other.getDoubleValue())) return false; + break; + case 3: + if (!getStringValue().equals(other.getStringValue())) return false; + break; + case 0: + default: + } + 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(); + switch (valueCase_) { + case 1: + hash = (37 * hash) + INT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIntValue()); + break; + case 2: + hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDoubleValue())); + break; + case 3: + hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getStringValue().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.Value parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Value 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.Value parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Value 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.Value parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Value 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.Value parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Value 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.Value parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Value 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.Value 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.Value 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.Value 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; + } + /** + * + * + *
+   * Value is the value of the field.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.Value} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.Value) + com.google.cloud.aiplatform.v1.ValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ValueProto + .internal_static_google_cloud_aiplatform_v1_Value_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ValueProto + .internal_static_google_cloud_aiplatform_v1_Value_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.Value.class, + com.google.cloud.aiplatform.v1.Value.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.Value.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(); + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ValueProto + .internal_static_google_cloud_aiplatform_v1_Value_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Value getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.Value.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Value build() { + com.google.cloud.aiplatform.v1.Value result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Value buildPartial() { + com.google.cloud.aiplatform.v1.Value result = new com.google.cloud.aiplatform.v1.Value(this); + if (valueCase_ == 1) { + result.value_ = value_; + } + if (valueCase_ == 2) { + result.value_ = value_; + } + if (valueCase_ == 3) { + result.value_ = value_; + } + result.valueCase_ = valueCase_; + 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.Value) { + return mergeFrom((com.google.cloud.aiplatform.v1.Value) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.Value other) { + if (other == com.google.cloud.aiplatform.v1.Value.getDefaultInstance()) return this; + switch (other.getValueCase()) { + case INT_VALUE: + { + setIntValue(other.getIntValue()); + break; + } + case DOUBLE_VALUE: + { + setDoubleValue(other.getDoubleValue()); + break; + } + case STRING_VALUE: + { + valueCase_ = 3; + value_ = other.value_; + onChanged(); + break; + } + case VALUE_NOT_SET: + { + break; + } + } + 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.Value parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1.Value) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int valueCase_ = 0; + private java.lang.Object value_; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + /** + * + * + *
+     * An integer value.
+     * 
+ * + * int64 int_value = 1; + * + * @return Whether the intValue field is set. + */ + public boolean hasIntValue() { + return valueCase_ == 1; + } + /** + * + * + *
+     * An integer value.
+     * 
+ * + * int64 int_value = 1; + * + * @return The intValue. + */ + public long getIntValue() { + if (valueCase_ == 1) { + return (java.lang.Long) value_; + } + return 0L; + } + /** + * + * + *
+     * An integer value.
+     * 
+ * + * int64 int_value = 1; + * + * @param value The intValue to set. + * @return This builder for chaining. + */ + public Builder setIntValue(long value) { + valueCase_ = 1; + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * An integer value.
+     * 
+ * + * int64 int_value = 1; + * + * @return This builder for chaining. + */ + public Builder clearIntValue() { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * A double value.
+     * 
+ * + * double double_value = 2; + * + * @return Whether the doubleValue field is set. + */ + public boolean hasDoubleValue() { + return valueCase_ == 2; + } + /** + * + * + *
+     * A double value.
+     * 
+ * + * double double_value = 2; + * + * @return The doubleValue. + */ + public double getDoubleValue() { + if (valueCase_ == 2) { + return (java.lang.Double) value_; + } + return 0D; + } + /** + * + * + *
+     * A double value.
+     * 
+ * + * double double_value = 2; + * + * @param value The doubleValue to set. + * @return This builder for chaining. + */ + public Builder setDoubleValue(double value) { + valueCase_ = 2; + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A double value.
+     * 
+ * + * double double_value = 2; + * + * @return This builder for chaining. + */ + public Builder clearDoubleValue() { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * A string value.
+     * 
+ * + * string string_value = 3; + * + * @return Whether the stringValue field is set. + */ + @java.lang.Override + public boolean hasStringValue() { + return valueCase_ == 3; + } + /** + * + * + *
+     * A string value.
+     * 
+ * + * string string_value = 3; + * + * @return The stringValue. + */ + @java.lang.Override + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (valueCase_ == 3) { + ref = value_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (valueCase_ == 3) { + value_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A string value.
+     * 
+ * + * string string_value = 3; + * + * @return The bytes for stringValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStringValueBytes() { + java.lang.Object ref = ""; + if (valueCase_ == 3) { + ref = value_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (valueCase_ == 3) { + value_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A string value.
+     * 
+ * + * string string_value = 3; + * + * @param value The stringValue to set. + * @return This builder for chaining. + */ + public Builder setStringValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + valueCase_ = 3; + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A string value.
+     * 
+ * + * string string_value = 3; + * + * @return This builder for chaining. + */ + public Builder clearStringValue() { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * A string value.
+     * 
+ * + * string string_value = 3; + * + * @param value The bytes for stringValue to set. + * @return This builder for chaining. + */ + public Builder setStringValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + valueCase_ = 3; + value_ = 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.Value) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.Value) + private static final com.google.cloud.aiplatform.v1.Value DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.Value(); + } + + public static com.google.cloud.aiplatform.v1.Value getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Value parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Value(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.Value getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ValueOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ValueOrBuilder.java new file mode 100644 index 000000000..c8f87d90a --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ValueOrBuilder.java @@ -0,0 +1,114 @@ +/* + * 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/value.proto + +package com.google.cloud.aiplatform.v1; + +public interface ValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.Value) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * An integer value.
+   * 
+ * + * int64 int_value = 1; + * + * @return Whether the intValue field is set. + */ + boolean hasIntValue(); + /** + * + * + *
+   * An integer value.
+   * 
+ * + * int64 int_value = 1; + * + * @return The intValue. + */ + long getIntValue(); + + /** + * + * + *
+   * A double value.
+   * 
+ * + * double double_value = 2; + * + * @return Whether the doubleValue field is set. + */ + boolean hasDoubleValue(); + /** + * + * + *
+   * A double value.
+   * 
+ * + * double double_value = 2; + * + * @return The doubleValue. + */ + double getDoubleValue(); + + /** + * + * + *
+   * A string value.
+   * 
+ * + * string string_value = 3; + * + * @return Whether the stringValue field is set. + */ + boolean hasStringValue(); + /** + * + * + *
+   * A string value.
+   * 
+ * + * string string_value = 3; + * + * @return The stringValue. + */ + java.lang.String getStringValue(); + /** + * + * + *
+   * A string value.
+   * 
+ * + * string string_value = 3; + * + * @return The bytes for stringValue. + */ + com.google.protobuf.ByteString getStringValueBytes(); + + public com.google.cloud.aiplatform.v1.Value.ValueCase getValueCase(); +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ValueProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ValueProto.java new file mode 100644 index 000000000..d5ec60556 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ValueProto.java @@ -0,0 +1,73 @@ +/* + * 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/value.proto + +package com.google.cloud.aiplatform.v1; + +public final class ValueProto { + private ValueProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_Value_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_Value_fieldAccessorTable; + + 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/v1/value.proto" + + "\022\032google.cloud.aiplatform.v1\032\034google/api" + + "/annotations.proto\"U\n\005Value\022\023\n\tint_value" + + "\030\001 \001(\003H\000\022\026\n\014double_value\030\002 \001(\001H\000\022\026\n\014stri" + + "ng_value\030\003 \001(\tH\000B\007\n\005valueB\316\001\n\036com.google" + + ".cloud.aiplatform.v1B\nValueProtoP\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::V1b\006prot" + + "o3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1_Value_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1_Value_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_Value_descriptor, + new java.lang.String[] { + "IntValue", "DoubleValue", "StringValue", "Value", + }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VersionName.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VersionName.java deleted file mode 100644 index a437a25f5..000000000 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VersionName.java +++ /dev/null @@ -1,217 +0,0 @@ -/* - * Copyright 2021 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.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class VersionName implements ResourceName { - private static final PathTemplate PROJECT_MODEL_VERSION = - PathTemplate.createWithoutUrlEncoding("projects/{project}/models/{model}/versions/{version}"); - private volatile Map fieldValuesMap; - private final String project; - private final String model; - private final String version; - - @Deprecated - protected VersionName() { - project = null; - model = null; - version = null; - } - - private VersionName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - model = Preconditions.checkNotNull(builder.getModel()); - version = Preconditions.checkNotNull(builder.getVersion()); - } - - public String getProject() { - return project; - } - - public String getModel() { - return model; - } - - public String getVersion() { - return version; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static VersionName of(String project, String model, String version) { - return newBuilder().setProject(project).setModel(model).setVersion(version).build(); - } - - public static String format(String project, String model, String version) { - return newBuilder().setProject(project).setModel(model).setVersion(version).build().toString(); - } - - public static VersionName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_MODEL_VERSION.validatedMatch( - formattedString, "VersionName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("model"), matchMap.get("version")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (VersionName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_MODEL_VERSION.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (model != null) { - fieldMapBuilder.put("model", model); - } - if (version != null) { - fieldMapBuilder.put("version", version); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_MODEL_VERSION.instantiate( - "project", project, "model", model, "version", version); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - VersionName that = ((VersionName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.model, that.model) - && Objects.equals(this.version, that.version); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(model); - h *= 1000003; - h ^= Objects.hashCode(version); - return h; - } - - /** Builder for projects/{project}/models/{model}/versions/{version}. */ - public static class Builder { - private String project; - private String model; - private String version; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getModel() { - return model; - } - - public String getVersion() { - return version; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setModel(String model) { - this.model = model; - return this; - } - - public Builder setVersion(String version) { - this.version = version; - return this; - } - - private Builder(VersionName versionName) { - this.project = versionName.project; - this.model = versionName.model; - this.version = versionName.version; - } - - public VersionName build() { - return new VersionName(this); - } - } -} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageClassificationPredictionInstance.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageClassificationPredictionInstance.java index 9133cf14a..d49062891 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageClassificationPredictionInstance.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageClassificationPredictionInstance.java @@ -132,7 +132,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The image bytes or GCS URI to make the prediction on.
+   * The image bytes or Cloud Storage URI to make the prediction on.
    * 
* * string content = 1; @@ -155,7 +155,7 @@ public java.lang.String getContent() { * * *
-   * The image bytes or GCS URI to make the prediction on.
+   * The image bytes or Cloud Storage URI to make the prediction on.
    * 
* * string content = 1; @@ -635,7 +635,7 @@ public Builder mergeFrom( * * *
-     * The image bytes or GCS URI to make the prediction on.
+     * The image bytes or Cloud Storage URI to make the prediction on.
      * 
* * string content = 1; @@ -657,7 +657,7 @@ public java.lang.String getContent() { * * *
-     * The image bytes or GCS URI to make the prediction on.
+     * The image bytes or Cloud Storage URI to make the prediction on.
      * 
* * string content = 1; @@ -679,7 +679,7 @@ public com.google.protobuf.ByteString getContentBytes() { * * *
-     * The image bytes or GCS URI to make the prediction on.
+     * The image bytes or Cloud Storage URI to make the prediction on.
      * 
* * string content = 1; @@ -700,7 +700,7 @@ public Builder setContent(java.lang.String value) { * * *
-     * The image bytes or GCS URI to make the prediction on.
+     * The image bytes or Cloud Storage URI to make the prediction on.
      * 
* * string content = 1; @@ -717,7 +717,7 @@ public Builder clearContent() { * * *
-     * The image bytes or GCS URI to make the prediction on.
+     * The image bytes or Cloud Storage URI to make the prediction on.
      * 
* * string content = 1; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageClassificationPredictionInstanceOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageClassificationPredictionInstanceOrBuilder.java index fc5226a2d..f7eb1524f 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageClassificationPredictionInstanceOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageClassificationPredictionInstanceOrBuilder.java @@ -27,7 +27,7 @@ public interface ImageClassificationPredictionInstanceOrBuilder * * *
-   * The image bytes or GCS URI to make the prediction on.
+   * The image bytes or Cloud Storage URI to make the prediction on.
    * 
* * string content = 1; @@ -39,7 +39,7 @@ public interface ImageClassificationPredictionInstanceOrBuilder * * *
-   * The image bytes or GCS URI to make the prediction on.
+   * The image bytes or Cloud Storage URI to make the prediction on.
    * 
* * string content = 1; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageClassificationPredictionInstanceProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageClassificationPredictionInstanceProto.java index decc0530a..6254e8570 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageClassificationPredictionInstanceProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageClassificationPredictionInstanceProto.java @@ -45,13 +45,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "2google.cloud.aiplatform.v1.schema.predi" + "ct.instance\032\034google/api/annotations.prot" + "o\"K\n%ImageClassificationPredictionInstan" - + "ce\022\017\n\007content\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\tB\302" - + "\001\n6com.google.cloud.aiplatform.v1.schema" + + "ce\022\017\n\007content\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\tB\347" + + "\002\n6com.google.cloud.aiplatform.v1.schema" + ".predict.instanceB*ImageClassificationPr" + "edictionInstanceProtoP\001ZZgoogle.golang.o" + "rg/genproto/googleapis/cloud/aiplatform/" - + "v1/schema/predict/instance;instanceb\006pro" - + "to3" + + "v1/schema/predict/instance;instance\252\0022Go" + + "ogle.Cloud.AIPlatform.V1.Schema.Predict." + + "Instance\312\0022Google\\Cloud\\AIPlatform\\V1\\Sc" + + "hema\\Predict\\Instance\352\0028Google::Cloud::A" + + "IPlatform::V1::Schema::Predict::Instance" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageObjectDetectionPredictionInstance.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageObjectDetectionPredictionInstance.java index 15ec49366..c90c66bfe 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageObjectDetectionPredictionInstance.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageObjectDetectionPredictionInstance.java @@ -132,7 +132,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The image bytes or GCS URI to make the prediction on.
+   * The image bytes or Cloud Storage URI to make the prediction on.
    * 
* * string content = 1; @@ -155,7 +155,7 @@ public java.lang.String getContent() { * * *
-   * The image bytes or GCS URI to make the prediction on.
+   * The image bytes or Cloud Storage URI to make the prediction on.
    * 
* * string content = 1; @@ -636,7 +636,7 @@ public Builder mergeFrom( * * *
-     * The image bytes or GCS URI to make the prediction on.
+     * The image bytes or Cloud Storage URI to make the prediction on.
      * 
* * string content = 1; @@ -658,7 +658,7 @@ public java.lang.String getContent() { * * *
-     * The image bytes or GCS URI to make the prediction on.
+     * The image bytes or Cloud Storage URI to make the prediction on.
      * 
* * string content = 1; @@ -680,7 +680,7 @@ public com.google.protobuf.ByteString getContentBytes() { * * *
-     * The image bytes or GCS URI to make the prediction on.
+     * The image bytes or Cloud Storage URI to make the prediction on.
      * 
* * string content = 1; @@ -701,7 +701,7 @@ public Builder setContent(java.lang.String value) { * * *
-     * The image bytes or GCS URI to make the prediction on.
+     * The image bytes or Cloud Storage URI to make the prediction on.
      * 
* * string content = 1; @@ -718,7 +718,7 @@ public Builder clearContent() { * * *
-     * The image bytes or GCS URI to make the prediction on.
+     * The image bytes or Cloud Storage URI to make the prediction on.
      * 
* * string content = 1; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageObjectDetectionPredictionInstanceOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageObjectDetectionPredictionInstanceOrBuilder.java index 33da17665..cabee7dbd 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageObjectDetectionPredictionInstanceOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageObjectDetectionPredictionInstanceOrBuilder.java @@ -27,7 +27,7 @@ public interface ImageObjectDetectionPredictionInstanceOrBuilder * * *
-   * The image bytes or GCS URI to make the prediction on.
+   * The image bytes or Cloud Storage URI to make the prediction on.
    * 
* * string content = 1; @@ -39,7 +39,7 @@ public interface ImageObjectDetectionPredictionInstanceOrBuilder * * *
-   * The image bytes or GCS URI to make the prediction on.
+   * The image bytes or Cloud Storage URI to make the prediction on.
    * 
* * string content = 1; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageObjectDetectionPredictionInstanceProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageObjectDetectionPredictionInstanceProto.java index f1c73c2ba..3e2025c43 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageObjectDetectionPredictionInstanceProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageObjectDetectionPredictionInstanceProto.java @@ -46,12 +46,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "dict.instance\032\034google/api/annotations.pr" + "oto\"L\n&ImageObjectDetectionPredictionIns" + "tance\022\017\n\007content\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(" - + "\tB\303\001\n6com.google.cloud.aiplatform.v1.sch" + + "\tB\350\002\n6com.google.cloud.aiplatform.v1.sch" + "ema.predict.instanceB+ImageObjectDetecti" + "onPredictionInstanceProtoP\001ZZgoogle.gola" + "ng.org/genproto/googleapis/cloud/aiplatf" - + "orm/v1/schema/predict/instance;instanceb" - + "\006proto3" + + "orm/v1/schema/predict/instance;instance\252" + + "\0022Google.Cloud.AIPlatform.V1.Schema.Pred" + + "ict.Instance\312\0022Google\\Cloud\\AIPlatform\\V" + + "1\\Schema\\Predict\\Instance\352\0028Google::Clou" + + "d::AIPlatform::V1::Schema::Predict::Inst" + + "anceb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageSegmentationPredictionInstanceProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageSegmentationPredictionInstanceProto.java index 44a89ec9f..4d02f4135 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageSegmentationPredictionInstanceProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/ImageSegmentationPredictionInstanceProto.java @@ -45,12 +45,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oogle.cloud.aiplatform.v1.schema.predict" + ".instance\032\034google/api/annotations.proto\"" + "I\n#ImageSegmentationPredictionInstance\022\017" - + "\n\007content\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\tB\300\001\n6c" + + "\n\007content\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\tB\345\002\n6c" + "om.google.cloud.aiplatform.v1.schema.pre" + "dict.instanceB(ImageSegmentationPredicti" + "onInstanceProtoP\001ZZgoogle.golang.org/gen" + "proto/googleapis/cloud/aiplatform/v1/sch" - + "ema/predict/instance;instanceb\006proto3" + + "ema/predict/instance;instance\252\0022Google.C" + + "loud.AIPlatform.V1.Schema.Predict.Instan" + + "ce\312\0022Google\\Cloud\\AIPlatform\\V1\\Schema\\P" + + "redict\\Instance\352\0028Google::Cloud::AIPlatf" + + "orm::V1::Schema::Predict::Instanceb\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextClassificationPredictionInstanceProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextClassificationPredictionInstanceProto.java index f356bb7d3..9663e221b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextClassificationPredictionInstanceProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextClassificationPredictionInstanceProto.java @@ -45,12 +45,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "google.cloud.aiplatform.v1.schema.predic" + "t.instance\032\034google/api/annotations.proto" + "\"J\n$TextClassificationPredictionInstance" - + "\022\017\n\007content\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\tB\301\001\n" + + "\022\017\n\007content\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\tB\346\002\n" + "6com.google.cloud.aiplatform.v1.schema.p" + "redict.instanceB)TextClassificationPredi" + "ctionInstanceProtoP\001ZZgoogle.golang.org/" + "genproto/googleapis/cloud/aiplatform/v1/" - + "schema/predict/instance;instanceb\006proto3" + + "schema/predict/instance;instance\252\0022Googl" + + "e.Cloud.AIPlatform.V1.Schema.Predict.Ins" + + "tance\312\0022Google\\Cloud\\AIPlatform\\V1\\Schem" + + "a\\Predict\\Instance\352\0028Google::Cloud::AIPl" + + "atform::V1::Schema::Predict::Instanceb\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextExtractionPredictionInstance.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextExtractionPredictionInstance.java index 5554e5d20..1b35dd761 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextExtractionPredictionInstance.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextExtractionPredictionInstance.java @@ -243,7 +243,7 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { *
    * This field is only used for batch prediction. If a key is provided, the
    * batch prediction result will by mapped to this key. If omitted, then the
-   * batch prediction result will contain the entire input instance. AI Platform
+   * batch prediction result will contain the entire input instance. Vertex AI
    * will not check if keys in the request are duplicates, so it is up to the
    * caller to ensure the keys are unique.
    * 
@@ -270,7 +270,7 @@ public java.lang.String getKey() { *
    * This field is only used for batch prediction. If a key is provided, the
    * batch prediction result will by mapped to this key. If omitted, then the
-   * batch prediction result will contain the entire input instance. AI Platform
+   * batch prediction result will contain the entire input instance. Vertex AI
    * will not check if keys in the request are duplicates, so it is up to the
    * caller to ensure the keys are unique.
    * 
@@ -920,7 +920,7 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { *
      * This field is only used for batch prediction. If a key is provided, the
      * batch prediction result will by mapped to this key. If omitted, then the
-     * batch prediction result will contain the entire input instance. AI Platform
+     * batch prediction result will contain the entire input instance. Vertex AI
      * will not check if keys in the request are duplicates, so it is up to the
      * caller to ensure the keys are unique.
      * 
@@ -946,7 +946,7 @@ public java.lang.String getKey() { *
      * This field is only used for batch prediction. If a key is provided, the
      * batch prediction result will by mapped to this key. If omitted, then the
-     * batch prediction result will contain the entire input instance. AI Platform
+     * batch prediction result will contain the entire input instance. Vertex AI
      * will not check if keys in the request are duplicates, so it is up to the
      * caller to ensure the keys are unique.
      * 
@@ -972,7 +972,7 @@ public com.google.protobuf.ByteString getKeyBytes() { *
      * This field is only used for batch prediction. If a key is provided, the
      * batch prediction result will by mapped to this key. If omitted, then the
-     * batch prediction result will contain the entire input instance. AI Platform
+     * batch prediction result will contain the entire input instance. Vertex AI
      * will not check if keys in the request are duplicates, so it is up to the
      * caller to ensure the keys are unique.
      * 
@@ -997,7 +997,7 @@ public Builder setKey(java.lang.String value) { *
      * This field is only used for batch prediction. If a key is provided, the
      * batch prediction result will by mapped to this key. If omitted, then the
-     * batch prediction result will contain the entire input instance. AI Platform
+     * batch prediction result will contain the entire input instance. Vertex AI
      * will not check if keys in the request are duplicates, so it is up to the
      * caller to ensure the keys are unique.
      * 
@@ -1018,7 +1018,7 @@ public Builder clearKey() { *
      * This field is only used for batch prediction. If a key is provided, the
      * batch prediction result will by mapped to this key. If omitted, then the
-     * batch prediction result will contain the entire input instance. AI Platform
+     * batch prediction result will contain the entire input instance. Vertex AI
      * will not check if keys in the request are duplicates, so it is up to the
      * caller to ensure the keys are unique.
      * 
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextExtractionPredictionInstanceOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextExtractionPredictionInstanceOrBuilder.java index b8aeface9..8253aa232 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextExtractionPredictionInstanceOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextExtractionPredictionInstanceOrBuilder.java @@ -83,7 +83,7 @@ public interface TextExtractionPredictionInstanceOrBuilder *
    * This field is only used for batch prediction. If a key is provided, the
    * batch prediction result will by mapped to this key. If omitted, then the
-   * batch prediction result will contain the entire input instance. AI Platform
+   * batch prediction result will contain the entire input instance. Vertex AI
    * will not check if keys in the request are duplicates, so it is up to the
    * caller to ensure the keys are unique.
    * 
@@ -99,7 +99,7 @@ public interface TextExtractionPredictionInstanceOrBuilder *
    * This field is only used for batch prediction. If a key is provided, the
    * batch prediction result will by mapped to this key. If omitted, then the
-   * batch prediction result will contain the entire input instance. AI Platform
+   * batch prediction result will contain the entire input instance. Vertex AI
    * will not check if keys in the request are duplicates, so it is up to the
    * caller to ensure the keys are unique.
    * 
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextExtractionPredictionInstanceProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextExtractionPredictionInstanceProto.java index 4b091b652..339e71fd7 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextExtractionPredictionInstanceProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextExtractionPredictionInstanceProto.java @@ -46,12 +46,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "stance\032\034google/api/annotations.proto\"S\n " + "TextExtractionPredictionInstance\022\017\n\007cont" + "ent\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\t\022\013\n\003key\030\003 \001(" - + "\tB\275\001\n6com.google.cloud.aiplatform.v1.sch" + + "\tB\342\002\n6com.google.cloud.aiplatform.v1.sch" + "ema.predict.instanceB%TextExtractionPred" + "ictionInstanceProtoP\001ZZgoogle.golang.org" + "/genproto/googleapis/cloud/aiplatform/v1" - + "/schema/predict/instance;instanceb\006proto" - + "3" + + "/schema/predict/instance;instance\252\0022Goog" + + "le.Cloud.AIPlatform.V1.Schema.Predict.In" + + "stance\312\0022Google\\Cloud\\AIPlatform\\V1\\Sche" + + "ma\\Predict\\Instance\352\0028Google::Cloud::AIP" + + "latform::V1::Schema::Predict::Instanceb\006" + + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextSentimentPredictionInstanceProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextSentimentPredictionInstanceProto.java index 3dc6da9bd..c221529b3 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextSentimentPredictionInstanceProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/TextSentimentPredictionInstanceProto.java @@ -45,12 +45,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e.cloud.aiplatform.v1.schema.predict.ins" + "tance\032\034google/api/annotations.proto\"E\n\037T" + "extSentimentPredictionInstance\022\017\n\007conten" - + "t\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\tB\274\001\n6com.googl" + + "t\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\tB\341\002\n6com.googl" + "e.cloud.aiplatform.v1.schema.predict.ins" + "tanceB$TextSentimentPredictionInstancePr" + "otoP\001ZZgoogle.golang.org/genproto/google" + "apis/cloud/aiplatform/v1/schema/predict/" - + "instance;instanceb\006proto3" + + "instance;instance\252\0022Google.Cloud.AIPlatf" + + "orm.V1.Schema.Predict.Instance\312\0022Google\\" + + "Cloud\\AIPlatform\\V1\\Schema\\Predict\\Insta" + + "nce\352\0028Google::Cloud::AIPlatform::V1::Sch" + + "ema::Predict::Instanceb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoActionRecognitionPredictionInstanceProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoActionRecognitionPredictionInstanceProto.java index dccd4a2c2..57f0cd62f 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoActionRecognitionPredictionInstanceProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoActionRecognitionPredictionInstanceProto.java @@ -47,12 +47,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "proto\"\204\001\n(VideoActionRecognitionPredicti" + "onInstance\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\020ti" - + "me_segment_end\030\004 \001(\tB\305\001\n6com.google.clou" + + "me_segment_end\030\004 \001(\tB\352\002\n6com.google.clou" + "d.aiplatform.v1.schema.predict.instanceB" + "-VideoActionRecognitionPredictionInstanc" + "eProtoP\001ZZgoogle.golang.org/genproto/goo" + "gleapis/cloud/aiplatform/v1/schema/predi" - + "ct/instance;instanceb\006proto3" + + "ct/instance;instance\252\0022Google.Cloud.AIPl" + + "atform.V1.Schema.Predict.Instance\312\0022Goog" + + "le\\Cloud\\AIPlatform\\V1\\Schema\\Predict\\In" + + "stance\352\0028Google::Cloud::AIPlatform::V1::" + + "Schema::Predict::Instanceb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoClassificationPredictionInstanceProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoClassificationPredictionInstanceProto.java index 42258c2db..ba60a4ad5 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoClassificationPredictionInstanceProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoClassificationPredictionInstanceProto.java @@ -47,12 +47,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "o\"\201\001\n%VideoClassificationPredictionInsta" + "nce\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_segm" - + "ent_end\030\004 \001(\tB\302\001\n6com.google.cloud.aipla" + + "ent_end\030\004 \001(\tB\347\002\n6com.google.cloud.aipla" + "tform.v1.schema.predict.instanceB*VideoC" + "lassificationPredictionInstanceProtoP\001ZZ" + "google.golang.org/genproto/googleapis/cl" + "oud/aiplatform/v1/schema/predict/instanc" - + "e;instanceb\006proto3" + + "e;instance\252\0022Google.Cloud.AIPlatform.V1." + + "Schema.Predict.Instance\312\0022Google\\Cloud\\A" + + "IPlatform\\V1\\Schema\\Predict\\Instance\352\0028G" + + "oogle::Cloud::AIPlatform::V1::Schema::Pr" + + "edict::Instanceb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoObjectTrackingPredictionInstanceProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoObjectTrackingPredictionInstanceProto.java index 244e9949b..86852f6b9 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoObjectTrackingPredictionInstanceProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/instance/VideoObjectTrackingPredictionInstanceProto.java @@ -47,12 +47,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "to\"\201\001\n%VideoObjectTrackingPredictionInst" + "ance\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_seg" - + "ment_end\030\004 \001(\tB\302\001\n6com.google.cloud.aipl" + + "ment_end\030\004 \001(\tB\347\002\n6com.google.cloud.aipl" + "atform.v1.schema.predict.instanceB*Video" + "ObjectTrackingPredictionInstanceProtoP\001Z" + "Zgoogle.golang.org/genproto/googleapis/c" + "loud/aiplatform/v1/schema/predict/instan" - + "ce;instanceb\006proto3" + + "ce;instance\252\0022Google.Cloud.AIPlatform.V1" + + ".Schema.Predict.Instance\312\0022Google\\Cloud\\" + + "AIPlatform\\V1\\Schema\\Predict\\Instance\352\0028" + + "Google::Cloud::AIPlatform::V1::Schema::P" + + "redict::Instanceb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageClassificationPredictionParamsProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageClassificationPredictionParamsProto.java index a7ed538ce..28d267052 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageClassificationPredictionParamsProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageClassificationPredictionParamsProto.java @@ -46,12 +46,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".params\032\034google/api/annotations.proto\"\\\n" + "#ImageClassificationPredictionParams\022\034\n\024" + "confidence_threshold\030\001 \001(\002\022\027\n\017max_predic" - + "tions\030\002 \001(\005B\272\001\n4com.google.cloud.aiplatf" + + "tions\030\002 \001(\005B\331\002\n4com.google.cloud.aiplatf" + "orm.v1.schema.predict.paramsB(ImageClass" + "ificationPredictionParamsProtoP\001ZVgoogle" + ".golang.org/genproto/googleapis/cloud/ai" + "platform/v1/schema/predict/params;params" - + "b\006proto3" + + "\252\0020Google.Cloud.AIPlatform.V1.Schema.Pre" + + "dict.Params\312\0020Google\\Cloud\\AIPlatform\\V1" + + "\\Schema\\Predict\\Params\352\0026Google::Cloud::" + + "AIPlatform::V1::Schema::Predict::Paramsb" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageObjectDetectionPredictionParamsProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageObjectDetectionPredictionParamsProto.java index 579990018..a59f63942 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageObjectDetectionPredictionParamsProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageObjectDetectionPredictionParamsProto.java @@ -46,12 +46,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ct.params\032\034google/api/annotations.proto\"" + "]\n$ImageObjectDetectionPredictionParams\022" + "\034\n\024confidence_threshold\030\001 \001(\002\022\027\n\017max_pre" - + "dictions\030\002 \001(\005B\273\001\n4com.google.cloud.aipl" + + "dictions\030\002 \001(\005B\332\002\n4com.google.cloud.aipl" + "atform.v1.schema.predict.paramsB)ImageOb" + "jectDetectionPredictionParamsProtoP\001ZVgo" + "ogle.golang.org/genproto/googleapis/clou" + "d/aiplatform/v1/schema/predict/params;pa" - + "ramsb\006proto3" + + "rams\252\0020Google.Cloud.AIPlatform.V1.Schema" + + ".Predict.Params\312\0020Google\\Cloud\\AIPlatfor" + + "m\\V1\\Schema\\Predict\\Params\352\0026Google::Clo" + + "ud::AIPlatform::V1::Schema::Predict::Par" + + "amsb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageSegmentationPredictionParamsProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageSegmentationPredictionParamsProto.java index f081ae7ef..0ed5f7772 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageSegmentationPredictionParamsProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/ImageSegmentationPredictionParamsProto.java @@ -45,12 +45,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gle.cloud.aiplatform.v1.schema.predict.p" + "arams\032\034google/api/annotations.proto\"A\n!I" + "mageSegmentationPredictionParams\022\034\n\024conf" - + "idence_threshold\030\001 \001(\002B\270\001\n4com.google.cl" + + "idence_threshold\030\001 \001(\002B\327\002\n4com.google.cl" + "oud.aiplatform.v1.schema.predict.paramsB" + "&ImageSegmentationPredictionParamsProtoP" + "\001ZVgoogle.golang.org/genproto/googleapis" + "/cloud/aiplatform/v1/schema/predict/para" - + "ms;paramsb\006proto3" + + "ms;params\252\0020Google.Cloud.AIPlatform.V1.S" + + "chema.Predict.Params\312\0020Google\\Cloud\\AIPl" + + "atform\\V1\\Schema\\Predict\\Params\352\0026Google" + + "::Cloud::AIPlatform::V1::Schema::Predict" + + "::Paramsb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoActionRecognitionPredictionParamsProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoActionRecognitionPredictionParamsProto.java index f686e3552..123fe1cb7 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoActionRecognitionPredictionParamsProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoActionRecognitionPredictionParamsProto.java @@ -46,12 +46,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "dict.params\032\034google/api/annotations.prot" + "o\"_\n&VideoActionRecognitionPredictionPar" + "ams\022\034\n\024confidence_threshold\030\001 \001(\002\022\027\n\017max" - + "_predictions\030\002 \001(\005B\275\001\n4com.google.cloud." + + "_predictions\030\002 \001(\005B\334\002\n4com.google.cloud." + "aiplatform.v1.schema.predict.paramsB+Vid" + "eoActionRecognitionPredictionParamsProto" + "P\001ZVgoogle.golang.org/genproto/googleapi" + "s/cloud/aiplatform/v1/schema/predict/par" - + "ams;paramsb\006proto3" + + "ams;params\252\0020Google.Cloud.AIPlatform.V1." + + "Schema.Predict.Params\312\0020Google\\Cloud\\AIP" + + "latform\\V1\\Schema\\Predict\\Params\352\0026Googl" + + "e::Cloud::AIPlatform::V1::Schema::Predic" + + "t::Paramsb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoClassificationPredictionParams.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoClassificationPredictionParams.java index e1ab87ba2..4611b8ece 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoClassificationPredictionParams.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoClassificationPredictionParams.java @@ -179,7 +179,7 @@ public int getMaxPredictions() { * * *
-   * Set to true to request segment-level classification. AI Platform returns
+   * Set to true to request segment-level classification. Vertex AI returns
    * labels and their confidence scores for the entire time segment of the
    * video that user specified in the input instance.
    * Default value is true
@@ -200,9 +200,9 @@ public boolean getSegmentClassification() {
    *
    *
    * 
-   * Set to true to request shot-level classification. AI Platform determines
+   * Set to true to request shot-level classification. Vertex AI determines
    * the boundaries for each camera shot in the entire time segment of the
-   * video that user specified in the input instance. AI Platform then
+   * video that user specified in the input instance. Vertex AI then
    * returns labels and their confidence scores for each detected shot, along
    * with the start and end time of the shot.
    * WARNING: Model evaluation is not done for this classification type,
@@ -227,7 +227,7 @@ public boolean getShotClassification() {
    *
    * 
    * Set to true to request classification for a video at one-second intervals.
-   * AI Platform returns labels and their confidence scores for each second of
+   * Vertex AI returns labels and their confidence scores for each second of
    * the entire time segment of the video that user specified in the input
    * WARNING: Model evaluation is not done for this classification type, the
    * quality of it depends on the training data, but there are no metrics
@@ -791,7 +791,7 @@ public Builder clearMaxPredictions() {
      *
      *
      * 
-     * Set to true to request segment-level classification. AI Platform returns
+     * Set to true to request segment-level classification. Vertex AI returns
      * labels and their confidence scores for the entire time segment of the
      * video that user specified in the input instance.
      * Default value is true
@@ -809,7 +809,7 @@ public boolean getSegmentClassification() {
      *
      *
      * 
-     * Set to true to request segment-level classification. AI Platform returns
+     * Set to true to request segment-level classification. Vertex AI returns
      * labels and their confidence scores for the entire time segment of the
      * video that user specified in the input instance.
      * Default value is true
@@ -830,7 +830,7 @@ public Builder setSegmentClassification(boolean value) {
      *
      *
      * 
-     * Set to true to request segment-level classification. AI Platform returns
+     * Set to true to request segment-level classification. Vertex AI returns
      * labels and their confidence scores for the entire time segment of the
      * video that user specified in the input instance.
      * Default value is true
@@ -852,9 +852,9 @@ public Builder clearSegmentClassification() {
      *
      *
      * 
-     * Set to true to request shot-level classification. AI Platform determines
+     * Set to true to request shot-level classification. Vertex AI determines
      * the boundaries for each camera shot in the entire time segment of the
-     * video that user specified in the input instance. AI Platform then
+     * video that user specified in the input instance. Vertex AI then
      * returns labels and their confidence scores for each detected shot, along
      * with the start and end time of the shot.
      * WARNING: Model evaluation is not done for this classification type,
@@ -875,9 +875,9 @@ public boolean getShotClassification() {
      *
      *
      * 
-     * Set to true to request shot-level classification. AI Platform determines
+     * Set to true to request shot-level classification. Vertex AI determines
      * the boundaries for each camera shot in the entire time segment of the
-     * video that user specified in the input instance. AI Platform then
+     * video that user specified in the input instance. Vertex AI then
      * returns labels and their confidence scores for each detected shot, along
      * with the start and end time of the shot.
      * WARNING: Model evaluation is not done for this classification type,
@@ -901,9 +901,9 @@ public Builder setShotClassification(boolean value) {
      *
      *
      * 
-     * Set to true to request shot-level classification. AI Platform determines
+     * Set to true to request shot-level classification. Vertex AI determines
      * the boundaries for each camera shot in the entire time segment of the
-     * video that user specified in the input instance. AI Platform then
+     * video that user specified in the input instance. Vertex AI then
      * returns labels and their confidence scores for each detected shot, along
      * with the start and end time of the shot.
      * WARNING: Model evaluation is not done for this classification type,
@@ -929,7 +929,7 @@ public Builder clearShotClassification() {
      *
      * 
      * Set to true to request classification for a video at one-second intervals.
-     * AI Platform returns labels and their confidence scores for each second of
+     * Vertex AI returns labels and their confidence scores for each second of
      * the entire time segment of the video that user specified in the input
      * WARNING: Model evaluation is not done for this classification type, the
      * quality of it depends on the training data, but there are no metrics
@@ -949,7 +949,7 @@ public boolean getOneSecIntervalClassification() {
      *
      * 
      * Set to true to request classification for a video at one-second intervals.
-     * AI Platform returns labels and their confidence scores for each second of
+     * Vertex AI returns labels and their confidence scores for each second of
      * the entire time segment of the video that user specified in the input
      * WARNING: Model evaluation is not done for this classification type, the
      * quality of it depends on the training data, but there are no metrics
@@ -972,7 +972,7 @@ public Builder setOneSecIntervalClassification(boolean value) {
      *
      * 
      * Set to true to request classification for a video at one-second intervals.
-     * AI Platform returns labels and their confidence scores for each second of
+     * Vertex AI returns labels and their confidence scores for each second of
      * the entire time segment of the video that user specified in the input
      * WARNING: Model evaluation is not done for this classification type, the
      * quality of it depends on the training data, but there are no metrics
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoClassificationPredictionParamsOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoClassificationPredictionParamsOrBuilder.java
index c2b27e58f..125401d65 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoClassificationPredictionParamsOrBuilder.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoClassificationPredictionParamsOrBuilder.java
@@ -56,7 +56,7 @@ public interface VideoClassificationPredictionParamsOrBuilder
    *
    *
    * 
-   * Set to true to request segment-level classification. AI Platform returns
+   * Set to true to request segment-level classification. Vertex AI returns
    * labels and their confidence scores for the entire time segment of the
    * video that user specified in the input instance.
    * Default value is true
@@ -72,9 +72,9 @@ public interface VideoClassificationPredictionParamsOrBuilder
    *
    *
    * 
-   * Set to true to request shot-level classification. AI Platform determines
+   * Set to true to request shot-level classification. Vertex AI determines
    * the boundaries for each camera shot in the entire time segment of the
-   * video that user specified in the input instance. AI Platform then
+   * video that user specified in the input instance. Vertex AI then
    * returns labels and their confidence scores for each detected shot, along
    * with the start and end time of the shot.
    * WARNING: Model evaluation is not done for this classification type,
@@ -94,7 +94,7 @@ public interface VideoClassificationPredictionParamsOrBuilder
    *
    * 
    * Set to true to request classification for a video at one-second intervals.
-   * AI Platform returns labels and their confidence scores for each second of
+   * Vertex AI returns labels and their confidence scores for each second of
    * the entire time segment of the video that user specified in the input
    * WARNING: Model evaluation is not done for this classification type, the
    * quality of it depends on the training data, but there are no metrics
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoClassificationPredictionParamsProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoClassificationPredictionParamsProto.java
index 486ea761e..fca75c0d2 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoClassificationPredictionParamsProto.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoClassificationPredictionParamsProto.java
@@ -48,12 +48,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + "\024confidence_threshold\030\001 \001(\002\022\027\n\017max_predi"
           + "ctions\030\002 \001(\005\022\036\n\026segment_classification\030\003"
           + " \001(\010\022\033\n\023shot_classification\030\004 \001(\010\022\'\n\037one"
-          + "_sec_interval_classification\030\005 \001(\010B\272\001\n4c"
+          + "_sec_interval_classification\030\005 \001(\010B\331\002\n4c"
           + "om.google.cloud.aiplatform.v1.schema.pre"
           + "dict.paramsB(VideoClassificationPredicti"
           + "onParamsProtoP\001ZVgoogle.golang.org/genpr"
           + "oto/googleapis/cloud/aiplatform/v1/schem"
-          + "a/predict/params;paramsb\006proto3"
+          + "a/predict/params;params\252\0020Google.Cloud.A"
+          + "IPlatform.V1.Schema.Predict.Params\312\0020Goo"
+          + "gle\\Cloud\\AIPlatform\\V1\\Schema\\Predict\\P"
+          + "arams\352\0026Google::Cloud::AIPlatform::V1::S"
+          + "chema::Predict::Paramsb\006proto3"
     };
     descriptor =
         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoObjectTrackingPredictionParamsProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoObjectTrackingPredictionParamsProto.java
index 11b7fd7d4..5890b41c5 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoObjectTrackingPredictionParamsProto.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/params/VideoObjectTrackingPredictionParamsProto.java
@@ -47,11 +47,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + "\n#VideoObjectTrackingPredictionParams\022\034\n"
           + "\024confidence_threshold\030\001 \001(\002\022\027\n\017max_predi"
           + "ctions\030\002 \001(\005\022\035\n\025min_bounding_box_size\030\003 "
-          + "\001(\002B\272\001\n4com.google.cloud.aiplatform.v1.s"
+          + "\001(\002B\331\002\n4com.google.cloud.aiplatform.v1.s"
           + "chema.predict.paramsB(VideoObjectTrackin"
           + "gPredictionParamsProtoP\001ZVgoogle.golang."
           + "org/genproto/googleapis/cloud/aiplatform"
-          + "/v1/schema/predict/params;paramsb\006proto3"
+          + "/v1/schema/predict/params;params\252\0020Googl"
+          + "e.Cloud.AIPlatform.V1.Schema.Predict.Par"
+          + "ams\312\0020Google\\Cloud\\AIPlatform\\V1\\Schema\\"
+          + "Predict\\Params\352\0026Google::Cloud::AIPlatfo"
+          + "rm::V1::Schema::Predict::Paramsb\006proto3"
     };
     descriptor =
         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ClassificationPredictionResult.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ClassificationPredictionResult.java
index d34f39d3f..fbed54d8f 100644
--- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ClassificationPredictionResult.java
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ClassificationPredictionResult.java
@@ -184,8 +184,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    *
    * 
-   * The resource IDs of the AnnotationSpecs that had been identified, ordered
-   * by the confidence score descendingly.
+   * The resource IDs of the AnnotationSpecs that had been identified.
    * 
* * repeated int64 ids = 1; @@ -200,8 +199,7 @@ public java.util.List getIdsList() { * * *
-   * The resource IDs of the AnnotationSpecs that had been identified, ordered
-   * by the confidence score descendingly.
+   * The resource IDs of the AnnotationSpecs that had been identified.
    * 
* * repeated int64 ids = 1; @@ -215,8 +213,7 @@ public int getIdsCount() { * * *
-   * The resource IDs of the AnnotationSpecs that had been identified, ordered
-   * by the confidence score descendingly.
+   * The resource IDs of the AnnotationSpecs that had been identified.
    * 
* * repeated int64 ids = 1; @@ -827,8 +824,7 @@ private void ensureIdsIsMutable() { * * *
-     * The resource IDs of the AnnotationSpecs that had been identified, ordered
-     * by the confidence score descendingly.
+     * The resource IDs of the AnnotationSpecs that had been identified.
      * 
* * repeated int64 ids = 1; @@ -842,8 +838,7 @@ public java.util.List getIdsList() { * * *
-     * The resource IDs of the AnnotationSpecs that had been identified, ordered
-     * by the confidence score descendingly.
+     * The resource IDs of the AnnotationSpecs that had been identified.
      * 
* * repeated int64 ids = 1; @@ -857,8 +852,7 @@ public int getIdsCount() { * * *
-     * The resource IDs of the AnnotationSpecs that had been identified, ordered
-     * by the confidence score descendingly.
+     * The resource IDs of the AnnotationSpecs that had been identified.
      * 
* * repeated int64 ids = 1; @@ -873,8 +867,7 @@ public long getIds(int index) { * * *
-     * The resource IDs of the AnnotationSpecs that had been identified, ordered
-     * by the confidence score descendingly.
+     * The resource IDs of the AnnotationSpecs that had been identified.
      * 
* * repeated int64 ids = 1; @@ -893,8 +886,7 @@ public Builder setIds(int index, long value) { * * *
-     * The resource IDs of the AnnotationSpecs that had been identified, ordered
-     * by the confidence score descendingly.
+     * The resource IDs of the AnnotationSpecs that had been identified.
      * 
* * repeated int64 ids = 1; @@ -912,8 +904,7 @@ public Builder addIds(long value) { * * *
-     * The resource IDs of the AnnotationSpecs that had been identified, ordered
-     * by the confidence score descendingly.
+     * The resource IDs of the AnnotationSpecs that had been identified.
      * 
* * repeated int64 ids = 1; @@ -931,8 +922,7 @@ public Builder addAllIds(java.lang.Iterable values) { * * *
-     * The resource IDs of the AnnotationSpecs that had been identified, ordered
-     * by the confidence score descendingly.
+     * The resource IDs of the AnnotationSpecs that had been identified.
      * 
* * repeated int64 ids = 1; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ClassificationPredictionResultOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ClassificationPredictionResultOrBuilder.java index 491faa3c9..73e814a44 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ClassificationPredictionResultOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ClassificationPredictionResultOrBuilder.java @@ -27,8 +27,7 @@ public interface ClassificationPredictionResultOrBuilder * * *
-   * The resource IDs of the AnnotationSpecs that had been identified, ordered
-   * by the confidence score descendingly.
+   * The resource IDs of the AnnotationSpecs that had been identified.
    * 
* * repeated int64 ids = 1; @@ -40,8 +39,7 @@ public interface ClassificationPredictionResultOrBuilder * * *
-   * The resource IDs of the AnnotationSpecs that had been identified, ordered
-   * by the confidence score descendingly.
+   * The resource IDs of the AnnotationSpecs that had been identified.
    * 
* * repeated int64 ids = 1; @@ -53,8 +51,7 @@ public interface ClassificationPredictionResultOrBuilder * * *
-   * The resource IDs of the AnnotationSpecs that had been identified, ordered
-   * by the confidence score descendingly.
+   * The resource IDs of the AnnotationSpecs that had been identified.
    * 
* * repeated int64 ids = 1; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ClassificationPredictionResultProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ClassificationPredictionResultProto.java index 176d646ce..71d101e23 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ClassificationPredictionResultProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ClassificationPredictionResultProto.java @@ -46,12 +46,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "rediction\032\034google/api/annotations.proto\"" + "Y\n\036ClassificationPredictionResult\022\013\n\003ids" + "\030\001 \003(\003\022\025\n\rdisplay_names\030\002 \003(\t\022\023\n\013confide" - + "nces\030\003 \003(\002B\301\001\n8com.google.cloud.aiplatfo" + + "nces\030\003 \003(\002B\354\002\n8com.google.cloud.aiplatfo" + "rm.v1.schema.predict.predictionB#Classif" + "icationPredictionResultProtoP\001Z^google.g" + "olang.org/genproto/googleapis/cloud/aipl" + "atform/v1/schema/predict/prediction;pred" - + "ictionb\006proto3" + + "iction\252\0024Google.Cloud.AIPlatform.V1.Sche" + + "ma.Predict.Prediction\312\0024Google\\Cloud\\AIP" + + "latform\\V1\\Schema\\Predict\\Prediction\352\002:G" + + "oogle::Cloud::AIPlatform::V1::Schema::Pr" + + "edict::Predictionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ImageObjectDetectionPredictionResultProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ImageObjectDetectionPredictionResultProto.java index c888cc6e4..26ba07f5f 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ImageObjectDetectionPredictionResultProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ImageObjectDetectionPredictionResultProto.java @@ -48,12 +48,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\n$ImageObjectDetectionPredictionResult\022\013" + "\n\003ids\030\001 \003(\003\022\025\n\rdisplay_names\030\002 \003(\t\022\023\n\013co" + "nfidences\030\003 \003(\002\022*\n\006bboxes\030\004 \003(\0132\032.google" - + ".protobuf.ListValueB\307\001\n8com.google.cloud" + + ".protobuf.ListValueB\362\002\n8com.google.cloud" + ".aiplatform.v1.schema.predict.prediction" + "B)ImageObjectDetectionPredictionResultPr" + "otoP\001Z^google.golang.org/genproto/google" + "apis/cloud/aiplatform/v1/schema/predict/" - + "prediction;predictionb\006proto3" + + "prediction;prediction\252\0024Google.Cloud.AIP" + + "latform.V1.Schema.Predict.Prediction\312\0024G" + + "oogle\\Cloud\\AIPlatform\\V1\\Schema\\Predict" + + "\\Prediction\352\002:Google::Cloud::AIPlatform:" + + ":V1::Schema::Predict::Predictionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ImageSegmentationPredictionResultProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ImageSegmentationPredictionResultProto.java index 2881820be..480373d75 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ImageSegmentationPredictionResultProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/ImageSegmentationPredictionResultProto.java @@ -46,12 +46,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ct.prediction\032\034google/api/annotations.pr" + "oto\"S\n!ImageSegmentationPredictionResult" + "\022\025\n\rcategory_mask\030\001 \001(\t\022\027\n\017confidence_ma" - + "sk\030\002 \001(\tB\304\001\n8com.google.cloud.aiplatform" + + "sk\030\002 \001(\tB\357\002\n8com.google.cloud.aiplatform" + ".v1.schema.predict.predictionB&ImageSegm" + "entationPredictionResultProtoP\001Z^google." + "golang.org/genproto/googleapis/cloud/aip" + "latform/v1/schema/predict/prediction;pre" - + "dictionb\006proto3" + + "diction\252\0024Google.Cloud.AIPlatform.V1.Sch" + + "ema.Predict.Prediction\312\0024Google\\Cloud\\AI" + + "Platform\\V1\\Schema\\Predict\\Prediction\352\002:" + + "Google::Cloud::AIPlatform::V1::Schema::P" + + "redict::Predictionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TabularClassificationPredictionResultProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TabularClassificationPredictionResultProto.java index 6820220e2..b5334795a 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TabularClassificationPredictionResultProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TabularClassificationPredictionResultProto.java @@ -46,12 +46,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "redict.prediction\032\034google/api/annotation" + "s.proto\"H\n%TabularClassificationPredicti" + "onResult\022\017\n\007classes\030\001 \003(\t\022\016\n\006scores\030\002 \003(" - + "\002B\310\001\n8com.google.cloud.aiplatform.v1.sch" + + "\002B\363\002\n8com.google.cloud.aiplatform.v1.sch" + "ema.predict.predictionB*TabularClassific" + "ationPredictionResultProtoP\001Z^google.gol" + "ang.org/genproto/googleapis/cloud/aiplat" + "form/v1/schema/predict/prediction;predic" - + "tionb\006proto3" + + "tion\252\0024Google.Cloud.AIPlatform.V1.Schema" + + ".Predict.Prediction\312\0024Google\\Cloud\\AIPla" + + "tform\\V1\\Schema\\Predict\\Prediction\352\002:Goo" + + "gle::Cloud::AIPlatform::V1::Schema::Pred" + + "ict::Predictionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TabularRegressionPredictionResultProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TabularRegressionPredictionResultProto.java index 2b530712e..af21cee98 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TabularRegressionPredictionResultProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TabularRegressionPredictionResultProto.java @@ -46,12 +46,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ct.prediction\032\034google/api/annotations.pr" + "oto\"\\\n!TabularRegressionPredictionResult" + "\022\r\n\005value\030\001 \001(\002\022\023\n\013lower_bound\030\002 \001(\002\022\023\n\013" - + "upper_bound\030\003 \001(\002B\304\001\n8com.google.cloud.a" + + "upper_bound\030\003 \001(\002B\357\002\n8com.google.cloud.a" + "iplatform.v1.schema.predict.predictionB&" + "TabularRegressionPredictionResultProtoP\001" + "Z^google.golang.org/genproto/googleapis/" + "cloud/aiplatform/v1/schema/predict/predi" - + "ction;predictionb\006proto3" + + "ction;prediction\252\0024Google.Cloud.AIPlatfo" + + "rm.V1.Schema.Predict.Prediction\312\0024Google" + + "\\Cloud\\AIPlatform\\V1\\Schema\\Predict\\Pred" + + "iction\352\002:Google::Cloud::AIPlatform::V1::" + + "Schema::Predict::Predictionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TextExtractionPredictionResultProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TextExtractionPredictionResultProto.java index 546d8be44..f6689eeac 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TextExtractionPredictionResultProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TextExtractionPredictionResultProto.java @@ -48,12 +48,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ds\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_segm" + "ent_end_offsets\030\004 \003(\003\022\023\n\013confidences\030\005 \003" - + "(\002B\301\001\n8com.google.cloud.aiplatform.v1.sc" + + "(\002B\354\002\n8com.google.cloud.aiplatform.v1.sc" + "hema.predict.predictionB#TextExtractionP" + "redictionResultProtoP\001Z^google.golang.or" + "g/genproto/googleapis/cloud/aiplatform/v" - + "1/schema/predict/prediction;predictionb\006" - + "proto3" + + "1/schema/predict/prediction;prediction\252\002" + + "4Google.Cloud.AIPlatform.V1.Schema.Predi" + + "ct.Prediction\312\0024Google\\Cloud\\AIPlatform\\" + + "V1\\Schema\\Predict\\Prediction\352\002:Google::C" + + "loud::AIPlatform::V1::Schema::Predict::P" + + "redictionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TextSentimentPredictionResultProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TextSentimentPredictionResultProto.java index e32494fe3..2bfad7ab8 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TextSentimentPredictionResultProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/TextSentimentPredictionResultProto.java @@ -45,12 +45,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gle.cloud.aiplatform.v1.schema.predict.p" + "rediction\032\034google/api/annotations.proto\"" + "2\n\035TextSentimentPredictionResult\022\021\n\tsent" - + "iment\030\001 \001(\005B\300\001\n8com.google.cloud.aiplatf" + + "iment\030\001 \001(\005B\353\002\n8com.google.cloud.aiplatf" + "orm.v1.schema.predict.predictionB\"TextSe" + "ntimentPredictionResultProtoP\001Z^google.g" + "olang.org/genproto/googleapis/cloud/aipl" + "atform/v1/schema/predict/prediction;pred" - + "ictionb\006proto3" + + "iction\252\0024Google.Cloud.AIPlatform.V1.Sche" + + "ma.Predict.Prediction\312\0024Google\\Cloud\\AIP" + + "latform\\V1\\Schema\\Predict\\Prediction\352\002:G" + + "oogle::Cloud::AIPlatform::V1::Schema::Pr" + + "edict::Predictionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoActionRecognitionPredictionResultProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoActionRecognitionPredictionResultProto.java index 87a7e6f90..d6d6d4a13 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoActionRecognitionPredictionResultProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoActionRecognitionPredictionResultProto.java @@ -51,12 +51,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "egment_start\030\004 \001(\0132\031.google.protobuf.Dur" + "ation\0223\n\020time_segment_end\030\005 \001(\0132\031.google" + ".protobuf.Duration\022/\n\nconfidence\030\006 \001(\0132\033" - + ".google.protobuf.FloatValueB\311\001\n8com.goog" + + ".google.protobuf.FloatValueB\364\002\n8com.goog" + "le.cloud.aiplatform.v1.schema.predict.pr" + "edictionB+VideoActionRecognitionPredicti" + "onResultProtoP\001Z^google.golang.org/genpr" + "oto/googleapis/cloud/aiplatform/v1/schem" - + "a/predict/prediction;predictionb\006proto3" + + "a/predict/prediction;prediction\252\0024Google" + + ".Cloud.AIPlatform.V1.Schema.Predict.Pred" + + "iction\312\0024Google\\Cloud\\AIPlatform\\V1\\Sche" + + "ma\\Predict\\Prediction\352\002:Google::Cloud::A" + + "IPlatform::V1::Schema::Predict::Predicti" + + "onb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoClassificationPredictionResultProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoClassificationPredictionResultProto.java index 50ca407b7..3b88e563f 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoClassificationPredictionResultProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoClassificationPredictionResultProto.java @@ -51,13 +51,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022time_segment_start\030\004 \001(\0132\031.google.proto" + "buf.Duration\0223\n\020time_segment_end\030\005 \001(\0132\031" + ".google.protobuf.Duration\022/\n\nconfidence\030" - + "\006 \001(\0132\033.google.protobuf.FloatValueB\306\001\n8c" + + "\006 \001(\0132\033.google.protobuf.FloatValueB\361\002\n8c" + "om.google.cloud.aiplatform.v1.schema.pre" + "dict.predictionB(VideoClassificationPred" + "ictionResultProtoP\001Z^google.golang.org/g" + "enproto/googleapis/cloud/aiplatform/v1/s" - + "chema/predict/prediction;predictionb\006pro" - + "to3" + + "chema/predict/prediction;prediction\252\0024Go" + + "ogle.Cloud.AIPlatform.V1.Schema.Predict." + + "Prediction\312\0024Google\\Cloud\\AIPlatform\\V1\\" + + "Schema\\Predict\\Prediction\352\002:Google::Clou" + + "d::AIPlatform::V1::Schema::Predict::Pred" + + "ictionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoObjectTrackingPredictionResultProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoObjectTrackingPredictionResultProto.java index ea1041140..32280706b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoObjectTrackingPredictionResultProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/predict/prediction/VideoObjectTrackingPredictionResultProto.java @@ -64,12 +64,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "x_max\030\003 \001(\0132\033.google.protobuf.FloatValue" + "\022*\n\005y_min\030\004 \001(\0132\033.google.protobuf.FloatV" + "alue\022*\n\005y_max\030\005 \001(\0132\033.google.protobuf.Fl" - + "oatValueB\306\001\n8com.google.cloud.aiplatform" + + "oatValueB\361\002\n8com.google.cloud.aiplatform" + ".v1.schema.predict.predictionB(VideoObje" + "ctTrackingPredictionResultProtoP\001Z^googl" + "e.golang.org/genproto/googleapis/cloud/a" + "iplatform/v1/schema/predict/prediction;p" - + "redictionb\006proto3" + + "rediction\252\0024Google.Cloud.AIPlatform.V1.S" + + "chema.Predict.Prediction\312\0024Google\\Cloud\\" + + "AIPlatform\\V1\\Schema\\Predict\\Prediction\352" + + "\002:Google::Cloud::AIPlatform::V1::Schema:" + + ":Predict::Predictionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLImageClassificationProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLImageClassificationProto.java index 0f0167e84..74cbf09b4 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLImageClassificationProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLImageClassificationProto.java @@ -77,13 +77,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "MlImageClassificationMetadata.Successful" + "StopReason\"g\n\024SuccessfulStopReason\022&\n\"SU" + "CCESSFUL_STOP_REASON_UNSPECIFIED\020\000\022\022\n\016BU" - + "DGET_REACHED\020\001\022\023\n\017MODEL_CONVERGED\020\002B\304\001\n<" + + "DGET_REACHED\020\001\022\023\n\017MODEL_CONVERGED\020\002B\373\002\n<" + "com.google.cloud.aiplatform.v1.schema.tr" + "ainingjob.definitionB\036AutoMLImageClassif" + "icationProtoP\001Zbgoogle.golang.org/genpro" + "to/googleapis/cloud/aiplatform/v1/schema" - + "/trainingjob/definition;definitionb\006prot" - + "o3" + + "/trainingjob/definition;definition\252\0028Goo" + + "gle.Cloud.AIPlatform.V1.Schema.TrainingJ" + + "ob.Definition\312\0028Google\\Cloud\\AIPlatform\\" + + "V1\\Schema\\TrainingJob\\Definition\352\002>Googl" + + "e::Cloud::AIPlatform::V1::Schema::Traini" + + "ngJob::Definitionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLImageObjectDetectionProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLImageObjectDetectionProto.java index e535fde9e..74ab97db5 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLImageObjectDetectionProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLImageObjectDetectionProto.java @@ -78,12 +78,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "essfulStopReason\"g\n\024SuccessfulStopReason" + "\022&\n\"SUCCESSFUL_STOP_REASON_UNSPECIFIED\020\000" + "\022\022\n\016BUDGET_REACHED\020\001\022\023\n\017MODEL_CONVERGED\020" - + "\002B\305\001\nGoogle::Cloud::AIPlatform::V1::Schema:" + + ":TrainingJob::Definitionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLImageSegmentationProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLImageSegmentationProto.java index 4a1fccb58..5eb4d3e25 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLImageSegmentationProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLImageSegmentationProto.java @@ -74,12 +74,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ageSegmentationMetadata.SuccessfulStopRe" + "ason\"g\n\024SuccessfulStopReason\022&\n\"SUCCESSF" + "UL_STOP_REASON_UNSPECIFIED\020\000\022\022\n\016BUDGET_R" - + "EACHED\020\001\022\023\n\017MODEL_CONVERGED\020\002B\302\001\nGoogle::Cloud" + + "::AIPlatform::V1::Schema::TrainingJob::D" + + "efinitionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLTablesProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLTablesProto.java index df95607ed..6d6aa279c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLTablesProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLTablesProto.java @@ -87,83 +87,90 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\nLgoogle/cloud/aiplatform/v1/schema/trai" + "ningjob/definition/automl_tables.proto\0228" + "google.cloud.aiplatform.v1.schema.traini" - + "ngjob.definition\032agoogle/cloud/aiplatfor" - + "m/v1/schema/trainingjob/definition/expor" - + "t_evaluated_data_items_config.proto\032\034goo" - + "gle/api/annotations.proto\"\316\001\n\014AutoMlTabl" - + "es\022\\\n\006inputs\030\001 \001(\0132L.google.cloud.aiplat" - + "form.v1.schema.trainingjob.definition.Au" - + "toMlTablesInputs\022`\n\010metadata\030\002 \001(\0132N.goo" - + "gle.cloud.aiplatform.v1.schema.trainingj" - + "ob.definition.AutoMlTablesMetadata\"\324\021\n\022A" - + "utoMlTablesInputs\022-\n#optimization_object" - + "ive_recall_value\030\005 \001(\002H\000\0220\n&optimization" - + "_objective_precision_value\030\006 \001(\002H\000\022\027\n\017pr" - + "ediction_type\030\001 \001(\t\022\025\n\rtarget_column\030\002 \001" - + "(\t\022t\n\017transformations\030\003 \003(\0132[.google.clo" + + "ngjob.definition\032\037google/api/field_behav" + + "ior.proto\032agoogle/cloud/aiplatform/v1/sc" + + "hema/trainingjob/definition/export_evalu" + + "ated_data_items_config.proto\032\034google/api" + + "/annotations.proto\"\316\001\n\014AutoMlTables\022\\\n\006i" + + "nputs\030\001 \001(\0132L.google.cloud.aiplatform.v1" + + ".schema.trainingjob.definition.AutoMlTab" + + "lesInputs\022`\n\010metadata\030\002 \001(\0132N.google.clo" + "ud.aiplatform.v1.schema.trainingjob.defi" - + "nition.AutoMlTablesInputs.Transformation" - + "\022\036\n\026optimization_objective\030\004 \001(\t\022%\n\035trai" - + "n_budget_milli_node_hours\030\007 \001(\003\022\036\n\026disab" - + "le_early_stopping\030\010 \001(\010\022\032\n\022weight_column" - + "_name\030\t \001(\t\022\204\001\n\"export_evaluated_data_it" - + "ems_config\030\n \001(\0132X.google.cloud.aiplatfo" - + "rm.v1.schema.trainingjob.definition.Expo" - + "rtEvaluatedDataItemsConfig\032\200\r\n\016Transform" - + "ation\022~\n\004auto\030\001 \001(\0132n.google.cloud.aipla" - + "tform.v1.schema.trainingjob.definition.A" - + "utoMlTablesInputs.Transformation.AutoTra" - + "nsformationH\000\022\204\001\n\007numeric\030\002 \001(\0132q.google" - + ".cloud.aiplatform.v1.schema.trainingjob." - + "definition.AutoMlTablesInputs.Transforma" - + "tion.NumericTransformationH\000\022\214\001\n\013categor" - + "ical\030\003 \001(\0132u.google.cloud.aiplatform.v1." - + "schema.trainingjob.definition.AutoMlTabl" - + "esInputs.Transformation.CategoricalTrans" - + "formationH\000\022\210\001\n\ttimestamp\030\004 \001(\0132s.google" - + ".cloud.aiplatform.v1.schema.trainingjob." - + "definition.AutoMlTablesInputs.Transforma" - + "tion.TimestampTransformationH\000\022~\n\004text\030\005" + + "nition.AutoMlTablesMetadata\"\364\021\n\022AutoMlTa" + + "blesInputs\022-\n#optimization_objective_rec" + + "all_value\030\005 \001(\002H\000\0220\n&optimization_object" + + "ive_precision_value\030\006 \001(\002H\000\022\027\n\017predictio" + + "n_type\030\001 \001(\t\022\025\n\rtarget_column\030\002 \001(\t\022t\n\017t" + + "ransformations\030\003 \003(\0132[.google.cloud.aipl" + + "atform.v1.schema.trainingjob.definition." + + "AutoMlTablesInputs.Transformation\022\036\n\026opt" + + "imization_objective\030\004 \001(\t\022%\n\035train_budge" + + "t_milli_node_hours\030\007 \001(\003\022\036\n\026disable_earl" + + "y_stopping\030\010 \001(\010\022\032\n\022weight_column_name\030\t" + + " \001(\t\022\204\001\n\"export_evaluated_data_items_con" + + "fig\030\n \001(\0132X.google.cloud.aiplatform.v1.s" + + "chema.trainingjob.definition.ExportEvalu" + + "atedDataItemsConfig\022\036\n\026additional_experi" + + "ments\030\013 \003(\t\032\200\r\n\016Transformation\022~\n\004auto\030\001" + " \001(\0132n.google.cloud.aiplatform.v1.schema" + ".trainingjob.definition.AutoMlTablesInpu" - + "ts.Transformation.TextTransformationH\000\022\222" - + "\001\n\020repeated_numeric\030\006 \001(\0132v.google.cloud" - + ".aiplatform.v1.schema.trainingjob.defini" - + "tion.AutoMlTablesInputs.Transformation.N" - + "umericArrayTransformationH\000\022\232\001\n\024repeated" - + "_categorical\030\007 \001(\0132z.google.cloud.aiplat" - + "form.v1.schema.trainingjob.definition.Au" - + "toMlTablesInputs.Transformation.Categori" - + "calArrayTransformationH\000\022\214\001\n\rrepeated_te" - + "xt\030\010 \001(\0132s.google.cloud.aiplatform.v1.sc" - + "hema.trainingjob.definition.AutoMlTables" - + "Inputs.Transformation.TextArrayTransform" - + "ationH\000\032)\n\022AutoTransformation\022\023\n\013column_" - + "name\030\001 \001(\t\032L\n\025NumericTransformation\022\023\n\013c" - + "olumn_name\030\001 \001(\t\022\036\n\026invalid_values_allow" - + "ed\030\002 \001(\010\0320\n\031CategoricalTransformation\022\023\n" - + "\013column_name\030\001 \001(\t\032c\n\027TimestampTransform" - + "ation\022\023\n\013column_name\030\001 \001(\t\022\023\n\013time_forma" - + "t\030\002 \001(\t\022\036\n\026invalid_values_allowed\030\003 \001(\010\032" - + ")\n\022TextTransformation\022\023\n\013column_name\030\001 \001" - + "(\t\032Q\n\032NumericArrayTransformation\022\023\n\013colu" - + "mn_name\030\001 \001(\t\022\036\n\026invalid_values_allowed\030" - + "\002 \001(\010\0325\n\036CategoricalArrayTransformation\022" - + "\023\n\013column_name\030\001 \001(\t\032.\n\027TextArrayTransfo" - + "rmation\022\023\n\013column_name\030\001 \001(\tB\027\n\025transfor" - + "mation_detailB*\n(additional_optimization" - + "_objective_config\";\n\024AutoMlTablesMetadat" - + "a\022#\n\033train_cost_milli_node_hours\030\001 \001(\003B\267" - + "\001\nGoogle::Cloud::AIPlatform::V1:" + + ":Schema::TrainingJob::Definitionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), com.google.cloud.aiplatform.v1.schema.trainingjob.definition .ExportEvaluatedDataItemsConfigProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), @@ -192,6 +199,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisableEarlyStopping", "WeightColumnName", "ExportEvaluatedDataItemsConfig", + "AdditionalExperiments", "AdditionalOptimizationObjectiveConfig", }); internal_static_google_cloud_aiplatform_v1_schema_trainingjob_definition_AutoMlTablesInputs_Transformation_descriptor = @@ -300,6 +308,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "TrainCostMilliNodeHours", }); + com.google.api.FieldBehaviorProto.getDescriptor(); com.google.cloud.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfigProto .getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLTextClassificationProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLTextClassificationProto.java index bd3529f52..d47f17855 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLTextClassificationProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLTextClassificationProto.java @@ -53,12 +53,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "aiplatform.v1.schema.trainingjob.definit" + "ion.AutoMlTextClassificationInputs\"5\n\036Au" + "toMlTextClassificationInputs\022\023\n\013multi_la" - + "bel\030\001 \001(\010B\303\001\nGoogle::Cloud::AIPlatform::V1::S" + + "chema::TrainingJob::Definitionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLTextExtractionProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLTextExtractionProto.java index 3acf09b23..ae2dd989f 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLTextExtractionProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLTextExtractionProto.java @@ -52,12 +52,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "d\n\006inputs\030\001 \001(\0132T.google.cloud.aiplatfor" + "m.v1.schema.trainingjob.definition.AutoM" + "lTextExtractionInputs\"\034\n\032AutoMlTextExtra" - + "ctionInputsB\277\001\nGoogle::Cloud::AIPlatform::V1::Sch" + + "ema::TrainingJob::Definitionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLTextSentimentProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLTextSentimentProto.java index 2d0092473..53ae5ddb4 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLTextSentimentProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLTextSentimentProto.java @@ -52,12 +52,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006inputs\030\001 \001(\0132S.google.cloud.aiplatform." + "v1.schema.trainingjob.definition.AutoMlT" + "extSentimentInputs\"2\n\031AutoMlTextSentimen" - + "tInputs\022\025\n\rsentiment_max\030\001 \001(\005B\276\001\nGoogle::Cloud::A" + + "IPlatform::V1::Schema::TrainingJob::Defi" + + "nitionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLVideoActionRecognitionProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLVideoActionRecognitionProto.java index b0d8d2a11..c10131f0c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLVideoActionRecognitionProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLVideoActionRecognitionProto.java @@ -53,18 +53,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ActionRecognition\022l\n\006inputs\030\001 \001(\0132\\.goog" + "le.cloud.aiplatform.v1.schema.trainingjo" + "b.definition.AutoMlVideoActionRecognitio" - + "nInputs\"\354\001\n\"AutoMlVideoActionRecognition" + + "nInputs\"\252\002\n\"AutoMlVideoActionRecognition" + "Inputs\022z\n\nmodel_type\030\001 \001(\0162f.google.clou" + "d.aiplatform.v1.schema.trainingjob.defin" + "ition.AutoMlVideoActionRecognitionInputs" - + ".ModelType\"J\n\tModelType\022\032\n\026MODEL_TYPE_UN" - + "SPECIFIED\020\000\022\t\n\005CLOUD\020\001\022\026\n\022MOBILE_VERSATI" - + "LE_1\020\002B\307\001\nGoogle::C" + + "loud::AIPlatform::V1::Schema::TrainingJo" + + "b::Definitionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLVideoClassificationProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLVideoClassificationProto.java index 6c241960d..f753ab406 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLVideoClassificationProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLVideoClassificationProto.java @@ -59,12 +59,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ideoClassificationInputs.ModelType\"i\n\tMo" + "delType\022\032\n\026MODEL_TYPE_UNSPECIFIED\020\000\022\t\n\005C" + "LOUD\020\001\022\026\n\022MOBILE_VERSATILE_1\020\002\022\035\n\031MOBILE" - + "_JETSON_VERSATILE_1\020\003B\304\001\nGoogle::Cloud::AIPl" + + "atform::V1::Schema::TrainingJob::Definit" + + "ionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLVideoObjectTrackingProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLVideoObjectTrackingProto.java index 63b8304cf..86d09df6a 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLVideoObjectTrackingProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMLVideoObjectTrackingProto.java @@ -61,13 +61,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005CLOUD\020\001\022\026\n\022MOBILE_VERSATILE_1\020\002\022\034\n\030MOBI" + "LE_CORAL_VERSATILE_1\020\003\022\036\n\032MOBILE_CORAL_L" + "OW_LATENCY_1\020\004\022\035\n\031MOBILE_JETSON_VERSATIL" - + "E_1\020\005\022\037\n\033MOBILE_JETSON_LOW_LATENCY_1\020\006B\304" - + "\001\nGo" + + "ogle::Cloud::AIPlatform::V1::Schema::Tra" + + "iningJob::Definitionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTablesInputs.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTablesInputs.java index d5facd1f0..09dc305f7 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTablesInputs.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTablesInputs.java @@ -37,6 +37,7 @@ private AutoMlTablesInputs() { transformations_ = java.util.Collections.emptyList(); optimizationObjective_ = ""; weightColumnName_ = ""; + additionalExperiments_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @@ -153,6 +154,16 @@ private AutoMlTablesInputs( exportEvaluatedDataItemsConfig_ = subBuilder.buildPartial(); } + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + additionalExperiments_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + additionalExperiments_.add(s); break; } default: @@ -172,6 +183,9 @@ private AutoMlTablesInputs( if (((mutable_bitField0_ & 0x00000001) != 0)) { transformations_ = java.util.Collections.unmodifiableList(transformations_); } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + additionalExperiments_ = additionalExperiments_.getUnmodifiableView(); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -10310,6 +10324,67 @@ public boolean hasExportEvaluatedDataItemsConfig() { return getExportEvaluatedDataItemsConfig(); } + public static final int ADDITIONAL_EXPERIMENTS_FIELD_NUMBER = 11; + private com.google.protobuf.LazyStringList additionalExperiments_; + /** + * + * + *
+   * Additional experiment flags for the Tables training pipeline.
+   * 
+ * + * repeated string additional_experiments = 11; + * + * @return A list containing the additionalExperiments. + */ + public com.google.protobuf.ProtocolStringList getAdditionalExperimentsList() { + return additionalExperiments_; + } + /** + * + * + *
+   * Additional experiment flags for the Tables training pipeline.
+   * 
+ * + * repeated string additional_experiments = 11; + * + * @return The count of additionalExperiments. + */ + public int getAdditionalExperimentsCount() { + return additionalExperiments_.size(); + } + /** + * + * + *
+   * Additional experiment flags for the Tables training pipeline.
+   * 
+ * + * repeated string additional_experiments = 11; + * + * @param index The index of the element to return. + * @return The additionalExperiments at the given index. + */ + public java.lang.String getAdditionalExperiments(int index) { + return additionalExperiments_.get(index); + } + /** + * + * + *
+   * Additional experiment flags for the Tables training pipeline.
+   * 
+ * + * repeated string additional_experiments = 11; + * + * @param index The index of the value to return. + * @return The bytes of the additionalExperiments at the given index. + */ + public com.google.protobuf.ByteString getAdditionalExperimentsBytes(int index) { + return additionalExperiments_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -10354,6 +10429,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (exportEvaluatedDataItemsConfig_ != null) { output.writeMessage(10, getExportEvaluatedDataItemsConfig()); } + for (int i = 0; i < additionalExperiments_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 11, additionalExperiments_.getRaw(i)); + } unknownFields.writeTo(output); } @@ -10399,6 +10478,14 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 10, getExportEvaluatedDataItemsConfig()); } + { + int dataSize = 0; + for (int i = 0; i < additionalExperiments_.size(); i++) { + dataSize += computeStringSizeNoTag(additionalExperiments_.getRaw(i)); + } + size += dataSize; + size += 1 * getAdditionalExperimentsList().size(); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -10430,6 +10517,7 @@ public boolean equals(final java.lang.Object obj) { if (!getExportEvaluatedDataItemsConfig().equals(other.getExportEvaluatedDataItemsConfig())) return false; } + if (!getAdditionalExperimentsList().equals(other.getAdditionalExperimentsList())) return false; if (!getAdditionalOptimizationObjectiveConfigCase() .equals(other.getAdditionalOptimizationObjectiveConfigCase())) return false; switch (additionalOptimizationObjectiveConfigCase_) { @@ -10477,6 +10565,10 @@ public int hashCode() { hash = (37 * hash) + EXPORT_EVALUATED_DATA_ITEMS_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getExportEvaluatedDataItemsConfig().hashCode(); } + if (getAdditionalExperimentsCount() > 0) { + hash = (37 * hash) + ADDITIONAL_EXPERIMENTS_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalExperimentsList().hashCode(); + } switch (additionalOptimizationObjectiveConfigCase_) { case 5: hash = (37 * hash) + OPTIMIZATION_OBJECTIVE_RECALL_VALUE_FIELD_NUMBER; @@ -10665,6 +10757,8 @@ public Builder clear() { exportEvaluatedDataItemsConfig_ = null; exportEvaluatedDataItemsConfigBuilder_ = null; } + additionalExperiments_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); additionalOptimizationObjectiveConfigCase_ = 0; additionalOptimizationObjectiveConfig_ = null; return this; @@ -10725,6 +10819,11 @@ public com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTables } else { result.exportEvaluatedDataItemsConfig_ = exportEvaluatedDataItemsConfigBuilder_.build(); } + if (((bitField0_ & 0x00000002) != 0)) { + additionalExperiments_ = additionalExperiments_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.additionalExperiments_ = additionalExperiments_; result.additionalOptimizationObjectiveConfigCase_ = additionalOptimizationObjectiveConfigCase_; onBuilt(); @@ -10835,6 +10934,16 @@ public Builder mergeFrom( if (other.hasExportEvaluatedDataItemsConfig()) { mergeExportEvaluatedDataItemsConfig(other.getExportEvaluatedDataItemsConfig()); } + if (!other.additionalExperiments_.isEmpty()) { + if (additionalExperiments_.isEmpty()) { + additionalExperiments_ = other.additionalExperiments_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAdditionalExperimentsIsMutable(); + additionalExperiments_.addAll(other.additionalExperiments_); + } + onChanged(); + } switch (other.getAdditionalOptimizationObjectiveConfigCase()) { case OPTIMIZATION_OBJECTIVE_RECALL_VALUE: { @@ -12504,6 +12613,175 @@ public Builder clearExportEvaluatedDataItemsConfig() { return exportEvaluatedDataItemsConfigBuilder_; } + private com.google.protobuf.LazyStringList additionalExperiments_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAdditionalExperimentsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + additionalExperiments_ = + new com.google.protobuf.LazyStringArrayList(additionalExperiments_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Additional experiment flags for the Tables training pipeline.
+     * 
+ * + * repeated string additional_experiments = 11; + * + * @return A list containing the additionalExperiments. + */ + public com.google.protobuf.ProtocolStringList getAdditionalExperimentsList() { + return additionalExperiments_.getUnmodifiableView(); + } + /** + * + * + *
+     * Additional experiment flags for the Tables training pipeline.
+     * 
+ * + * repeated string additional_experiments = 11; + * + * @return The count of additionalExperiments. + */ + public int getAdditionalExperimentsCount() { + return additionalExperiments_.size(); + } + /** + * + * + *
+     * Additional experiment flags for the Tables training pipeline.
+     * 
+ * + * repeated string additional_experiments = 11; + * + * @param index The index of the element to return. + * @return The additionalExperiments at the given index. + */ + public java.lang.String getAdditionalExperiments(int index) { + return additionalExperiments_.get(index); + } + /** + * + * + *
+     * Additional experiment flags for the Tables training pipeline.
+     * 
+ * + * repeated string additional_experiments = 11; + * + * @param index The index of the value to return. + * @return The bytes of the additionalExperiments at the given index. + */ + public com.google.protobuf.ByteString getAdditionalExperimentsBytes(int index) { + return additionalExperiments_.getByteString(index); + } + /** + * + * + *
+     * Additional experiment flags for the Tables training pipeline.
+     * 
+ * + * repeated string additional_experiments = 11; + * + * @param index The index to set the value at. + * @param value The additionalExperiments to set. + * @return This builder for chaining. + */ + public Builder setAdditionalExperiments(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalExperimentsIsMutable(); + additionalExperiments_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Additional experiment flags for the Tables training pipeline.
+     * 
+ * + * repeated string additional_experiments = 11; + * + * @param value The additionalExperiments to add. + * @return This builder for chaining. + */ + public Builder addAdditionalExperiments(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalExperimentsIsMutable(); + additionalExperiments_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Additional experiment flags for the Tables training pipeline.
+     * 
+ * + * repeated string additional_experiments = 11; + * + * @param values The additionalExperiments to add. + * @return This builder for chaining. + */ + public Builder addAllAdditionalExperiments(java.lang.Iterable values) { + ensureAdditionalExperimentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, additionalExperiments_); + onChanged(); + return this; + } + /** + * + * + *
+     * Additional experiment flags for the Tables training pipeline.
+     * 
+ * + * repeated string additional_experiments = 11; + * + * @return This builder for chaining. + */ + public Builder clearAdditionalExperiments() { + additionalExperiments_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Additional experiment flags for the Tables training pipeline.
+     * 
+ * + * repeated string additional_experiments = 11; + * + * @param value The bytes of the additionalExperiments to add. + * @return This builder for chaining. + */ + public Builder addAdditionalExperimentsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAdditionalExperimentsIsMutable(); + additionalExperiments_.add(value); + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTablesInputsOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTablesInputsOrBuilder.java index 29ebc3f4a..65a5685b5 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTablesInputsOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlTablesInputsOrBuilder.java @@ -408,6 +408,57 @@ public interface AutoMlTablesInputsOrBuilder .ExportEvaluatedDataItemsConfigOrBuilder getExportEvaluatedDataItemsConfigOrBuilder(); + /** + * + * + *
+   * Additional experiment flags for the Tables training pipeline.
+   * 
+ * + * repeated string additional_experiments = 11; + * + * @return A list containing the additionalExperiments. + */ + java.util.List getAdditionalExperimentsList(); + /** + * + * + *
+   * Additional experiment flags for the Tables training pipeline.
+   * 
+ * + * repeated string additional_experiments = 11; + * + * @return The count of additionalExperiments. + */ + int getAdditionalExperimentsCount(); + /** + * + * + *
+   * Additional experiment flags for the Tables training pipeline.
+   * 
+ * + * repeated string additional_experiments = 11; + * + * @param index The index of the element to return. + * @return The additionalExperiments at the given index. + */ + java.lang.String getAdditionalExperiments(int index); + /** + * + * + *
+   * Additional experiment flags for the Tables training pipeline.
+   * 
+ * + * repeated string additional_experiments = 11; + * + * @param index The index of the value to return. + * @return The bytes of the additionalExperiments at the given index. + */ + com.google.protobuf.ByteString getAdditionalExperimentsBytes(int index); + public com.google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs .AdditionalOptimizationObjectiveConfigCase getAdditionalOptimizationObjectiveConfigCase(); diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoActionRecognitionInputs.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoActionRecognitionInputs.java index 6e61c71c6..54e1eadd0 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoActionRecognitionInputs.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/AutoMlVideoActionRecognitionInputs.java @@ -150,6 +150,30 @@ public enum ModelType implements com.google.protobuf.ProtocolMessageEnum { * MOBILE_VERSATILE_1 = 2; */ MOBILE_VERSATILE_1(2), + /** + * + * + *
+     * A model that, in addition to being available within Google Cloud, can
+     * also be exported (see ModelService.ExportModel) to a Jetson device
+     * afterwards.
+     * 
+ * + * MOBILE_JETSON_VERSATILE_1 = 3; + */ + MOBILE_JETSON_VERSATILE_1(3), + /** + * + * + *
+     * A model that, in addition to being available within Google Cloud, can
+     * also be exported (see ModelService.ExportModel) as a TensorFlow or
+     * TensorFlow Lite model and used on a Coral device afterwards.
+     * 
+ * + * MOBILE_CORAL_VERSATILE_1 = 4; + */ + MOBILE_CORAL_VERSATILE_1(4), UNRECOGNIZED(-1), ; @@ -186,6 +210,30 @@ public enum ModelType implements com.google.protobuf.ProtocolMessageEnum { * MOBILE_VERSATILE_1 = 2; */ public static final int MOBILE_VERSATILE_1_VALUE = 2; + /** + * + * + *
+     * A model that, in addition to being available within Google Cloud, can
+     * also be exported (see ModelService.ExportModel) to a Jetson device
+     * afterwards.
+     * 
+ * + * MOBILE_JETSON_VERSATILE_1 = 3; + */ + public static final int MOBILE_JETSON_VERSATILE_1_VALUE = 3; + /** + * + * + *
+     * A model that, in addition to being available within Google Cloud, can
+     * also be exported (see ModelService.ExportModel) as a TensorFlow or
+     * TensorFlow Lite model and used on a Coral device afterwards.
+     * 
+ * + * MOBILE_CORAL_VERSATILE_1 = 4; + */ + public static final int MOBILE_CORAL_VERSATILE_1_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -217,6 +265,10 @@ public static ModelType forNumber(int value) { return CLOUD; case 2: return MOBILE_VERSATILE_1; + case 3: + return MOBILE_JETSON_VERSATILE_1; + case 4: + return MOBILE_CORAL_VERSATILE_1; default: return null; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/ExportEvaluatedDataItemsConfigProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/ExportEvaluatedDataItemsConfigProto.java index 733dbc8b0..83b095e27 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/ExportEvaluatedDataItemsConfigProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/schema/trainingjob/definition/ExportEvaluatedDataItemsConfigProto.java @@ -48,12 +48,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oogle/api/annotations.proto\"c\n\036ExportEva" + "luatedDataItemsConfig\022 \n\030destination_big" + "query_uri\030\001 \001(\t\022\037\n\027override_existing_tab" - + "le\030\002 \001(\010B\311\001\nGoogle::Cloud::AIPlatform::" + + "V1::Schema::TrainingJob::Definitionb\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/accelerator_type.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/accelerator_type.proto index 096d7187a..0bd6d10ae 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/accelerator_type.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/accelerator_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 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,10 +18,13 @@ package google.cloud.aiplatform.v1; import "google/api/annotations.proto"; +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 = "AcceleratorTypeProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // Represents a hardware accelerator type. enum AcceleratorType { @@ -43,9 +46,6 @@ enum AcceleratorType { // Nvidia Tesla T4 GPU. NVIDIA_TESLA_T4 = 5; - // TPU v2. - TPU_V2 = 6; - - // TPU v3. - TPU_V3 = 7; + // Nvidia Tesla A100 GPU. + NVIDIA_TESLA_A100 = 8; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/annotation.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/annotation.proto index 545cf2786..78c9337d2 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/annotation.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/annotation.proto @@ -23,10 +23,13 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "AnnotationProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // Used to assign specific AnnotationSpec to a particular area of a DataItem or // the whole part of the DataItem. diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/annotation_spec.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/annotation_spec.proto index bbcb03266..b4727ac90 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/annotation_spec.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/annotation_spec.proto @@ -21,10 +21,13 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "AnnotationSpecProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // Identifies a concept with which DataItems may be annotated with. message AnnotationSpec { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/artifact.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/artifact.proto new file mode 100644 index 000000000..f47df663f --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/artifact.proto @@ -0,0 +1,90 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/value.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +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 = "ArtifactProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// Instance of a general artifact. +message Artifact { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/Artifact" + pattern: "projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}" + }; + + // Describes the state of the Artifact. + enum State { + // Unspecified state for the Artifact. + STATE_UNSPECIFIED = 0; + + // A state used by systems like Vertex Pipelines to indicate that the + // underlying data item represented by this Artifact is being created. + PENDING = 1; + + // A state indicating that the Artifact should exist, unless something + // external to the system deletes it. + LIVE = 2; + } + + // Output only. The resource name of the Artifact. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // User provided display name of the Artifact. + // May be up to 128 Unicode characters. + string display_name = 2; + + // The uniform resource identifier of the artifact file. + // May be empty if there is no actual artifact file. + string uri = 6; + + // An eTag used to perform consistent read-modify-write updates. If not set, a + // blind "overwrite" update happens. + string etag = 9; + + // The labels with user-defined metadata to organize your Artifacts. + // + // Label keys and values can be no longer than 64 characters + // (Unicode codepoints), can only contain lowercase letters, numeric + // characters, underscores and dashes. International characters are allowed. + // No more than 64 user labels can be associated with one Artifact (System + // labels are excluded). + map labels = 10; + + // Output only. Timestamp when this Artifact was created. + google.protobuf.Timestamp create_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this Artifact was last updated. + google.protobuf.Timestamp update_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The state of this Artifact. This is a property of the Artifact, and does + // not imply or capture any ongoing process. This property is managed by + // clients (such as Vertex Pipelines), and the system does not prescribe + // or check the validity of state transitions. + State state = 13; +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/batch_prediction_job.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/batch_prediction_job.proto index f99371b23..6ffe83a64 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/batch_prediction_job.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/batch_prediction_job.proto @@ -29,10 +29,13 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; import "google/api/annotations.proto"; +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 = "BatchPredictionJobProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // A job that uses a [Model][google.cloud.aiplatform.v1.BatchPredictionJob.model] to produce predictions // on multiple [input instances][google.cloud.aiplatform.v1.BatchPredictionJob.input_config]. If @@ -91,8 +94,7 @@ message BatchPredictionJob { // `errors_N.` files are created (N depends on total number // of failed predictions). These files contain the failed instances, // as per their schema, followed by an additional `error` field which as - // value has - // [`google.rpc.Status`](Status) + // value has [google.rpc.Status][google.rpc.Status] // containing only `code` and `message` fields. GcsDestination gcs_destination = 2; @@ -112,7 +114,7 @@ message BatchPredictionJob { // prediction schemata. The `errors` table contains rows for which the // prediction has failed, it has instance columns, as per the // instance schema, followed by a single "errors" column, which as values - // has [`google.rpc.Status`](Status) + // has [google.rpc.Status][google.rpc.Status] // represented as a STRUCT, and containing only `code` and `message`. BigQueryDestination bigquery_destination = 3; } @@ -137,6 +139,12 @@ message BatchPredictionJob { // format, into which the prediction output is written. string bigquery_output_dataset = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } + + // Output only. The name of the BigQuery table created, in + // `predictions_` + // format, into which the prediction output is written. + // Can be used by UI to generate the BigQuery output path, for example. + string bigquery_output_table = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Output only. Resource name of the BatchPredictionJob. diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/completion_stats.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/completion_stats.proto index 56dddbad7..09288808c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/completion_stats.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/completion_stats.proto @@ -20,10 +20,13 @@ import "google/api/field_behavior.proto"; import "google/rpc/status.proto"; import "google/api/annotations.proto"; +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 = "CompletionStatsProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // Success and error statistics of processing multiple entities // (for example, DataItems or structured data rows) in batch. diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/context.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/context.proto new file mode 100644 index 000000000..a50f0b1d6 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/context.proto @@ -0,0 +1,75 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/value.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +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 = "ContextProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// Instance of a general context. +message Context { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/Context" + pattern: "projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context}" + }; + + // Output only. The resource name of the Context. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // User provided display name of the Context. + // May be up to 128 Unicode characters. + string display_name = 2; + + // An eTag used to perform consistent read-modify-write updates. If not set, a + // blind "overwrite" update happens. + string etag = 8; + + // The labels with user-defined metadata to organize your Contexts. + // + // Label keys and values can be no longer than 64 characters + // (Unicode codepoints), can only contain lowercase letters, numeric + // characters, underscores and dashes. International characters are allowed. + // No more than 64 user labels can be associated with one Context (System + // labels are excluded). + map labels = 9; + + // Output only. Timestamp when this Context was created. + google.protobuf.Timestamp create_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this Context was last updated. + google.protobuf.Timestamp update_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A list of resource names of Contexts that are parents of this Context. + // A Context may have at most 10 parent_contexts. + repeated string parent_contexts = 12 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Context" + } + ]; +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/custom_job.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/custom_job.proto index fd66585e4..bacf4e642 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/custom_job.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/custom_job.proto @@ -28,10 +28,13 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; import "google/api/annotations.proto"; +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 = "CustomJobProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // Represents a job that runs custom workloads such as a Docker container or a // Python package. A CustomJob can have multiple worker pools and each worker @@ -117,7 +120,9 @@ message CustomJobSpec { // // Private services access must already be configured for the network. If left // unspecified, the job is not peered with any network. - string network = 5; + string network = 5 [(google.api.resource_reference) = { + type: "compute.googleapis.com/Network" + }]; // The Cloud Storage location to store the output of this CustomJob or // HyperparameterTuningJob. For HyperparameterTuningJob, diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/data_item.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/data_item.proto index 399de0e8a..cccb83007 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/data_item.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/data_item.proto @@ -22,10 +22,13 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "DataItemProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // A piece of data in a Dataset. Could be an image, a video, a document or plain // text. diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/data_labeling_job.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/data_labeling_job.proto index a95f27c3b..82ff7cab5 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/data_labeling_job.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/data_labeling_job.proto @@ -28,10 +28,13 @@ import "google/rpc/status.proto"; import "google/type/money.proto"; import "google/api/annotations.proto"; +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 = "DataLabelingJobProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // DataLabelingJob is used to trigger a human labeling job on unlabeled data // from the following Dataset: diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset.proto index e970c8cf2..9d182747b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset.proto @@ -24,10 +24,13 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "DatasetProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // A collection of DataItems and Annotations on them. message Dataset { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto index 75a71664c..14897749a 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto @@ -29,10 +29,13 @@ import "google/cloud/aiplatform/v1/training_pipeline.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; +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 = "DatasetServiceProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; service DatasetService { option (google.api.default_host) = "aiplatform.googleapis.com"; diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/deployed_model_ref.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/deployed_model_ref.proto index c0a954e0e..0950cbb9f 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/deployed_model_ref.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/deployed_model_ref.proto @@ -20,10 +20,13 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/api/annotations.proto"; +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 = "DeployedModelNameProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // Points to a DeployedModel. message DeployedModelRef { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/encryption_spec.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/encryption_spec.proto index 36e2578e9..ee7a96b83 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/encryption_spec.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/encryption_spec.proto @@ -19,10 +19,13 @@ package google.cloud.aiplatform.v1; import "google/api/field_behavior.proto"; import "google/api/annotations.proto"; +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 = "EncryptionSpecProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // Represents a customer-managed encryption key spec that can be applied to // a top-level resource. diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto index 7c5277e43..ab5aa55d2 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto @@ -23,10 +23,13 @@ import "google/cloud/aiplatform/v1/machine_resources.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "EndpointProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // Models are deployed into it, and afterwards Endpoint is called to obtain // predictions and explanations. diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint_service.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint_service.proto index ca3352f54..e769835c9 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint_service.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint_service.proto @@ -25,10 +25,13 @@ import "google/cloud/aiplatform/v1/operation.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; +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 = "EndpointServiceProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; service EndpointService { option (google.api.default_host) = "aiplatform.googleapis.com"; diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/env_var.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/env_var.proto index 9bb71f6b5..1d6aa59f3 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/env_var.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/env_var.proto @@ -19,10 +19,13 @@ package google.cloud.aiplatform.v1; import "google/api/field_behavior.proto"; import "google/api/annotations.proto"; +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 = "EnvVarProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // Represents an environment variable present in a Container or Python Module. message EnvVar { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/execution.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/execution.proto new file mode 100644 index 000000000..7e9ee5f11 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/execution.proto @@ -0,0 +1,96 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/value.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +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 = "ExecutionProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// Instance of a general execution. +message Execution { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/Execution" + pattern: "projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}" + }; + + // Describes the state of the Execution. + enum State { + // Unspecified Execution state + STATE_UNSPECIFIED = 0; + + // The Execution is new + NEW = 1; + + // The Execution is running + RUNNING = 2; + + // The Execution has finished running + COMPLETE = 3; + + // The Execution has failed + FAILED = 4; + + // The Execution completed through Cache hit. + CACHED = 5; + + // The Execution was cancelled. + CANCELLED = 6; + } + + // Output only. The resource name of the Execution. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // User provided display name of the Execution. + // May be up to 128 Unicode characters. + string display_name = 2; + + // The state of this Execution. This is a property of the Execution, and does + // not imply or capture any ongoing process. This property is managed by + // clients (such as Vertex Pipelines) and the system does not prescribe + // or check the validity of state transitions. + State state = 6; + + // An eTag used to perform consistent read-modify-write updates. If not set, a + // blind "overwrite" update happens. + string etag = 9; + + // The labels with user-defined metadata to organize your Executions. + // + // Label keys and values can be no longer than 64 characters + // (Unicode codepoints), can only contain lowercase letters, numeric + // characters, underscores and dashes. International characters are allowed. + // No more than 64 user labels can be associated with one Execution (System + // labels are excluded). + map labels = 10; + + // Output only. Timestamp when this Execution was created. + google.protobuf.Timestamp create_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this Execution was last updated. + google.protobuf.Timestamp update_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto index f1c3990b7..9a86ae85a 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto @@ -26,10 +26,13 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; import "google/api/annotations.proto"; +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 = "HyperparameterTuningJobProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // Represents a HyperparameterTuningJob. A HyperparameterTuningJob // has a Study specification and multiple CustomJobs with identical diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/io.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/io.proto index 6df4ac568..8a293aa8f 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/io.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/io.proto @@ -19,10 +19,13 @@ package google.cloud.aiplatform.v1; import "google/api/field_behavior.proto"; import "google/api/annotations.proto"; +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 = "IoProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // The Google Cloud Storage location for the input content. message GcsSource { @@ -60,7 +63,8 @@ message BigQueryDestination { // Accepted forms: // // * BigQuery path. For example: - // `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`. + // `bq://projectId` or `bq://projectId.bqDatasetId` or + // `bq://projectId.bqDatasetId.bqTableId`. string output_uri = 1 [(google.api.field_behavior) = REQUIRED]; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/job_service.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/job_service.proto index 0bbee54b8..12f6da747 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/job_service.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/job_service.proto @@ -30,10 +30,13 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; +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 = "JobServiceProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // A service for creating and managing Vertex AI's jobs. service JobService { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/job_state.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/job_state.proto index 18504390f..bc8a6139d 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/job_state.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/job_state.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1; import "google/api/annotations.proto"; +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 = "JobStateProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // Describes the state of a job. enum JobState { @@ -52,4 +55,7 @@ enum JobState { // The job has been stopped, and can be resumed. JOB_STATE_PAUSED = 8; + + // The job has expired. + JOB_STATE_EXPIRED = 9; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/machine_resources.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/machine_resources.proto index 4bf84df8e..6d03d2cf4 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/machine_resources.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/machine_resources.proto @@ -20,10 +20,13 @@ import "google/api/field_behavior.proto"; import "google/cloud/aiplatform/v1/accelerator_type.proto"; import "google/api/annotations.proto"; +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 = "MachineResourcesProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // Specification of a single machine. message MachineSpec { @@ -58,12 +61,11 @@ message DedicatedResources { ]; // Required. Immutable. The minimum number of machine replicas this DeployedModel will be always - // deployed on. If traffic against it increases, it may dynamically be + // deployed on. This value must be greater than or equal to 1. + // + // If traffic against the DeployedModel increases, it may dynamically be // deployed onto more replicas, and as traffic decreases, some of these extra // replicas may be freed. - // Note: if [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is - // above 0, currently the model will be always deployed precisely on - // [min_replica_count][google.cloud.aiplatform.v1.DedicatedResources.min_replica_count]. int32 min_replica_count = 2 [ (google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = IMMUTABLE @@ -78,6 +80,28 @@ message DedicatedResources { // If this value is not provided, will use [min_replica_count][google.cloud.aiplatform.v1.DedicatedResources.min_replica_count] as the // default value. int32 max_replica_count = 3 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The metric specifications that overrides a resource + // utilization metric (CPU utilization, accelerator's duty cycle, and so on) + // target value (default to 60 if not set). At most one entry is allowed per + // metric. + // + // If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is + // above 0, the autoscaling will be based on both CPU utilization and + // accelerator's duty cycle metrics and scale up when either metrics exceeds + // its target value while scale down if both metrics are under their target + // value. The default target value is 60 for both metrics. + // + // If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is + // 0, the autoscaling will be based on CPU utilization metric only with + // default target value 60 if not explicitly set. + // + // For example, in the case of Online Prediction, if you want to override + // target CPU utilization to 80, you should set + // [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name] + // to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and + // [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] to `80`. + repeated AutoscalingMetricSpec autoscaling_metric_specs = 4 [(google.api.field_behavior) = IMMUTABLE]; } // A description of resources that to large degree are decided by Vertex AI, @@ -140,3 +164,22 @@ message DiskSpec { // Size in GB of the boot disk (default is 100GB). int32 boot_disk_size_gb = 2; } + +// The metric specification that defines the target resource utilization +// (CPU utilization, accelerator's duty cycle, and so on) for calculating the +// desired replica count. +message AutoscalingMetricSpec { + // Required. The resource metric name. + // Supported metrics: + // + // * For Online Prediction: + // * `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle` + // * `aiplatform.googleapis.com/prediction/online/cpu/utilization` + string metric_name = 1 [(google.api.field_behavior) = REQUIRED]; + + // The target resource utilization in percentage (1% - 100%) for the given + // metric; once the real usage deviates from the target by a certain + // percentage, the machine replicas change. The default value is 60 + // (representing 60%) if not provided. + int32 target = 2; +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto index 0266b286e..7bae2c8b4 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto @@ -19,10 +19,13 @@ package google.cloud.aiplatform.v1; import "google/api/field_behavior.proto"; import "google/api/annotations.proto"; +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 = "ManualBatchTuningParametersProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // Manual batch tuning parameters. message ManualBatchTuningParameters { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/migratable_resource.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/migratable_resource.proto index ca2918cff..09b4a21a0 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/migratable_resource.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/migratable_resource.proto @@ -21,10 +21,13 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "MigratableResourceProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; option (google.api.resource_definition) = { type: "ml.googleapis.com/Version" pattern: "projects/{project}/models/{model}/versions/{version}" diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/migration_service.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/migration_service.proto index ccdbe39a4..ea8409a48 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/migration_service.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/migration_service.proto @@ -27,10 +27,13 @@ import "google/cloud/aiplatform/v1/operation.proto"; import "google/longrunning/operations.proto"; import "google/rpc/status.proto"; +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 = "MigrationServiceProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // A service that migrates resources from automl.googleapis.com, // datalabeling.googleapis.com and ml.googleapis.com to Vertex AI. diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model.proto index 1b8bcf5f9..27337da60 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model.proto @@ -26,10 +26,13 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "ModelProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // A trained machine learning Model. message Model { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_evaluation.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_evaluation.proto index 402acd83e..1ecf6cb28 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_evaluation.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_evaluation.proto @@ -22,10 +22,13 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "ModelEvaluationProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // A collection of metrics calculated by comparing Model's predictions on all of // the test data against annotations from the test data. diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_evaluation_slice.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_evaluation_slice.proto index 6fc6f9bdb..e79195e71 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_evaluation_slice.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_evaluation_slice.proto @@ -22,10 +22,13 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "ModelEvaluationSliceProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // A collection of metrics calculated by comparing Model's predictions on a // slice of the test data against ground truth annotations. diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto index 93c9b79c0..4d4b6f537 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto @@ -28,10 +28,13 @@ import "google/cloud/aiplatform/v1/operation.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; +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 = "ModelServiceProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // A service for managing Vertex AI's machine learning Models. service ModelService { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/operation.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/operation.proto index 0b775ad48..ee33b41aa 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/operation.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/operation.proto @@ -21,10 +21,13 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; import "google/api/annotations.proto"; +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 = "OperationProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // Generic Metadata shared by all operations. message GenericOperationMetadata { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_job.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_job.proto new file mode 100644 index 000000000..725903055 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_job.proto @@ -0,0 +1,289 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/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_state.proto"; +import "google/cloud/aiplatform/v1/value.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; +import "google/api/annotations.proto"; + +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 = "Pipeline"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; +option (google.api.resource_definition) = { + type: "compute.googleapis.com/Network" + pattern: "projects/{project}/global/networks/{network}" +}; + +// An instance of a machine learning PipelineJob. +message PipelineJob { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/PipelineJob" + pattern: "projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}" + }; + + // The runtime config of a PipelineJob. + message RuntimeConfig { + // The runtime parameters of the PipelineJob. The parameters will be + // passed into [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] to replace the placeholders + // at runtime. + map parameters = 1; + + // Required. A path in a Cloud Storage bucket, which will be treated as the root + // output directory of the pipeline. It is used by the system to + // generate the paths of output artifacts. The artifact paths are generated + // with a sub-path pattern `{job_id}/{task_id}/{output_key}` under the + // specified output directory. The service account specified in this + // pipeline must have the `storage.objects.get` and `storage.objects.create` + // permissions for this bucket. + string gcs_output_directory = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Output only. The resource name of the PipelineJob. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The display name of the Pipeline. + // The name can be up to 128 characters long and can be consist of any UTF-8 + // characters. + string display_name = 2; + + // Output only. Pipeline creation time. + google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Pipeline start time. + google.protobuf.Timestamp start_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Pipeline end time. + google.protobuf.Timestamp end_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this PipelineJob was most recently updated. + google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The spec of the pipeline. + google.protobuf.Struct pipeline_spec = 7 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The detailed state of the job. + PipelineState state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The details of pipeline run. Not available in the list view. + PipelineJobDetail job_detail = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The error that occurred during pipeline execution. + // Only populated when the pipeline's state is FAILED or CANCELLED. + google.rpc.Status error = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The labels with user-defined metadata to organize PipelineJob. + // + // Label keys and values can be no longer than 64 characters + // (Unicode codepoints), can only contain lowercase letters, numeric + // characters, underscores and dashes. International characters are allowed. + // + // See https://goo.gl/xmQnxf for more information and examples of labels. + map labels = 11; + + // Runtime config of the pipeline. + RuntimeConfig runtime_config = 12; + + // Customer-managed encryption key spec for a pipelineJob. If set, this + // PipelineJob and all of its sub-resources will be secured by this key. + EncryptionSpec encryption_spec = 16; + + // The service account that the pipeline workload runs as. + // If not specified, the Compute Engine default service account in the project + // will be used. + // See + // https://cloud.google.com/compute/docs/access/service-accounts#default_service_account + // + // Users starting the pipeline must have the `iam.serviceAccounts.actAs` + // permission on this service account. + string service_account = 17; + + // The full name of the Compute Engine + // [network](/compute/docs/networks-and-firewalls#networks) to which the + // Pipeline Job's workload should be peered. For example, + // `projects/12345/global/networks/myVPC`. + // [Format](/compute/docs/reference/rest/v1/networks/insert) + // is of the form `projects/{project}/global/networks/{network}`. + // Where {project} is a project number, as in `12345`, and {network} is a + // network name. + // + // Private services access must already be configured for the network. + // Pipeline job will apply the network configuration to the GCP resources + // being launched, if applied, such as Vertex AI + // Training or Dataflow job. If left unspecified, the workload is not peered + // with any network. + string network = 18 [(google.api.resource_reference) = { + type: "compute.googleapis.com/Network" + }]; +} + +// The runtime detail of PipelineJob. +message PipelineJobDetail { + // Output only. The context of the pipeline. + google.cloud.aiplatform.v1.Context pipeline_context = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The context of the current pipeline run. + google.cloud.aiplatform.v1.Context pipeline_run_context = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The runtime details of the tasks under the pipeline. + repeated PipelineTaskDetail task_details = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The runtime detail of a task execution. +message PipelineTaskDetail { + // A list of artifact metadata. + message ArtifactList { + // Output only. A list of artifact metadata. + repeated google.cloud.aiplatform.v1.Artifact artifacts = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Specifies state of TaskExecution + enum State { + // Unspecified. + STATE_UNSPECIFIED = 0; + + // Specifies pending state for the task. + PENDING = 1; + + // Specifies task is being executed. + RUNNING = 2; + + // Specifies task completed successfully. + SUCCEEDED = 3; + + // Specifies Task cancel is in pending state. + CANCEL_PENDING = 4; + + // Specifies task is being cancelled. + CANCELLING = 5; + + // Specifies task was cancelled. + CANCELLED = 6; + + // Specifies task failed. + FAILED = 7; + + // Specifies task was skipped due to cache hit. + SKIPPED = 8; + + // Specifies that the task was not triggered because the task's trigger + // policy is not satisfied. The trigger policy is specified in the + // `condition` field of [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec]. + NOT_TRIGGERED = 9; + } + + // Output only. The system generated ID of the task. + int64 task_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The id of the parent task if the task is within a component scope. + // Empty if the task is at the root level. + int64 parent_task_id = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The user specified name of the task that is defined in + // [PipelineJob.spec][]. + string task_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Task create time. + google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Task start time. + google.protobuf.Timestamp start_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Task end time. + google.protobuf.Timestamp end_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The detailed execution info. + PipelineTaskExecutorDetail executor_detail = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the task. + State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The execution metadata of the task. + google.cloud.aiplatform.v1.Execution execution = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The error that occurred during task execution. + // Only populated when the task's state is FAILED or CANCELLED. + google.rpc.Status error = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The runtime input artifacts of the task. + map inputs = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The runtime output artifacts of the task. + map outputs = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The runtime detail of a pipeline executor. +message PipelineTaskExecutorDetail { + // The detail of a container execution. It contains the job names of the + // lifecycle of a container execution. + message ContainerDetail { + // Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob] for the main container execution. + string main_job = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/CustomJob" + } + ]; + + // Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob] for the pre-caching-check container + // execution. This job will be available if the + // [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] specifies the `pre_caching_check` hook in + // the lifecycle events. + string pre_caching_check_job = 2 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/CustomJob" + } + ]; + } + + // The detailed info for a custom job executor. + message CustomJobDetail { + option deprecated = true; + + // Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob]. + string job = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/CustomJob" + } + ]; + } + + oneof details { + // Output only. The detailed info for a container executor. + ContainerDetail container_detail = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The detailed info for a custom job executor. + CustomJobDetail custom_job_detail = 2 [ + deprecated = true, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + } +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_service.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_service.proto index 33807e82d..59f411253 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_service.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_service.proto @@ -20,15 +20,19 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/pipeline_job.proto"; import "google/cloud/aiplatform/v1/training_pipeline.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; option java_multiple_files = true; option java_outer_classname = "PipelineServiceProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // A service for creating and managing Vertex AI's pipelines. This includes both // `TrainingPipeline` resources (used for AutoML and custom training) and @@ -92,6 +96,61 @@ service PipelineService { }; option (google.api.method_signature) = "name"; } + + // Creates a PipelineJob. A PipelineJob will run immediately when created. + rpc CreatePipelineJob(CreatePipelineJobRequest) returns (google.cloud.aiplatform.v1.PipelineJob) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/pipelineJobs" + body: "pipeline_job" + }; + option (google.api.method_signature) = "parent,pipeline_job,pipeline_job_id"; + } + + // Gets a PipelineJob. + rpc GetPipelineJob(GetPipelineJobRequest) returns (google.cloud.aiplatform.v1.PipelineJob) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/pipelineJobs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists PipelineJobs in a Location. + rpc ListPipelineJobs(ListPipelineJobsRequest) returns (ListPipelineJobsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/pipelineJobs" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes a PipelineJob. + rpc DeletePipelineJob(DeletePipelineJobRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/pipelineJobs/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Cancels a PipelineJob. + // Starts asynchronous cancellation on the PipelineJob. The server + // makes a best effort to cancel the pipeline, but success is not + // guaranteed. Clients can use [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1.PipelineService.GetPipelineJob] or + // other methods to check whether the cancellation succeeded or whether the + // pipeline completed despite cancellation. On successful cancellation, + // the PipelineJob is not deleted; instead it becomes a pipeline with + // a [PipelineJob.error][google.cloud.aiplatform.v1.PipelineJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`, and [PipelineJob.state][google.cloud.aiplatform.v1.PipelineJob.state] is set to + // `CANCELLED`. + rpc CancelPipelineJob(CancelPipelineJobRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/pipelineJobs/*}:cancel" + body: "*" + }; + option (google.api.method_signature) = "name"; + } } // Request message for [PipelineService.CreateTrainingPipeline][google.cloud.aiplatform.v1.PipelineService.CreateTrainingPipeline]. @@ -133,22 +192,32 @@ message ListTrainingPipelinesRequest { } ]; - // The standard list filter. - // Supported fields: - // - // * `display_name` supports = and !=. + // Lists the PipelineJobs that match the filter expression. The following + // fields are supported: // - // * `state` supports = and !=. + // * `pipeline_name`: Supports `=` and `!=` comparisons. + // * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + // Values must be in RFC 3339 format. + // * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + // Values must be in RFC 3339 format. + // * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + // Values must be in RFC 3339 format. + // * `labels`: Supports key-value equality and key presence. // - // Some examples of using the filter are: + // Filter expressions can be combined together using logical operators + // (`AND` & `OR`). + // For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. // - // * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"` + // The syntax to define filter expression is based on + // https://google.aip.dev/160. // - // * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"` + // Examples: // - // * `NOT display_name="my_pipeline"` - // - // * `state="PIPELINE_STATE_FAILED"` + // * `create_time>"2021-05-18T00:00:00Z" OR + // update_time>"2020-05-18T00:00:00Z"` PipelineJobs created or updated + // after 2020-05-18 00:00:00 UTC. + // * `labels.env = "prod"` + // PipelineJobs with label "env" set to "prod". string filter = 2; // The standard list page size. @@ -199,3 +268,110 @@ message CancelTrainingPipelineRequest { } ]; } + +// Request message for [PipelineService.CreatePipelineJob][google.cloud.aiplatform.v1.PipelineService.CreatePipelineJob]. +message CreatePipelineJobRequest { + // Required. The resource name of the Location to create the PipelineJob in. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The PipelineJob to create. + google.cloud.aiplatform.v1.PipelineJob pipeline_job = 2 [(google.api.field_behavior) = REQUIRED]; + + // The ID to use for the PipelineJob, which will become the final component of + // the PipelineJob name. If not provided, an ID will be automatically + // generated. + // + // This value should be less than 128 characters, and valid characters + // are /[a-z][0-9]-/. + string pipeline_job_id = 3; +} + +// Request message for [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1.PipelineService.GetPipelineJob]. +message GetPipelineJobRequest { + // Required. The name of the PipelineJob resource. + // Format: + // `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/PipelineJob" + } + ]; +} + +// Request message for [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs]. +message ListPipelineJobsRequest { + // Required. The resource name of the Location to list the PipelineJobs from. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // The standard list filter. + // Supported fields: + // + // * `display_name` supports `=` and `!=`. + // * `state` supports `=` and `!=`. + // + // The following examples demonstrate how to filter the list of PipelineJobs: + // + // * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"` + // * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"` + // * `NOT display_name="my_pipeline"` + // * `state="PIPELINE_STATE_FAILED"` + string filter = 2; + + // The standard list page size. + int32 page_size = 3; + + // The standard list page token. + // Typically obtained via + // [ListPipelineJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListPipelineJobsResponse.next_page_token] of the previous + // [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs] call. + string page_token = 4; +} + +// Response message for [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs] +message ListPipelineJobsResponse { + // List of PipelineJobs in the requested page. + repeated google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + + // A token to retrieve the next page of results. + // Pass to [ListPipelineJobsRequest.page_token][google.cloud.aiplatform.v1.ListPipelineJobsRequest.page_token] to obtain that page. + string next_page_token = 2; +} + +// Request message for [PipelineService.DeletePipelineJob][google.cloud.aiplatform.v1.PipelineService.DeletePipelineJob]. +message DeletePipelineJobRequest { + // Required. The name of the PipelineJob resource to be deleted. + // Format: + // `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/PipelineJob" + } + ]; +} + +// Request message for [PipelineService.CancelPipelineJob][google.cloud.aiplatform.v1.PipelineService.CancelPipelineJob]. +message CancelPipelineJobRequest { + // Required. The name of the PipelineJob to cancel. + // Format: + // `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/PipelineJob" + } + ]; +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_state.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_state.proto index 1f0565acb..71a165d7e 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_state.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_state.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1; import "google/api/annotations.proto"; +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 = "PipelineStateProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // Describes the state of a pipeline. enum PipelineState { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto index e8cdad763..585407af4 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto @@ -19,13 +19,17 @@ package google.cloud.aiplatform.v1; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; +import "google/api/httpbody.proto"; import "google/api/resource.proto"; import "google/protobuf/struct.proto"; +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 = "PredictionServiceProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // A service for online predictions and explanations. service PredictionService { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto index 6edde6ea9..752227950 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto @@ -18,14 +18,17 @@ package google.cloud.aiplatform.v1.schema.predict.instance; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Instance"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/instance;instance"; option java_multiple_files = true; option java_outer_classname = "ImageClassificationPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.instance"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\Predict\\Instance"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::Predict::Instance"; // Prediction input format for Image Classification. message ImageClassificationPredictionInstance { - // The image bytes or GCS URI to make the prediction on. + // The image bytes or Cloud Storage URI to make the prediction on. string content = 1; // The MIME type of the content of the image. Only the images in below listed diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto index 42fc99732..5e5317336 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto @@ -18,14 +18,17 @@ package google.cloud.aiplatform.v1.schema.predict.instance; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Instance"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/instance;instance"; option java_multiple_files = true; option java_outer_classname = "ImageObjectDetectionPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.instance"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\Predict\\Instance"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::Predict::Instance"; // Prediction input format for Image Object Detection. message ImageObjectDetectionPredictionInstance { - // The image bytes or GCS URI to make the prediction on. + // The image bytes or Cloud Storage URI to make the prediction on. string content = 1; // The MIME type of the content of the image. Only the images in below listed diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto index dec18aad8..b4682c035 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 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,10 +18,13 @@ package google.cloud.aiplatform.v1.schema.predict.instance; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Instance"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/instance;instance"; option java_multiple_files = true; option java_outer_classname = "ImageSegmentationPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.instance"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\Predict\\Instance"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::Predict::Instance"; // Prediction input format for Image Segmentation. message ImageSegmentationPredictionInstance { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/text_classification.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/text_classification.proto index bec1d6746..cfd431702 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/text_classification.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/text_classification.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1.schema.predict.instance; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Instance"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/instance;instance"; option java_multiple_files = true; option java_outer_classname = "TextClassificationPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.instance"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\Predict\\Instance"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::Predict::Instance"; // Prediction input format for Text Classification. message TextClassificationPredictionInstance { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/text_extraction.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/text_extraction.proto index 8adb28325..697ee1197 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/text_extraction.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/text_extraction.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1.schema.predict.instance; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Instance"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/instance;instance"; option java_multiple_files = true; option java_outer_classname = "TextExtractionPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.instance"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\Predict\\Instance"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::Predict::Instance"; // Prediction input format for Text Extraction. message TextExtractionPredictionInstance { @@ -35,7 +38,7 @@ message TextExtractionPredictionInstance { // This field is only used for batch prediction. If a key is provided, the // batch prediction result will by mapped to this key. If omitted, then the - // batch prediction result will contain the entire input instance. AI Platform + // batch prediction result will contain the entire input instance. Vertex AI // will not check if keys in the request are duplicates, so it is up to the // caller to ensure the keys are unique. string key = 3; diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/text_sentiment.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/text_sentiment.proto index 6a20c75a9..a06c7c2f6 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/text_sentiment.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/text_sentiment.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1.schema.predict.instance; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Instance"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/instance;instance"; option java_multiple_files = true; option java_outer_classname = "TextSentimentPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.instance"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\Predict\\Instance"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::Predict::Instance"; // Prediction input format for Text Sentiment. message TextSentimentPredictionInstance { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/video_action_recognition.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/video_action_recognition.proto index 4ee124384..9ab477e24 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/video_action_recognition.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/video_action_recognition.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1.schema.predict.instance; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Instance"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/instance;instance"; option java_multiple_files = true; option java_outer_classname = "VideoActionRecognitionPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.instance"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\Predict\\Instance"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::Predict::Instance"; // Prediction input format for Video Action Recognition. message VideoActionRecognitionPredictionInstance { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/video_classification.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/video_classification.proto index 74e80068f..68cb3cb35 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/video_classification.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/video_classification.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1.schema.predict.instance; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Instance"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/instance;instance"; option java_multiple_files = true; option java_outer_classname = "VideoClassificationPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.instance"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\Predict\\Instance"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::Predict::Instance"; // Prediction input format for Video Classification. message VideoClassificationPredictionInstance { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/video_object_tracking.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/video_object_tracking.proto index 0a7cbb883..34adc8406 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/video_object_tracking.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/instance/video_object_tracking.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1.schema.predict.instance; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Instance"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/instance;instance"; option java_multiple_files = true; option java_outer_classname = "VideoObjectTrackingPredictionInstanceProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.instance"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\Predict\\Instance"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::Predict::Instance"; // Prediction input format for Video Object Tracking. message VideoObjectTrackingPredictionInstance { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/params/image_classification.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/params/image_classification.proto index 959ad9494..b3cb7e20f 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/params/image_classification.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/params/image_classification.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1.schema.predict.params; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Params"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/params;params"; option java_multiple_files = true; option java_outer_classname = "ImageClassificationPredictionParamsProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.params"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\Predict\\Params"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::Predict::Params"; // Prediction model parameters for Image Classification. message ImageClassificationPredictionParams { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/params/image_object_detection.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/params/image_object_detection.proto index d4a9e4b8d..34130f7c6 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/params/image_object_detection.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/params/image_object_detection.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1.schema.predict.params; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Params"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/params;params"; option java_multiple_files = true; option java_outer_classname = "ImageObjectDetectionPredictionParamsProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.params"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\Predict\\Params"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::Predict::Params"; // Prediction model parameters for Image Object Detection. message ImageObjectDetectionPredictionParams { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/params/image_segmentation.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/params/image_segmentation.proto index 84c604264..50e06ee8d 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/params/image_segmentation.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/params/image_segmentation.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 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,10 +18,13 @@ package google.cloud.aiplatform.v1.schema.predict.params; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Params"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/params;params"; option java_multiple_files = true; option java_outer_classname = "ImageSegmentationPredictionParamsProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.params"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\Predict\\Params"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::Predict::Params"; // Prediction model parameters for Image Segmentation. message ImageSegmentationPredictionParams { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/params/video_action_recognition.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/params/video_action_recognition.proto index 50775f03c..aa6407226 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/params/video_action_recognition.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/params/video_action_recognition.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1.schema.predict.params; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Params"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/params;params"; option java_multiple_files = true; option java_outer_classname = "VideoActionRecognitionPredictionParamsProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.params"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\Predict\\Params"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::Predict::Params"; // Prediction model parameters for Video Action Recognition. message VideoActionRecognitionPredictionParams { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/params/video_classification.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/params/video_classification.proto index f1ae51c1e..ec062072f 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/params/video_classification.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/params/video_classification.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1.schema.predict.params; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Params"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/params;params"; option java_multiple_files = true; option java_outer_classname = "VideoClassificationPredictionParamsProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.params"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\Predict\\Params"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::Predict::Params"; // Prediction model parameters for Video Classification. message VideoClassificationPredictionParams { @@ -34,15 +37,15 @@ message VideoClassificationPredictionParams { // fewer predictions. Default value is 10,000. int32 max_predictions = 2; - // Set to true to request segment-level classification. AI Platform returns + // Set to true to request segment-level classification. Vertex AI returns // labels and their confidence scores for the entire time segment of the // video that user specified in the input instance. // Default value is true bool segment_classification = 3; - // Set to true to request shot-level classification. AI Platform determines + // Set to true to request shot-level classification. Vertex AI determines // the boundaries for each camera shot in the entire time segment of the - // video that user specified in the input instance. AI Platform then + // video that user specified in the input instance. Vertex AI then // returns labels and their confidence scores for each detected shot, along // with the start and end time of the shot. // WARNING: Model evaluation is not done for this classification type, @@ -52,7 +55,7 @@ message VideoClassificationPredictionParams { bool shot_classification = 4; // Set to true to request classification for a video at one-second intervals. - // AI Platform returns labels and their confidence scores for each second of + // Vertex AI returns labels and their confidence scores for each second of // the entire time segment of the video that user specified in the input // WARNING: Model evaluation is not done for this classification type, the // quality of it depends on the training data, but there are no metrics diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/params/video_object_tracking.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/params/video_object_tracking.proto index 1c5fb631d..579dc4d4c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/params/video_object_tracking.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/params/video_object_tracking.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1.schema.predict.params; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Params"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/params;params"; option java_multiple_files = true; option java_outer_classname = "VideoObjectTrackingPredictionParamsProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.params"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\Predict\\Params"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::Predict::Params"; // Prediction model parameters for Video Object Tracking. message VideoObjectTrackingPredictionParams { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/classification.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/classification.proto index 76c636ec8..b8e396ab6 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/classification.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/classification.proto @@ -18,15 +18,17 @@ package google.cloud.aiplatform.v1.schema.predict.prediction; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Prediction"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction;prediction"; option java_multiple_files = true; option java_outer_classname = "ClassificationPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.prediction"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\Predict\\Prediction"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::Predict::Prediction"; // Prediction output format for Image and Text Classification. message ClassificationPredictionResult { - // The resource IDs of the AnnotationSpecs that had been identified, ordered - // by the confidence score descendingly. + // The resource IDs of the AnnotationSpecs that had been identified. repeated int64 ids = 1; // The display names of the AnnotationSpecs that had been identified, order diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/image_object_detection.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/image_object_detection.proto index 235199208..50d76ecc3 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/image_object_detection.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/image_object_detection.proto @@ -19,10 +19,13 @@ package google.cloud.aiplatform.v1.schema.predict.prediction; import "google/protobuf/struct.proto"; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Prediction"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction;prediction"; option java_multiple_files = true; option java_outer_classname = "ImageObjectDetectionPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.prediction"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\Predict\\Prediction"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::Predict::Prediction"; // Prediction output format for Image Object Detection. message ImageObjectDetectionPredictionResult { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/image_segmentation.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/image_segmentation.proto index d5726b149..f245f1e13 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/image_segmentation.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/image_segmentation.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 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,10 +18,13 @@ package google.cloud.aiplatform.v1.schema.predict.prediction; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Prediction"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction;prediction"; option java_multiple_files = true; option java_outer_classname = "ImageSegmentationPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.prediction"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\Predict\\Prediction"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::Predict::Prediction"; // Prediction output format for Image Segmentation. message ImageSegmentationPredictionResult { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_classification.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_classification.proto index a11739285..25cd6672b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_classification.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_classification.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1.schema.predict.prediction; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Prediction"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction;prediction"; option java_multiple_files = true; option java_outer_classname = "TabularClassificationPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.prediction"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\Predict\\Prediction"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::Predict::Prediction"; // Prediction output format for Tabular Classification. message TabularClassificationPredictionResult { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_regression.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_regression.proto index 28c75b4d8..a26c3cb25 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_regression.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_regression.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1.schema.predict.prediction; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Prediction"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction;prediction"; option java_multiple_files = true; option java_outer_classname = "TabularRegressionPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.prediction"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\Predict\\Prediction"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::Predict::Prediction"; // Prediction output format for Tabular Regression. message TabularRegressionPredictionResult { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/text_extraction.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/text_extraction.proto index 01a119095..00ca76943 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/text_extraction.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/text_extraction.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1.schema.predict.prediction; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Prediction"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction;prediction"; option java_multiple_files = true; option java_outer_classname = "TextExtractionPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.prediction"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\Predict\\Prediction"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::Predict::Prediction"; // Prediction output format for Text Extraction. message TextExtractionPredictionResult { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/text_sentiment.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/text_sentiment.proto index a2a3c94f8..09d24248d 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/text_sentiment.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/text_sentiment.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1.schema.predict.prediction; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.Predict.Prediction"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction;prediction"; option java_multiple_files = true; option java_outer_classname = "TextSentimentPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.prediction"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\Predict\\Prediction"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::Predict::Prediction"; // Prediction output format for Text Sentiment message TextSentimentPredictionResult { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/video_action_recognition.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/video_action_recognition.proto index e45ccef2a..6cd59711c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/video_action_recognition.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/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.V1.Schema.Predict.Prediction"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction;prediction"; option java_multiple_files = true; option java_outer_classname = "VideoActionRecognitionPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.prediction"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\Predict\\Prediction"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::Predict::Prediction"; // Prediction output format for Video Action Recognition. message VideoActionRecognitionPredictionResult { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/video_classification.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/video_classification.proto index 873350394..5d33c5aea 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/video_classification.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/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.V1.Schema.Predict.Prediction"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction;prediction"; option java_multiple_files = true; option java_outer_classname = "VideoClassificationPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.prediction"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\Predict\\Prediction"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::Predict::Prediction"; // Prediction output format for Video Classification. message VideoClassificationPredictionResult { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/video_object_tracking.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/video_object_tracking.proto index 2a39204b7..20ecbb1a7 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/predict/prediction/video_object_tracking.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/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.V1.Schema.Predict.Prediction"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction;prediction"; option java_multiple_files = true; option java_outer_classname = "VideoObjectTrackingPredictionResultProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.predict.prediction"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\Predict\\Prediction"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::Predict::Prediction"; // Prediction output format for Video Object Tracking. message VideoObjectTrackingPredictionResult { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_classification.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_classification.proto index d5f365aef..f51227cfb 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_classification.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_classification.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1.schema.trainingjob.definition; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.TrainingJob.Definition"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; option java_multiple_files = true; option java_outer_classname = "AutoMLImageClassificationProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\TrainingJob\\Definition"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::TrainingJob::Definition"; // A TrainingJob that trains and uploads an AutoML Image Classification Model. message AutoMlImageClassification { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_object_detection.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_object_detection.proto index 5abceb55b..62e7ae2c3 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_object_detection.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_object_detection.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1.schema.trainingjob.definition; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.TrainingJob.Definition"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; option java_multiple_files = true; option java_outer_classname = "AutoMLImageObjectDetectionProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\TrainingJob\\Definition"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::TrainingJob::Definition"; // A TrainingJob that trains and uploads an AutoML Image Object Detection Model. message AutoMlImageObjectDetection { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_segmentation.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_segmentation.proto index 2747b2968..00af43c1c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_segmentation.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_segmentation.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 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,10 +18,13 @@ package google.cloud.aiplatform.v1.schema.trainingjob.definition; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.TrainingJob.Definition"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; option java_multiple_files = true; option java_outer_classname = "AutoMLImageSegmentationProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\TrainingJob\\Definition"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::TrainingJob::Definition"; // A TrainingJob that trains and uploads an AutoML Image Segmentation Model. message AutoMlImageSegmentation { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_tables.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_tables.proto index 09ecd2dd7..0c4ee2d6e 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_tables.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_tables.proto @@ -16,13 +16,17 @@ syntax = "proto3"; package google.cloud.aiplatform.v1.schema.trainingjob.definition; +import "google/api/field_behavior.proto"; import "google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto"; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.TrainingJob.Definition"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; option java_multiple_files = true; option java_outer_classname = "AutoMLTablesProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\TrainingJob\\Definition"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::TrainingJob::Definition"; // A TrainingJob that trains and uploads an AutoML Tables Model. message AutoMlTables { @@ -267,6 +271,9 @@ message AutoMlTablesInputs { // Configuration for exporting test set predictions to a BigQuery table. If // this configuration is absent, then the export is not performed. ExportEvaluatedDataItemsConfig export_evaluated_data_items_config = 10; + + // Additional experiment flags for the Tables training pipeline. + repeated string additional_experiments = 11; } // Model metadata specific to AutoML Tables. diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_classification.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_classification.proto index 3f03fcb97..8723af0e8 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_classification.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_classification.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1.schema.trainingjob.definition; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.TrainingJob.Definition"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; option java_multiple_files = true; option java_outer_classname = "AutoMLTextClassificationProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\TrainingJob\\Definition"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::TrainingJob::Definition"; // A TrainingJob that trains and uploads an AutoML Text Classification Model. message AutoMlTextClassification { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_extraction.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_extraction.proto index 9a08edd6e..db33c3f56 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_extraction.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_extraction.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1.schema.trainingjob.definition; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.TrainingJob.Definition"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; option java_multiple_files = true; option java_outer_classname = "AutoMLTextExtractionProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\TrainingJob\\Definition"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::TrainingJob::Definition"; // A TrainingJob that trains and uploads an AutoML Text Extraction Model. message AutoMlTextExtraction { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_sentiment.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_sentiment.proto index 2d9120976..153a57fe5 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_sentiment.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_sentiment.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1.schema.trainingjob.definition; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.TrainingJob.Definition"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; option java_multiple_files = true; option java_outer_classname = "AutoMLTextSentimentProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\TrainingJob\\Definition"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::TrainingJob::Definition"; // A TrainingJob that trains and uploads an AutoML Text Sentiment Model. message AutoMlTextSentiment { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_action_recognition.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_action_recognition.proto index 8ed75139a..86f723b7d 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_action_recognition.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_action_recognition.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1.schema.trainingjob.definition; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.TrainingJob.Definition"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; option java_multiple_files = true; option java_outer_classname = "AutoMLVideoActionRecognitionProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\TrainingJob\\Definition"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::TrainingJob::Definition"; // A TrainingJob that trains and uploads an AutoML Video Action Recognition // Model. @@ -43,6 +46,16 @@ message AutoMlVideoActionRecognitionInputs { // also be exported (see ModelService.ExportModel) as a TensorFlow or // TensorFlow Lite model and used on a mobile or edge device afterwards. MOBILE_VERSATILE_1 = 2; + + // A model that, in addition to being available within Google Cloud, can + // also be exported (see ModelService.ExportModel) to a Jetson device + // afterwards. + MOBILE_JETSON_VERSATILE_1 = 3; + + // A model that, in addition to being available within Google Cloud, can + // also be exported (see ModelService.ExportModel) as a TensorFlow or + // TensorFlow Lite model and used on a Coral device afterwards. + MOBILE_CORAL_VERSATILE_1 = 4; } ModelType model_type = 1; diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto index ca94acd18..ff0d78f08 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1.schema.trainingjob.definition; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.TrainingJob.Definition"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; option java_multiple_files = true; option java_outer_classname = "AutoMLVideoClassificationProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\TrainingJob\\Definition"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::TrainingJob::Definition"; // A TrainingJob that trains and uploads an AutoML Video Classification Model. message AutoMlVideoClassification { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto index d7a931119..52cba9f38 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1.schema.trainingjob.definition; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.TrainingJob.Definition"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; option java_multiple_files = true; option java_outer_classname = "AutoMLVideoObjectTrackingProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\TrainingJob\\Definition"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::TrainingJob::Definition"; // A TrainingJob that trains and uploads an AutoML Video ObjectTracking Model. message AutoMlVideoObjectTracking { diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto index a22461df9..ac0d32356 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1.schema.trainingjob.definition; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AIPlatform.V1.Schema.TrainingJob.Definition"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; option java_multiple_files = true; option java_outer_classname = "ExportEvaluatedDataItemsConfigProto"; option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1\\Schema\\TrainingJob\\Definition"; +option ruby_package = "Google::Cloud::AIPlatform::V1::Schema::TrainingJob::Definition"; // Configuration for exporting test set predictions to a BigQuery table. message ExportEvaluatedDataItemsConfig { @@ -30,7 +33,6 @@ message ExportEvaluatedDataItemsConfig { // // If not specified, then results are exported to the following auto-created // BigQuery table: - // // :export_evaluated_examples__.evaluated_examples string destination_bigquery_uri = 1; diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/specialist_pool.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/specialist_pool.proto index 936363775..9722e5447 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/specialist_pool.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/specialist_pool.proto @@ -20,10 +20,13 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/api/annotations.proto"; +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 = "SpecialistPoolProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // SpecialistPool represents customers' own workforce to work on their data // labeling jobs. It includes a group of specialist managers who are responsible diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/specialist_pool_service.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/specialist_pool_service.proto index 68fe29397..ad17178f6 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/specialist_pool_service.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/specialist_pool_service.proto @@ -25,10 +25,13 @@ import "google/cloud/aiplatform/v1/specialist_pool.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; +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 = "SpecialistPoolServiceProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // A service for creating and managing Customer SpecialistPools. // When customers start Data Labeling jobs, they can reuse/create Specialist diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/study.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/study.proto index 1873ba14a..c05c49e5b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/study.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/study.proto @@ -21,13 +21,15 @@ import "google/api/resource.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +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 = "StudyProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // A message representing a Trial. A Trial contains a unique set of Parameters // that has been or will be evaluated, along with the objective metrics got by @@ -76,6 +78,9 @@ message Trial { INFEASIBLE = 5; } + // Output only. Resource name of the Trial assigned by the service. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The identifier of the Trial assigned by the service. string id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -88,12 +93,31 @@ message Trial { // Output only. The final measurement containing the objective value. Measurement final_measurement = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. A list of measurements that are strictly lexicographically + // ordered by their induced tuples (steps, elapsed_duration). + // These are used for early stopping computations. + repeated Measurement measurements = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Time when the Trial was started. google.protobuf.Timestamp start_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when the Trial's status changed to `SUCCEEDED` or `INFEASIBLE`. google.protobuf.Timestamp end_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The identifier of the client that originally requested this Trial. + // Each client is identified by a unique client_id. When a client + // asks for a suggestion, Vizier will assign it a Trial. The client should + // evaluate the Trial, complete it, and report back to Vizier. + // If suggestion is asked again by same client_id before the Trial is + // completed, the same Trial will be returned. Multiple clients with + // different client_ids can ask for suggestions simultaneously, each of them + // will get their own Trial. + string client_id = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A human readable string describing why the Trial is + // infeasible. This is set only if Trial state is `INFEASIBLE`. + string infeasible_reason = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The CustomJob name linked to the Trial. // It's set for a HyperparameterTuningJob's Trial. string custom_job = 11 [ @@ -137,6 +161,14 @@ message StudySpec { // Required. Inclusive maximum value of the parameter. double max_value = 2 [(google.api.field_behavior) = REQUIRED]; + + // A default value for a `DOUBLE` parameter that is assumed to be a + // relatively good starting point. Unset value signals that there is no + // offered starting point. + // + // Currently only supported by the Vizier service. Not supported by + // HyperparamterTuningJob or TrainingPipeline. + optional double default_value = 4; } // Value specification for a parameter in `INTEGER` type. @@ -146,12 +178,28 @@ message StudySpec { // Required. Inclusive maximum value of the parameter. int64 max_value = 2 [(google.api.field_behavior) = REQUIRED]; + + // A default value for an `INTEGER` parameter that is assumed to be a + // relatively good starting point. Unset value signals that there is no + // offered starting point. + // + // Currently only supported by the Vizier service. Not supported by + // HyperparamterTuningJob or TrainingPipeline. + optional int64 default_value = 4; } // Value specification for a parameter in `CATEGORICAL` type. message CategoricalValueSpec { // Required. The list of possible categories. repeated string values = 1 [(google.api.field_behavior) = REQUIRED]; + + // A default value for a `CATEGORICAL` parameter that is assumed to be a + // relatively good starting point. Unset value signals that there is no + // offered starting point. + // + // Currently only supported by the Vizier service. Not supported by + // HyperparamterTuningJob or TrainingPipeline. + optional string default_value = 3; } // Value specification for a parameter in `DISCRETE` type. @@ -161,6 +209,15 @@ message StudySpec { // For instance, this parameter might have possible settings of 1.5, 2.5, // and 4.0. This list should not contain more than 1,000 values. repeated double values = 1 [(google.api.field_behavior) = REQUIRED]; + + // A default value for a `DISCRETE` parameter that is assumed to be a + // relatively good starting point. Unset value signals that there is no + // offered starting point. It automatically rounds to the + // nearest feasible discrete point. + // + // Currently only supported by the Vizier service. Not supported by + // HyperparamterTuningJob or TrainingPipeline. + optional double default_value = 3; } // Represents a parameter spec with condition from its parent parameter. @@ -347,6 +404,9 @@ message Measurement { double value = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } + // Output only. Time that the Trial has been running at the point of this Measurement. + google.protobuf.Duration elapsed_duration = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The number of steps the machine learning model has been trained for. // Must be non-negative. int64 step_count = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/training_pipeline.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/training_pipeline.proto index 8ac39343c..6e469a97c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/training_pipeline.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/training_pipeline.proto @@ -29,10 +29,13 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; import "google/api/annotations.proto"; +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 = "TrainingPipelineProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // The TrainingPipeline orchestrates tasks associated with training a Model. It // always executes the training task, and optionally may also diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/user_action_reference.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/user_action_reference.proto index 5e804e0d2..ffafed034 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/user_action_reference.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/user_action_reference.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1; import "google/api/annotations.proto"; +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 = "UserActionReferenceProto"; option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; // References an API call. It contains more information about long running // operation and Jobs that are triggered by the API call. diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/value.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/value.proto new file mode 100644 index 000000000..48607bf95 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/value.proto @@ -0,0 +1,41 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/annotations.proto"; + +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 = "ValueProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// Value is the value of the field. +message Value { + oneof value { + // An integer value. + int64 int_value = 1; + + // A double value. + double double_value = 2; + + // A string value. + string string_value = 3; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/clirr-ignored-differences.xml b/proto-google-cloud-aiplatform-v1beta1/clirr-ignored-differences.xml index ca1d35040..eca4e0f01 100644 --- a/proto-google-cloud-aiplatform-v1beta1/clirr-ignored-differences.xml +++ b/proto-google-cloud-aiplatform-v1beta1/clirr-ignored-differences.xml @@ -72,4 +72,21 @@ com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/*OrBuilder boolean has*(*) + + + 8001 + com/google/cloud/aiplatform/v1beta1/Annotated* + + + 8001 + com/google/cloud/aiplatform/v1beta1/Annotation* + + + 8001 + com/google/cloud/aiplatform/v1beta1/NetworkName* + + + 8001 + com/google/cloud/aiplatform/v1beta1/VersionName* + diff --git a/proto-google-cloud-aiplatform-v1beta1/pom.xml b/proto-google-cloud-aiplatform-v1beta1/pom.xml index 9fb9d6294..82ba70858 100644 --- a/proto-google-cloud-aiplatform-v1beta1/pom.xml +++ b/proto-google-cloud-aiplatform-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.5.2 + 0.6.0 proto-google-cloud-aiplatform-v1beta1 Proto library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 1.0.2 + 2.0.0 diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorTypeProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorTypeProto.java index baf56af96..5fe857338 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorTypeProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorTypeProto.java @@ -42,11 +42,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "UNSPECIFIED\020\000\022\024\n\020NVIDIA_TESLA_K80\020\001\022\025\n\021N" + "VIDIA_TESLA_P100\020\002\022\025\n\021NVIDIA_TESLA_V100\020" + "\003\022\023\n\017NVIDIA_TESLA_P4\020\004\022\023\n\017NVIDIA_TESLA_T" - + "4\020\005\022\025\n\021NVIDIA_TESLA_A100\020\010B\210\001\n#com.googl" + + "4\020\005\022\025\n\021NVIDIA_TESLA_A100\020\010B\361\001\n#com.googl" + "e.cloud.aiplatform.v1beta1B\024AcceleratorT" + "ypeProtoP\001ZIgoogle.golang.org/genproto/g" + "oogleapis/cloud/aiplatform/v1beta1;aipla" - + "tformb\006proto3" + + "tform\252\002\037Google.Cloud.AIPlatform.V1Beta1\312" + + "\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Goog" + + "le::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotatedDatasetName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotatedDatasetName.java deleted file mode 100644 index ee6a05cfd..000000000 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotatedDatasetName.java +++ /dev/null @@ -1,227 +0,0 @@ -/* - * Copyright 2021 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.v1beta1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class AnnotatedDatasetName implements ResourceName { - private static final PathTemplate PROJECT_DATASET_ANNOTATED_DATASET = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}"); - private volatile Map fieldValuesMap; - private final String project; - private final String dataset; - private final String annotatedDataset; - - @Deprecated - protected AnnotatedDatasetName() { - project = null; - dataset = null; - annotatedDataset = null; - } - - private AnnotatedDatasetName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - dataset = Preconditions.checkNotNull(builder.getDataset()); - annotatedDataset = Preconditions.checkNotNull(builder.getAnnotatedDataset()); - } - - public String getProject() { - return project; - } - - public String getDataset() { - return dataset; - } - - public String getAnnotatedDataset() { - return annotatedDataset; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static AnnotatedDatasetName of(String project, String dataset, String annotatedDataset) { - return newBuilder() - .setProject(project) - .setDataset(dataset) - .setAnnotatedDataset(annotatedDataset) - .build(); - } - - public static String format(String project, String dataset, String annotatedDataset) { - return newBuilder() - .setProject(project) - .setDataset(dataset) - .setAnnotatedDataset(annotatedDataset) - .build() - .toString(); - } - - public static AnnotatedDatasetName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_DATASET_ANNOTATED_DATASET.validatedMatch( - formattedString, "AnnotatedDatasetName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("dataset"), matchMap.get("annotated_dataset")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (AnnotatedDatasetName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_DATASET_ANNOTATED_DATASET.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (dataset != null) { - fieldMapBuilder.put("dataset", dataset); - } - if (annotatedDataset != null) { - fieldMapBuilder.put("annotated_dataset", annotatedDataset); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_DATASET_ANNOTATED_DATASET.instantiate( - "project", project, "dataset", dataset, "annotated_dataset", annotatedDataset); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - AnnotatedDatasetName that = ((AnnotatedDatasetName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.dataset, that.dataset) - && Objects.equals(this.annotatedDataset, that.annotatedDataset); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(dataset); - h *= 1000003; - h ^= Objects.hashCode(annotatedDataset); - return h; - } - - /** Builder for projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}. */ - public static class Builder { - private String project; - private String dataset; - private String annotatedDataset; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getDataset() { - return dataset; - } - - public String getAnnotatedDataset() { - return annotatedDataset; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setDataset(String dataset) { - this.dataset = dataset; - return this; - } - - public Builder setAnnotatedDataset(String annotatedDataset) { - this.annotatedDataset = annotatedDataset; - return this; - } - - private Builder(AnnotatedDatasetName annotatedDatasetName) { - this.project = annotatedDatasetName.project; - this.dataset = annotatedDatasetName.dataset; - this.annotatedDataset = annotatedDatasetName.annotatedDataset; - } - - public AnnotatedDatasetName build() { - return new AnnotatedDatasetName(this); - } - } -} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationName.java deleted file mode 100644 index 53c162f09..000000000 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationName.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Copyright 2021 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.v1beta1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class AnnotationName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_DATASET_DATA_ITEM_ANNOTATION = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}/annotations/{annotation}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String dataset; - private final String dataItem; - private final String annotation; - - @Deprecated - protected AnnotationName() { - project = null; - location = null; - dataset = null; - dataItem = null; - annotation = null; - } - - private AnnotationName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - dataset = Preconditions.checkNotNull(builder.getDataset()); - dataItem = Preconditions.checkNotNull(builder.getDataItem()); - annotation = Preconditions.checkNotNull(builder.getAnnotation()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getDataset() { - return dataset; - } - - public String getDataItem() { - return dataItem; - } - - public String getAnnotation() { - return annotation; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static AnnotationName of( - String project, String location, String dataset, String dataItem, String annotation) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setDataset(dataset) - .setDataItem(dataItem) - .setAnnotation(annotation) - .build(); - } - - public static String format( - String project, String location, String dataset, String dataItem, String annotation) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setDataset(dataset) - .setDataItem(dataItem) - .setAnnotation(annotation) - .build() - .toString(); - } - - public static AnnotationName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_DATASET_DATA_ITEM_ANNOTATION.validatedMatch( - formattedString, "AnnotationName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), - matchMap.get("location"), - matchMap.get("dataset"), - matchMap.get("data_item"), - matchMap.get("annotation")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (AnnotationName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_DATASET_DATA_ITEM_ANNOTATION.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (location != null) { - fieldMapBuilder.put("location", location); - } - if (dataset != null) { - fieldMapBuilder.put("dataset", dataset); - } - if (dataItem != null) { - fieldMapBuilder.put("data_item", dataItem); - } - if (annotation != null) { - fieldMapBuilder.put("annotation", annotation); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_DATASET_DATA_ITEM_ANNOTATION.instantiate( - "project", - project, - "location", - location, - "dataset", - dataset, - "data_item", - dataItem, - "annotation", - annotation); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - AnnotationName that = ((AnnotationName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.dataset, that.dataset) - && Objects.equals(this.dataItem, that.dataItem) - && Objects.equals(this.annotation, that.annotation); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(location); - h *= 1000003; - h ^= Objects.hashCode(dataset); - h *= 1000003; - h ^= Objects.hashCode(dataItem); - h *= 1000003; - h ^= Objects.hashCode(annotation); - return h; - } - - /** - * Builder for - * projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}/annotations/{annotation}. - */ - public static class Builder { - private String project; - private String location; - private String dataset; - private String dataItem; - private String annotation; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getDataset() { - return dataset; - } - - public String getDataItem() { - return dataItem; - } - - public String getAnnotation() { - return annotation; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setDataset(String dataset) { - this.dataset = dataset; - return this; - } - - public Builder setDataItem(String dataItem) { - this.dataItem = dataItem; - return this; - } - - public Builder setAnnotation(String annotation) { - this.annotation = annotation; - return this; - } - - private Builder(AnnotationName annotationName) { - this.project = annotationName.project; - this.location = annotationName.location; - this.dataset = annotationName.dataset; - this.dataItem = annotationName.dataItem; - this.annotation = annotationName.annotation; - } - - public AnnotationName build() { - return new AnnotationName(this); - } - } -} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationProto.java index 2191772fe..1c8ac7eb6 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationProto.java @@ -66,11 +66,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "latform.googleapis.com/Annotation\022iproje" + "cts/{project}/locations/{location}/datas" + "ets/{dataset}/dataItems/{data_item}/anno" - + "tations/{annotation}B\203\001\n#com.google.clou" + + "tations/{annotation}B\354\001\n#com.google.clou" + "d.aiplatform.v1beta1B\017AnnotationProtoP\001Z" + "Igoogle.golang.org/genproto/googleapis/c" - + "loud/aiplatform/v1beta1;aiplatformb\006prot" - + "o3" + + "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( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpecProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpecProto.java index ed6fa947b..d75985352 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpecProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpecProto.java @@ -53,11 +53,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\001:\214\001\352A\210\001\n(aiplatform.googleapis.com/An" + "notationSpec\022\\projects/{project}/locatio" + "ns/{location}/datasets/{dataset}/annotat" - + "ionSpecs/{annotation_spec}B\207\001\n#com.googl" + + "ionSpecs/{annotation_spec}B\360\001\n#com.googl" + "e.cloud.aiplatform.v1beta1B\023AnnotationSp" + "ecProtoP\001ZIgoogle.golang.org/genproto/go" + "ogleapis/cloud/aiplatform/v1beta1;aiplat" - + "formb\006proto3" + + "form\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002" + + "\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Googl" + + "e::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ArtifactProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ArtifactProto.java index 2b5651f12..d62d6ca65 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ArtifactProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ArtifactProto.java @@ -67,11 +67,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ING\020\001\022\010\n\004LIVE\020\002:\206\001\352A\202\001\n\"aiplatform.googl" + "eapis.com/Artifact\022\\projects/{project}/l" + "ocations/{location}/metadataStores/{meta" - + "data_store}/artifacts/{artifact}B\201\001\n#com" + + "data_store}/artifacts/{artifact}B\352\001\n#com" + ".google.cloud.aiplatform.v1beta1B\rArtifa" + "ctProtoP\001ZIgoogle.golang.org/genproto/go" + "ogleapis/cloud/aiplatform/v1beta1;aiplat" - + "formb\006proto3" + + "form\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002" + + "\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Googl" + + "e::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJob.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJob.java index 64cd3d253..20a4aadba 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJob.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJob.java @@ -1966,8 +1966,7 @@ public interface OutputConfigOrBuilder * `errors_N.<extension>` files are created (N depends on total number * of failed predictions). These files contain the failed instances, * as per their schema, followed by an additional `error` field which as - * value has - * [`google.rpc.Status`](Status) + * value has [google.rpc.Status][google.rpc.Status] * containing only `code` and `message` fields. *
* @@ -1998,8 +1997,7 @@ public interface OutputConfigOrBuilder * `errors_N.<extension>` files are created (N depends on total number * of failed predictions). These files contain the failed instances, * as per their schema, followed by an additional `error` field which as - * value has - * [`google.rpc.Status`](Status) + * value has [google.rpc.Status][google.rpc.Status] * containing only `code` and `message` fields. *
* @@ -2030,8 +2028,7 @@ public interface OutputConfigOrBuilder * `errors_N.<extension>` files are created (N depends on total number * of failed predictions). These files contain the failed instances, * as per their schema, followed by an additional `error` field which as - * value has - * [`google.rpc.Status`](Status) + * value has [google.rpc.Status][google.rpc.Status] * containing only `code` and `message` fields. *
* @@ -2059,7 +2056,7 @@ public interface OutputConfigOrBuilder * prediction schemata. The `errors` table contains rows for which the * prediction has failed, it has instance columns, as per the * instance schema, followed by a single "errors" column, which as values - * has [`google.rpc.Status`](Status) + * has [google.rpc.Status][google.rpc.Status] * represented as a STRUCT, and containing only `code` and `message`. *
* @@ -2088,7 +2085,7 @@ public interface OutputConfigOrBuilder * prediction schemata. The `errors` table contains rows for which the * prediction has failed, it has instance columns, as per the * instance schema, followed by a single "errors" column, which as values - * has [`google.rpc.Status`](Status) + * has [google.rpc.Status][google.rpc.Status] * represented as a STRUCT, and containing only `code` and `message`. *
* @@ -2117,7 +2114,7 @@ public interface OutputConfigOrBuilder * prediction schemata. The `errors` table contains rows for which the * prediction has failed, it has instance columns, as per the * instance schema, followed by a single "errors" column, which as values - * has [`google.rpc.Status`](Status) + * has [google.rpc.Status][google.rpc.Status] * represented as a STRUCT, and containing only `code` and `message`. *
* @@ -2363,8 +2360,7 @@ public DestinationCase getDestinationCase() { * `errors_N.<extension>` files are created (N depends on total number * of failed predictions). These files contain the failed instances, * as per their schema, followed by an additional `error` field which as - * value has - * [`google.rpc.Status`](Status) + * value has [google.rpc.Status][google.rpc.Status] * containing only `code` and `message` fields. *
* @@ -2398,8 +2394,7 @@ public boolean hasGcsDestination() { * `errors_N.<extension>` files are created (N depends on total number * of failed predictions). These files contain the failed instances, * as per their schema, followed by an additional `error` field which as - * value has - * [`google.rpc.Status`](Status) + * value has [google.rpc.Status][google.rpc.Status] * containing only `code` and `message` fields. *
* @@ -2436,8 +2431,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestination getGcsDestination() { * `errors_N.<extension>` files are created (N depends on total number * of failed predictions). These files contain the failed instances, * as per their schema, followed by an additional `error` field which as - * value has - * [`google.rpc.Status`](Status) + * value has [google.rpc.Status][google.rpc.Status] * containing only `code` and `message` fields. *
* @@ -2473,7 +2467,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestination getGcsDestination() { * prediction schemata. The `errors` table contains rows for which the * prediction has failed, it has instance columns, as per the * instance schema, followed by a single "errors" column, which as values - * has [`google.rpc.Status`](Status) + * has [google.rpc.Status][google.rpc.Status] * represented as a STRUCT, and containing only `code` and `message`. *
* @@ -2505,7 +2499,7 @@ public boolean hasBigqueryDestination() { * prediction schemata. The `errors` table contains rows for which the * prediction has failed, it has instance columns, as per the * instance schema, followed by a single "errors" column, which as values - * has [`google.rpc.Status`](Status) + * has [google.rpc.Status][google.rpc.Status] * represented as a STRUCT, and containing only `code` and `message`. *
* @@ -2540,7 +2534,7 @@ public com.google.cloud.aiplatform.v1beta1.BigQueryDestination getBigqueryDestin * prediction schemata. The `errors` table contains rows for which the * prediction has failed, it has instance columns, as per the * instance schema, followed by a single "errors" column, which as values - * has [`google.rpc.Status`](Status) + * has [google.rpc.Status][google.rpc.Status] * represented as a STRUCT, and containing only `code` and `message`. *
* @@ -3055,8 +3049,7 @@ public Builder clearDestination() { * `errors_N.<extension>` files are created (N depends on total number * of failed predictions). These files contain the failed instances, * as per their schema, followed by an additional `error` field which as - * value has - * [`google.rpc.Status`](Status) + * value has [google.rpc.Status][google.rpc.Status] * containing only `code` and `message` fields. *
* @@ -3090,8 +3083,7 @@ public boolean hasGcsDestination() { * `errors_N.<extension>` files are created (N depends on total number * of failed predictions). These files contain the failed instances, * as per their schema, followed by an additional `error` field which as - * value has - * [`google.rpc.Status`](Status) + * value has [google.rpc.Status][google.rpc.Status] * containing only `code` and `message` fields. *
* @@ -3135,8 +3127,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestination getGcsDestination() { * `errors_N.<extension>` files are created (N depends on total number * of failed predictions). These files contain the failed instances, * as per their schema, followed by an additional `error` field which as - * value has - * [`google.rpc.Status`](Status) + * value has [google.rpc.Status][google.rpc.Status] * containing only `code` and `message` fields. *
* @@ -3177,8 +3168,7 @@ public Builder setGcsDestination(com.google.cloud.aiplatform.v1beta1.GcsDestinat * `errors_N.<extension>` files are created (N depends on total number * of failed predictions). These files contain the failed instances, * as per their schema, followed by an additional `error` field which as - * value has - * [`google.rpc.Status`](Status) + * value has [google.rpc.Status][google.rpc.Status] * containing only `code` and `message` fields. * * @@ -3217,8 +3207,7 @@ public Builder setGcsDestination( * `errors_N.<extension>` files are created (N depends on total number * of failed predictions). These files contain the failed instances, * as per their schema, followed by an additional `error` field which as - * value has - * [`google.rpc.Status`](Status) + * value has [google.rpc.Status][google.rpc.Status] * containing only `code` and `message` fields. * * @@ -3269,8 +3258,7 @@ public Builder mergeGcsDestination(com.google.cloud.aiplatform.v1beta1.GcsDestin * `errors_N.<extension>` files are created (N depends on total number * of failed predictions). These files contain the failed instances, * as per their schema, followed by an additional `error` field which as - * value has - * [`google.rpc.Status`](Status) + * value has [google.rpc.Status][google.rpc.Status] * containing only `code` and `message` fields. * * @@ -3314,8 +3302,7 @@ public Builder clearGcsDestination() { * `errors_N.<extension>` files are created (N depends on total number * of failed predictions). These files contain the failed instances, * as per their schema, followed by an additional `error` field which as - * value has - * [`google.rpc.Status`](Status) + * value has [google.rpc.Status][google.rpc.Status] * containing only `code` and `message` fields. * * @@ -3346,8 +3333,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder getGcsDestinat * `errors_N.<extension>` files are created (N depends on total number * of failed predictions). These files contain the failed instances, * as per their schema, followed by an additional `error` field which as - * value has - * [`google.rpc.Status`](Status) + * value has [google.rpc.Status][google.rpc.Status] * containing only `code` and `message` fields. * * @@ -3387,8 +3373,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder getGcsDestinat * `errors_N.<extension>` files are created (N depends on total number * of failed predictions). These files contain the failed instances, * as per their schema, followed by an additional `error` field which as - * value has - * [`google.rpc.Status`](Status) + * value has [google.rpc.Status][google.rpc.Status] * containing only `code` and `message` fields. * * @@ -3444,7 +3429,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder getGcsDestinat * prediction schemata. The `errors` table contains rows for which the * prediction has failed, it has instance columns, as per the * instance schema, followed by a single "errors" column, which as values - * has [`google.rpc.Status`](Status) + * has [google.rpc.Status][google.rpc.Status] * represented as a STRUCT, and containing only `code` and `message`. * * @@ -3476,7 +3461,7 @@ public boolean hasBigqueryDestination() { * prediction schemata. The `errors` table contains rows for which the * prediction has failed, it has instance columns, as per the * instance schema, followed by a single "errors" column, which as values - * has [`google.rpc.Status`](Status) + * has [google.rpc.Status][google.rpc.Status] * represented as a STRUCT, and containing only `code` and `message`. * * @@ -3518,7 +3503,7 @@ public com.google.cloud.aiplatform.v1beta1.BigQueryDestination getBigqueryDestin * prediction schemata. The `errors` table contains rows for which the * prediction has failed, it has instance columns, as per the * instance schema, followed by a single "errors" column, which as values - * has [`google.rpc.Status`](Status) + * has [google.rpc.Status][google.rpc.Status] * represented as a STRUCT, and containing only `code` and `message`. * * @@ -3558,7 +3543,7 @@ public Builder setBigqueryDestination( * prediction schemata. The `errors` table contains rows for which the * prediction has failed, it has instance columns, as per the * instance schema, followed by a single "errors" column, which as values - * has [`google.rpc.Status`](Status) + * has [google.rpc.Status][google.rpc.Status] * represented as a STRUCT, and containing only `code` and `message`. * * @@ -3595,7 +3580,7 @@ public Builder setBigqueryDestination( * prediction schemata. The `errors` table contains rows for which the * prediction has failed, it has instance columns, as per the * instance schema, followed by a single "errors" column, which as values - * has [`google.rpc.Status`](Status) + * has [google.rpc.Status][google.rpc.Status] * represented as a STRUCT, and containing only `code` and `message`. * * @@ -3645,7 +3630,7 @@ public Builder mergeBigqueryDestination( * prediction schemata. The `errors` table contains rows for which the * prediction has failed, it has instance columns, as per the * instance schema, followed by a single "errors" column, which as values - * has [`google.rpc.Status`](Status) + * has [google.rpc.Status][google.rpc.Status] * represented as a STRUCT, and containing only `code` and `message`. * * @@ -3687,7 +3672,7 @@ public Builder clearBigqueryDestination() { * prediction schemata. The `errors` table contains rows for which the * prediction has failed, it has instance columns, as per the * instance schema, followed by a single "errors" column, which as values - * has [`google.rpc.Status`](Status) + * has [google.rpc.Status][google.rpc.Status] * represented as a STRUCT, and containing only `code` and `message`. * * @@ -3717,7 +3702,7 @@ public Builder clearBigqueryDestination() { * prediction schemata. The `errors` table contains rows for which the * prediction has failed, it has instance columns, as per the * instance schema, followed by a single "errors" column, which as values - * has [`google.rpc.Status`](Status) + * has [google.rpc.Status][google.rpc.Status] * represented as a STRUCT, and containing only `code` and `message`. * * @@ -3755,7 +3740,7 @@ public Builder clearBigqueryDestination() { * prediction schemata. The `errors` table contains rows for which the * prediction has failed, it has instance columns, as per the * instance schema, followed by a single "errors" column, which as values - * has [`google.rpc.Status`](Status) + * has [google.rpc.Status][google.rpc.Status] * represented as a STRUCT, and containing only `code` and `message`. * * @@ -4046,6 +4031,37 @@ public interface OutputInfoOrBuilder */ com.google.protobuf.ByteString getBigqueryOutputDatasetBytes(); + /** + * + * + *
+     * Output only. The name of the BigQuery table created, in
+     * `predictions_<timestamp>`
+     * format, into which the prediction output is written.
+     * Can be used by UI to generate the BigQuery output path, for example.
+     * 
+ * + * string bigquery_output_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bigqueryOutputTable. + */ + java.lang.String getBigqueryOutputTable(); + /** + * + * + *
+     * Output only. The name of the BigQuery table created, in
+     * `predictions_<timestamp>`
+     * format, into which the prediction output is written.
+     * Can be used by UI to generate the BigQuery output path, for example.
+     * 
+ * + * string bigquery_output_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for bigqueryOutputTable. + */ + com.google.protobuf.ByteString getBigqueryOutputTableBytes(); + public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo.OutputLocationCase getOutputLocationCase(); } @@ -4069,7 +4085,9 @@ private OutputInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OutputInfo() {} + private OutputInfo() { + bigqueryOutputTable_ = ""; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -4114,6 +4132,13 @@ private OutputInfo( outputLocation_ = s; break; } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + bigqueryOutputTable_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -4344,6 +4369,61 @@ public com.google.protobuf.ByteString getBigqueryOutputDatasetBytes() { } } + public static final int BIGQUERY_OUTPUT_TABLE_FIELD_NUMBER = 4; + private volatile java.lang.Object bigqueryOutputTable_; + /** + * + * + *
+     * Output only. The name of the BigQuery table created, in
+     * `predictions_<timestamp>`
+     * format, into which the prediction output is written.
+     * Can be used by UI to generate the BigQuery output path, for example.
+     * 
+ * + * string bigquery_output_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bigqueryOutputTable. + */ + @java.lang.Override + public java.lang.String getBigqueryOutputTable() { + java.lang.Object ref = bigqueryOutputTable_; + 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(); + bigqueryOutputTable_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. The name of the BigQuery table created, in
+     * `predictions_<timestamp>`
+     * format, into which the prediction output is written.
+     * Can be used by UI to generate the BigQuery output path, for example.
+     * 
+ * + * string bigquery_output_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for bigqueryOutputTable. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBigqueryOutputTableBytes() { + java.lang.Object ref = bigqueryOutputTable_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bigqueryOutputTable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4364,6 +4444,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (outputLocationCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, outputLocation_); } + if (!getBigqueryOutputTableBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, bigqueryOutputTable_); + } unknownFields.writeTo(output); } @@ -4379,6 +4462,9 @@ public int getSerializedSize() { if (outputLocationCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, outputLocation_); } + if (!getBigqueryOutputTableBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, bigqueryOutputTable_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -4395,6 +4481,7 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo other = (com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo) obj; + if (!getBigqueryOutputTable().equals(other.getBigqueryOutputTable())) return false; if (!getOutputLocationCase().equals(other.getOutputLocationCase())) return false; switch (outputLocationCase_) { case 1: @@ -4417,6 +4504,8 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BIGQUERY_OUTPUT_TABLE_FIELD_NUMBER; + hash = (53 * hash) + getBigqueryOutputTable().hashCode(); switch (outputLocationCase_) { case 1: hash = (37 * hash) + GCS_OUTPUT_DIRECTORY_FIELD_NUMBER; @@ -4580,6 +4669,8 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + bigqueryOutputTable_ = ""; + outputLocationCase_ = 0; outputLocation_ = null; return this; @@ -4617,6 +4708,7 @@ public com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo buildPa if (outputLocationCase_ == 2) { result.outputLocation_ = outputLocation_; } + result.bigqueryOutputTable_ = bigqueryOutputTable_; result.outputLocationCase_ = outputLocationCase_; onBuilt(); return result; @@ -4673,6 +4765,10 @@ public Builder mergeFrom( if (other == com.google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo .getDefaultInstance()) return this; + if (!other.getBigqueryOutputTable().isEmpty()) { + bigqueryOutputTable_ = other.bigqueryOutputTable_; + onChanged(); + } switch (other.getOutputLocationCase()) { case GCS_OUTPUT_DIRECTORY: { @@ -5030,6 +5126,127 @@ public Builder setBigqueryOutputDatasetBytes(com.google.protobuf.ByteString valu return this; } + private java.lang.Object bigqueryOutputTable_ = ""; + /** + * + * + *
+       * Output only. The name of the BigQuery table created, in
+       * `predictions_<timestamp>`
+       * format, into which the prediction output is written.
+       * Can be used by UI to generate the BigQuery output path, for example.
+       * 
+ * + * string bigquery_output_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bigqueryOutputTable. + */ + public java.lang.String getBigqueryOutputTable() { + java.lang.Object ref = bigqueryOutputTable_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bigqueryOutputTable_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. The name of the BigQuery table created, in
+       * `predictions_<timestamp>`
+       * format, into which the prediction output is written.
+       * Can be used by UI to generate the BigQuery output path, for example.
+       * 
+ * + * string bigquery_output_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for bigqueryOutputTable. + */ + public com.google.protobuf.ByteString getBigqueryOutputTableBytes() { + java.lang.Object ref = bigqueryOutputTable_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bigqueryOutputTable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. The name of the BigQuery table created, in
+       * `predictions_<timestamp>`
+       * format, into which the prediction output is written.
+       * Can be used by UI to generate the BigQuery output path, for example.
+       * 
+ * + * string bigquery_output_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bigqueryOutputTable to set. + * @return This builder for chaining. + */ + public Builder setBigqueryOutputTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + bigqueryOutputTable_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The name of the BigQuery table created, in
+       * `predictions_<timestamp>`
+       * format, into which the prediction output is written.
+       * Can be used by UI to generate the BigQuery output path, for example.
+       * 
+ * + * string bigquery_output_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearBigqueryOutputTable() { + + bigqueryOutputTable_ = getDefaultInstance().getBigqueryOutputTable(); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The name of the BigQuery table created, in
+       * `predictions_<timestamp>`
+       * format, into which the prediction output is written.
+       * Can be used by UI to generate the BigQuery output path, for example.
+       * 
+ * + * string bigquery_output_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for bigqueryOutputTable to set. + * @return This builder for chaining. + */ + public Builder setBigqueryOutputTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bigqueryOutputTable_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobProto.java index c27adedbc..0fc1331a4 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobProto.java @@ -73,7 +73,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "1beta1/model_monitoring.proto\032\034google/pr" + "otobuf/struct.proto\032\037google/protobuf/tim" + "estamp.proto\032\027google/rpc/status.proto\032\034g" - + "oogle/api/annotations.proto\"\353\020\n\022BatchPre" + + "oogle/api/annotations.proto\"\220\021\n\022BatchPre" + "dictionJob\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display" + "_name\030\002 \001(\tB\003\340A\002\0226\n\005model\030\003 \001(\tB\'\340A\002\372A!\n" + "\037aiplatform.googleapis.com/Model\022Z\n\014inpu" @@ -120,18 +120,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024bigquery_destination\030\003 \001(\01324.google.clo" + "ud.aiplatform.v1beta1.BigQueryDestinatio" + "nH\000\022\037\n\022predictions_format\030\001 \001(\tB\003\340A\002B\r\n\013" - + "destination\032l\n\nOutputInfo\022#\n\024gcs_output_" - + "directory\030\001 \001(\tB\003\340A\003H\000\022&\n\027bigquery_outpu" - + "t_dataset\030\002 \001(\tB\003\340A\003H\000B\021\n\017output_locatio" - + "n\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.c" - + "om/BatchPredictionJob\022Rprojects/{project" - + "}/locations/{location}/batchPredictionJo" - + "bs/{batch_prediction_job}B\213\001\n#com.google" - + ".cloud.aiplatform.v1beta1B\027BatchPredicti" - + "onJobProtoP\001ZIgoogle.golang.org/genproto" - + "/googleapis/cloud/aiplatform/v1beta1;aip" - + "latformb\006proto3" + + "destination\032\220\001\n\nOutputInfo\022#\n\024gcs_output" + + "_directory\030\001 \001(\tB\003\340A\003H\000\022&\n\027bigquery_outp" + + "ut_dataset\030\002 \001(\tB\003\340A\003H\000\022\"\n\025bigquery_outp" + + "ut_table\030\004 \001(\tB\003\340A\003B\021\n\017output_location\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/{project}/l" + + "ocations/{location}/batchPredictionJobs/" + + "{batch_prediction_job}B\364\001\n#com.google.cl" + + "oud.aiplatform.v1beta1B\027BatchPredictionJ" + + "obProtoP\001ZIgoogle.golang.org/genproto/go" + + "ogleapis/cloud/aiplatform/v1beta1;aiplat" + + "form\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002" + + "\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Googl" + + "e::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -209,7 +212,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_BatchPredictionJob_OutputInfo_descriptor, new java.lang.String[] { - "GcsOutputDirectory", "BigqueryOutputDataset", "OutputLocation", + "GcsOutputDirectory", + "BigqueryOutputDataset", + "BigqueryOutputTable", + "OutputLocation", }); internal_static_google_cloud_aiplatform_v1beta1_BatchPredictionJob_LabelsEntry_descriptor = internal_static_google_cloud_aiplatform_v1beta1_BatchPredictionJob_descriptor diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesRequest.java index 60ceff281..05cbd862e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesRequest.java @@ -40,6 +40,7 @@ private BatchReadFeatureValuesRequest(com.google.protobuf.GeneratedMessageV3.Bui private BatchReadFeatureValuesRequest() { featurestore_ = ""; + passThroughFields_ = java.util.Collections.emptyList(); entityTypeSpecs_ = java.util.Collections.emptyList(); } @@ -112,16 +113,35 @@ private BatchReadFeatureValuesRequest( destination_ = subBuilder.buildPartial(); } + break; + } + case 42: + { + com.google.cloud.aiplatform.v1beta1.BigQuerySource.Builder subBuilder = null; + if (readOptionCase_ == 5) { + subBuilder = + ((com.google.cloud.aiplatform.v1beta1.BigQuerySource) readOption_).toBuilder(); + } + readOption_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.BigQuerySource.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.aiplatform.v1beta1.BigQuerySource) readOption_); + readOption_ = subBuilder.buildPartial(); + } + readOptionCase_ = 5; break; } case 58: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { entityTypeSpecs_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest .EntityTypeSpec>(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } entityTypeSpecs_.add( input.readMessage( @@ -130,6 +150,22 @@ private BatchReadFeatureValuesRequest( extensionRegistry)); break; } + case 66: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + passThroughFields_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + .PassThroughField>(); + mutable_bitField0_ |= 0x00000001; + } + passThroughFields_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + .PassThroughField.parser(), + extensionRegistry)); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -144,9 +180,12 @@ private BatchReadFeatureValuesRequest( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { + if (((mutable_bitField0_ & 0x00000002) != 0)) { entityTypeSpecs_ = java.util.Collections.unmodifiableList(entityTypeSpecs_); } + if (((mutable_bitField0_ & 0x00000001) != 0)) { + passThroughFields_ = java.util.Collections.unmodifiableList(passThroughFields_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -167,169 +206,66 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.Builder.class); } - public interface EntityTypeSpecOrBuilder + public interface PassThroughFieldOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec) + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField) com.google.protobuf.MessageOrBuilder { /** * * *
-     * Required. ID of the EntityType to select Features. The EntityType id is the
-     * [entity_type_id][google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.entity_type_id] specified
-     * during EntityType creation.
-     * 
- * - * string entity_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The entityTypeId. - */ - java.lang.String getEntityTypeId(); - /** - * - * - *
-     * Required. ID of the EntityType to select Features. The EntityType id is the
-     * [entity_type_id][google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.entity_type_id] specified
-     * during EntityType creation.
-     * 
- * - * string entity_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for entityTypeId. - */ - com.google.protobuf.ByteString getEntityTypeIdBytes(); - - /** - * - * - *
-     * Required. Selectors choosing which Feature values to read from the EntityType.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the featureSelector field is set. - */ - boolean hasFeatureSelector(); - /** - * - * - *
-     * Required. Selectors choosing which Feature values to read from the EntityType.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The featureSelector. - */ - com.google.cloud.aiplatform.v1beta1.FeatureSelector getFeatureSelector(); - /** - * - * - *
-     * Required. Selectors choosing which Feature values to read from the EntityType.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.aiplatform.v1beta1.FeatureSelectorOrBuilder getFeatureSelectorOrBuilder(); - - /** - * - * - *
-     * Per-Feature settings for the batch read.
-     * 
- * - * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; - * - */ - java.util.List getSettingsList(); - /** - * - * - *
-     * Per-Feature settings for the batch read.
+     * Required. The name of the field in the CSV header or the name of the column in
+     * BigQuery table. The naming restriction is the same as [Feature.name][google.cloud.aiplatform.v1beta1.Feature.name].
      * 
* - * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; - * - */ - com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting getSettings(int index); - /** - * - * - *
-     * Per-Feature settings for the batch read.
-     * 
+ * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; * - * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; - * + * @return The fieldName. */ - int getSettingsCount(); + java.lang.String getFieldName(); /** * * *
-     * Per-Feature settings for the batch read.
+     * Required. The name of the field in the CSV header or the name of the column in
+     * BigQuery table. The naming restriction is the same as [Feature.name][google.cloud.aiplatform.v1beta1.Feature.name].
      * 
* - * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; - * - */ - java.util.List - getSettingsOrBuilderList(); - /** - * - * - *
-     * Per-Feature settings for the batch read.
-     * 
+ * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; * - * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; - * + * @return The bytes for fieldName. */ - com.google.cloud.aiplatform.v1beta1.DestinationFeatureSettingOrBuilder getSettingsOrBuilder( - int index); + com.google.protobuf.ByteString getFieldNameBytes(); } /** * * *
-   * Selects Features of an EntityType to read values of and specifies read
-   * settings.
+   * Describe pass-through fields in read_instance source.
    * 
* * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec} + * google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField} */ - public static final class EntityTypeSpec extends com.google.protobuf.GeneratedMessageV3 + public static final class PassThroughField extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec) - EntityTypeSpecOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField) + PassThroughFieldOrBuilder { private static final long serialVersionUID = 0L; - // Use EntityTypeSpec.newBuilder() to construct. - private EntityTypeSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use PassThroughField.newBuilder() to construct. + private PassThroughField(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EntityTypeSpec() { - entityTypeId_ = ""; - settings_ = java.util.Collections.emptyList(); + private PassThroughField() { + fieldName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new EntityTypeSpec(); + return new PassThroughField(); } @java.lang.Override @@ -337,7 +273,7 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private EntityTypeSpec( + private PassThroughField( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -345,7 +281,6 @@ private EntityTypeSpec( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -360,38 +295,7 @@ private EntityTypeSpec( { java.lang.String s = input.readStringRequireUtf8(); - entityTypeId_ = s; - break; - } - case 18: - { - com.google.cloud.aiplatform.v1beta1.FeatureSelector.Builder subBuilder = null; - if (featureSelector_ != null) { - subBuilder = featureSelector_.toBuilder(); - } - featureSelector_ = - input.readMessage( - com.google.cloud.aiplatform.v1beta1.FeatureSelector.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(featureSelector_); - featureSelector_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - settings_ = - new java.util.ArrayList< - com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting>(); - mutable_bitField0_ |= 0x00000001; - } - settings_.add( - input.readMessage( - com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.parser(), - extensionRegistry)); + fieldName_ = s; break; } default: @@ -408,9 +312,6 @@ private EntityTypeSpec( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - settings_ = java.util.Collections.unmodifiableList(settings_); - } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -418,45 +319,44 @@ private EntityTypeSpec( public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto - .internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_EntityTypeSpec_descriptor; + .internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_PassThroughField_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto - .internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_EntityTypeSpec_fieldAccessorTable + .internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_PassThroughField_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField .class, - com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField .Builder.class); } - public static final int ENTITY_TYPE_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object entityTypeId_; + public static final int FIELD_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object fieldName_; /** * * *
-     * Required. ID of the EntityType to select Features. The EntityType id is the
-     * [entity_type_id][google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.entity_type_id] specified
-     * during EntityType creation.
+     * Required. The name of the field in the CSV header or the name of the column in
+     * BigQuery table. The naming restriction is the same as [Feature.name][google.cloud.aiplatform.v1beta1.Feature.name].
      * 
* - * string entity_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The entityTypeId. + * @return The fieldName. */ @java.lang.Override - public java.lang.String getEntityTypeId() { - java.lang.Object ref = entityTypeId_; + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; 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(); - entityTypeId_ = s; + fieldName_ = s; return s; } } @@ -464,182 +364,43 @@ public java.lang.String getEntityTypeId() { * * *
-     * Required. ID of the EntityType to select Features. The EntityType id is the
-     * [entity_type_id][google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.entity_type_id] specified
-     * during EntityType creation.
+     * Required. The name of the field in the CSV header or the name of the column in
+     * BigQuery table. The naming restriction is the same as [Feature.name][google.cloud.aiplatform.v1beta1.Feature.name].
      * 
* - * string entity_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for entityTypeId. + * @return The bytes for fieldName. */ @java.lang.Override - public com.google.protobuf.ByteString getEntityTypeIdBytes() { - java.lang.Object ref = entityTypeId_; + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - entityTypeId_ = b; + fieldName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int FEATURE_SELECTOR_FIELD_NUMBER = 2; - private com.google.cloud.aiplatform.v1beta1.FeatureSelector featureSelector_; - /** - * - * - *
-     * Required. Selectors choosing which Feature values to read from the EntityType.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the featureSelector field is set. - */ + private byte memoizedIsInitialized = -1; + @java.lang.Override - public boolean hasFeatureSelector() { - return featureSelector_ != null; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } - /** - * - * - *
-     * Required. Selectors choosing which Feature values to read from the EntityType.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The featureSelector. - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.FeatureSelector getFeatureSelector() { - return featureSelector_ == null - ? com.google.cloud.aiplatform.v1beta1.FeatureSelector.getDefaultInstance() - : featureSelector_; - } - /** - * - * - *
-     * Required. Selectors choosing which Feature values to read from the EntityType.
-     * 
- * - * - * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.FeatureSelectorOrBuilder - getFeatureSelectorOrBuilder() { - return getFeatureSelector(); - } - - public static final int SETTINGS_FIELD_NUMBER = 3; - private java.util.List settings_; - /** - * - * - *
-     * Per-Feature settings for the batch read.
-     * 
- * - * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; - * - */ - @java.lang.Override - public java.util.List - getSettingsList() { - return settings_; - } - /** - * - * - *
-     * Per-Feature settings for the batch read.
-     * 
- * - * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.cloud.aiplatform.v1beta1.DestinationFeatureSettingOrBuilder> - getSettingsOrBuilderList() { - return settings_; - } - /** - * - * - *
-     * Per-Feature settings for the batch read.
-     * 
- * - * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; - * - */ - @java.lang.Override - public int getSettingsCount() { - return settings_.size(); - } - /** - * - * - *
-     * Per-Feature settings for the batch read.
-     * 
- * - * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; - * - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting getSettings(int index) { - return settings_.get(index); - } - /** - * - * - *
-     * Per-Feature settings for the batch read.
-     * 
- * - * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; - * - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.DestinationFeatureSettingOrBuilder - getSettingsOrBuilder(int index) { - return settings_.get(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 (!getEntityTypeIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entityTypeId_); - } - if (featureSelector_ != null) { - output.writeMessage(2, getFeatureSelector()); - } - for (int i = 0; i < settings_.size(); i++) { - output.writeMessage(3, settings_.get(i)); + if (!getFieldNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldName_); } unknownFields.writeTo(output); } @@ -650,14 +411,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getEntityTypeIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entityTypeId_); - } - if (featureSelector_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFeatureSelector()); - } - for (int i = 0; i < settings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, settings_.get(i)); + if (!getFieldNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -671,18 +426,13 @@ public boolean equals(final java.lang.Object obj) { } if (!(obj instanceof - com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec)) { + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField)) { return super.equals(obj); } - com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec other = - (com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec) obj; + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField other = + (com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField) obj; - if (!getEntityTypeId().equals(other.getEntityTypeId())) return false; - if (hasFeatureSelector() != other.hasFeatureSelector()) return false; - if (hasFeatureSelector()) { - if (!getFeatureSelector().equals(other.getFeatureSelector())) return false; - } - if (!getSettingsList().equals(other.getSettingsList())) return false; + if (!getFieldName().equals(other.getFieldName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -694,41 +444,33 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENTITY_TYPE_ID_FIELD_NUMBER; - hash = (53 * hash) + getEntityTypeId().hashCode(); - if (hasFeatureSelector()) { - hash = (37 * hash) + FEATURE_SELECTOR_FIELD_NUMBER; - hash = (53 * hash) + getFeatureSelector().hashCode(); - } - if (getSettingsCount() > 0) { - hash = (37 * hash) + SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getSettingsList().hashCode(); - } + hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFieldName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField 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.BatchReadFeatureValuesRequest.EntityTypeSpec + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -736,23 +478,23 @@ public int hashCode() { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField 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.BatchReadFeatureValuesRequest.EntityTypeSpec + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -760,12 +502,12 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -773,12 +515,12 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField 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.BatchReadFeatureValuesRequest.EntityTypeSpec + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -797,7 +539,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -817,37 +559,37 @@ protected Builder newBuilderForType( * * *
-     * Selects Features of an EntityType to read values of and specifies read
-     * settings.
+     * Describe pass-through fields in read_instance source.
      * 
* * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec} + * google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec) - com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpecOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField) + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + .PassThroughFieldOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto - .internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_EntityTypeSpec_descriptor; + .internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_PassThroughField_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto - .internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_EntityTypeSpec_fieldAccessorTable + .internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_PassThroughField_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField .class, - com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField .Builder.class); } // Construct using - // com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.newBuilder() + // com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -858,48 +600,34 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getSettingsFieldBuilder(); - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); - entityTypeId_ = ""; + fieldName_ = ""; - if (featureSelectorBuilder_ == null) { - featureSelector_ = null; - } else { - featureSelector_ = null; - featureSelectorBuilder_ = null; - } - if (settingsBuilder_ == null) { - settings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - settingsBuilder_.clear(); - } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto - .internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_EntityTypeSpec_descriptor; + .internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_PassThroughField_descriptor; } @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField getDefaultInstanceForType() { - return com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + return com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField build() { - com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec result = + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -908,27 +636,12 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField buildPartial() { - com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec result = - new com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField result = + new com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField( this); - int from_bitField0_ = bitField0_; - result.entityTypeId_ = entityTypeId_; - if (featureSelectorBuilder_ == null) { - result.featureSelector_ = featureSelector_; - } else { - result.featureSelector_ = featureSelectorBuilder_.build(); - } - if (settingsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - settings_ = java.util.Collections.unmodifiableList(settings_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.settings_ = settings_; - } else { - result.settings_ = settingsBuilder_.build(); - } + result.fieldName_ = fieldName_; onBuilt(); return result; } @@ -972,9 +685,9 @@ public Builder addRepeatedField( public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof - com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec) { + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField) { return mergeFrom( - (com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec) + (com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField) other); } else { super.mergeFrom(other); @@ -983,44 +696,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec other) { + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField + other) { if (other - == com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + == com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField .getDefaultInstance()) return this; - if (!other.getEntityTypeId().isEmpty()) { - entityTypeId_ = other.entityTypeId_; + if (!other.getFieldName().isEmpty()) { + fieldName_ = other.fieldName_; onChanged(); } - if (other.hasFeatureSelector()) { - mergeFeatureSelector(other.getFeatureSelector()); - } - if (settingsBuilder_ == null) { - if (!other.settings_.isEmpty()) { - if (settings_.isEmpty()) { - settings_ = other.settings_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSettingsIsMutable(); - settings_.addAll(other.settings_); - } - onChanged(); - } - } else { - if (!other.settings_.isEmpty()) { - if (settingsBuilder_.isEmpty()) { - settingsBuilder_.dispose(); - settingsBuilder_ = null; - settings_ = other.settings_; - bitField0_ = (bitField0_ & ~0x00000001); - settingsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSettingsFieldBuilder() - : null; - } else { - settingsBuilder_.addAllMessages(other.settings_); - } - } - } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1036,13 +720,13 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = - (com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec) + (com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { @@ -1053,28 +737,25 @@ public Builder mergeFrom( return this; } - private int bitField0_; - - private java.lang.Object entityTypeId_ = ""; + private java.lang.Object fieldName_ = ""; /** * * *
-       * Required. ID of the EntityType to select Features. The EntityType id is the
-       * [entity_type_id][google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.entity_type_id] specified
-       * during EntityType creation.
+       * Required. The name of the field in the CSV header or the name of the column in
+       * BigQuery table. The naming restriction is the same as [Feature.name][google.cloud.aiplatform.v1beta1.Feature.name].
        * 
* - * string entity_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The entityTypeId. + * @return The fieldName. */ - public java.lang.String getEntityTypeId() { - java.lang.Object ref = entityTypeId_; + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - entityTypeId_ = s; + fieldName_ = s; return s; } else { return (java.lang.String) ref; @@ -1084,21 +765,20 @@ public java.lang.String getEntityTypeId() { * * *
-       * Required. ID of the EntityType to select Features. The EntityType id is the
-       * [entity_type_id][google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.entity_type_id] specified
-       * during EntityType creation.
+       * Required. The name of the field in the CSV header or the name of the column in
+       * BigQuery table. The naming restriction is the same as [Feature.name][google.cloud.aiplatform.v1beta1.Feature.name].
        * 
* - * string entity_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for entityTypeId. + * @return The bytes for fieldName. */ - public com.google.protobuf.ByteString getEntityTypeIdBytes() { - java.lang.Object ref = entityTypeId_; + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - entityTypeId_ = b; + fieldName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -1108,22 +788,21 @@ public com.google.protobuf.ByteString getEntityTypeIdBytes() { * * *
-       * Required. ID of the EntityType to select Features. The EntityType id is the
-       * [entity_type_id][google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.entity_type_id] specified
-       * during EntityType creation.
+       * Required. The name of the field in the CSV header or the name of the column in
+       * BigQuery table. The naming restriction is the same as [Feature.name][google.cloud.aiplatform.v1beta1.Feature.name].
        * 
* - * string entity_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @param value The entityTypeId to set. + * @param value The fieldName to set. * @return This builder for chaining. */ - public Builder setEntityTypeId(java.lang.String value) { + public Builder setFieldName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - entityTypeId_ = value; + fieldName_ = value; onChanged(); return this; } @@ -1131,18 +810,17 @@ public Builder setEntityTypeId(java.lang.String value) { * * *
-       * Required. ID of the EntityType to select Features. The EntityType id is the
-       * [entity_type_id][google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.entity_type_id] specified
-       * during EntityType creation.
+       * Required. The name of the field in the CSV header or the name of the column in
+       * BigQuery table. The naming restriction is the same as [Feature.name][google.cloud.aiplatform.v1beta1.Feature.name].
        * 
* - * string entity_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ - public Builder clearEntityTypeId() { + public Builder clearFieldName() { - entityTypeId_ = getDefaultInstance().getEntityTypeId(); + fieldName_ = getDefaultInstance().getFieldName(); onChanged(); return this; } @@ -1150,243 +828,1303 @@ public Builder clearEntityTypeId() { * * *
-       * Required. ID of the EntityType to select Features. The EntityType id is the
-       * [entity_type_id][google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.entity_type_id] specified
-       * during EntityType creation.
+       * Required. The name of the field in the CSV header or the name of the column in
+       * BigQuery table. The naming restriction is the same as [Feature.name][google.cloud.aiplatform.v1beta1.Feature.name].
        * 
* - * string entity_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @param value The bytes for entityTypeId to set. + * @param value The bytes for fieldName to set. * @return This builder for chaining. */ - public Builder setEntityTypeIdBytes(com.google.protobuf.ByteString value) { + public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - entityTypeId_ = value; + fieldName_ = value; onChanged(); return this; } - private com.google.cloud.aiplatform.v1beta1.FeatureSelector featureSelector_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.FeatureSelector, - com.google.cloud.aiplatform.v1beta1.FeatureSelector.Builder, - com.google.cloud.aiplatform.v1beta1.FeatureSelectorOrBuilder> - featureSelectorBuilder_; - /** - * - * - *
-       * Required. Selectors choosing which Feature values to read from the EntityType.
-       * 
- * - * - * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the featureSelector field is set. - */ - public boolean hasFeatureSelector() { - return featureSelectorBuilder_ != null || featureSelector_ != null; - } - /** - * - * - *
-       * Required. Selectors choosing which Feature values to read from the EntityType.
-       * 
- * - * - * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The featureSelector. - */ - public com.google.cloud.aiplatform.v1beta1.FeatureSelector getFeatureSelector() { - if (featureSelectorBuilder_ == null) { - return featureSelector_ == null - ? com.google.cloud.aiplatform.v1beta1.FeatureSelector.getDefaultInstance() - : featureSelector_; - } else { - return featureSelectorBuilder_.getMessage(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - /** - * - * - *
-       * Required. Selectors choosing which Feature values to read from the EntityType.
-       * 
- * - * - * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setFeatureSelector(com.google.cloud.aiplatform.v1beta1.FeatureSelector value) { - if (featureSelectorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - featureSelector_ = value; - onChanged(); - } else { - featureSelectorBuilder_.setMessage(value); - } - return this; + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - /** - * - * - *
-       * Required. Selectors choosing which Feature values to read from the EntityType.
-       * 
- * - * - * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setFeatureSelector( - com.google.cloud.aiplatform.v1beta1.FeatureSelector.Builder builderForValue) { - if (featureSelectorBuilder_ == null) { - featureSelector_ = builderForValue.build(); - onChanged(); - } else { - featureSelectorBuilder_.setMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * Required. Selectors choosing which Feature values to read from the EntityType.
-       * 
- * - * - * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeFeatureSelector( - com.google.cloud.aiplatform.v1beta1.FeatureSelector value) { - if (featureSelectorBuilder_ == null) { - if (featureSelector_ != null) { - featureSelector_ = - com.google.cloud.aiplatform.v1beta1.FeatureSelector.newBuilder(featureSelector_) - .mergeFrom(value) - .buildPartial(); - } else { - featureSelector_ = value; - } - onChanged(); - } else { - featureSelectorBuilder_.mergeFrom(value); - } + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField) + } - return this; - } - /** - * - * - *
-       * Required. Selectors choosing which Feature values to read from the EntityType.
-       * 
- * - * - * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearFeatureSelector() { - if (featureSelectorBuilder_ == null) { - featureSelector_ = null; - onChanged(); - } else { - featureSelector_ = null; - featureSelectorBuilder_ = null; - } + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField) + private static final com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + .PassThroughField + DEFAULT_INSTANCE; - return this; - } - /** - * - * - *
-       * Required. Selectors choosing which Feature values to read from the EntityType.
-       * 
- * - * - * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.aiplatform.v1beta1.FeatureSelector.Builder - getFeatureSelectorBuilder() { + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField(); + } - onChanged(); - return getFeatureSelectorFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * Required. Selectors choosing which Feature values to read from the EntityType.
-       * 
- * - * - * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.aiplatform.v1beta1.FeatureSelectorOrBuilder - getFeatureSelectorOrBuilder() { - if (featureSelectorBuilder_ != null) { - return featureSelectorBuilder_.getMessageOrBuilder(); - } else { - return featureSelector_ == null - ? com.google.cloud.aiplatform.v1beta1.FeatureSelector.getDefaultInstance() - : featureSelector_; - } - } - /** - * - * - *
-       * Required. Selectors choosing which Feature values to read from the EntityType.
-       * 
- * - * - * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.FeatureSelector, - com.google.cloud.aiplatform.v1beta1.FeatureSelector.Builder, - com.google.cloud.aiplatform.v1beta1.FeatureSelectorOrBuilder> - getFeatureSelectorFieldBuilder() { - if (featureSelectorBuilder_ == null) { - featureSelectorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.FeatureSelector, - com.google.cloud.aiplatform.v1beta1.FeatureSelector.Builder, - com.google.cloud.aiplatform.v1beta1.FeatureSelectorOrBuilder>( - getFeatureSelector(), getParentForChildren(), isClean()); - featureSelector_ = null; - } - return featureSelectorBuilder_; - } + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private java.util.List - settings_ = java.util.Collections.emptyList(); + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PassThroughField parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PassThroughField(input, extensionRegistry); + } + }; - private void ensureSettingsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - settings_ = - new java.util.ArrayList< - com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting>(settings_); - bitField0_ |= 0x00000001; + 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.BatchReadFeatureValuesRequest.PassThroughField + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface EntityTypeSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. ID of the EntityType to select Features. The EntityType id is the
+     * [entity_type_id][google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.entity_type_id] specified
+     * during EntityType creation.
+     * 
+ * + * string entity_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The entityTypeId. + */ + java.lang.String getEntityTypeId(); + /** + * + * + *
+     * Required. ID of the EntityType to select Features. The EntityType id is the
+     * [entity_type_id][google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.entity_type_id] specified
+     * during EntityType creation.
+     * 
+ * + * string entity_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for entityTypeId. + */ + com.google.protobuf.ByteString getEntityTypeIdBytes(); + + /** + * + * + *
+     * Required. Selectors choosing which Feature values to read from the EntityType.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the featureSelector field is set. + */ + boolean hasFeatureSelector(); + /** + * + * + *
+     * Required. Selectors choosing which Feature values to read from the EntityType.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The featureSelector. + */ + com.google.cloud.aiplatform.v1beta1.FeatureSelector getFeatureSelector(); + /** + * + * + *
+     * Required. Selectors choosing which Feature values to read from the EntityType.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.FeatureSelectorOrBuilder getFeatureSelectorOrBuilder(); + + /** + * + * + *
+     * Per-Feature settings for the batch read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; + * + */ + java.util.List getSettingsList(); + /** + * + * + *
+     * Per-Feature settings for the batch read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; + * + */ + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting getSettings(int index); + /** + * + * + *
+     * Per-Feature settings for the batch read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; + * + */ + int getSettingsCount(); + /** + * + * + *
+     * Per-Feature settings for the batch read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; + * + */ + java.util.List + getSettingsOrBuilderList(); + /** + * + * + *
+     * Per-Feature settings for the batch read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; + * + */ + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSettingOrBuilder getSettingsOrBuilder( + int index); + } + /** + * + * + *
+   * Selects Features of an EntityType to read values of and specifies read
+   * settings.
+   * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec} + */ + public static final class EntityTypeSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec) + EntityTypeSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use EntityTypeSpec.newBuilder() to construct. + private EntityTypeSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EntityTypeSpec() { + entityTypeId_ = ""; + settings_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EntityTypeSpec(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EntityTypeSpec( + 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(); + + entityTypeId_ = s; + break; + } + case 18: + { + com.google.cloud.aiplatform.v1beta1.FeatureSelector.Builder subBuilder = null; + if (featureSelector_ != null) { + subBuilder = featureSelector_.toBuilder(); + } + featureSelector_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.FeatureSelector.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(featureSelector_); + featureSelector_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + settings_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting>(); + mutable_bitField0_ |= 0x00000001; + } + settings_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + settings_ = java.util.Collections.unmodifiableList(settings_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_EntityTypeSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_EntityTypeSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + .class, + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + .Builder.class); + } + + public static final int ENTITY_TYPE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object entityTypeId_; + /** + * + * + *
+     * Required. ID of the EntityType to select Features. The EntityType id is the
+     * [entity_type_id][google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.entity_type_id] specified
+     * during EntityType creation.
+     * 
+ * + * string entity_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The entityTypeId. + */ + @java.lang.Override + public java.lang.String getEntityTypeId() { + java.lang.Object ref = entityTypeId_; + 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(); + entityTypeId_ = s; + return s; + } + } + /** + * + * + *
+     * Required. ID of the EntityType to select Features. The EntityType id is the
+     * [entity_type_id][google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.entity_type_id] specified
+     * during EntityType creation.
+     * 
+ * + * string entity_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for entityTypeId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityTypeIdBytes() { + java.lang.Object ref = entityTypeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityTypeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FEATURE_SELECTOR_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.FeatureSelector featureSelector_; + /** + * + * + *
+     * Required. Selectors choosing which Feature values to read from the EntityType.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the featureSelector field is set. + */ + @java.lang.Override + public boolean hasFeatureSelector() { + return featureSelector_ != null; + } + /** + * + * + *
+     * Required. Selectors choosing which Feature values to read from the EntityType.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The featureSelector. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureSelector getFeatureSelector() { + return featureSelector_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureSelector.getDefaultInstance() + : featureSelector_; + } + /** + * + * + *
+     * Required. Selectors choosing which Feature values to read from the EntityType.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureSelectorOrBuilder + getFeatureSelectorOrBuilder() { + return getFeatureSelector(); + } + + public static final int SETTINGS_FIELD_NUMBER = 3; + private java.util.List settings_; + /** + * + * + *
+     * Per-Feature settings for the batch read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; + * + */ + @java.lang.Override + public java.util.List + getSettingsList() { + return settings_; + } + /** + * + * + *
+     * Per-Feature settings for the batch read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.DestinationFeatureSettingOrBuilder> + getSettingsOrBuilderList() { + return settings_; + } + /** + * + * + *
+     * Per-Feature settings for the batch read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; + * + */ + @java.lang.Override + public int getSettingsCount() { + return settings_.size(); + } + /** + * + * + *
+     * Per-Feature settings for the batch read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting getSettings(int index) { + return settings_.get(index); + } + /** + * + * + *
+     * Per-Feature settings for the batch read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DestinationFeatureSetting settings = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DestinationFeatureSettingOrBuilder + getSettingsOrBuilder(int index) { + return settings_.get(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 (!getEntityTypeIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entityTypeId_); + } + if (featureSelector_ != null) { + output.writeMessage(2, getFeatureSelector()); + } + for (int i = 0; i < settings_.size(); i++) { + output.writeMessage(3, settings_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getEntityTypeIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entityTypeId_); + } + if (featureSelector_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFeatureSelector()); + } + for (int i = 0; i < settings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, settings_.get(i)); + } + 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.BatchReadFeatureValuesRequest.EntityTypeSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec other = + (com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec) obj; + + if (!getEntityTypeId().equals(other.getEntityTypeId())) return false; + if (hasFeatureSelector() != other.hasFeatureSelector()) return false; + if (hasFeatureSelector()) { + if (!getFeatureSelector().equals(other.getFeatureSelector())) return false; + } + if (!getSettingsList().equals(other.getSettingsList())) 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) + ENTITY_TYPE_ID_FIELD_NUMBER; + hash = (53 * hash) + getEntityTypeId().hashCode(); + if (hasFeatureSelector()) { + hash = (37 * hash) + FEATURE_SELECTOR_FIELD_NUMBER; + hash = (53 * hash) + getFeatureSelector().hashCode(); + } + if (getSettingsCount() > 0) { + hash = (37 * hash) + SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getSettingsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + 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.BatchReadFeatureValuesRequest.EntityTypeSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + 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.BatchReadFeatureValuesRequest.EntityTypeSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + 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.BatchReadFeatureValuesRequest.EntityTypeSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + 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.BatchReadFeatureValuesRequest.EntityTypeSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + 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.BatchReadFeatureValuesRequest.EntityTypeSpec + 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.BatchReadFeatureValuesRequest.EntityTypeSpec + 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.BatchReadFeatureValuesRequest.EntityTypeSpec + 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; + } + /** + * + * + *
+     * Selects Features of an EntityType to read values of and specifies read
+     * settings.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec) + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_EntityTypeSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_EntityTypeSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + .class, + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSettingsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + entityTypeId_ = ""; + + if (featureSelectorBuilder_ == null) { + featureSelector_ = null; + } else { + featureSelector_ = null; + featureSelectorBuilder_ = null; + } + if (settingsBuilder_ == null) { + settings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + settingsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_EntityTypeSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + build() { + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + buildPartial() { + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec result = + new com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec( + this); + int from_bitField0_ = bitField0_; + result.entityTypeId_ = entityTypeId_; + if (featureSelectorBuilder_ == null) { + result.featureSelector_ = featureSelector_; + } else { + result.featureSelector_ = featureSelectorBuilder_.build(); + } + if (settingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + settings_ = java.util.Collections.unmodifiableList(settings_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.settings_ = settings_; + } else { + result.settings_ = settingsBuilder_.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.BatchReadFeatureValuesRequest.EntityTypeSpec) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec other) { + if (other + == com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + .getDefaultInstance()) return this; + if (!other.getEntityTypeId().isEmpty()) { + entityTypeId_ = other.entityTypeId_; + onChanged(); + } + if (other.hasFeatureSelector()) { + mergeFeatureSelector(other.getFeatureSelector()); + } + if (settingsBuilder_ == null) { + if (!other.settings_.isEmpty()) { + if (settings_.isEmpty()) { + settings_ = other.settings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSettingsIsMutable(); + settings_.addAll(other.settings_); + } + onChanged(); + } + } else { + if (!other.settings_.isEmpty()) { + if (settingsBuilder_.isEmpty()) { + settingsBuilder_.dispose(); + settingsBuilder_ = null; + settings_ = other.settings_; + bitField0_ = (bitField0_ & ~0x00000001); + settingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSettingsFieldBuilder() + : null; + } else { + settingsBuilder_.addAllMessages(other.settings_); + } + } + } + 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.BatchReadFeatureValuesRequest.EntityTypeSpec + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object entityTypeId_ = ""; + /** + * + * + *
+       * Required. ID of the EntityType to select Features. The EntityType id is the
+       * [entity_type_id][google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.entity_type_id] specified
+       * during EntityType creation.
+       * 
+ * + * string entity_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The entityTypeId. + */ + public java.lang.String getEntityTypeId() { + java.lang.Object ref = entityTypeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entityTypeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. ID of the EntityType to select Features. The EntityType id is the
+       * [entity_type_id][google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.entity_type_id] specified
+       * during EntityType creation.
+       * 
+ * + * string entity_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for entityTypeId. + */ + public com.google.protobuf.ByteString getEntityTypeIdBytes() { + java.lang.Object ref = entityTypeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityTypeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. ID of the EntityType to select Features. The EntityType id is the
+       * [entity_type_id][google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.entity_type_id] specified
+       * during EntityType creation.
+       * 
+ * + * string entity_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The entityTypeId to set. + * @return This builder for chaining. + */ + public Builder setEntityTypeId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + entityTypeId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. ID of the EntityType to select Features. The EntityType id is the
+       * [entity_type_id][google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.entity_type_id] specified
+       * during EntityType creation.
+       * 
+ * + * string entity_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearEntityTypeId() { + + entityTypeId_ = getDefaultInstance().getEntityTypeId(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. ID of the EntityType to select Features. The EntityType id is the
+       * [entity_type_id][google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.entity_type_id] specified
+       * during EntityType creation.
+       * 
+ * + * string entity_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for entityTypeId to set. + * @return This builder for chaining. + */ + public Builder setEntityTypeIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + entityTypeId_ = value; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.FeatureSelector featureSelector_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureSelector, + com.google.cloud.aiplatform.v1beta1.FeatureSelector.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureSelectorOrBuilder> + featureSelectorBuilder_; + /** + * + * + *
+       * Required. Selectors choosing which Feature values to read from the EntityType.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the featureSelector field is set. + */ + public boolean hasFeatureSelector() { + return featureSelectorBuilder_ != null || featureSelector_ != null; + } + /** + * + * + *
+       * Required. Selectors choosing which Feature values to read from the EntityType.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The featureSelector. + */ + public com.google.cloud.aiplatform.v1beta1.FeatureSelector getFeatureSelector() { + if (featureSelectorBuilder_ == null) { + return featureSelector_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureSelector.getDefaultInstance() + : featureSelector_; + } else { + return featureSelectorBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Required. Selectors choosing which Feature values to read from the EntityType.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFeatureSelector(com.google.cloud.aiplatform.v1beta1.FeatureSelector value) { + if (featureSelectorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + featureSelector_ = value; + onChanged(); + } else { + featureSelectorBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Required. Selectors choosing which Feature values to read from the EntityType.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFeatureSelector( + com.google.cloud.aiplatform.v1beta1.FeatureSelector.Builder builderForValue) { + if (featureSelectorBuilder_ == null) { + featureSelector_ = builderForValue.build(); + onChanged(); + } else { + featureSelectorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Required. Selectors choosing which Feature values to read from the EntityType.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFeatureSelector( + com.google.cloud.aiplatform.v1beta1.FeatureSelector value) { + if (featureSelectorBuilder_ == null) { + if (featureSelector_ != null) { + featureSelector_ = + com.google.cloud.aiplatform.v1beta1.FeatureSelector.newBuilder(featureSelector_) + .mergeFrom(value) + .buildPartial(); + } else { + featureSelector_ = value; + } + onChanged(); + } else { + featureSelectorBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Required. Selectors choosing which Feature values to read from the EntityType.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFeatureSelector() { + if (featureSelectorBuilder_ == null) { + featureSelector_ = null; + onChanged(); + } else { + featureSelector_ = null; + featureSelectorBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Required. Selectors choosing which Feature values to read from the EntityType.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeatureSelector.Builder + getFeatureSelectorBuilder() { + + onChanged(); + return getFeatureSelectorFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Required. Selectors choosing which Feature values to read from the EntityType.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeatureSelectorOrBuilder + getFeatureSelectorOrBuilder() { + if (featureSelectorBuilder_ != null) { + return featureSelectorBuilder_.getMessageOrBuilder(); + } else { + return featureSelector_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureSelector.getDefaultInstance() + : featureSelector_; + } + } + /** + * + * + *
+       * Required. Selectors choosing which Feature values to read from the EntityType.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureSelector feature_selector = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureSelector, + com.google.cloud.aiplatform.v1beta1.FeatureSelector.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureSelectorOrBuilder> + getFeatureSelectorFieldBuilder() { + if (featureSelectorBuilder_ == null) { + featureSelectorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureSelector, + com.google.cloud.aiplatform.v1beta1.FeatureSelector.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureSelectorOrBuilder>( + getFeatureSelector(), getParentForChildren(), isClean()); + featureSelector_ = null; + } + return featureSelectorBuilder_; + } + + private java.util.List + settings_ = java.util.Collections.emptyList(); + + private void ensureSettingsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + settings_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting>(settings_); + bitField0_ |= 0x00000001; } } @@ -1829,6 +2567,7 @@ public enum ReadOptionCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CSV_READ_INSTANCES(3), + BIGQUERY_READ_INSTANCES(5), READOPTION_NOT_SET(0); private final int value; @@ -1849,6 +2588,8 @@ public static ReadOptionCase forNumber(int value) { switch (value) { case 3: return CSV_READ_INSTANCES; + case 5: + return BIGQUERY_READ_INSTANCES; case 0: return READOPTION_NOT_SET; default: @@ -1964,6 +2705,58 @@ public com.google.cloud.aiplatform.v1beta1.CsvSourceOrBuilder getCsvReadInstance return com.google.cloud.aiplatform.v1beta1.CsvSource.getDefaultInstance(); } + public static final int BIGQUERY_READ_INSTANCES_FIELD_NUMBER = 5; + /** + * + * + *
+   * Similar to csv_read_instances, but from BigQuery source.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_read_instances = 5; + * + * @return Whether the bigqueryReadInstances field is set. + */ + @java.lang.Override + public boolean hasBigqueryReadInstances() { + return readOptionCase_ == 5; + } + /** + * + * + *
+   * Similar to csv_read_instances, but from BigQuery source.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_read_instances = 5; + * + * @return The bigqueryReadInstances. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BigQuerySource getBigqueryReadInstances() { + if (readOptionCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.BigQuerySource) readOption_; + } + return com.google.cloud.aiplatform.v1beta1.BigQuerySource.getDefaultInstance(); + } + /** + * + * + *
+   * Similar to csv_read_instances, but from BigQuery source.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_read_instances = 5; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BigQuerySourceOrBuilder + getBigqueryReadInstancesOrBuilder() { + if (readOptionCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.BigQuerySource) readOption_; + } + return com.google.cloud.aiplatform.v1beta1.BigQuerySource.getDefaultInstance(); + } + public static final int FEATURESTORE_FIELD_NUMBER = 1; private volatile java.lang.Object featurestore_; /** @@ -2054,26 +2847,139 @@ public boolean hasDestination() { * @return The destination. */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.FeatureValueDestination getDestination() { - return destination_ == null - ? com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.getDefaultInstance() - : destination_; + public com.google.cloud.aiplatform.v1beta1.FeatureValueDestination getDestination() { + return destination_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.getDefaultInstance() + : destination_; + } + /** + * + * + *
+   * Required. Specifies output location and format.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureValueDestinationOrBuilder + getDestinationOrBuilder() { + return getDestination(); + } + + public static final int PASS_THROUGH_FIELDS_FIELD_NUMBER = 8; + private java.util.List< + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField> + passThroughFields_; + /** + * + * + *
+   * When not empty, the specified fields in the *_read_instances source will be
+   * joined as-is in the output, in addition to those fields from the
+   * Featurestore Entity.
+   * For BigQuery source, the type of the pass-through values will be
+   * automatically inferred. For CSV source, the pass-through values will be
+   * passed as opaque bytes.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField> + getPassThroughFieldsList() { + return passThroughFields_; + } + /** + * + * + *
+   * When not empty, the specified fields in the *_read_instances source will be
+   * joined as-is in the output, in addition to those fields from the
+   * Featurestore Entity.
+   * For BigQuery source, the type of the pass-through values will be
+   * automatically inferred. For CSV source, the pass-through values will be
+   * passed as opaque bytes.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + .PassThroughFieldOrBuilder> + getPassThroughFieldsOrBuilderList() { + return passThroughFields_; + } + /** + * + * + *
+   * When not empty, the specified fields in the *_read_instances source will be
+   * joined as-is in the output, in addition to those fields from the
+   * Featurestore Entity.
+   * For BigQuery source, the type of the pass-through values will be
+   * automatically inferred. For CSV source, the pass-through values will be
+   * passed as opaque bytes.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8; + * + */ + @java.lang.Override + public int getPassThroughFieldsCount() { + return passThroughFields_.size(); + } + /** + * + * + *
+   * When not empty, the specified fields in the *_read_instances source will be
+   * joined as-is in the output, in addition to those fields from the
+   * Featurestore Entity.
+   * For BigQuery source, the type of the pass-through values will be
+   * automatically inferred. For CSV source, the pass-through values will be
+   * passed as opaque bytes.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField + getPassThroughFields(int index) { + return passThroughFields_.get(index); } /** * * *
-   * Required. Specifies output location and format.
+   * When not empty, the specified fields in the *_read_instances source will be
+   * joined as-is in the output, in addition to those fields from the
+   * Featurestore Entity.
+   * For BigQuery source, the type of the pass-through values will be
+   * automatically inferred. For CSV source, the pass-through values will be
+   * passed as opaque bytes.
    * 
* * - * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8; * */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.FeatureValueDestinationOrBuilder - getDestinationOrBuilder() { - return getDestination(); + public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughFieldOrBuilder + getPassThroughFieldsOrBuilder(int index) { + return passThroughFields_.get(index); } public static final int ENTITY_TYPE_SPECS_FIELD_NUMBER = 7; @@ -2087,7 +2993,7 @@ public com.google.cloud.aiplatform.v1beta1.FeatureValueDestination getDestinatio * Required. Specifies EntityType grouping Features to read values of and settings. * Each EntityType referenced in * [BatchReadFeatureValuesRequest.entity_type_specs] must have a column - * specifying entity IDs in tha EntityType in + * specifying entity IDs in the EntityType in * [BatchReadFeatureValuesRequest.request][] . * * @@ -2108,7 +3014,7 @@ public com.google.cloud.aiplatform.v1beta1.FeatureValueDestination getDestinatio * Required. Specifies EntityType grouping Features to read values of and settings. * Each EntityType referenced in * [BatchReadFeatureValuesRequest.entity_type_specs] must have a column - * specifying entity IDs in tha EntityType in + * specifying entity IDs in the EntityType in * [BatchReadFeatureValuesRequest.request][] . * * @@ -2131,7 +3037,7 @@ public com.google.cloud.aiplatform.v1beta1.FeatureValueDestination getDestinatio * Required. Specifies EntityType grouping Features to read values of and settings. * Each EntityType referenced in * [BatchReadFeatureValuesRequest.entity_type_specs] must have a column - * specifying entity IDs in tha EntityType in + * specifying entity IDs in the EntityType in * [BatchReadFeatureValuesRequest.request][] . * * @@ -2150,7 +3056,7 @@ public int getEntityTypeSpecsCount() { * Required. Specifies EntityType grouping Features to read values of and settings. * Each EntityType referenced in * [BatchReadFeatureValuesRequest.entity_type_specs] must have a column - * specifying entity IDs in tha EntityType in + * specifying entity IDs in the EntityType in * [BatchReadFeatureValuesRequest.request][] . * * @@ -2170,7 +3076,7 @@ public int getEntityTypeSpecsCount() { * Required. Specifies EntityType grouping Features to read values of and settings. * Each EntityType referenced in * [BatchReadFeatureValuesRequest.entity_type_specs] must have a column - * specifying entity IDs in tha EntityType in + * specifying entity IDs in the EntityType in * [BatchReadFeatureValuesRequest.request][] . * * @@ -2207,9 +3113,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (destination_ != null) { output.writeMessage(4, getDestination()); } + if (readOptionCase_ == 5) { + output.writeMessage(5, (com.google.cloud.aiplatform.v1beta1.BigQuerySource) readOption_); + } for (int i = 0; i < entityTypeSpecs_.size(); i++) { output.writeMessage(7, entityTypeSpecs_.get(i)); } + for (int i = 0; i < passThroughFields_.size(); i++) { + output.writeMessage(8, passThroughFields_.get(i)); + } unknownFields.writeTo(output); } @@ -2230,9 +3142,18 @@ public int getSerializedSize() { if (destination_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDestination()); } + if (readOptionCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.aiplatform.v1beta1.BigQuerySource) readOption_); + } for (int i = 0; i < entityTypeSpecs_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, entityTypeSpecs_.get(i)); } + for (int i = 0; i < passThroughFields_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, passThroughFields_.get(i)); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -2254,12 +3175,16 @@ public boolean equals(final java.lang.Object obj) { if (hasDestination()) { if (!getDestination().equals(other.getDestination())) return false; } + if (!getPassThroughFieldsList().equals(other.getPassThroughFieldsList())) return false; if (!getEntityTypeSpecsList().equals(other.getEntityTypeSpecsList())) return false; if (!getReadOptionCase().equals(other.getReadOptionCase())) return false; switch (readOptionCase_) { case 3: if (!getCsvReadInstances().equals(other.getCsvReadInstances())) return false; break; + case 5: + if (!getBigqueryReadInstances().equals(other.getBigqueryReadInstances())) return false; + break; case 0: default: } @@ -2280,6 +3205,10 @@ public int hashCode() { hash = (37 * hash) + DESTINATION_FIELD_NUMBER; hash = (53 * hash) + getDestination().hashCode(); } + if (getPassThroughFieldsCount() > 0) { + hash = (37 * hash) + PASS_THROUGH_FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getPassThroughFieldsList().hashCode(); + } if (getEntityTypeSpecsCount() > 0) { hash = (37 * hash) + ENTITY_TYPE_SPECS_FIELD_NUMBER; hash = (53 * hash) + getEntityTypeSpecsList().hashCode(); @@ -2289,6 +3218,10 @@ public int hashCode() { hash = (37 * hash) + CSV_READ_INSTANCES_FIELD_NUMBER; hash = (53 * hash) + getCsvReadInstances().hashCode(); break; + case 5: + hash = (37 * hash) + BIGQUERY_READ_INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getBigqueryReadInstances().hashCode(); + break; case 0: default: } @@ -2357,989 +3290,1782 @@ public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest PARSER, input, extensionRegistry); } - public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest 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.BatchReadFeatureValuesRequest 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.BatchReadFeatureValuesRequest 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.BatchReadFeatureValuesRequest 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 [FeaturestoreService.BatchReadFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchReadFeatureValues].
+   * (- Next Id: 6 -)
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest) + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.class, + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPassThroughFieldsFieldBuilder(); + getEntityTypeSpecsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + featurestore_ = ""; + + if (destinationBuilder_ == null) { + destination_ = null; + } else { + destination_ = null; + destinationBuilder_ = null; + } + if (passThroughFieldsBuilder_ == null) { + passThroughFields_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + passThroughFieldsBuilder_.clear(); + } + if (entityTypeSpecsBuilder_ == null) { + entityTypeSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + entityTypeSpecsBuilder_.clear(); + } + readOptionCase_ = 0; + readOption_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest build() { + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest result = + new com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest(this); + int from_bitField0_ = bitField0_; + if (readOptionCase_ == 3) { + if (csvReadInstancesBuilder_ == null) { + result.readOption_ = readOption_; + } else { + result.readOption_ = csvReadInstancesBuilder_.build(); + } + } + if (readOptionCase_ == 5) { + if (bigqueryReadInstancesBuilder_ == null) { + result.readOption_ = readOption_; + } else { + result.readOption_ = bigqueryReadInstancesBuilder_.build(); + } + } + result.featurestore_ = featurestore_; + if (destinationBuilder_ == null) { + result.destination_ = destination_; + } else { + result.destination_ = destinationBuilder_.build(); + } + if (passThroughFieldsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + passThroughFields_ = java.util.Collections.unmodifiableList(passThroughFields_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.passThroughFields_ = passThroughFields_; + } else { + result.passThroughFields_ = passThroughFieldsBuilder_.build(); + } + if (entityTypeSpecsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + entityTypeSpecs_ = java.util.Collections.unmodifiableList(entityTypeSpecs_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.entityTypeSpecs_ = entityTypeSpecs_; + } else { + result.entityTypeSpecs_ = entityTypeSpecsBuilder_.build(); + } + result.readOptionCase_ = readOptionCase_; + 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.BatchReadFeatureValuesRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.getDefaultInstance()) + return this; + if (!other.getFeaturestore().isEmpty()) { + featurestore_ = other.featurestore_; + onChanged(); + } + if (other.hasDestination()) { + mergeDestination(other.getDestination()); + } + if (passThroughFieldsBuilder_ == null) { + if (!other.passThroughFields_.isEmpty()) { + if (passThroughFields_.isEmpty()) { + passThroughFields_ = other.passThroughFields_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePassThroughFieldsIsMutable(); + passThroughFields_.addAll(other.passThroughFields_); + } + onChanged(); + } + } else { + if (!other.passThroughFields_.isEmpty()) { + if (passThroughFieldsBuilder_.isEmpty()) { + passThroughFieldsBuilder_.dispose(); + passThroughFieldsBuilder_ = null; + passThroughFields_ = other.passThroughFields_; + bitField0_ = (bitField0_ & ~0x00000001); + passThroughFieldsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPassThroughFieldsFieldBuilder() + : null; + } else { + passThroughFieldsBuilder_.addAllMessages(other.passThroughFields_); + } + } + } + if (entityTypeSpecsBuilder_ == null) { + if (!other.entityTypeSpecs_.isEmpty()) { + if (entityTypeSpecs_.isEmpty()) { + entityTypeSpecs_ = other.entityTypeSpecs_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureEntityTypeSpecsIsMutable(); + entityTypeSpecs_.addAll(other.entityTypeSpecs_); + } + onChanged(); + } + } else { + if (!other.entityTypeSpecs_.isEmpty()) { + if (entityTypeSpecsBuilder_.isEmpty()) { + entityTypeSpecsBuilder_.dispose(); + entityTypeSpecsBuilder_ = null; + entityTypeSpecs_ = other.entityTypeSpecs_; + bitField0_ = (bitField0_ & ~0x00000002); + entityTypeSpecsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEntityTypeSpecsFieldBuilder() + : null; + } else { + entityTypeSpecsBuilder_.addAllMessages(other.entityTypeSpecs_); + } + } + } + switch (other.getReadOptionCase()) { + case CSV_READ_INSTANCES: + { + mergeCsvReadInstances(other.getCsvReadInstances()); + break; + } + case BIGQUERY_READ_INSTANCES: + { + mergeBigqueryReadInstances(other.getBigqueryReadInstances()); + break; + } + case READOPTION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public static com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest 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 mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + private int readOptionCase_ = 0; + private java.lang.Object readOption_; - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public ReadOptionCase getReadOptionCase() { + return ReadOptionCase.forNumber(readOptionCase_); + } - public static Builder newBuilder( - com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public Builder clearReadOption() { + readOptionCase_ = 0; + readOption_ = null; + onChanged(); + return this; + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + private int bitField0_; - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for [FeaturestoreService.BatchReadFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchReadFeatureValues].
-   * (- Next Id: 6 -)
-   * 
- * - * Protobuf type {@code google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest) - com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto - .internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_descriptor; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.CsvSource, + com.google.cloud.aiplatform.v1beta1.CsvSource.Builder, + com.google.cloud.aiplatform.v1beta1.CsvSourceOrBuilder> + csvReadInstancesBuilder_; + /** + * + * + *
+     * Each read instance consists of exactly one read timestamp and one or more
+     * entity IDs identifying entities of the corresponding EntityTypes whose
+     * Features are requested.
+     * Each output instance contains Feature values of requested entities
+     * concatenated together as of the read time.
+     * An example read instance may be `foo_entity_id, bar_entity_id,
+     * 2020-01-01T10:00:00.123Z`.
+     * An example output instance may be `foo_entity_id, bar_entity_id,
+     * 2020-01-01T10:00:00.123Z, foo_entity_feature1_value,
+     * bar_entity_feature2_value`.
+     * Timestamp in each read instance must be millisecond-aligned.
+     * `csv_read_instances` are read instances stored in a plain-text CSV file.
+     * The header should be:
+     *     [ENTITY_TYPE_ID1], [ENTITY_TYPE_ID2], ..., timestamp
+     * The columns can be in any order.
+     * Values in the timestamp column must use the RFC 3339 format, e.g.
+     * `2012-07-30T10:43:17.123Z`.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvSource csv_read_instances = 3; + * + * @return Whether the csvReadInstances field is set. + */ + @java.lang.Override + public boolean hasCsvReadInstances() { + return readOptionCase_ == 3; + } + /** + * + * + *
+     * Each read instance consists of exactly one read timestamp and one or more
+     * entity IDs identifying entities of the corresponding EntityTypes whose
+     * Features are requested.
+     * Each output instance contains Feature values of requested entities
+     * concatenated together as of the read time.
+     * An example read instance may be `foo_entity_id, bar_entity_id,
+     * 2020-01-01T10:00:00.123Z`.
+     * An example output instance may be `foo_entity_id, bar_entity_id,
+     * 2020-01-01T10:00:00.123Z, foo_entity_feature1_value,
+     * bar_entity_feature2_value`.
+     * Timestamp in each read instance must be millisecond-aligned.
+     * `csv_read_instances` are read instances stored in a plain-text CSV file.
+     * The header should be:
+     *     [ENTITY_TYPE_ID1], [ENTITY_TYPE_ID2], ..., timestamp
+     * The columns can be in any order.
+     * Values in the timestamp column must use the RFC 3339 format, e.g.
+     * `2012-07-30T10:43:17.123Z`.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvSource csv_read_instances = 3; + * + * @return The csvReadInstances. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CsvSource getCsvReadInstances() { + if (csvReadInstancesBuilder_ == null) { + if (readOptionCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.CsvSource) readOption_; + } + return com.google.cloud.aiplatform.v1beta1.CsvSource.getDefaultInstance(); + } else { + if (readOptionCase_ == 3) { + return csvReadInstancesBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.CsvSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * Each read instance consists of exactly one read timestamp and one or more
+     * entity IDs identifying entities of the corresponding EntityTypes whose
+     * Features are requested.
+     * Each output instance contains Feature values of requested entities
+     * concatenated together as of the read time.
+     * An example read instance may be `foo_entity_id, bar_entity_id,
+     * 2020-01-01T10:00:00.123Z`.
+     * An example output instance may be `foo_entity_id, bar_entity_id,
+     * 2020-01-01T10:00:00.123Z, foo_entity_feature1_value,
+     * bar_entity_feature2_value`.
+     * Timestamp in each read instance must be millisecond-aligned.
+     * `csv_read_instances` are read instances stored in a plain-text CSV file.
+     * The header should be:
+     *     [ENTITY_TYPE_ID1], [ENTITY_TYPE_ID2], ..., timestamp
+     * The columns can be in any order.
+     * Values in the timestamp column must use the RFC 3339 format, e.g.
+     * `2012-07-30T10:43:17.123Z`.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvSource csv_read_instances = 3; + */ + public Builder setCsvReadInstances(com.google.cloud.aiplatform.v1beta1.CsvSource value) { + if (csvReadInstancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readOption_ = value; + onChanged(); + } else { + csvReadInstancesBuilder_.setMessage(value); + } + readOptionCase_ = 3; + return this; + } + /** + * + * + *
+     * Each read instance consists of exactly one read timestamp and one or more
+     * entity IDs identifying entities of the corresponding EntityTypes whose
+     * Features are requested.
+     * Each output instance contains Feature values of requested entities
+     * concatenated together as of the read time.
+     * An example read instance may be `foo_entity_id, bar_entity_id,
+     * 2020-01-01T10:00:00.123Z`.
+     * An example output instance may be `foo_entity_id, bar_entity_id,
+     * 2020-01-01T10:00:00.123Z, foo_entity_feature1_value,
+     * bar_entity_feature2_value`.
+     * Timestamp in each read instance must be millisecond-aligned.
+     * `csv_read_instances` are read instances stored in a plain-text CSV file.
+     * The header should be:
+     *     [ENTITY_TYPE_ID1], [ENTITY_TYPE_ID2], ..., timestamp
+     * The columns can be in any order.
+     * Values in the timestamp column must use the RFC 3339 format, e.g.
+     * `2012-07-30T10:43:17.123Z`.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvSource csv_read_instances = 3; + */ + public Builder setCsvReadInstances( + com.google.cloud.aiplatform.v1beta1.CsvSource.Builder builderForValue) { + if (csvReadInstancesBuilder_ == null) { + readOption_ = builderForValue.build(); + onChanged(); + } else { + csvReadInstancesBuilder_.setMessage(builderForValue.build()); + } + readOptionCase_ = 3; + return this; } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto - .internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.class, - com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.Builder.class); + /** + * + * + *
+     * Each read instance consists of exactly one read timestamp and one or more
+     * entity IDs identifying entities of the corresponding EntityTypes whose
+     * Features are requested.
+     * Each output instance contains Feature values of requested entities
+     * concatenated together as of the read time.
+     * An example read instance may be `foo_entity_id, bar_entity_id,
+     * 2020-01-01T10:00:00.123Z`.
+     * An example output instance may be `foo_entity_id, bar_entity_id,
+     * 2020-01-01T10:00:00.123Z, foo_entity_feature1_value,
+     * bar_entity_feature2_value`.
+     * Timestamp in each read instance must be millisecond-aligned.
+     * `csv_read_instances` are read instances stored in a plain-text CSV file.
+     * The header should be:
+     *     [ENTITY_TYPE_ID1], [ENTITY_TYPE_ID2], ..., timestamp
+     * The columns can be in any order.
+     * Values in the timestamp column must use the RFC 3339 format, e.g.
+     * `2012-07-30T10:43:17.123Z`.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvSource csv_read_instances = 3; + */ + public Builder mergeCsvReadInstances(com.google.cloud.aiplatform.v1beta1.CsvSource value) { + if (csvReadInstancesBuilder_ == null) { + if (readOptionCase_ == 3 + && readOption_ != com.google.cloud.aiplatform.v1beta1.CsvSource.getDefaultInstance()) { + readOption_ = + com.google.cloud.aiplatform.v1beta1.CsvSource.newBuilder( + (com.google.cloud.aiplatform.v1beta1.CsvSource) readOption_) + .mergeFrom(value) + .buildPartial(); + } else { + readOption_ = value; + } + onChanged(); + } else { + if (readOptionCase_ == 3) { + csvReadInstancesBuilder_.mergeFrom(value); + } + csvReadInstancesBuilder_.setMessage(value); + } + readOptionCase_ = 3; + return this; } - - // Construct using - // com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + /** + * + * + *
+     * Each read instance consists of exactly one read timestamp and one or more
+     * entity IDs identifying entities of the corresponding EntityTypes whose
+     * Features are requested.
+     * Each output instance contains Feature values of requested entities
+     * concatenated together as of the read time.
+     * An example read instance may be `foo_entity_id, bar_entity_id,
+     * 2020-01-01T10:00:00.123Z`.
+     * An example output instance may be `foo_entity_id, bar_entity_id,
+     * 2020-01-01T10:00:00.123Z, foo_entity_feature1_value,
+     * bar_entity_feature2_value`.
+     * Timestamp in each read instance must be millisecond-aligned.
+     * `csv_read_instances` are read instances stored in a plain-text CSV file.
+     * The header should be:
+     *     [ENTITY_TYPE_ID1], [ENTITY_TYPE_ID2], ..., timestamp
+     * The columns can be in any order.
+     * Values in the timestamp column must use the RFC 3339 format, e.g.
+     * `2012-07-30T10:43:17.123Z`.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvSource csv_read_instances = 3; + */ + public Builder clearCsvReadInstances() { + if (csvReadInstancesBuilder_ == null) { + if (readOptionCase_ == 3) { + readOptionCase_ = 0; + readOption_ = null; + onChanged(); + } + } else { + if (readOptionCase_ == 3) { + readOptionCase_ = 0; + readOption_ = null; + } + csvReadInstancesBuilder_.clear(); + } + return this; } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + /** + * + * + *
+     * Each read instance consists of exactly one read timestamp and one or more
+     * entity IDs identifying entities of the corresponding EntityTypes whose
+     * Features are requested.
+     * Each output instance contains Feature values of requested entities
+     * concatenated together as of the read time.
+     * An example read instance may be `foo_entity_id, bar_entity_id,
+     * 2020-01-01T10:00:00.123Z`.
+     * An example output instance may be `foo_entity_id, bar_entity_id,
+     * 2020-01-01T10:00:00.123Z, foo_entity_feature1_value,
+     * bar_entity_feature2_value`.
+     * Timestamp in each read instance must be millisecond-aligned.
+     * `csv_read_instances` are read instances stored in a plain-text CSV file.
+     * The header should be:
+     *     [ENTITY_TYPE_ID1], [ENTITY_TYPE_ID2], ..., timestamp
+     * The columns can be in any order.
+     * Values in the timestamp column must use the RFC 3339 format, e.g.
+     * `2012-07-30T10:43:17.123Z`.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvSource csv_read_instances = 3; + */ + public com.google.cloud.aiplatform.v1beta1.CsvSource.Builder getCsvReadInstancesBuilder() { + return getCsvReadInstancesFieldBuilder().getBuilder(); } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getEntityTypeSpecsFieldBuilder(); + /** + * + * + *
+     * Each read instance consists of exactly one read timestamp and one or more
+     * entity IDs identifying entities of the corresponding EntityTypes whose
+     * Features are requested.
+     * Each output instance contains Feature values of requested entities
+     * concatenated together as of the read time.
+     * An example read instance may be `foo_entity_id, bar_entity_id,
+     * 2020-01-01T10:00:00.123Z`.
+     * An example output instance may be `foo_entity_id, bar_entity_id,
+     * 2020-01-01T10:00:00.123Z, foo_entity_feature1_value,
+     * bar_entity_feature2_value`.
+     * Timestamp in each read instance must be millisecond-aligned.
+     * `csv_read_instances` are read instances stored in a plain-text CSV file.
+     * The header should be:
+     *     [ENTITY_TYPE_ID1], [ENTITY_TYPE_ID2], ..., timestamp
+     * The columns can be in any order.
+     * Values in the timestamp column must use the RFC 3339 format, e.g.
+     * `2012-07-30T10:43:17.123Z`.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvSource csv_read_instances = 3; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CsvSourceOrBuilder getCsvReadInstancesOrBuilder() { + if ((readOptionCase_ == 3) && (csvReadInstancesBuilder_ != null)) { + return csvReadInstancesBuilder_.getMessageOrBuilder(); + } else { + if (readOptionCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.CsvSource) readOption_; + } + return com.google.cloud.aiplatform.v1beta1.CsvSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * Each read instance consists of exactly one read timestamp and one or more
+     * entity IDs identifying entities of the corresponding EntityTypes whose
+     * Features are requested.
+     * Each output instance contains Feature values of requested entities
+     * concatenated together as of the read time.
+     * An example read instance may be `foo_entity_id, bar_entity_id,
+     * 2020-01-01T10:00:00.123Z`.
+     * An example output instance may be `foo_entity_id, bar_entity_id,
+     * 2020-01-01T10:00:00.123Z, foo_entity_feature1_value,
+     * bar_entity_feature2_value`.
+     * Timestamp in each read instance must be millisecond-aligned.
+     * `csv_read_instances` are read instances stored in a plain-text CSV file.
+     * The header should be:
+     *     [ENTITY_TYPE_ID1], [ENTITY_TYPE_ID2], ..., timestamp
+     * The columns can be in any order.
+     * Values in the timestamp column must use the RFC 3339 format, e.g.
+     * `2012-07-30T10:43:17.123Z`.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvSource csv_read_instances = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.CsvSource, + com.google.cloud.aiplatform.v1beta1.CsvSource.Builder, + com.google.cloud.aiplatform.v1beta1.CsvSourceOrBuilder> + getCsvReadInstancesFieldBuilder() { + if (csvReadInstancesBuilder_ == null) { + if (!(readOptionCase_ == 3)) { + readOption_ = com.google.cloud.aiplatform.v1beta1.CsvSource.getDefaultInstance(); + } + csvReadInstancesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.CsvSource, + com.google.cloud.aiplatform.v1beta1.CsvSource.Builder, + com.google.cloud.aiplatform.v1beta1.CsvSourceOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.CsvSource) readOption_, + getParentForChildren(), + isClean()); + readOption_ = null; } + readOptionCase_ = 3; + onChanged(); + ; + return csvReadInstancesBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.BigQuerySource, + com.google.cloud.aiplatform.v1beta1.BigQuerySource.Builder, + com.google.cloud.aiplatform.v1beta1.BigQuerySourceOrBuilder> + bigqueryReadInstancesBuilder_; + /** + * + * + *
+     * Similar to csv_read_instances, but from BigQuery source.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_read_instances = 5; + * + * @return Whether the bigqueryReadInstances field is set. + */ + @java.lang.Override + public boolean hasBigqueryReadInstances() { + return readOptionCase_ == 5; + } + /** + * + * + *
+     * Similar to csv_read_instances, but from BigQuery source.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_read_instances = 5; + * + * @return The bigqueryReadInstances. + */ @java.lang.Override - public Builder clear() { - super.clear(); - featurestore_ = ""; - - if (destinationBuilder_ == null) { - destination_ = null; + public com.google.cloud.aiplatform.v1beta1.BigQuerySource getBigqueryReadInstances() { + if (bigqueryReadInstancesBuilder_ == null) { + if (readOptionCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.BigQuerySource) readOption_; + } + return com.google.cloud.aiplatform.v1beta1.BigQuerySource.getDefaultInstance(); } else { - destination_ = null; - destinationBuilder_ = null; + if (readOptionCase_ == 5) { + return bigqueryReadInstancesBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.BigQuerySource.getDefaultInstance(); } - if (entityTypeSpecsBuilder_ == null) { - entityTypeSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + } + /** + * + * + *
+     * Similar to csv_read_instances, but from BigQuery source.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_read_instances = 5; + */ + public Builder setBigqueryReadInstances( + com.google.cloud.aiplatform.v1beta1.BigQuerySource value) { + if (bigqueryReadInstancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readOption_ = value; + onChanged(); } else { - entityTypeSpecsBuilder_.clear(); + bigqueryReadInstancesBuilder_.setMessage(value); } - readOptionCase_ = 0; - readOption_ = null; + readOptionCase_ = 5; return this; } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto - .internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest - getDefaultInstanceForType() { - return com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest build() { - com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * + * + *
+     * Similar to csv_read_instances, but from BigQuery source.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_read_instances = 5; + */ + public Builder setBigqueryReadInstances( + com.google.cloud.aiplatform.v1beta1.BigQuerySource.Builder builderForValue) { + if (bigqueryReadInstancesBuilder_ == null) { + readOption_ = builderForValue.build(); + onChanged(); + } else { + bigqueryReadInstancesBuilder_.setMessage(builderForValue.build()); } - return result; + readOptionCase_ = 5; + return this; } - - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest buildPartial() { - com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest result = - new com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest(this); - int from_bitField0_ = bitField0_; - if (readOptionCase_ == 3) { - if (csvReadInstancesBuilder_ == null) { - result.readOption_ = readOption_; + /** + * + * + *
+     * Similar to csv_read_instances, but from BigQuery source.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_read_instances = 5; + */ + public Builder mergeBigqueryReadInstances( + com.google.cloud.aiplatform.v1beta1.BigQuerySource value) { + if (bigqueryReadInstancesBuilder_ == null) { + if (readOptionCase_ == 5 + && readOption_ + != com.google.cloud.aiplatform.v1beta1.BigQuerySource.getDefaultInstance()) { + readOption_ = + com.google.cloud.aiplatform.v1beta1.BigQuerySource.newBuilder( + (com.google.cloud.aiplatform.v1beta1.BigQuerySource) readOption_) + .mergeFrom(value) + .buildPartial(); } else { - result.readOption_ = csvReadInstancesBuilder_.build(); + readOption_ = value; } - } - result.featurestore_ = featurestore_; - if (destinationBuilder_ == null) { - result.destination_ = destination_; + onChanged(); } else { - result.destination_ = destinationBuilder_.build(); + if (readOptionCase_ == 5) { + bigqueryReadInstancesBuilder_.mergeFrom(value); + } + bigqueryReadInstancesBuilder_.setMessage(value); } - if (entityTypeSpecsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - entityTypeSpecs_ = java.util.Collections.unmodifiableList(entityTypeSpecs_); - bitField0_ = (bitField0_ & ~0x00000001); + readOptionCase_ = 5; + return this; + } + /** + * + * + *
+     * Similar to csv_read_instances, but from BigQuery source.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_read_instances = 5; + */ + public Builder clearBigqueryReadInstances() { + if (bigqueryReadInstancesBuilder_ == null) { + if (readOptionCase_ == 5) { + readOptionCase_ = 0; + readOption_ = null; + onChanged(); } - result.entityTypeSpecs_ = entityTypeSpecs_; } else { - result.entityTypeSpecs_ = entityTypeSpecsBuilder_.build(); + if (readOptionCase_ == 5) { + readOptionCase_ = 0; + readOption_ = null; + } + bigqueryReadInstancesBuilder_.clear(); } - result.readOptionCase_ = readOptionCase_; - 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); + return this; } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + /** + * + * + *
+     * Similar to csv_read_instances, but from BigQuery source.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_read_instances = 5; + */ + public com.google.cloud.aiplatform.v1beta1.BigQuerySource.Builder + getBigqueryReadInstancesBuilder() { + return getBigqueryReadInstancesFieldBuilder().getBuilder(); } - + /** + * + * + *
+     * Similar to csv_read_instances, but from BigQuery source.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_read_instances = 5; + */ @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + public com.google.cloud.aiplatform.v1beta1.BigQuerySourceOrBuilder + getBigqueryReadInstancesOrBuilder() { + if ((readOptionCase_ == 5) && (bigqueryReadInstancesBuilder_ != null)) { + return bigqueryReadInstancesBuilder_.getMessageOrBuilder(); + } else { + if (readOptionCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.BigQuerySource) readOption_; + } + return com.google.cloud.aiplatform.v1beta1.BigQuerySource.getDefaultInstance(); + } } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + /** + * + * + *
+     * Similar to csv_read_instances, but from BigQuery source.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_read_instances = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.BigQuerySource, + com.google.cloud.aiplatform.v1beta1.BigQuerySource.Builder, + com.google.cloud.aiplatform.v1beta1.BigQuerySourceOrBuilder> + getBigqueryReadInstancesFieldBuilder() { + if (bigqueryReadInstancesBuilder_ == null) { + if (!(readOptionCase_ == 5)) { + readOption_ = com.google.cloud.aiplatform.v1beta1.BigQuerySource.getDefaultInstance(); + } + bigqueryReadInstancesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.BigQuerySource, + com.google.cloud.aiplatform.v1beta1.BigQuerySource.Builder, + com.google.cloud.aiplatform.v1beta1.BigQuerySourceOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.BigQuerySource) readOption_, + getParentForChildren(), + isClean()); + readOption_ = null; + } + readOptionCase_ = 5; + onChanged(); + ; + return bigqueryReadInstancesBuilder_; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest) { - return mergeFrom((com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest) other); + private java.lang.Object featurestore_ = ""; + /** + * + * + *
+     * Required. The resource name of the Featurestore from which to query Feature values.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * + * string featurestore = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The featurestore. + */ + public java.lang.String getFeaturestore() { + java.lang.Object ref = featurestore_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + featurestore_ = s; + return s; } else { - super.mergeFrom(other); - return this; + return (java.lang.String) ref; } } - - public Builder mergeFrom( - com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest other) { - if (other - == com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.getDefaultInstance()) - return this; - if (!other.getFeaturestore().isEmpty()) { - featurestore_ = other.featurestore_; - onChanged(); - } - if (other.hasDestination()) { - mergeDestination(other.getDestination()); - } - if (entityTypeSpecsBuilder_ == null) { - if (!other.entityTypeSpecs_.isEmpty()) { - if (entityTypeSpecs_.isEmpty()) { - entityTypeSpecs_ = other.entityTypeSpecs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEntityTypeSpecsIsMutable(); - entityTypeSpecs_.addAll(other.entityTypeSpecs_); - } - onChanged(); - } - } else { - if (!other.entityTypeSpecs_.isEmpty()) { - if (entityTypeSpecsBuilder_.isEmpty()) { - entityTypeSpecsBuilder_.dispose(); - entityTypeSpecsBuilder_ = null; - entityTypeSpecs_ = other.entityTypeSpecs_; - bitField0_ = (bitField0_ & ~0x00000001); - entityTypeSpecsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEntityTypeSpecsFieldBuilder() - : null; - } else { - entityTypeSpecsBuilder_.addAllMessages(other.entityTypeSpecs_); - } - } + /** + * + * + *
+     * Required. The resource name of the Featurestore from which to query Feature values.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * + * string featurestore = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for featurestore. + */ + public com.google.protobuf.ByteString getFeaturestoreBytes() { + java.lang.Object ref = featurestore_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + featurestore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - switch (other.getReadOptionCase()) { - case CSV_READ_INSTANCES: - { - mergeCsvReadInstances(other.getCsvReadInstances()); - break; - } - case READOPTION_NOT_SET: - { - break; - } + } + /** + * + * + *
+     * Required. The resource name of the Featurestore from which to query Feature values.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * + * string featurestore = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The featurestore to set. + * @return This builder for chaining. + */ + public Builder setFeaturestore(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - this.mergeUnknownFields(other.unknownFields); + + featurestore_ = value; onChanged(); return this; } + /** + * + * + *
+     * Required. The resource name of the Featurestore from which to query Feature values.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * + * string featurestore = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearFeaturestore() { - @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.BatchReadFeatureValuesRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + featurestore_ = getDefaultInstance().getFeaturestore(); + onChanged(); return this; } + /** + * + * + *
+     * Required. The resource name of the Featurestore from which to query Feature values.
+     * Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * 
+ * + * + * string featurestore = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for featurestore to set. + * @return This builder for chaining. + */ + public Builder setFeaturestoreBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); - private int readOptionCase_ = 0; - private java.lang.Object readOption_; - - public ReadOptionCase getReadOptionCase() { - return ReadOptionCase.forNumber(readOptionCase_); - } - - public Builder clearReadOption() { - readOptionCase_ = 0; - readOption_ = null; + featurestore_ = value; onChanged(); return this; } - private int bitField0_; - + private com.google.cloud.aiplatform.v1beta1.FeatureValueDestination destination_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.CsvSource, - com.google.cloud.aiplatform.v1beta1.CsvSource.Builder, - com.google.cloud.aiplatform.v1beta1.CsvSourceOrBuilder> - csvReadInstancesBuilder_; + com.google.cloud.aiplatform.v1beta1.FeatureValueDestination, + com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureValueDestinationOrBuilder> + destinationBuilder_; /** * * *
-     * Each read instance consists of exactly one read timestamp and one or more
-     * entity IDs identifying entities of the corresponding EntityTypes whose
-     * Features are requested.
-     * Each output instance contains Feature values of requested entities
-     * concatenated together as of the read time.
-     * An example read instance may be `foo_entity_id, bar_entity_id,
-     * 2020-01-01T10:00:00.123Z`.
-     * An example output instance may be `foo_entity_id, bar_entity_id,
-     * 2020-01-01T10:00:00.123Z, foo_entity_feature1_value,
-     * bar_entity_feature2_value`.
-     * Timestamp in each read instance must be millisecond-aligned.
-     * `csv_read_instances` are read instances stored in a plain-text CSV file.
-     * The header should be:
-     *     [ENTITY_TYPE_ID1], [ENTITY_TYPE_ID2], ..., timestamp
-     * The columns can be in any order.
-     * Values in the timestamp column must use the RFC 3339 format, e.g.
-     * `2012-07-30T10:43:17.123Z`.
+     * Required. Specifies output location and format.
      * 
* - * .google.cloud.aiplatform.v1beta1.CsvSource csv_read_instances = 3; + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * * - * @return Whether the csvReadInstances field is set. + * @return Whether the destination field is set. */ - @java.lang.Override - public boolean hasCsvReadInstances() { - return readOptionCase_ == 3; + public boolean hasDestination() { + return destinationBuilder_ != null || destination_ != null; } /** * * *
-     * Each read instance consists of exactly one read timestamp and one or more
-     * entity IDs identifying entities of the corresponding EntityTypes whose
-     * Features are requested.
-     * Each output instance contains Feature values of requested entities
-     * concatenated together as of the read time.
-     * An example read instance may be `foo_entity_id, bar_entity_id,
-     * 2020-01-01T10:00:00.123Z`.
-     * An example output instance may be `foo_entity_id, bar_entity_id,
-     * 2020-01-01T10:00:00.123Z, foo_entity_feature1_value,
-     * bar_entity_feature2_value`.
-     * Timestamp in each read instance must be millisecond-aligned.
-     * `csv_read_instances` are read instances stored in a plain-text CSV file.
-     * The header should be:
-     *     [ENTITY_TYPE_ID1], [ENTITY_TYPE_ID2], ..., timestamp
-     * The columns can be in any order.
-     * Values in the timestamp column must use the RFC 3339 format, e.g.
-     * `2012-07-30T10:43:17.123Z`.
+     * Required. Specifies output location and format.
      * 
* - * .google.cloud.aiplatform.v1beta1.CsvSource csv_read_instances = 3; + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * * - * @return The csvReadInstances. + * @return The destination. */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.CsvSource getCsvReadInstances() { - if (csvReadInstancesBuilder_ == null) { - if (readOptionCase_ == 3) { - return (com.google.cloud.aiplatform.v1beta1.CsvSource) readOption_; - } - return com.google.cloud.aiplatform.v1beta1.CsvSource.getDefaultInstance(); + public com.google.cloud.aiplatform.v1beta1.FeatureValueDestination getDestination() { + if (destinationBuilder_ == null) { + return destination_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.getDefaultInstance() + : destination_; } else { - if (readOptionCase_ == 3) { - return csvReadInstancesBuilder_.getMessage(); - } - return com.google.cloud.aiplatform.v1beta1.CsvSource.getDefaultInstance(); + return destinationBuilder_.getMessage(); } } /** * * *
-     * Each read instance consists of exactly one read timestamp and one or more
-     * entity IDs identifying entities of the corresponding EntityTypes whose
-     * Features are requested.
-     * Each output instance contains Feature values of requested entities
-     * concatenated together as of the read time.
-     * An example read instance may be `foo_entity_id, bar_entity_id,
-     * 2020-01-01T10:00:00.123Z`.
-     * An example output instance may be `foo_entity_id, bar_entity_id,
-     * 2020-01-01T10:00:00.123Z, foo_entity_feature1_value,
-     * bar_entity_feature2_value`.
-     * Timestamp in each read instance must be millisecond-aligned.
-     * `csv_read_instances` are read instances stored in a plain-text CSV file.
-     * The header should be:
-     *     [ENTITY_TYPE_ID1], [ENTITY_TYPE_ID2], ..., timestamp
-     * The columns can be in any order.
-     * Values in the timestamp column must use the RFC 3339 format, e.g.
-     * `2012-07-30T10:43:17.123Z`.
+     * Required. Specifies output location and format.
      * 
* - * .google.cloud.aiplatform.v1beta1.CsvSource csv_read_instances = 3; + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setCsvReadInstances(com.google.cloud.aiplatform.v1beta1.CsvSource value) { - if (csvReadInstancesBuilder_ == null) { + public Builder setDestination( + com.google.cloud.aiplatform.v1beta1.FeatureValueDestination value) { + if (destinationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - readOption_ = value; + destination_ = value; onChanged(); } else { - csvReadInstancesBuilder_.setMessage(value); - } - readOptionCase_ = 3; - return this; - } - /** - * - * - *
-     * Each read instance consists of exactly one read timestamp and one or more
-     * entity IDs identifying entities of the corresponding EntityTypes whose
-     * Features are requested.
-     * Each output instance contains Feature values of requested entities
-     * concatenated together as of the read time.
-     * An example read instance may be `foo_entity_id, bar_entity_id,
-     * 2020-01-01T10:00:00.123Z`.
-     * An example output instance may be `foo_entity_id, bar_entity_id,
-     * 2020-01-01T10:00:00.123Z, foo_entity_feature1_value,
-     * bar_entity_feature2_value`.
-     * Timestamp in each read instance must be millisecond-aligned.
-     * `csv_read_instances` are read instances stored in a plain-text CSV file.
-     * The header should be:
-     *     [ENTITY_TYPE_ID1], [ENTITY_TYPE_ID2], ..., timestamp
-     * The columns can be in any order.
-     * Values in the timestamp column must use the RFC 3339 format, e.g.
-     * `2012-07-30T10:43:17.123Z`.
+        destinationBuilder_.setMessage(value);
+      }
+
+      return this;
+    }
+    /**
+     *
+     *
+     * 
+     * Required. Specifies output location and format.
      * 
* - * .google.cloud.aiplatform.v1beta1.CsvSource csv_read_instances = 3; + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setCsvReadInstances( - com.google.cloud.aiplatform.v1beta1.CsvSource.Builder builderForValue) { - if (csvReadInstancesBuilder_ == null) { - readOption_ = builderForValue.build(); + public Builder setDestination( + com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.Builder builderForValue) { + if (destinationBuilder_ == null) { + destination_ = builderForValue.build(); onChanged(); } else { - csvReadInstancesBuilder_.setMessage(builderForValue.build()); + destinationBuilder_.setMessage(builderForValue.build()); } - readOptionCase_ = 3; + return this; } /** * * *
-     * Each read instance consists of exactly one read timestamp and one or more
-     * entity IDs identifying entities of the corresponding EntityTypes whose
-     * Features are requested.
-     * Each output instance contains Feature values of requested entities
-     * concatenated together as of the read time.
-     * An example read instance may be `foo_entity_id, bar_entity_id,
-     * 2020-01-01T10:00:00.123Z`.
-     * An example output instance may be `foo_entity_id, bar_entity_id,
-     * 2020-01-01T10:00:00.123Z, foo_entity_feature1_value,
-     * bar_entity_feature2_value`.
-     * Timestamp in each read instance must be millisecond-aligned.
-     * `csv_read_instances` are read instances stored in a plain-text CSV file.
-     * The header should be:
-     *     [ENTITY_TYPE_ID1], [ENTITY_TYPE_ID2], ..., timestamp
-     * The columns can be in any order.
-     * Values in the timestamp column must use the RFC 3339 format, e.g.
-     * `2012-07-30T10:43:17.123Z`.
+     * Required. Specifies output location and format.
      * 
* - * .google.cloud.aiplatform.v1beta1.CsvSource csv_read_instances = 3; + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeCsvReadInstances(com.google.cloud.aiplatform.v1beta1.CsvSource value) { - if (csvReadInstancesBuilder_ == null) { - if (readOptionCase_ == 3 - && readOption_ != com.google.cloud.aiplatform.v1beta1.CsvSource.getDefaultInstance()) { - readOption_ = - com.google.cloud.aiplatform.v1beta1.CsvSource.newBuilder( - (com.google.cloud.aiplatform.v1beta1.CsvSource) readOption_) + public Builder mergeDestination( + com.google.cloud.aiplatform.v1beta1.FeatureValueDestination value) { + if (destinationBuilder_ == null) { + if (destination_ != null) { + destination_ = + com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.newBuilder(destination_) .mergeFrom(value) .buildPartial(); } else { - readOption_ = value; + destination_ = value; } onChanged(); } else { - if (readOptionCase_ == 3) { - csvReadInstancesBuilder_.mergeFrom(value); - } - csvReadInstancesBuilder_.setMessage(value); + destinationBuilder_.mergeFrom(value); } - readOptionCase_ = 3; + return this; } /** * * *
-     * Each read instance consists of exactly one read timestamp and one or more
-     * entity IDs identifying entities of the corresponding EntityTypes whose
-     * Features are requested.
-     * Each output instance contains Feature values of requested entities
-     * concatenated together as of the read time.
-     * An example read instance may be `foo_entity_id, bar_entity_id,
-     * 2020-01-01T10:00:00.123Z`.
-     * An example output instance may be `foo_entity_id, bar_entity_id,
-     * 2020-01-01T10:00:00.123Z, foo_entity_feature1_value,
-     * bar_entity_feature2_value`.
-     * Timestamp in each read instance must be millisecond-aligned.
-     * `csv_read_instances` are read instances stored in a plain-text CSV file.
-     * The header should be:
-     *     [ENTITY_TYPE_ID1], [ENTITY_TYPE_ID2], ..., timestamp
-     * The columns can be in any order.
-     * Values in the timestamp column must use the RFC 3339 format, e.g.
-     * `2012-07-30T10:43:17.123Z`.
+     * Required. Specifies output location and format.
      * 
* - * .google.cloud.aiplatform.v1beta1.CsvSource csv_read_instances = 3; + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder clearCsvReadInstances() { - if (csvReadInstancesBuilder_ == null) { - if (readOptionCase_ == 3) { - readOptionCase_ = 0; - readOption_ = null; - onChanged(); - } + public Builder clearDestination() { + if (destinationBuilder_ == null) { + destination_ = null; + onChanged(); } else { - if (readOptionCase_ == 3) { - readOptionCase_ = 0; - readOption_ = null; - } - csvReadInstancesBuilder_.clear(); + destination_ = null; + destinationBuilder_ = null; } + return this; } /** * * *
-     * Each read instance consists of exactly one read timestamp and one or more
-     * entity IDs identifying entities of the corresponding EntityTypes whose
-     * Features are requested.
-     * Each output instance contains Feature values of requested entities
-     * concatenated together as of the read time.
-     * An example read instance may be `foo_entity_id, bar_entity_id,
-     * 2020-01-01T10:00:00.123Z`.
-     * An example output instance may be `foo_entity_id, bar_entity_id,
-     * 2020-01-01T10:00:00.123Z, foo_entity_feature1_value,
-     * bar_entity_feature2_value`.
-     * Timestamp in each read instance must be millisecond-aligned.
-     * `csv_read_instances` are read instances stored in a plain-text CSV file.
-     * The header should be:
-     *     [ENTITY_TYPE_ID1], [ENTITY_TYPE_ID2], ..., timestamp
-     * The columns can be in any order.
-     * Values in the timestamp column must use the RFC 3339 format, e.g.
-     * `2012-07-30T10:43:17.123Z`.
+     * Required. Specifies output location and format.
      * 
* - * .google.cloud.aiplatform.v1beta1.CsvSource csv_read_instances = 3; + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.aiplatform.v1beta1.CsvSource.Builder getCsvReadInstancesBuilder() { - return getCsvReadInstancesFieldBuilder().getBuilder(); + public com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.Builder + getDestinationBuilder() { + + onChanged(); + return getDestinationFieldBuilder().getBuilder(); } /** * * *
-     * Each read instance consists of exactly one read timestamp and one or more
-     * entity IDs identifying entities of the corresponding EntityTypes whose
-     * Features are requested.
-     * Each output instance contains Feature values of requested entities
-     * concatenated together as of the read time.
-     * An example read instance may be `foo_entity_id, bar_entity_id,
-     * 2020-01-01T10:00:00.123Z`.
-     * An example output instance may be `foo_entity_id, bar_entity_id,
-     * 2020-01-01T10:00:00.123Z, foo_entity_feature1_value,
-     * bar_entity_feature2_value`.
-     * Timestamp in each read instance must be millisecond-aligned.
-     * `csv_read_instances` are read instances stored in a plain-text CSV file.
-     * The header should be:
-     *     [ENTITY_TYPE_ID1], [ENTITY_TYPE_ID2], ..., timestamp
-     * The columns can be in any order.
-     * Values in the timestamp column must use the RFC 3339 format, e.g.
-     * `2012-07-30T10:43:17.123Z`.
+     * Required. Specifies output location and format.
      * 
* - * .google.cloud.aiplatform.v1beta1.CsvSource csv_read_instances = 3; + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.CsvSourceOrBuilder getCsvReadInstancesOrBuilder() { - if ((readOptionCase_ == 3) && (csvReadInstancesBuilder_ != null)) { - return csvReadInstancesBuilder_.getMessageOrBuilder(); + public com.google.cloud.aiplatform.v1beta1.FeatureValueDestinationOrBuilder + getDestinationOrBuilder() { + if (destinationBuilder_ != null) { + return destinationBuilder_.getMessageOrBuilder(); } else { - if (readOptionCase_ == 3) { - return (com.google.cloud.aiplatform.v1beta1.CsvSource) readOption_; - } - return com.google.cloud.aiplatform.v1beta1.CsvSource.getDefaultInstance(); + return destination_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.getDefaultInstance() + : destination_; } } /** * * *
-     * Each read instance consists of exactly one read timestamp and one or more
-     * entity IDs identifying entities of the corresponding EntityTypes whose
-     * Features are requested.
-     * Each output instance contains Feature values of requested entities
-     * concatenated together as of the read time.
-     * An example read instance may be `foo_entity_id, bar_entity_id,
-     * 2020-01-01T10:00:00.123Z`.
-     * An example output instance may be `foo_entity_id, bar_entity_id,
-     * 2020-01-01T10:00:00.123Z, foo_entity_feature1_value,
-     * bar_entity_feature2_value`.
-     * Timestamp in each read instance must be millisecond-aligned.
-     * `csv_read_instances` are read instances stored in a plain-text CSV file.
-     * The header should be:
-     *     [ENTITY_TYPE_ID1], [ENTITY_TYPE_ID2], ..., timestamp
-     * The columns can be in any order.
-     * Values in the timestamp column must use the RFC 3339 format, e.g.
-     * `2012-07-30T10:43:17.123Z`.
+     * Required. Specifies output location and format.
      * 
* - * .google.cloud.aiplatform.v1beta1.CsvSource csv_read_instances = 3; + * + * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.CsvSource, - com.google.cloud.aiplatform.v1beta1.CsvSource.Builder, - com.google.cloud.aiplatform.v1beta1.CsvSourceOrBuilder> - getCsvReadInstancesFieldBuilder() { - if (csvReadInstancesBuilder_ == null) { - if (!(readOptionCase_ == 3)) { - readOption_ = com.google.cloud.aiplatform.v1beta1.CsvSource.getDefaultInstance(); - } - csvReadInstancesBuilder_ = + com.google.cloud.aiplatform.v1beta1.FeatureValueDestination, + com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureValueDestinationOrBuilder> + getDestinationFieldBuilder() { + if (destinationBuilder_ == null) { + destinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.CsvSource, - com.google.cloud.aiplatform.v1beta1.CsvSource.Builder, - com.google.cloud.aiplatform.v1beta1.CsvSourceOrBuilder>( - (com.google.cloud.aiplatform.v1beta1.CsvSource) readOption_, - getParentForChildren(), - isClean()); - readOption_ = null; + com.google.cloud.aiplatform.v1beta1.FeatureValueDestination, + com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureValueDestinationOrBuilder>( + getDestination(), getParentForChildren(), isClean()); + destination_ = null; + } + return destinationBuilder_; + } + + private java.util.List< + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField> + passThroughFields_ = java.util.Collections.emptyList(); + + private void ensurePassThroughFieldsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + passThroughFields_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField>( + passThroughFields_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField, + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField + .Builder, + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + .PassThroughFieldOrBuilder> + passThroughFieldsBuilder_; + + /** + * + * + *
+     * When not empty, the specified fields in the *_read_instances source will be
+     * joined as-is in the output, in addition to those fields from the
+     * Featurestore Entity.
+     * For BigQuery source, the type of the pass-through values will be
+     * automatically inferred. For CSV source, the pass-through values will be
+     * passed as opaque bytes.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField> + getPassThroughFieldsList() { + if (passThroughFieldsBuilder_ == null) { + return java.util.Collections.unmodifiableList(passThroughFields_); + } else { + return passThroughFieldsBuilder_.getMessageList(); } - readOptionCase_ = 3; - onChanged(); - ; - return csvReadInstancesBuilder_; } - - private java.lang.Object featurestore_ = ""; /** * * *
-     * Required. The resource name of the Featurestore from which to query Feature values.
-     * Format:
-     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * When not empty, the specified fields in the *_read_instances source will be
+     * joined as-is in the output, in addition to those fields from the
+     * Featurestore Entity.
+     * For BigQuery source, the type of the pass-through values will be
+     * automatically inferred. For CSV source, the pass-through values will be
+     * passed as opaque bytes.
      * 
* * - * string featurestore = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8; * - * - * @return The featurestore. */ - public java.lang.String getFeaturestore() { - java.lang.Object ref = featurestore_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - featurestore_ = s; - return s; + public int getPassThroughFieldsCount() { + if (passThroughFieldsBuilder_ == null) { + return passThroughFields_.size(); } else { - return (java.lang.String) ref; + return passThroughFieldsBuilder_.getCount(); } } /** * * *
-     * Required. The resource name of the Featurestore from which to query Feature values.
-     * Format:
-     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * When not empty, the specified fields in the *_read_instances source will be
+     * joined as-is in the output, in addition to those fields from the
+     * Featurestore Entity.
+     * For BigQuery source, the type of the pass-through values will be
+     * automatically inferred. For CSV source, the pass-through values will be
+     * passed as opaque bytes.
      * 
* * - * string featurestore = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8; * - * - * @return The bytes for featurestore. */ - public com.google.protobuf.ByteString getFeaturestoreBytes() { - java.lang.Object ref = featurestore_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - featurestore_ = b; - return b; + public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField + getPassThroughFields(int index) { + if (passThroughFieldsBuilder_ == null) { + return passThroughFields_.get(index); } else { - return (com.google.protobuf.ByteString) ref; + return passThroughFieldsBuilder_.getMessage(index); } } /** * * *
-     * Required. The resource name of the Featurestore from which to query Feature values.
-     * Format:
-     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * When not empty, the specified fields in the *_read_instances source will be
+     * joined as-is in the output, in addition to those fields from the
+     * Featurestore Entity.
+     * For BigQuery source, the type of the pass-through values will be
+     * automatically inferred. For CSV source, the pass-through values will be
+     * passed as opaque bytes.
      * 
* * - * string featurestore = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8; * - * - * @param value The featurestore to set. - * @return This builder for chaining. */ - public Builder setFeaturestore(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setPassThroughFields( + int index, + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField value) { + if (passThroughFieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePassThroughFieldsIsMutable(); + passThroughFields_.set(index, value); + onChanged(); + } else { + passThroughFieldsBuilder_.setMessage(index, value); } - - featurestore_ = value; - onChanged(); return this; } /** * * *
-     * Required. The resource name of the Featurestore from which to query Feature values.
-     * Format:
-     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * When not empty, the specified fields in the *_read_instances source will be
+     * joined as-is in the output, in addition to those fields from the
+     * Featurestore Entity.
+     * For BigQuery source, the type of the pass-through values will be
+     * automatically inferred. For CSV source, the pass-through values will be
+     * passed as opaque bytes.
      * 
* * - * string featurestore = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8; * - * - * @return This builder for chaining. */ - public Builder clearFeaturestore() { - - featurestore_ = getDefaultInstance().getFeaturestore(); - onChanged(); + public Builder setPassThroughFields( + int index, + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField.Builder + builderForValue) { + if (passThroughFieldsBuilder_ == null) { + ensurePassThroughFieldsIsMutable(); + passThroughFields_.set(index, builderForValue.build()); + onChanged(); + } else { + passThroughFieldsBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * * *
-     * Required. The resource name of the Featurestore from which to query Feature values.
-     * Format:
-     * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+     * When not empty, the specified fields in the *_read_instances source will be
+     * joined as-is in the output, in addition to those fields from the
+     * Featurestore Entity.
+     * For BigQuery source, the type of the pass-through values will be
+     * automatically inferred. For CSV source, the pass-through values will be
+     * passed as opaque bytes.
      * 
* * - * string featurestore = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8; * - * - * @param value The bytes for featurestore to set. - * @return This builder for chaining. */ - public Builder setFeaturestoreBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder addPassThroughFields( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField value) { + if (passThroughFieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePassThroughFieldsIsMutable(); + passThroughFields_.add(value); + onChanged(); + } else { + passThroughFieldsBuilder_.addMessage(value); } - checkByteStringIsUtf8(value); - - featurestore_ = value; - onChanged(); return this; } - - private com.google.cloud.aiplatform.v1beta1.FeatureValueDestination destination_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.FeatureValueDestination, - com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.Builder, - com.google.cloud.aiplatform.v1beta1.FeatureValueDestinationOrBuilder> - destinationBuilder_; /** * * *
-     * Required. Specifies output location and format.
+     * When not empty, the specified fields in the *_read_instances source will be
+     * joined as-is in the output, in addition to those fields from the
+     * Featurestore Entity.
+     * For BigQuery source, the type of the pass-through values will be
+     * automatically inferred. For CSV source, the pass-through values will be
+     * passed as opaque bytes.
      * 
* * - * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8; * - * - * @return Whether the destination field is set. */ - public boolean hasDestination() { - return destinationBuilder_ != null || destination_ != null; + public Builder addPassThroughFields( + int index, + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField value) { + if (passThroughFieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePassThroughFieldsIsMutable(); + passThroughFields_.add(index, value); + onChanged(); + } else { + passThroughFieldsBuilder_.addMessage(index, value); + } + return this; } /** * * *
-     * Required. Specifies output location and format.
+     * When not empty, the specified fields in the *_read_instances source will be
+     * joined as-is in the output, in addition to those fields from the
+     * Featurestore Entity.
+     * For BigQuery source, the type of the pass-through values will be
+     * automatically inferred. For CSV source, the pass-through values will be
+     * passed as opaque bytes.
      * 
* * - * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8; * - * - * @return The destination. */ - public com.google.cloud.aiplatform.v1beta1.FeatureValueDestination getDestination() { - if (destinationBuilder_ == null) { - return destination_ == null - ? com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.getDefaultInstance() - : destination_; + public Builder addPassThroughFields( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField.Builder + builderForValue) { + if (passThroughFieldsBuilder_ == null) { + ensurePassThroughFieldsIsMutable(); + passThroughFields_.add(builderForValue.build()); + onChanged(); } else { - return destinationBuilder_.getMessage(); + passThroughFieldsBuilder_.addMessage(builderForValue.build()); } + return this; } /** * * *
-     * Required. Specifies output location and format.
+     * When not empty, the specified fields in the *_read_instances source will be
+     * joined as-is in the output, in addition to those fields from the
+     * Featurestore Entity.
+     * For BigQuery source, the type of the pass-through values will be
+     * automatically inferred. For CSV source, the pass-through values will be
+     * passed as opaque bytes.
      * 
* * - * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8; * */ - public Builder setDestination( - com.google.cloud.aiplatform.v1beta1.FeatureValueDestination value) { - if (destinationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - destination_ = value; + public Builder addPassThroughFields( + int index, + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField.Builder + builderForValue) { + if (passThroughFieldsBuilder_ == null) { + ensurePassThroughFieldsIsMutable(); + passThroughFields_.add(index, builderForValue.build()); onChanged(); } else { - destinationBuilder_.setMessage(value); + passThroughFieldsBuilder_.addMessage(index, builderForValue.build()); } - return this; } /** * * *
-     * Required. Specifies output location and format.
+     * When not empty, the specified fields in the *_read_instances source will be
+     * joined as-is in the output, in addition to those fields from the
+     * Featurestore Entity.
+     * For BigQuery source, the type of the pass-through values will be
+     * automatically inferred. For CSV source, the pass-through values will be
+     * passed as opaque bytes.
      * 
* * - * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8; * */ - public Builder setDestination( - com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.Builder builderForValue) { - if (destinationBuilder_ == null) { - destination_ = builderForValue.build(); + public Builder addAllPassThroughFields( + java.lang.Iterable< + ? extends + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + .PassThroughField> + values) { + if (passThroughFieldsBuilder_ == null) { + ensurePassThroughFieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, passThroughFields_); onChanged(); } else { - destinationBuilder_.setMessage(builderForValue.build()); + passThroughFieldsBuilder_.addAllMessages(values); } - return this; } /** * * *
-     * Required. Specifies output location and format.
+     * When not empty, the specified fields in the *_read_instances source will be
+     * joined as-is in the output, in addition to those fields from the
+     * Featurestore Entity.
+     * For BigQuery source, the type of the pass-through values will be
+     * automatically inferred. For CSV source, the pass-through values will be
+     * passed as opaque bytes.
      * 
* * - * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8; * */ - public Builder mergeDestination( - com.google.cloud.aiplatform.v1beta1.FeatureValueDestination value) { - if (destinationBuilder_ == null) { - if (destination_ != null) { - destination_ = - com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.newBuilder(destination_) - .mergeFrom(value) - .buildPartial(); - } else { - destination_ = value; - } + public Builder clearPassThroughFields() { + if (passThroughFieldsBuilder_ == null) { + passThroughFields_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { - destinationBuilder_.mergeFrom(value); + passThroughFieldsBuilder_.clear(); } - return this; } /** * * *
-     * Required. Specifies output location and format.
+     * When not empty, the specified fields in the *_read_instances source will be
+     * joined as-is in the output, in addition to those fields from the
+     * Featurestore Entity.
+     * For BigQuery source, the type of the pass-through values will be
+     * automatically inferred. For CSV source, the pass-through values will be
+     * passed as opaque bytes.
      * 
* * - * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8; * */ - public Builder clearDestination() { - if (destinationBuilder_ == null) { - destination_ = null; + public Builder removePassThroughFields(int index) { + if (passThroughFieldsBuilder_ == null) { + ensurePassThroughFieldsIsMutable(); + passThroughFields_.remove(index); onChanged(); } else { - destination_ = null; - destinationBuilder_ = null; + passThroughFieldsBuilder_.remove(index); } - return this; } /** * * *
-     * Required. Specifies output location and format.
+     * When not empty, the specified fields in the *_read_instances source will be
+     * joined as-is in the output, in addition to those fields from the
+     * Featurestore Entity.
+     * For BigQuery source, the type of the pass-through values will be
+     * automatically inferred. For CSV source, the pass-through values will be
+     * passed as opaque bytes.
      * 
* * - * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8; * */ - public com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.Builder - getDestinationBuilder() { - - onChanged(); - return getDestinationFieldBuilder().getBuilder(); + public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField + .Builder + getPassThroughFieldsBuilder(int index) { + return getPassThroughFieldsFieldBuilder().getBuilder(index); } /** * * *
-     * Required. Specifies output location and format.
+     * When not empty, the specified fields in the *_read_instances source will be
+     * joined as-is in the output, in addition to those fields from the
+     * Featurestore Entity.
+     * For BigQuery source, the type of the pass-through values will be
+     * automatically inferred. For CSV source, the pass-through values will be
+     * passed as opaque bytes.
      * 
* * - * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8; * */ - public com.google.cloud.aiplatform.v1beta1.FeatureValueDestinationOrBuilder - getDestinationOrBuilder() { - if (destinationBuilder_ != null) { - return destinationBuilder_.getMessageOrBuilder(); + public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + .PassThroughFieldOrBuilder + getPassThroughFieldsOrBuilder(int index) { + if (passThroughFieldsBuilder_ == null) { + return passThroughFields_.get(index); } else { - return destination_ == null - ? com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.getDefaultInstance() - : destination_; + return passThroughFieldsBuilder_.getMessageOrBuilder(index); } } /** * * *
-     * Required. Specifies output location and format.
+     * When not empty, the specified fields in the *_read_instances source will be
+     * joined as-is in the output, in addition to those fields from the
+     * Featurestore Entity.
+     * For BigQuery source, the type of the pass-through values will be
+     * automatically inferred. For CSV source, the pass-through values will be
+     * passed as opaque bytes.
      * 
* * - * .google.cloud.aiplatform.v1beta1.FeatureValueDestination destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8; * */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.FeatureValueDestination, - com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.Builder, - com.google.cloud.aiplatform.v1beta1.FeatureValueDestinationOrBuilder> - getDestinationFieldBuilder() { - if (destinationBuilder_ == null) { - destinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.FeatureValueDestination, - com.google.cloud.aiplatform.v1beta1.FeatureValueDestination.Builder, - com.google.cloud.aiplatform.v1beta1.FeatureValueDestinationOrBuilder>( - getDestination(), getParentForChildren(), isClean()); - destination_ = null; + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + .PassThroughFieldOrBuilder> + getPassThroughFieldsOrBuilderList() { + if (passThroughFieldsBuilder_ != null) { + return passThroughFieldsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(passThroughFields_); } - return destinationBuilder_; + } + /** + * + * + *
+     * When not empty, the specified fields in the *_read_instances source will be
+     * joined as-is in the output, in addition to those fields from the
+     * Featurestore Entity.
+     * For BigQuery source, the type of the pass-through values will be
+     * automatically inferred. For CSV source, the pass-through values will be
+     * passed as opaque bytes.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8; + * + */ + public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField + .Builder + addPassThroughFieldsBuilder() { + return getPassThroughFieldsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField + .getDefaultInstance()); + } + /** + * + * + *
+     * When not empty, the specified fields in the *_read_instances source will be
+     * joined as-is in the output, in addition to those fields from the
+     * Featurestore Entity.
+     * For BigQuery source, the type of the pass-through values will be
+     * automatically inferred. For CSV source, the pass-through values will be
+     * passed as opaque bytes.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8; + * + */ + public com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField + .Builder + addPassThroughFieldsBuilder(int index) { + return getPassThroughFieldsFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField + .getDefaultInstance()); + } + /** + * + * + *
+     * When not empty, the specified fields in the *_read_instances source will be
+     * joined as-is in the output, in addition to those fields from the
+     * Featurestore Entity.
+     * For BigQuery source, the type of the pass-through values will be
+     * automatically inferred. For CSV source, the pass-through values will be
+     * passed as opaque bytes.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField + .Builder> + getPassThroughFieldsBuilderList() { + return getPassThroughFieldsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField, + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField + .Builder, + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + .PassThroughFieldOrBuilder> + getPassThroughFieldsFieldBuilder() { + if (passThroughFieldsBuilder_ == null) { + passThroughFieldsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField, + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField + .Builder, + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + .PassThroughFieldOrBuilder>( + passThroughFields_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + passThroughFields_ = null; + } + return passThroughFieldsBuilder_; } private java.util.List< @@ -3347,12 +5073,12 @@ public Builder clearDestination() { entityTypeSpecs_ = java.util.Collections.emptyList(); private void ensureEntityTypeSpecsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { entityTypeSpecs_ = new java.util.ArrayList< com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec>( entityTypeSpecs_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -3371,7 +5097,7 @@ private void ensureEntityTypeSpecsIsMutable() { * Required. Specifies EntityType grouping Features to read values of and settings. * Each EntityType referenced in * [BatchReadFeatureValuesRequest.entity_type_specs] must have a column - * specifying entity IDs in tha EntityType in + * specifying entity IDs in the EntityType in * [BatchReadFeatureValuesRequest.request][] . *
* @@ -3395,7 +5121,7 @@ private void ensureEntityTypeSpecsIsMutable() { * Required. Specifies EntityType grouping Features to read values of and settings. * Each EntityType referenced in * [BatchReadFeatureValuesRequest.entity_type_specs] must have a column - * specifying entity IDs in tha EntityType in + * specifying entity IDs in the EntityType in * [BatchReadFeatureValuesRequest.request][] . * * @@ -3417,7 +5143,7 @@ public int getEntityTypeSpecsCount() { * Required. Specifies EntityType grouping Features to read values of and settings. * Each EntityType referenced in * [BatchReadFeatureValuesRequest.entity_type_specs] must have a column - * specifying entity IDs in tha EntityType in + * specifying entity IDs in the EntityType in * [BatchReadFeatureValuesRequest.request][] . * * @@ -3440,7 +5166,7 @@ public int getEntityTypeSpecsCount() { * Required. Specifies EntityType grouping Features to read values of and settings. * Each EntityType referenced in * [BatchReadFeatureValuesRequest.entity_type_specs] must have a column - * specifying entity IDs in tha EntityType in + * specifying entity IDs in the EntityType in * [BatchReadFeatureValuesRequest.request][] . * * @@ -3470,7 +5196,7 @@ public Builder setEntityTypeSpecs( * Required. Specifies EntityType grouping Features to read values of and settings. * Each EntityType referenced in * [BatchReadFeatureValuesRequest.entity_type_specs] must have a column - * specifying entity IDs in tha EntityType in + * specifying entity IDs in the EntityType in * [BatchReadFeatureValuesRequest.request][] . * * @@ -3498,7 +5224,7 @@ public Builder setEntityTypeSpecs( * Required. Specifies EntityType grouping Features to read values of and settings. * Each EntityType referenced in * [BatchReadFeatureValuesRequest.entity_type_specs] must have a column - * specifying entity IDs in tha EntityType in + * specifying entity IDs in the EntityType in * [BatchReadFeatureValuesRequest.request][] . * * @@ -3527,7 +5253,7 @@ public Builder addEntityTypeSpecs( * Required. Specifies EntityType grouping Features to read values of and settings. * Each EntityType referenced in * [BatchReadFeatureValuesRequest.entity_type_specs] must have a column - * specifying entity IDs in tha EntityType in + * specifying entity IDs in the EntityType in * [BatchReadFeatureValuesRequest.request][] . * * @@ -3557,7 +5283,7 @@ public Builder addEntityTypeSpecs( * Required. Specifies EntityType grouping Features to read values of and settings. * Each EntityType referenced in * [BatchReadFeatureValuesRequest.entity_type_specs] must have a column - * specifying entity IDs in tha EntityType in + * specifying entity IDs in the EntityType in * [BatchReadFeatureValuesRequest.request][] . * * @@ -3584,7 +5310,7 @@ public Builder addEntityTypeSpecs( * Required. Specifies EntityType grouping Features to read values of and settings. * Each EntityType referenced in * [BatchReadFeatureValuesRequest.entity_type_specs] must have a column - * specifying entity IDs in tha EntityType in + * specifying entity IDs in the EntityType in * [BatchReadFeatureValuesRequest.request][] . * * @@ -3612,7 +5338,7 @@ public Builder addEntityTypeSpecs( * Required. Specifies EntityType grouping Features to read values of and settings. * Each EntityType referenced in * [BatchReadFeatureValuesRequest.entity_type_specs] must have a column - * specifying entity IDs in tha EntityType in + * specifying entity IDs in the EntityType in * [BatchReadFeatureValuesRequest.request][] . * * @@ -3642,7 +5368,7 @@ public Builder addAllEntityTypeSpecs( * Required. Specifies EntityType grouping Features to read values of and settings. * Each EntityType referenced in * [BatchReadFeatureValuesRequest.entity_type_specs] must have a column - * specifying entity IDs in tha EntityType in + * specifying entity IDs in the EntityType in * [BatchReadFeatureValuesRequest.request][] . * * @@ -3653,7 +5379,7 @@ public Builder addAllEntityTypeSpecs( public Builder clearEntityTypeSpecs() { if (entityTypeSpecsBuilder_ == null) { entityTypeSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { entityTypeSpecsBuilder_.clear(); @@ -3667,7 +5393,7 @@ public Builder clearEntityTypeSpecs() { * Required. Specifies EntityType grouping Features to read values of and settings. * Each EntityType referenced in * [BatchReadFeatureValuesRequest.entity_type_specs] must have a column - * specifying entity IDs in tha EntityType in + * specifying entity IDs in the EntityType in * [BatchReadFeatureValuesRequest.request][] . * * @@ -3692,7 +5418,7 @@ public Builder removeEntityTypeSpecs(int index) { * Required. Specifies EntityType grouping Features to read values of and settings. * Each EntityType referenced in * [BatchReadFeatureValuesRequest.entity_type_specs] must have a column - * specifying entity IDs in tha EntityType in + * specifying entity IDs in the EntityType in * [BatchReadFeatureValuesRequest.request][] . * * @@ -3711,7 +5437,7 @@ public Builder removeEntityTypeSpecs(int index) { * Required. Specifies EntityType grouping Features to read values of and settings. * Each EntityType referenced in * [BatchReadFeatureValuesRequest.entity_type_specs] must have a column - * specifying entity IDs in tha EntityType in + * specifying entity IDs in the EntityType in * [BatchReadFeatureValuesRequest.request][] . * * @@ -3734,7 +5460,7 @@ public Builder removeEntityTypeSpecs(int index) { * Required. Specifies EntityType grouping Features to read values of and settings. * Each EntityType referenced in * [BatchReadFeatureValuesRequest.entity_type_specs] must have a column - * specifying entity IDs in tha EntityType in + * specifying entity IDs in the EntityType in * [BatchReadFeatureValuesRequest.request][] . * * @@ -3760,7 +5486,7 @@ public Builder removeEntityTypeSpecs(int index) { * Required. Specifies EntityType grouping Features to read values of and settings. * Each EntityType referenced in * [BatchReadFeatureValuesRequest.entity_type_specs] must have a column - * specifying entity IDs in tha EntityType in + * specifying entity IDs in the EntityType in * [BatchReadFeatureValuesRequest.request][] . * * @@ -3782,7 +5508,7 @@ public Builder removeEntityTypeSpecs(int index) { * Required. Specifies EntityType grouping Features to read values of and settings. * Each EntityType referenced in * [BatchReadFeatureValuesRequest.entity_type_specs] must have a column - * specifying entity IDs in tha EntityType in + * specifying entity IDs in the EntityType in * [BatchReadFeatureValuesRequest.request][] . * * @@ -3805,7 +5531,7 @@ public Builder removeEntityTypeSpecs(int index) { * Required. Specifies EntityType grouping Features to read values of and settings. * Each EntityType referenced in * [BatchReadFeatureValuesRequest.entity_type_specs] must have a column - * specifying entity IDs in tha EntityType in + * specifying entity IDs in the EntityType in * [BatchReadFeatureValuesRequest.request][] . * * @@ -3836,7 +5562,7 @@ public Builder removeEntityTypeSpecs(int index) { com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest .EntityTypeSpecOrBuilder>( entityTypeSpecs_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); entityTypeSpecs_ = null; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesRequestOrBuilder.java index a9ccc8878..303afdeb3 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesRequestOrBuilder.java @@ -106,6 +106,41 @@ public interface BatchReadFeatureValuesRequestOrBuilder */ com.google.cloud.aiplatform.v1beta1.CsvSourceOrBuilder getCsvReadInstancesOrBuilder(); + /** + * + * + *
+   * Similar to csv_read_instances, but from BigQuery source.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_read_instances = 5; + * + * @return Whether the bigqueryReadInstances field is set. + */ + boolean hasBigqueryReadInstances(); + /** + * + * + *
+   * Similar to csv_read_instances, but from BigQuery source.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_read_instances = 5; + * + * @return The bigqueryReadInstances. + */ + com.google.cloud.aiplatform.v1beta1.BigQuerySource getBigqueryReadInstances(); + /** + * + * + *
+   * Similar to csv_read_instances, but from BigQuery source.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQuerySource bigquery_read_instances = 5; + */ + com.google.cloud.aiplatform.v1beta1.BigQuerySourceOrBuilder getBigqueryReadInstancesOrBuilder(); + /** * * @@ -180,6 +215,99 @@ public interface BatchReadFeatureValuesRequestOrBuilder */ com.google.cloud.aiplatform.v1beta1.FeatureValueDestinationOrBuilder getDestinationOrBuilder(); + /** + * + * + *
+   * When not empty, the specified fields in the *_read_instances source will be
+   * joined as-is in the output, in addition to those fields from the
+   * Featurestore Entity.
+   * For BigQuery source, the type of the pass-through values will be
+   * automatically inferred. For CSV source, the pass-through values will be
+   * passed as opaque bytes.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8; + * + */ + java.util.List + getPassThroughFieldsList(); + /** + * + * + *
+   * When not empty, the specified fields in the *_read_instances source will be
+   * joined as-is in the output, in addition to those fields from the
+   * Featurestore Entity.
+   * For BigQuery source, the type of the pass-through values will be
+   * automatically inferred. For CSV source, the pass-through values will be
+   * passed as opaque bytes.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8; + * + */ + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField + getPassThroughFields(int index); + /** + * + * + *
+   * When not empty, the specified fields in the *_read_instances source will be
+   * joined as-is in the output, in addition to those fields from the
+   * Featurestore Entity.
+   * For BigQuery source, the type of the pass-through values will be
+   * automatically inferred. For CSV source, the pass-through values will be
+   * passed as opaque bytes.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8; + * + */ + int getPassThroughFieldsCount(); + /** + * + * + *
+   * When not empty, the specified fields in the *_read_instances source will be
+   * joined as-is in the output, in addition to those fields from the
+   * Featurestore Entity.
+   * For BigQuery source, the type of the pass-through values will be
+   * automatically inferred. For CSV source, the pass-through values will be
+   * passed as opaque bytes.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8; + * + */ + java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + .PassThroughFieldOrBuilder> + getPassThroughFieldsOrBuilderList(); + /** + * + * + *
+   * When not empty, the specified fields in the *_read_instances source will be
+   * joined as-is in the output, in addition to those fields from the
+   * Featurestore Entity.
+   * For BigQuery source, the type of the pass-through values will be
+   * automatically inferred. For CSV source, the pass-through values will be
+   * passed as opaque bytes.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField pass_through_fields = 8; + * + */ + com.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughFieldOrBuilder + getPassThroughFieldsOrBuilder(int index); + /** * * @@ -187,7 +315,7 @@ public interface BatchReadFeatureValuesRequestOrBuilder * Required. Specifies EntityType grouping Features to read values of and settings. * Each EntityType referenced in * [BatchReadFeatureValuesRequest.entity_type_specs] must have a column - * specifying entity IDs in tha EntityType in + * specifying entity IDs in the EntityType in * [BatchReadFeatureValuesRequest.request][] . * * @@ -204,7 +332,7 @@ public interface BatchReadFeatureValuesRequestOrBuilder * Required. Specifies EntityType grouping Features to read values of and settings. * Each EntityType referenced in * [BatchReadFeatureValuesRequest.entity_type_specs] must have a column - * specifying entity IDs in tha EntityType in + * specifying entity IDs in the EntityType in * [BatchReadFeatureValuesRequest.request][] . * * @@ -221,7 +349,7 @@ public interface BatchReadFeatureValuesRequestOrBuilder * Required. Specifies EntityType grouping Features to read values of and settings. * Each EntityType referenced in * [BatchReadFeatureValuesRequest.entity_type_specs] must have a column - * specifying entity IDs in tha EntityType in + * specifying entity IDs in the EntityType in * [BatchReadFeatureValuesRequest.request][] . * * @@ -237,7 +365,7 @@ public interface BatchReadFeatureValuesRequestOrBuilder * Required. Specifies EntityType grouping Features to read values of and settings. * Each EntityType referenced in * [BatchReadFeatureValuesRequest.entity_type_specs] must have a column - * specifying entity IDs in tha EntityType in + * specifying entity IDs in the EntityType in * [BatchReadFeatureValuesRequest.request][] . * * @@ -257,7 +385,7 @@ public interface BatchReadFeatureValuesRequestOrBuilder * Required. Specifies EntityType grouping Features to read values of and settings. * Each EntityType referenced in * [BatchReadFeatureValuesRequest.entity_type_specs] must have a column - * specifying entity IDs in tha EntityType in + * specifying entity IDs in the EntityType in * [BatchReadFeatureValuesRequest.request][] . * * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BigQueryDestination.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BigQueryDestination.java index 7923a8b5d..e415ac1bb 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BigQueryDestination.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BigQueryDestination.java @@ -123,7 +123,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * table must not exist. * Accepted forms: * * BigQuery path. For example: - * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`. + * `bq://projectId` or `bq://projectId.bqDatasetId` or + * `bq://projectId.bqDatasetId.bqTableId`. * * * string output_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -152,7 +153,8 @@ public java.lang.String getOutputUri() { * table must not exist. * Accepted forms: * * BigQuery path. For example: - * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`. + * `bq://projectId` or `bq://projectId.bqDatasetId` or + * `bq://projectId.bqDatasetId.bqTableId`. * * * string output_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -502,7 +504,8 @@ public Builder mergeFrom( * table must not exist. * Accepted forms: * * BigQuery path. For example: - * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`. + * `bq://projectId` or `bq://projectId.bqDatasetId` or + * `bq://projectId.bqDatasetId.bqTableId`. * * * string output_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -530,7 +533,8 @@ public java.lang.String getOutputUri() { * table must not exist. * Accepted forms: * * BigQuery path. For example: - * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`. + * `bq://projectId` or `bq://projectId.bqDatasetId` or + * `bq://projectId.bqDatasetId.bqTableId`. * * * string output_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -558,7 +562,8 @@ public com.google.protobuf.ByteString getOutputUriBytes() { * table must not exist. * Accepted forms: * * BigQuery path. For example: - * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`. + * `bq://projectId` or `bq://projectId.bqDatasetId` or + * `bq://projectId.bqDatasetId.bqTableId`. * * * string output_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -585,7 +590,8 @@ public Builder setOutputUri(java.lang.String value) { * table must not exist. * Accepted forms: * * BigQuery path. For example: - * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`. + * `bq://projectId` or `bq://projectId.bqDatasetId` or + * `bq://projectId.bqDatasetId.bqTableId`. * * * string output_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -608,7 +614,8 @@ public Builder clearOutputUri() { * table must not exist. * Accepted forms: * * BigQuery path. For example: - * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`. + * `bq://projectId` or `bq://projectId.bqDatasetId` or + * `bq://projectId.bqDatasetId.bqTableId`. * * * string output_uri = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BigQueryDestinationOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BigQueryDestinationOrBuilder.java index 9ebffa7b4..5b7de681a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BigQueryDestinationOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BigQueryDestinationOrBuilder.java @@ -33,7 +33,8 @@ public interface BigQueryDestinationOrBuilder * table must not exist. * Accepted forms: * * BigQuery path. For example: - * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`. + * `bq://projectId` or `bq://projectId.bqDatasetId` or + * `bq://projectId.bqDatasetId.bqTableId`. * * * string output_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -51,7 +52,8 @@ public interface BigQueryDestinationOrBuilder * table must not exist. * Accepted forms: * * BigQuery path. For example: - * `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`. + * `bq://projectId` or `bq://projectId.bqDatasetId` or + * `bq://projectId.bqDatasetId.bqTableId`. * * * string output_uri = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompletionStatsProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompletionStatsProto.java index 06017cbf1..3ffd269bb 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompletionStatsProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CompletionStatsProto.java @@ -47,10 +47,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "annotations.proto\"j\n\017CompletionStats\022\035\n\020" + "successful_count\030\001 \001(\003B\003\340A\003\022\031\n\014failed_co" + "unt\030\002 \001(\003B\003\340A\003\022\035\n\020incomplete_count\030\003 \001(\003" - + "B\003\340A\003B\210\001\n#com.google.cloud.aiplatform.v1" + + "B\003\340A\003B\361\001\n#com.google.cloud.aiplatform.v1" + "beta1B\024CompletionStatsProtoP\001ZIgoogle.go" + "lang.org/genproto/googleapis/cloud/aipla" - + "tform/v1beta1;aiplatformb\006proto3" + + "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( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextProto.java index e59fa62d3..20f9bccbe 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextProto.java @@ -66,10 +66,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "atform.googleapis.com/Context\022Zprojects/" + "{project}/locations/{location}/metadataS" + "tores/{metadata_store}/contexts/{context" - + "}B\200\001\n#com.google.cloud.aiplatform.v1beta" + + "}B\351\001\n#com.google.cloud.aiplatform.v1beta" + "1B\014ContextProtoP\001ZIgoogle.golang.org/gen" + "proto/googleapis/cloud/aiplatform/v1beta" - + "1;aiplatformb\006proto3" + + "1;aiplatform\252\002\037Google.Cloud.AIPlatform.V" + + "1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1" + + "\352\002\"Google::Cloud::AIPlatform::V1beta1b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJob.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJob.java index 058277cd5..6b998a7d7 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJob.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJob.java @@ -218,6 +218,23 @@ private CustomJob( break; } + case 130: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + webAccessUris_ = + com.google.protobuf.MapField.newMapField( + WebAccessUrisDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry webAccessUris__ = + input.readMessage( + WebAccessUrisDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + webAccessUris_ + .getMutableMap() + .put(webAccessUris__.getKey(), webAccessUris__.getValue()); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -248,6 +265,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 11: return internalGetLabels(); + case 16: + return internalGetWebAccessUris(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -878,6 +897,123 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryption return getEncryptionSpec(); } + public static final int WEB_ACCESS_URIS_FIELD_NUMBER = 16; + + private static final class WebAccessUrisDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.aiplatform.v1beta1.CustomJobProto + .internal_static_google_cloud_aiplatform_v1beta1_CustomJob_WebAccessUrisEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField webAccessUris_; + + private com.google.protobuf.MapField + internalGetWebAccessUris() { + if (webAccessUris_ == null) { + return com.google.protobuf.MapField.emptyMapField( + WebAccessUrisDefaultEntryHolder.defaultEntry); + } + return webAccessUris_; + } + + public int getWebAccessUrisCount() { + return internalGetWebAccessUris().getMap().size(); + } + /** + * + * + *
+   * Output only. The web access URIs for the training job.
+   * The keys are the node names in the training jobs, e.g. workerpool0-0.
+   * The values are the URIs for each node's web portal in the job.
+   * 
+ * + * + * map<string, string> web_access_uris = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsWebAccessUris(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetWebAccessUris().getMap().containsKey(key); + } + /** Use {@link #getWebAccessUrisMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getWebAccessUris() { + return getWebAccessUrisMap(); + } + /** + * + * + *
+   * Output only. The web access URIs for the training job.
+   * The keys are the node names in the training jobs, e.g. workerpool0-0.
+   * The values are the URIs for each node's web portal in the job.
+   * 
+ * + * + * map<string, string> web_access_uris = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getWebAccessUrisMap() { + return internalGetWebAccessUris().getMap(); + } + /** + * + * + *
+   * Output only. The web access URIs for the training job.
+   * The keys are the node names in the training jobs, e.g. workerpool0-0.
+   * The values are the URIs for each node's web portal in the job.
+   * 
+ * + * + * map<string, string> web_access_uris = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.lang.String getWebAccessUrisOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetWebAccessUris().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Output only. The web access URIs for the training job.
+   * The keys are the node names in the training jobs, e.g. workerpool0-0.
+   * The values are the URIs for each node's web portal in the job.
+   * 
+ * + * + * map<string, string> web_access_uris = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.lang.String getWebAccessUrisOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetWebAccessUris().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -924,6 +1060,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (encryptionSpec_ != null) { output.writeMessage(12, getEncryptionSpec()); } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetWebAccessUris(), WebAccessUrisDefaultEntryHolder.defaultEntry, 16); unknownFields.writeTo(output); } @@ -973,6 +1111,16 @@ public int getSerializedSize() { if (encryptionSpec_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getEncryptionSpec()); } + for (java.util.Map.Entry entry : + internalGetWebAccessUris().getMap().entrySet()) { + com.google.protobuf.MapEntry webAccessUris__ = + WebAccessUrisDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, webAccessUris__); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1021,6 +1169,7 @@ public boolean equals(final java.lang.Object obj) { if (hasEncryptionSpec()) { if (!getEncryptionSpec().equals(other.getEncryptionSpec())) return false; } + if (!internalGetWebAccessUris().equals(other.internalGetWebAccessUris())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1070,6 +1219,10 @@ public int hashCode() { hash = (37 * hash) + ENCRYPTION_SPEC_FIELD_NUMBER; hash = (53 * hash) + getEncryptionSpec().hashCode(); } + if (!internalGetWebAccessUris().getMap().isEmpty()) { + hash = (37 * hash) + WEB_ACCESS_URIS_FIELD_NUMBER; + hash = (53 * hash) + internalGetWebAccessUris().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1196,6 +1349,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 11: return internalGetLabels(); + case 16: + return internalGetWebAccessUris(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -1206,6 +1361,8 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 11: return internalGetMutableLabels(); + case 16: + return internalGetMutableWebAccessUris(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -1287,6 +1444,7 @@ public Builder clear() { encryptionSpec_ = null; encryptionSpecBuilder_ = null; } + internalGetMutableWebAccessUris().clear(); return this; } @@ -1355,6 +1513,8 @@ public com.google.cloud.aiplatform.v1beta1.CustomJob buildPartial() { } else { result.encryptionSpec_ = encryptionSpecBuilder_.build(); } + result.webAccessUris_ = internalGetWebAccessUris(); + result.webAccessUris_.makeImmutable(); onBuilt(); return result; } @@ -1437,6 +1597,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CustomJob other) { if (other.hasEncryptionSpec()) { mergeEncryptionSpec(other.getEncryptionSpec()); } + internalGetMutableWebAccessUris().mergeFrom(other.internalGetWebAccessUris()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -3363,6 +3524,194 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionS return encryptionSpecBuilder_; } + private com.google.protobuf.MapField webAccessUris_; + + private com.google.protobuf.MapField + internalGetWebAccessUris() { + if (webAccessUris_ == null) { + return com.google.protobuf.MapField.emptyMapField( + WebAccessUrisDefaultEntryHolder.defaultEntry); + } + return webAccessUris_; + } + + private com.google.protobuf.MapField + internalGetMutableWebAccessUris() { + onChanged(); + ; + if (webAccessUris_ == null) { + webAccessUris_ = + com.google.protobuf.MapField.newMapField(WebAccessUrisDefaultEntryHolder.defaultEntry); + } + if (!webAccessUris_.isMutable()) { + webAccessUris_ = webAccessUris_.copy(); + } + return webAccessUris_; + } + + public int getWebAccessUrisCount() { + return internalGetWebAccessUris().getMap().size(); + } + /** + * + * + *
+     * Output only. The web access URIs for the training job.
+     * The keys are the node names in the training jobs, e.g. workerpool0-0.
+     * The values are the URIs for each node's web portal in the job.
+     * 
+ * + * + * map<string, string> web_access_uris = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsWebAccessUris(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetWebAccessUris().getMap().containsKey(key); + } + /** Use {@link #getWebAccessUrisMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getWebAccessUris() { + return getWebAccessUrisMap(); + } + /** + * + * + *
+     * Output only. The web access URIs for the training job.
+     * The keys are the node names in the training jobs, e.g. workerpool0-0.
+     * The values are the URIs for each node's web portal in the job.
+     * 
+ * + * + * map<string, string> web_access_uris = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getWebAccessUrisMap() { + return internalGetWebAccessUris().getMap(); + } + /** + * + * + *
+     * Output only. The web access URIs for the training job.
+     * The keys are the node names in the training jobs, e.g. workerpool0-0.
+     * The values are the URIs for each node's web portal in the job.
+     * 
+ * + * + * map<string, string> web_access_uris = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.lang.String getWebAccessUrisOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetWebAccessUris().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Output only. The web access URIs for the training job.
+     * The keys are the node names in the training jobs, e.g. workerpool0-0.
+     * The values are the URIs for each node's web portal in the job.
+     * 
+ * + * + * map<string, string> web_access_uris = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.lang.String getWebAccessUrisOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetWebAccessUris().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearWebAccessUris() { + internalGetMutableWebAccessUris().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Output only. The web access URIs for the training job.
+     * The keys are the node names in the training jobs, e.g. workerpool0-0.
+     * The values are the URIs for each node's web portal in the job.
+     * 
+ * + * + * map<string, string> web_access_uris = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeWebAccessUris(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableWebAccessUris().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableWebAccessUris() { + return internalGetMutableWebAccessUris().getMutableMap(); + } + /** + * + * + *
+     * Output only. The web access URIs for the training job.
+     * The keys are the node names in the training jobs, e.g. workerpool0-0.
+     * The values are the URIs for each node's web portal in the job.
+     * 
+ * + * + * map<string, string> web_access_uris = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putWebAccessUris(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableWebAccessUris().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Output only. The web access URIs for the training job.
+     * The keys are the node names in the training jobs, e.g. workerpool0-0.
+     * The values are the URIs for each node's web portal in the job.
+     * 
+ * + * + * map<string, string> web_access_uris = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllWebAccessUris(java.util.Map values) { + internalGetMutableWebAccessUris().getMutableMap().putAll(values); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobOrBuilder.java index 516d9aa0a..e63b65ca0 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobOrBuilder.java @@ -457,4 +457,78 @@ public interface CustomJobOrBuilder * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 12; */ com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder(); + + /** + * + * + *
+   * Output only. The web access URIs for the training job.
+   * The keys are the node names in the training jobs, e.g. workerpool0-0.
+   * The values are the URIs for each node's web portal in the job.
+   * 
+ * + * + * map<string, string> web_access_uris = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getWebAccessUrisCount(); + /** + * + * + *
+   * Output only. The web access URIs for the training job.
+   * The keys are the node names in the training jobs, e.g. workerpool0-0.
+   * The values are the URIs for each node's web portal in the job.
+   * 
+ * + * + * map<string, string> web_access_uris = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsWebAccessUris(java.lang.String key); + /** Use {@link #getWebAccessUrisMap()} instead. */ + @java.lang.Deprecated + java.util.Map getWebAccessUris(); + /** + * + * + *
+   * Output only. The web access URIs for the training job.
+   * The keys are the node names in the training jobs, e.g. workerpool0-0.
+   * The values are the URIs for each node's web portal in the job.
+   * 
+ * + * + * map<string, string> web_access_uris = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map getWebAccessUrisMap(); + /** + * + * + *
+   * Output only. The web access URIs for the training job.
+   * The keys are the node names in the training jobs, e.g. workerpool0-0.
+   * The values are the URIs for each node's web portal in the job.
+   * 
+ * + * + * map<string, string> web_access_uris = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.lang.String getWebAccessUrisOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * Output only. The web access URIs for the training job.
+   * The keys are the node names in the training jobs, e.g. workerpool0-0.
+   * The values are the URIs for each node's web portal in the job.
+   * 
+ * + * + * map<string, string> web_access_uris = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.lang.String getWebAccessUrisOrThrow(java.lang.String key); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java index 94929b930..90e12e0a2 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java @@ -35,6 +35,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_CustomJob_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_CustomJob_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CustomJob_WebAccessUrisEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CustomJob_WebAccessUrisEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_CustomJobSpec_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -76,7 +80,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "m/v1beta1/machine_resources.proto\032\036googl" + "e/protobuf/duration.proto\032\037google/protob" + "uf/timestamp.proto\032\027google/rpc/status.pr" - + "oto\032\034google/api/annotations.proto\"\347\005\n\tCu" + + "oto\032\034google/api/annotations.proto\"\372\006\n\tCu" + "stomJob\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display_na" + "me\030\002 \001(\tB\003\340A\002\022E\n\010job_spec\030\004 \001(\0132..google" + ".cloud.aiplatform.v1beta1.CustomJobSpecB" @@ -91,40 +95,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "F\n\006labels\030\013 \003(\01326.google.cloud.aiplatfor" + "m.v1beta1.CustomJob.LabelsEntry\022H\n\017encry" + "ption_spec\030\014 \001(\0132/.google.cloud.aiplatfo" - + "rm.v1beta1.EncryptionSpec\032-\n\013LabelsEntry" - + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:i\352Af\n#a" - + "iplatform.googleapis.com/CustomJob\022?proj" - + "ects/{project}/locations/{location}/cust" - + "omJobs/{custom_job}\"\204\003\n\rCustomJobSpec\022O\n" - + "\021worker_pool_specs\030\001 \003(\0132/.google.cloud." - + "aiplatform.v1beta1.WorkerPoolSpecB\003\340A\002\022?" - + "\n\nscheduling\030\003 \001(\0132+.google.cloud.aiplat" - + "form.v1beta1.Scheduling\022\027\n\017service_accou" - + "nt\030\004 \001(\t\0224\n\007network\030\005 \001(\tB#\372A \n\036compute." - + "googleapis.com/Network\022N\n\025base_output_di" - + "rectory\030\006 \001(\0132/.google.cloud.aiplatform." - + "v1beta1.GcsDestination\022B\n\013tensorboard\030\007 " - + "\001(\tB-\340A\001\372A\'\n%aiplatform.googleapis.com/T" - + "ensorboard\"\333\002\n\016WorkerPoolSpec\022H\n\016contain" - + "er_spec\030\006 \001(\0132..google.cloud.aiplatform." - + "v1beta1.ContainerSpecH\000\022Q\n\023python_packag" - + "e_spec\030\007 \001(\01322.google.cloud.aiplatform.v" - + "1beta1.PythonPackageSpecH\000\022J\n\014machine_sp" - + "ec\030\001 \001(\0132,.google.cloud.aiplatform.v1bet" - + "a1.MachineSpecB\006\340A\001\340A\005\022\032\n\rreplica_count\030" - + "\002 \001(\003B\003\340A\001\022<\n\tdisk_spec\030\005 \001(\0132).google.c" - + "loud.aiplatform.v1beta1.DiskSpecB\006\n\004task" - + "\"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\021Pyth" - + "onPackageSpec\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\rpyt" - + "hon_module\030\003 \001(\tB\003\340A\002\022\014\n\004args\030\004 \003(\t\"_\n\nS" - + "cheduling\022*\n\007timeout\030\001 \001(\0132\031.google.prot" - + "obuf.Duration\022%\n\035restart_job_on_worker_r" - + "estart\030\003 \001(\010B\202\001\n#com.google.cloud.aiplat" - + "form.v1beta1B\016CustomJobProtoP\001ZIgoogle.g" - + "olang.org/genproto/googleapis/cloud/aipl" - + "atform/v1beta1;aiplatformb\006proto3" + + "rm.v1beta1.EncryptionSpec\022[\n\017web_access_" + + "uris\030\020 \003(\0132=.google.cloud.aiplatform.v1b" + + "eta1.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.goo" + + "gleapis.com/CustomJob\022?projects/{project" + + "}/locations/{location}/customJobs/{custo" + + "m_job}\"\244\003\n\rCustomJobSpec\022O\n\021worker_pool_" + + "specs\030\001 \003(\0132/.google.cloud.aiplatform.v1" + + "beta1.WorkerPoolSpecB\003\340A\002\022?\n\nscheduling\030" + + "\003 \001(\0132+.google.cloud.aiplatform.v1beta1." + + "Scheduling\022\027\n\017service_account\030\004 \001(\t\0224\n\007n" + + "etwork\030\005 \001(\tB#\372A \n\036compute.googleapis.co" + + "m/Network\022N\n\025base_output_directory\030\006 \001(\013" + + "2/.google.cloud.aiplatform.v1beta1.GcsDe" + + "stination\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\"\333\002\n\016Worker" + + "PoolSpec\022H\n\016container_spec\030\006 \001(\0132..googl" + + "e.cloud.aiplatform.v1beta1.ContainerSpec" + + "H\000\022Q\n\023python_package_spec\030\007 \001(\01322.google" + + ".cloud.aiplatform.v1beta1.PythonPackageS" + + "pecH\000\022J\n\014machine_spec\030\001 \001(\0132,.google.clo" + + "ud.aiplatform.v1beta1.MachineSpecB\006\340A\001\340A" + + "\005\022\032\n\rreplica_count\030\002 \001(\003B\003\340A\001\022<\n\tdisk_sp" + + "ec\030\005 \001(\0132).google.cloud.aiplatform.v1bet" + + "a1.DiskSpecB\006\n\004task\"F\n\rContainerSpec\022\026\n\t" + + "image_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\021PythonPackageSpec\022\037\n\022exec" + + "utor_image_uri\030\001 \001(\tB\003\340A\002\022\031\n\014package_uri" + + "s\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\"_\n\nScheduling\022*\n\007timeout\030" + + "\001 \001(\0132\031.google.protobuf.Duration\022%\n\035rest" + + "art_job_on_worker_restart\030\003 \001(\010B\353\001\n#com." + + "google.cloud.aiplatform.v1beta1B\016CustomJ" + + "obProtoP\001ZIgoogle.golang.org/genproto/go" + + "ogleapis/cloud/aiplatform/v1beta1;aiplat" + + "form\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002" + + "\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Googl" + + "e::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -159,6 +170,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Error", "Labels", "EncryptionSpec", + "WebAccessUris", }); internal_static_google_cloud_aiplatform_v1beta1_CustomJob_LabelsEntry_descriptor = internal_static_google_cloud_aiplatform_v1beta1_CustomJob_descriptor @@ -170,6 +182,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_aiplatform_v1beta1_CustomJob_WebAccessUrisEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_CustomJob_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_aiplatform_v1beta1_CustomJob_WebAccessUrisEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CustomJob_WebAccessUrisEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_cloud_aiplatform_v1beta1_CustomJobSpec_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_google_cloud_aiplatform_v1beta1_CustomJobSpec_fieldAccessorTable = @@ -182,6 +204,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Network", "BaseOutputDirectory", "Tensorboard", + "EnableWebAccess", }); internal_static_google_cloud_aiplatform_v1beta1_WorkerPoolSpec_descriptor = getDescriptor().getMessageTypes().get(2); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpec.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpec.java index d1da17a48..df015e297 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpec.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpec.java @@ -141,6 +141,11 @@ private CustomJobSpec( tensorboard_ = s; break; } + case 80: + { + enableWebAccess_ = input.readBool(); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -592,6 +597,25 @@ public com.google.protobuf.ByteString getTensorboardBytes() { } } + public static final int ENABLE_WEB_ACCESS_FIELD_NUMBER = 10; + private boolean enableWebAccess_; + /** + * + * + *
+   * Optional. Vertex AI will enable web portal access to the containers. The portals
+   * can be accessed on web via the URLs given by [web_access_uris][].
+   * 
+ * + * bool enable_web_access = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableWebAccess. + */ + @java.lang.Override + public boolean getEnableWebAccess() { + return enableWebAccess_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -624,6 +648,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getTensorboardBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, tensorboard_); } + if (enableWebAccess_ != false) { + output.writeBool(10, enableWebAccess_); + } unknownFields.writeTo(output); } @@ -651,6 +678,9 @@ public int getSerializedSize() { if (!getTensorboardBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, tensorboard_); } + if (enableWebAccess_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, enableWebAccess_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -679,6 +709,7 @@ public boolean equals(final java.lang.Object obj) { if (!getBaseOutputDirectory().equals(other.getBaseOutputDirectory())) return false; } if (!getTensorboard().equals(other.getTensorboard())) return false; + if (getEnableWebAccess() != other.getEnableWebAccess()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -708,6 +739,8 @@ public int hashCode() { } hash = (37 * hash) + TENSORBOARD_FIELD_NUMBER; hash = (53 * hash) + getTensorboard().hashCode(); + hash = (37 * hash) + ENABLE_WEB_ACCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableWebAccess()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -879,6 +912,8 @@ public Builder clear() { } tensorboard_ = ""; + enableWebAccess_ = false; + return this; } @@ -929,6 +964,7 @@ public com.google.cloud.aiplatform.v1beta1.CustomJobSpec buildPartial() { result.baseOutputDirectory_ = baseOutputDirectoryBuilder_.build(); } result.tensorboard_ = tensorboard_; + result.enableWebAccess_ = enableWebAccess_; onBuilt(); return result; } @@ -1024,6 +1060,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CustomJobSpec other tensorboard_ = other.tensorboard_; onChanged(); } + if (other.getEnableWebAccess() != false) { + setEnableWebAccess(other.getEnableWebAccess()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2404,6 +2443,61 @@ public Builder setTensorboardBytes(com.google.protobuf.ByteString value) { return this; } + private boolean enableWebAccess_; + /** + * + * + *
+     * Optional. Vertex AI will enable web portal access to the containers. The portals
+     * can be accessed on web via the URLs given by [web_access_uris][].
+     * 
+ * + * bool enable_web_access = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableWebAccess. + */ + @java.lang.Override + public boolean getEnableWebAccess() { + return enableWebAccess_; + } + /** + * + * + *
+     * Optional. Vertex AI will enable web portal access to the containers. The portals
+     * can be accessed on web via the URLs given by [web_access_uris][].
+     * 
+ * + * bool enable_web_access = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableWebAccess to set. + * @return This builder for chaining. + */ + public Builder setEnableWebAccess(boolean value) { + + enableWebAccess_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Vertex AI will enable web portal access to the containers. The portals
+     * can be accessed on web via the URLs given by [web_access_uris][].
+     * 
+ * + * bool enable_web_access = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableWebAccess() { + + enableWebAccess_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpecOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpecOrBuilder.java index 12e488546..6d8b6b469 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpecOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpecOrBuilder.java @@ -319,4 +319,18 @@ com.google.cloud.aiplatform.v1beta1.WorkerPoolSpecOrBuilder getWorkerPoolSpecsOr * @return The bytes for tensorboard. */ com.google.protobuf.ByteString getTensorboardBytes(); + + /** + * + * + *
+   * Optional. Vertex AI will enable web portal access to the containers. The portals
+   * can be accessed on web via the URLs given by [web_access_uris][].
+   * 
+ * + * bool enable_web_access = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableWebAccess. + */ + boolean getEnableWebAccess(); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemProto.java index efba743fb..abeefb2a1 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemProto.java @@ -61,10 +61,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\0028\001:y\352Av\n\"aiplatform.googleapis.com/Data" + "Item\022Pprojects/{project}/locations/{loca" + "tion}/datasets/{dataset}/dataItems/{data" - + "_item}B\201\001\n#com.google.cloud.aiplatform.v" + + "_item}B\352\001\n#com.google.cloud.aiplatform.v" + "1beta1B\rDataItemProtoP\001ZIgoogle.golang.o" + "rg/genproto/googleapis/cloud/aiplatform/" - + "v1beta1;aiplatformb\006proto3" + + "v1beta1;aiplatform\252\002\037Google.Cloud.AIPlat" + + "form.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V" + + "1beta1\352\002\"Google::Cloud::AIPlatform::V1be" + + "ta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobProto.java index 3fb48edbb..e5652b62d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobProto.java @@ -117,10 +117,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017\n\013UNCERTAINTY\020\001B\033\n\031initial_batch_sample" + "_sizeB\035\n\033following_batch_sample_size\"6\n\016" + "TrainingConfig\022$\n\034timeout_training_milli" - + "_hours\030\001 \001(\003B\210\001\n#com.google.cloud.aiplat" + + "_hours\030\001 \001(\003B\361\001\n#com.google.cloud.aiplat" + "form.v1beta1B\024DataLabelingJobProtoP\001ZIgo" + "ogle.golang.org/genproto/googleapis/clou" - + "d/aiplatform/v1beta1;aiplatformb\006proto3" + + "d/aiplatform/v1beta1;aiplatform\252\002\037Google" + + ".Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cloud" + + "\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIP" + + "latform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java index bc261f981..a14d468c7 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java @@ -88,11 +88,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "rce\"\211\001\n\020ExportDataConfig\022J\n\017gcs_destinat" + "ion\030\001 \001(\0132/.google.cloud.aiplatform.v1be" + "ta1.GcsDestinationH\000\022\032\n\022annotations_filt" - + "er\030\002 \001(\tB\r\n\013destinationB\200\001\n#com.google.c" + + "er\030\002 \001(\tB\r\n\013destinationB\351\001\n#com.google.c" + "loud.aiplatform.v1beta1B\014DatasetProtoP\001Z" + "Igoogle.golang.org/genproto/googleapis/c" - + "loud/aiplatform/v1beta1;aiplatformb\006prot" - + "o3" + + "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( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceProto.java index f5f8b9cef..a1d3a177f 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceProto.java @@ -238,10 +238,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ns/*/datasets/*/dataItems/*}/annotations" + "\332A\006parent\032M\312A\031aiplatform.googleapis.com\322" + "A.https://www.googleapis.com/auth/cloud-" - + "platformB\207\001\n#com.google.cloud.aiplatform" + + "platformB\360\001\n#com.google.cloud.aiplatform" + ".v1beta1B\023DatasetServiceProtoP\001ZIgoogle." + "golang.org/genproto/googleapis/cloud/aip" - + "latform/v1beta1;aiplatformb\006proto3" + + "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( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResources.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResources.java index 0ca877976..8a3bffcb6 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResources.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResources.java @@ -210,12 +210,10 @@ public com.google.cloud.aiplatform.v1beta1.MachineSpecOrBuilder getMachineSpecOr * *
    * Required. Immutable. The minimum number of machine replicas this DeployedModel will be always
-   * deployed on. If traffic against it increases, it may dynamically be
+   * deployed on. This value must be greater than or equal to 1.
+   * If traffic against the DeployedModel increases, it may dynamically be
    * deployed onto more replicas, and as traffic decreases, some of these extra
    * replicas may be freed.
-   * Note: if [machine_spec.accelerator_count][google.cloud.aiplatform.v1beta1.MachineSpec.accelerator_count] is
-   * above 0, currently the model will be always deployed precisely on
-   * [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count].
    * 
* * @@ -1051,12 +1049,10 @@ public com.google.cloud.aiplatform.v1beta1.MachineSpecOrBuilder getMachineSpecOr * *
      * Required. Immutable. The minimum number of machine replicas this DeployedModel will be always
-     * deployed on. If traffic against it increases, it may dynamically be
+     * deployed on. This value must be greater than or equal to 1.
+     * If traffic against the DeployedModel increases, it may dynamically be
      * deployed onto more replicas, and as traffic decreases, some of these extra
      * replicas may be freed.
-     * Note: if [machine_spec.accelerator_count][google.cloud.aiplatform.v1beta1.MachineSpec.accelerator_count] is
-     * above 0, currently the model will be always deployed precisely on
-     * [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count].
      * 
* * @@ -1074,12 +1070,10 @@ public int getMinReplicaCount() { * *
      * Required. Immutable. The minimum number of machine replicas this DeployedModel will be always
-     * deployed on. If traffic against it increases, it may dynamically be
+     * deployed on. This value must be greater than or equal to 1.
+     * If traffic against the DeployedModel increases, it may dynamically be
      * deployed onto more replicas, and as traffic decreases, some of these extra
      * replicas may be freed.
-     * Note: if [machine_spec.accelerator_count][google.cloud.aiplatform.v1beta1.MachineSpec.accelerator_count] is
-     * above 0, currently the model will be always deployed precisely on
-     * [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count].
      * 
* * @@ -1100,12 +1094,10 @@ public Builder setMinReplicaCount(int value) { * *
      * Required. Immutable. The minimum number of machine replicas this DeployedModel will be always
-     * deployed on. If traffic against it increases, it may dynamically be
+     * deployed on. This value must be greater than or equal to 1.
+     * If traffic against the DeployedModel increases, it may dynamically be
      * deployed onto more replicas, and as traffic decreases, some of these extra
      * replicas may be freed.
-     * Note: if [machine_spec.accelerator_count][google.cloud.aiplatform.v1beta1.MachineSpec.accelerator_count] is
-     * above 0, currently the model will be always deployed precisely on
-     * [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count].
      * 
* * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResourcesOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResourcesOrBuilder.java index 6769d34f2..0388ae35d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResourcesOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DedicatedResourcesOrBuilder.java @@ -69,12 +69,10 @@ public interface DedicatedResourcesOrBuilder * *
    * Required. Immutable. The minimum number of machine replicas this DeployedModel will be always
-   * deployed on. If traffic against it increases, it may dynamically be
+   * deployed on. This value must be greater than or equal to 1.
+   * If traffic against the DeployedModel increases, it may dynamically be
    * deployed onto more replicas, and as traffic decreases, some of these extra
    * replicas may be freed.
-   * Note: if [machine_spec.accelerator_count][google.cloud.aiplatform.v1beta1.MachineSpec.accelerator_count] is
-   * above 0, currently the model will be always deployed precisely on
-   * [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count].
    * 
* * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteArtifactRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteArtifactRequest.java new file mode 100644 index 000000000..ca51353e1 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteArtifactRequest.java @@ -0,0 +1,858 @@ +/* + * 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/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [MetadataService.DeleteArtifact][google.cloud.aiplatform.v1beta1.MetadataService.DeleteArtifact].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteArtifactRequest} + */ +public final class DeleteArtifactRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeleteArtifactRequest) + DeleteArtifactRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteArtifactRequest.newBuilder() to construct. + private DeleteArtifactRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteArtifactRequest() { + name_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteArtifactRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteArtifactRequest( + 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 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteArtifactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteArtifactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the Artifact to delete.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+   * 
+ * + * + * 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 resource name of the Artifact to delete.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+   * 
+ * + * + * 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 ETAG_FIELD_NUMBER = 2; + private volatile java.lang.Object etag_; + /** + * + * + *
+   * Optional. The etag of the Artifact to delete.
+   * If this is provided, it must match the server's etag. Otherwise, the
+   * request will fail with a FAILED_PRECONDITION.
+   * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The etag of the Artifact to delete.
+   * If this is provided, it must match the server's etag. Otherwise, the
+   * request will fail with a FAILED_PRECONDITION.
+   * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getEtagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, etag_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getEtagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, etag_); + } + 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.DeleteArtifactRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest other = + (com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) 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) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest 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.DeleteArtifactRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest 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.DeleteArtifactRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest 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.DeleteArtifactRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest 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.DeleteArtifactRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest 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.DeleteArtifactRequest 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.DeleteArtifactRequest 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.DeleteArtifactRequest 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 [MetadataService.DeleteArtifact][google.cloud.aiplatform.v1beta1.MetadataService.DeleteArtifact].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteArtifactRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeleteArtifactRequest) + com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteArtifactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteArtifactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest.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_ = ""; + + etag_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteArtifactRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest build() { + com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest result = + new com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest(this); + result.name_ = name_; + result.etag_ = etag_; + 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.DeleteArtifactRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + 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.DeleteArtifactRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the Artifact to delete.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+     * 
+ * + * + * 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 resource name of the Artifact to delete.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+     * 
+ * + * + * 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 resource name of the Artifact to delete.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+     * 
+ * + * + * 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 resource name of the Artifact to delete.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+     * 
+ * + * + * 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 resource name of the Artifact to delete.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+     * 
+ * + * + * 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 java.lang.Object etag_ = ""; + /** + * + * + *
+     * Optional. The etag of the Artifact to delete.
+     * If this is provided, it must match the server's etag. Otherwise, the
+     * request will fail with a FAILED_PRECONDITION.
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The etag of the Artifact to delete.
+     * If this is provided, it must match the server's etag. Otherwise, the
+     * request will fail with a FAILED_PRECONDITION.
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The etag of the Artifact to delete.
+     * If this is provided, it must match the server's etag. Otherwise, the
+     * request will fail with a FAILED_PRECONDITION.
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + etag_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The etag of the Artifact to delete.
+     * If this is provided, it must match the server's etag. Otherwise, the
+     * request will fail with a FAILED_PRECONDITION.
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + + etag_ = getDefaultInstance().getEtag(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The etag of the Artifact to delete.
+     * If this is provided, it must match the server's etag. Otherwise, the
+     * request will fail with a FAILED_PRECONDITION.
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + etag_ = 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.DeleteArtifactRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeleteArtifactRequest) + private static final com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteArtifactRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteArtifactRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteArtifactRequest(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.DeleteArtifactRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteArtifactRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteArtifactRequestOrBuilder.java new file mode 100644 index 000000000..2cf77645b --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteArtifactRequestOrBuilder.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/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DeleteArtifactRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeleteArtifactRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Artifact to delete.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the Artifact to delete.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The etag of the Artifact to delete.
+   * If this is provided, it must match the server's etag. Otherwise, the
+   * request will fail with a FAILED_PRECONDITION.
+   * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * Optional. The etag of the Artifact to delete.
+   * If this is provided, it must match the server's etag. Otherwise, the
+   * request will fail with a FAILED_PRECONDITION.
+   * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteContextRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteContextRequest.java index cc87b0c4b..930afeab3 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteContextRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteContextRequest.java @@ -39,6 +39,7 @@ private DeleteContextRequest(com.google.protobuf.GeneratedMessageV3.Builder b private DeleteContextRequest() { name_ = ""; + etag_ = ""; } @java.lang.Override @@ -82,6 +83,13 @@ private DeleteContextRequest( force_ = input.readBool(); break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -122,7 +130,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The resource name of the Context to retrieve.
+   * Required. The resource name of the Context to delete.
    * Format:
    * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
    * 
@@ -149,7 +157,7 @@ public java.lang.String getName() { * * *
-   * Required. The resource name of the Context to retrieve.
+   * Required. The resource name of the Context to delete.
    * Format:
    * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
    * 
@@ -179,10 +187,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * If set to true, any child resources of this Context will be deleted.
-   * (Otherwise, the request will fail with a FAILED_PRECONDITION error if the
-   * Context has any child resources, such as another Context, Artifact, or
-   * Execution).
+   * The force deletion semantics is still undefined.
+   * Users should not use this field.
    * 
* * bool force = 2; @@ -194,6 +200,59 @@ public boolean getForce() { return force_; } + public static final int ETAG_FIELD_NUMBER = 3; + private volatile java.lang.Object etag_; + /** + * + * + *
+   * Optional. The etag of the Context to delete.
+   * If this is provided, it must match the server's etag. Otherwise, the
+   * request will fail with a FAILED_PRECONDITION.
+   * 
+ * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The etag of the Context to delete.
+   * If this is provided, it must match the server's etag. Otherwise, the
+   * request will fail with a FAILED_PRECONDITION.
+   * 
+ * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -214,6 +273,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (force_ != false) { output.writeBool(2, force_); } + if (!getEtagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, etag_); + } unknownFields.writeTo(output); } @@ -229,6 +291,9 @@ public int getSerializedSize() { if (force_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); } + if (!getEtagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -247,6 +312,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (getForce() != other.getForce()) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -262,6 +328,8 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -412,6 +480,8 @@ public Builder clear() { force_ = false; + etag_ = ""; + return this; } @@ -441,6 +511,7 @@ public com.google.cloud.aiplatform.v1beta1.DeleteContextRequest buildPartial() { new com.google.cloud.aiplatform.v1beta1.DeleteContextRequest(this); result.name_ = name_; result.force_ = force_; + result.etag_ = etag_; onBuilt(); return result; } @@ -498,6 +569,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteContextReques if (other.getForce() != false) { setForce(other.getForce()); } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -533,7 +608,7 @@ public Builder mergeFrom( * * *
-     * Required. The resource name of the Context to retrieve.
+     * Required. The resource name of the Context to delete.
      * Format:
      * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
      * 
@@ -559,7 +634,7 @@ public java.lang.String getName() { * * *
-     * Required. The resource name of the Context to retrieve.
+     * Required. The resource name of the Context to delete.
      * Format:
      * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
      * 
@@ -585,7 +660,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. The resource name of the Context to retrieve.
+     * Required. The resource name of the Context to delete.
      * Format:
      * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
      * 
@@ -610,7 +685,7 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. The resource name of the Context to retrieve.
+     * Required. The resource name of the Context to delete.
      * Format:
      * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
      * 
@@ -631,7 +706,7 @@ public Builder clearName() { * * *
-     * Required. The resource name of the Context to retrieve.
+     * Required. The resource name of the Context to delete.
      * Format:
      * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
      * 
@@ -659,10 +734,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * If set to true, any child resources of this Context will be deleted.
-     * (Otherwise, the request will fail with a FAILED_PRECONDITION error if the
-     * Context has any child resources, such as another Context, Artifact, or
-     * Execution).
+     * The force deletion semantics is still undefined.
+     * Users should not use this field.
      * 
* * bool force = 2; @@ -677,10 +750,8 @@ public boolean getForce() { * * *
-     * If set to true, any child resources of this Context will be deleted.
-     * (Otherwise, the request will fail with a FAILED_PRECONDITION error if the
-     * Context has any child resources, such as another Context, Artifact, or
-     * Execution).
+     * The force deletion semantics is still undefined.
+     * Users should not use this field.
      * 
* * bool force = 2; @@ -698,10 +769,8 @@ public Builder setForce(boolean value) { * * *
-     * If set to true, any child resources of this Context will be deleted.
-     * (Otherwise, the request will fail with a FAILED_PRECONDITION error if the
-     * Context has any child resources, such as another Context, Artifact, or
-     * Execution).
+     * The force deletion semantics is still undefined.
+     * Users should not use this field.
      * 
* * bool force = 2; @@ -715,6 +784,122 @@ public Builder clearForce() { return this; } + private java.lang.Object etag_ = ""; + /** + * + * + *
+     * Optional. The etag of the Context to delete.
+     * If this is provided, it must match the server's etag. Otherwise, the
+     * request will fail with a FAILED_PRECONDITION.
+     * 
+ * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The etag of the Context to delete.
+     * If this is provided, it must match the server's etag. Otherwise, the
+     * request will fail with a FAILED_PRECONDITION.
+     * 
+ * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The etag of the Context to delete.
+     * If this is provided, it must match the server's etag. Otherwise, the
+     * request will fail with a FAILED_PRECONDITION.
+     * 
+ * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + etag_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The etag of the Context to delete.
+     * If this is provided, it must match the server's etag. Otherwise, the
+     * request will fail with a FAILED_PRECONDITION.
+     * 
+ * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + + etag_ = getDefaultInstance().getEtag(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The etag of the Context to delete.
+     * If this is provided, it must match the server's etag. Otherwise, the
+     * request will fail with a FAILED_PRECONDITION.
+     * 
+ * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + etag_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteContextRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteContextRequestOrBuilder.java index 3a307d919..261bb9a50 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteContextRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteContextRequestOrBuilder.java @@ -27,7 +27,7 @@ public interface DeleteContextRequestOrBuilder * * *
-   * Required. The resource name of the Context to retrieve.
+   * Required. The resource name of the Context to delete.
    * Format:
    * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
    * 
@@ -43,7 +43,7 @@ public interface DeleteContextRequestOrBuilder * * *
-   * Required. The resource name of the Context to retrieve.
+   * Required. The resource name of the Context to delete.
    * Format:
    * projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
    * 
@@ -60,10 +60,8 @@ public interface DeleteContextRequestOrBuilder * * *
-   * If set to true, any child resources of this Context will be deleted.
-   * (Otherwise, the request will fail with a FAILED_PRECONDITION error if the
-   * Context has any child resources, such as another Context, Artifact, or
-   * Execution).
+   * The force deletion semantics is still undefined.
+   * Users should not use this field.
    * 
* * bool force = 2; @@ -71,4 +69,33 @@ public interface DeleteContextRequestOrBuilder * @return The force. */ boolean getForce(); + + /** + * + * + *
+   * Optional. The etag of the Context to delete.
+   * If this is provided, it must match the server's etag. Otherwise, the
+   * request will fail with a FAILED_PRECONDITION.
+   * 
+ * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * Optional. The etag of the Context to delete.
+   * If this is provided, it must match the server's etag. Otherwise, the
+   * request will fail with a FAILED_PRECONDITION.
+   * 
+ * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteExecutionRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteExecutionRequest.java new file mode 100644 index 000000000..f000913a5 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteExecutionRequest.java @@ -0,0 +1,858 @@ +/* + * 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/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [MetadataService.DeleteExecution][google.cloud.aiplatform.v1beta1.MetadataService.DeleteExecution].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteExecutionRequest} + */ +public final class DeleteExecutionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeleteExecutionRequest) + DeleteExecutionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteExecutionRequest.newBuilder() to construct. + private DeleteExecutionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteExecutionRequest() { + name_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteExecutionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteExecutionRequest( + 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 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteExecutionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteExecutionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the Execution to delete.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+   * 
+ * + * + * 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 resource name of the Execution to delete.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+   * 
+ * + * + * 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 ETAG_FIELD_NUMBER = 2; + private volatile java.lang.Object etag_; + /** + * + * + *
+   * Optional. The etag of the Execution to delete.
+   * If this is provided, it must match the server's etag. Otherwise, the
+   * request will fail with a FAILED_PRECONDITION.
+   * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The etag of the Execution to delete.
+   * If this is provided, it must match the server's etag. Otherwise, the
+   * request will fail with a FAILED_PRECONDITION.
+   * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getEtagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, etag_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getEtagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, etag_); + } + 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.DeleteExecutionRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest other = + (com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) 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) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest 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.DeleteExecutionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest 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.DeleteExecutionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest 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.DeleteExecutionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest 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.DeleteExecutionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest 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.DeleteExecutionRequest 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.DeleteExecutionRequest 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.DeleteExecutionRequest 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 [MetadataService.DeleteExecution][google.cloud.aiplatform.v1beta1.MetadataService.DeleteExecution].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteExecutionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeleteExecutionRequest) + com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteExecutionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteExecutionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest.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_ = ""; + + etag_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteExecutionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest build() { + com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest result = + new com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest(this); + result.name_ = name_; + result.etag_ = etag_; + 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.DeleteExecutionRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + 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.DeleteExecutionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the Execution to delete.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+     * 
+ * + * + * 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 resource name of the Execution to delete.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+     * 
+ * + * + * 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 resource name of the Execution to delete.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+     * 
+ * + * + * 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 resource name of the Execution to delete.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+     * 
+ * + * + * 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 resource name of the Execution to delete.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+     * 
+ * + * + * 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 java.lang.Object etag_ = ""; + /** + * + * + *
+     * Optional. The etag of the Execution to delete.
+     * If this is provided, it must match the server's etag. Otherwise, the
+     * request will fail with a FAILED_PRECONDITION.
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The etag of the Execution to delete.
+     * If this is provided, it must match the server's etag. Otherwise, the
+     * request will fail with a FAILED_PRECONDITION.
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The etag of the Execution to delete.
+     * If this is provided, it must match the server's etag. Otherwise, the
+     * request will fail with a FAILED_PRECONDITION.
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + etag_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The etag of the Execution to delete.
+     * If this is provided, it must match the server's etag. Otherwise, the
+     * request will fail with a FAILED_PRECONDITION.
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + + etag_ = getDefaultInstance().getEtag(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The etag of the Execution to delete.
+     * If this is provided, it must match the server's etag. Otherwise, the
+     * request will fail with a FAILED_PRECONDITION.
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + etag_ = 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.DeleteExecutionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeleteExecutionRequest) + private static final com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteExecutionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteExecutionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteExecutionRequest(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.DeleteExecutionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteExecutionRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteExecutionRequestOrBuilder.java new file mode 100644 index 000000000..cf1001173 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteExecutionRequestOrBuilder.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/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DeleteExecutionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeleteExecutionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Execution to delete.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the Execution to delete.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The etag of the Execution to delete.
+   * If this is provided, it must match the server's etag. Otherwise, the
+   * request will fail with a FAILED_PRECONDITION.
+   * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * Optional. The etag of the Execution to delete.
+   * If this is provided, it must match the server's etag. Otherwise, the
+   * request will fail with a FAILED_PRECONDITION.
+   * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexOperationMetadata.java index 88587b60f..b417bd31c 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexOperationMetadata.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexOperationMetadata.java @@ -37,7 +37,9 @@ private DeployIndexOperationMetadata(com.google.protobuf.GeneratedMessageV3.Buil super(builder); } - private DeployIndexOperationMetadata() {} + private DeployIndexOperationMetadata() { + deployedIndexId_ = ""; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -84,6 +86,13 @@ private DeployIndexOperationMetadata( genericMetadata_ = subBuilder.buildPartial(); } + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + deployedIndexId_ = s; break; } default: @@ -169,6 +178,55 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe return getGenericMetadata(); } + public static final int DEPLOYED_INDEX_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object deployedIndexId_; + /** + * + * + *
+   * The unique index id specified by user
+   * 
+ * + * string deployed_index_id = 2; + * + * @return The deployedIndexId. + */ + @java.lang.Override + public java.lang.String getDeployedIndexId() { + java.lang.Object ref = deployedIndexId_; + 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(); + deployedIndexId_ = s; + return s; + } + } + /** + * + * + *
+   * The unique index id specified by user
+   * 
+ * + * string deployed_index_id = 2; + * + * @return The bytes for deployedIndexId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeployedIndexIdBytes() { + java.lang.Object ref = deployedIndexId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deployedIndexId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -186,6 +244,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (genericMetadata_ != null) { output.writeMessage(1, getGenericMetadata()); } + if (!getDeployedIndexIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deployedIndexId_); + } unknownFields.writeTo(output); } @@ -198,6 +259,9 @@ public int getSerializedSize() { if (genericMetadata_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGenericMetadata()); } + if (!getDeployedIndexIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deployedIndexId_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -218,6 +282,7 @@ public boolean equals(final java.lang.Object obj) { if (hasGenericMetadata()) { if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; } + if (!getDeployedIndexId().equals(other.getDeployedIndexId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,6 +298,8 @@ public int hashCode() { hash = (37 * hash) + GENERIC_METADATA_FIELD_NUMBER; hash = (53 * hash) + getGenericMetadata().hashCode(); } + hash = (37 * hash) + DEPLOYED_INDEX_ID_FIELD_NUMBER; + hash = (53 * hash) + getDeployedIndexId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -385,6 +452,8 @@ public Builder clear() { genericMetadata_ = null; genericMetadataBuilder_ = null; } + deployedIndexId_ = ""; + return this; } @@ -418,6 +487,7 @@ public com.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata buildPar } else { result.genericMetadata_ = genericMetadataBuilder_.build(); } + result.deployedIndexId_ = deployedIndexId_; onBuilt(); return result; } @@ -473,6 +543,10 @@ public Builder mergeFrom( if (other.hasGenericMetadata()) { mergeGenericMetadata(other.getGenericMetadata()); } + if (!other.getDeployedIndexId().isEmpty()) { + deployedIndexId_ = other.deployedIndexId_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -695,6 +769,112 @@ public Builder clearGenericMetadata() { return genericMetadataBuilder_; } + private java.lang.Object deployedIndexId_ = ""; + /** + * + * + *
+     * The unique index id specified by user
+     * 
+ * + * string deployed_index_id = 2; + * + * @return The deployedIndexId. + */ + public java.lang.String getDeployedIndexId() { + java.lang.Object ref = deployedIndexId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deployedIndexId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The unique index id specified by user
+     * 
+ * + * string deployed_index_id = 2; + * + * @return The bytes for deployedIndexId. + */ + public com.google.protobuf.ByteString getDeployedIndexIdBytes() { + java.lang.Object ref = deployedIndexId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deployedIndexId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The unique index id specified by user
+     * 
+ * + * string deployed_index_id = 2; + * + * @param value The deployedIndexId to set. + * @return This builder for chaining. + */ + public Builder setDeployedIndexId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + deployedIndexId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The unique index id specified by user
+     * 
+ * + * string deployed_index_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearDeployedIndexId() { + + deployedIndexId_ = getDefaultInstance().getDeployedIndexId(); + onChanged(); + return this; + } + /** + * + * + *
+     * The unique index id specified by user
+     * 
+ * + * string deployed_index_id = 2; + * + * @param value The bytes for deployedIndexId to set. + * @return This builder for chaining. + */ + public Builder setDeployedIndexIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + deployedIndexId_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexOperationMetadataOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexOperationMetadataOrBuilder.java index 40bff8ee4..a930bccd1 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexOperationMetadataOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployIndexOperationMetadataOrBuilder.java @@ -58,4 +58,29 @@ public interface DeployIndexOperationMetadataOrBuilder */ com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder(); + + /** + * + * + *
+   * The unique index id specified by user
+   * 
+ * + * string deployed_index_id = 2; + * + * @return The deployedIndexId. + */ + java.lang.String getDeployedIndexId(); + /** + * + * + *
+   * The unique index id specified by user
+   * 
+ * + * string deployed_index_id = 2; + * + * @return The bytes for deployedIndexId. + */ + com.google.protobuf.ByteString getDeployedIndexIdBytes(); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndex.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndex.java index 040aac1ed..47496fc14 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndex.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndex.java @@ -41,6 +41,7 @@ private DeployedIndex() { id_ = ""; index_ = ""; displayName_ = ""; + reservedIpRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @@ -62,6 +63,7 @@ private DeployedIndex( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -177,6 +179,16 @@ private DeployedIndex( deployedIndexAuthConfig_ = subBuilder.buildPartial(); } + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + reservedIpRanges_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + reservedIpRanges_.add(s); break; } default: @@ -193,6 +205,9 @@ private DeployedIndex( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + reservedIpRanges_ = reservedIpRanges_.getUnmodifiableView(); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -731,6 +746,95 @@ public com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig getDeployedIn return getDeployedIndexAuthConfig(); } + public static final int RESERVED_IP_RANGES_FIELD_NUMBER = 10; + private com.google.protobuf.LazyStringList reservedIpRanges_; + /** + * + * + *
+   * Optional. A list of reserved ip ranges under the VPC network that can be
+   * used for this DeployedIndex.
+   * If set, we will deploy the index within the provided ip ranges. Otherwise,
+   * the index might be deployed to any ip ranges under the provided VPC
+   * network.
+   * The value sohuld be the name of the address
+   * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses)
+   * Example: 'vertex-ai-ip-range'.
+   * 
+ * + * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the reservedIpRanges. + */ + public com.google.protobuf.ProtocolStringList getReservedIpRangesList() { + return reservedIpRanges_; + } + /** + * + * + *
+   * Optional. A list of reserved ip ranges under the VPC network that can be
+   * used for this DeployedIndex.
+   * If set, we will deploy the index within the provided ip ranges. Otherwise,
+   * the index might be deployed to any ip ranges under the provided VPC
+   * network.
+   * The value sohuld be the name of the address
+   * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses)
+   * Example: 'vertex-ai-ip-range'.
+   * 
+ * + * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of reservedIpRanges. + */ + public int getReservedIpRangesCount() { + return reservedIpRanges_.size(); + } + /** + * + * + *
+   * Optional. A list of reserved ip ranges under the VPC network that can be
+   * used for this DeployedIndex.
+   * If set, we will deploy the index within the provided ip ranges. Otherwise,
+   * the index might be deployed to any ip ranges under the provided VPC
+   * network.
+   * The value sohuld be the name of the address
+   * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses)
+   * Example: 'vertex-ai-ip-range'.
+   * 
+ * + * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The reservedIpRanges at the given index. + */ + public java.lang.String getReservedIpRanges(int index) { + return reservedIpRanges_.get(index); + } + /** + * + * + *
+   * Optional. A list of reserved ip ranges under the VPC network that can be
+   * used for this DeployedIndex.
+   * If set, we will deploy the index within the provided ip ranges. Otherwise,
+   * the index might be deployed to any ip ranges under the provided VPC
+   * network.
+   * The value sohuld be the name of the address
+   * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses)
+   * Example: 'vertex-ai-ip-range'.
+   * 
+ * + * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the reservedIpRanges at the given index. + */ + public com.google.protobuf.ByteString getReservedIpRangesBytes(int index) { + return reservedIpRanges_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -772,6 +876,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (deployedIndexAuthConfig_ != null) { output.writeMessage(9, getDeployedIndexAuthConfig()); } + for (int i = 0; i < reservedIpRanges_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, reservedIpRanges_.getRaw(i)); + } unknownFields.writeTo(output); } @@ -809,6 +916,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getDeployedIndexAuthConfig()); } + { + int dataSize = 0; + for (int i = 0; i < reservedIpRanges_.size(); i++) { + dataSize += computeStringSizeNoTag(reservedIpRanges_.getRaw(i)); + } + size += dataSize; + size += 1 * getReservedIpRangesList().size(); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -849,6 +964,7 @@ public boolean equals(final java.lang.Object obj) { if (hasDeployedIndexAuthConfig()) { if (!getDeployedIndexAuthConfig().equals(other.getDeployedIndexAuthConfig())) return false; } + if (!getReservedIpRangesList().equals(other.getReservedIpRangesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -888,6 +1004,10 @@ public int hashCode() { hash = (37 * hash) + DEPLOYED_INDEX_AUTH_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getDeployedIndexAuthConfig().hashCode(); } + if (getReservedIpRangesCount() > 0) { + hash = (37 * hash) + RESERVED_IP_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getReservedIpRangesList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1071,6 +1191,8 @@ public Builder clear() { deployedIndexAuthConfig_ = null; deployedIndexAuthConfigBuilder_ = null; } + reservedIpRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -1098,6 +1220,7 @@ public com.google.cloud.aiplatform.v1beta1.DeployedIndex build() { public com.google.cloud.aiplatform.v1beta1.DeployedIndex buildPartial() { com.google.cloud.aiplatform.v1beta1.DeployedIndex result = new com.google.cloud.aiplatform.v1beta1.DeployedIndex(this); + int from_bitField0_ = bitField0_; result.id_ = id_; result.index_ = index_; result.displayName_ = displayName_; @@ -1127,6 +1250,11 @@ public com.google.cloud.aiplatform.v1beta1.DeployedIndex buildPartial() { } else { result.deployedIndexAuthConfig_ = deployedIndexAuthConfigBuilder_.build(); } + if (((bitField0_ & 0x00000001) != 0)) { + reservedIpRanges_ = reservedIpRanges_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.reservedIpRanges_ = reservedIpRanges_; onBuilt(); return result; } @@ -1207,6 +1335,16 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeployedIndex other if (other.hasDeployedIndexAuthConfig()) { mergeDeployedIndexAuthConfig(other.getDeployedIndexAuthConfig()); } + if (!other.reservedIpRanges_.isEmpty()) { + if (reservedIpRanges_.isEmpty()) { + reservedIpRanges_ = other.reservedIpRanges_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureReservedIpRangesIsMutable(); + reservedIpRanges_.addAll(other.reservedIpRanges_); + } + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1237,6 +1375,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object id_ = ""; /** * @@ -2886,6 +3026,246 @@ public Builder clearDeployedIndexAuthConfig() { return deployedIndexAuthConfigBuilder_; } + private com.google.protobuf.LazyStringList reservedIpRanges_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureReservedIpRangesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + reservedIpRanges_ = new com.google.protobuf.LazyStringArrayList(reservedIpRanges_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Optional. A list of reserved ip ranges under the VPC network that can be
+     * used for this DeployedIndex.
+     * If set, we will deploy the index within the provided ip ranges. Otherwise,
+     * the index might be deployed to any ip ranges under the provided VPC
+     * network.
+     * The value sohuld be the name of the address
+     * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses)
+     * Example: 'vertex-ai-ip-range'.
+     * 
+ * + * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the reservedIpRanges. + */ + public com.google.protobuf.ProtocolStringList getReservedIpRangesList() { + return reservedIpRanges_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional. A list of reserved ip ranges under the VPC network that can be
+     * used for this DeployedIndex.
+     * If set, we will deploy the index within the provided ip ranges. Otherwise,
+     * the index might be deployed to any ip ranges under the provided VPC
+     * network.
+     * The value sohuld be the name of the address
+     * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses)
+     * Example: 'vertex-ai-ip-range'.
+     * 
+ * + * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of reservedIpRanges. + */ + public int getReservedIpRangesCount() { + return reservedIpRanges_.size(); + } + /** + * + * + *
+     * Optional. A list of reserved ip ranges under the VPC network that can be
+     * used for this DeployedIndex.
+     * If set, we will deploy the index within the provided ip ranges. Otherwise,
+     * the index might be deployed to any ip ranges under the provided VPC
+     * network.
+     * The value sohuld be the name of the address
+     * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses)
+     * Example: 'vertex-ai-ip-range'.
+     * 
+ * + * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The reservedIpRanges at the given index. + */ + public java.lang.String getReservedIpRanges(int index) { + return reservedIpRanges_.get(index); + } + /** + * + * + *
+     * Optional. A list of reserved ip ranges under the VPC network that can be
+     * used for this DeployedIndex.
+     * If set, we will deploy the index within the provided ip ranges. Otherwise,
+     * the index might be deployed to any ip ranges under the provided VPC
+     * network.
+     * The value sohuld be the name of the address
+     * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses)
+     * Example: 'vertex-ai-ip-range'.
+     * 
+ * + * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the reservedIpRanges at the given index. + */ + public com.google.protobuf.ByteString getReservedIpRangesBytes(int index) { + return reservedIpRanges_.getByteString(index); + } + /** + * + * + *
+     * Optional. A list of reserved ip ranges under the VPC network that can be
+     * used for this DeployedIndex.
+     * If set, we will deploy the index within the provided ip ranges. Otherwise,
+     * the index might be deployed to any ip ranges under the provided VPC
+     * network.
+     * The value sohuld be the name of the address
+     * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses)
+     * Example: 'vertex-ai-ip-range'.
+     * 
+ * + * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The reservedIpRanges to set. + * @return This builder for chaining. + */ + public Builder setReservedIpRanges(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureReservedIpRangesIsMutable(); + reservedIpRanges_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A list of reserved ip ranges under the VPC network that can be
+     * used for this DeployedIndex.
+     * If set, we will deploy the index within the provided ip ranges. Otherwise,
+     * the index might be deployed to any ip ranges under the provided VPC
+     * network.
+     * The value sohuld be the name of the address
+     * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses)
+     * Example: 'vertex-ai-ip-range'.
+     * 
+ * + * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The reservedIpRanges to add. + * @return This builder for chaining. + */ + public Builder addReservedIpRanges(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureReservedIpRangesIsMutable(); + reservedIpRanges_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A list of reserved ip ranges under the VPC network that can be
+     * used for this DeployedIndex.
+     * If set, we will deploy the index within the provided ip ranges. Otherwise,
+     * the index might be deployed to any ip ranges under the provided VPC
+     * network.
+     * The value sohuld be the name of the address
+     * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses)
+     * Example: 'vertex-ai-ip-range'.
+     * 
+ * + * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The reservedIpRanges to add. + * @return This builder for chaining. + */ + public Builder addAllReservedIpRanges(java.lang.Iterable values) { + ensureReservedIpRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, reservedIpRanges_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A list of reserved ip ranges under the VPC network that can be
+     * used for this DeployedIndex.
+     * If set, we will deploy the index within the provided ip ranges. Otherwise,
+     * the index might be deployed to any ip ranges under the provided VPC
+     * network.
+     * The value sohuld be the name of the address
+     * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses)
+     * Example: 'vertex-ai-ip-range'.
+     * 
+ * + * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearReservedIpRanges() { + reservedIpRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A list of reserved ip ranges under the VPC network that can be
+     * used for this DeployedIndex.
+     * If set, we will deploy the index within the provided ip ranges. Otherwise,
+     * the index might be deployed to any ip ranges under the provided VPC
+     * network.
+     * The value sohuld be the name of the address
+     * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses)
+     * Example: 'vertex-ai-ip-range'.
+     * 
+ * + * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the reservedIpRanges to add. + * @return This builder for chaining. + */ + public Builder addReservedIpRangesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureReservedIpRangesIsMutable(); + reservedIpRanges_.add(value); + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexOrBuilder.java index c1faabf76..caaf543ac 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexOrBuilder.java @@ -398,4 +398,83 @@ public interface DeployedIndexOrBuilder */ com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfigOrBuilder getDeployedIndexAuthConfigOrBuilder(); + + /** + * + * + *
+   * Optional. A list of reserved ip ranges under the VPC network that can be
+   * used for this DeployedIndex.
+   * If set, we will deploy the index within the provided ip ranges. Otherwise,
+   * the index might be deployed to any ip ranges under the provided VPC
+   * network.
+   * The value sohuld be the name of the address
+   * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses)
+   * Example: 'vertex-ai-ip-range'.
+   * 
+ * + * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the reservedIpRanges. + */ + java.util.List getReservedIpRangesList(); + /** + * + * + *
+   * Optional. A list of reserved ip ranges under the VPC network that can be
+   * used for this DeployedIndex.
+   * If set, we will deploy the index within the provided ip ranges. Otherwise,
+   * the index might be deployed to any ip ranges under the provided VPC
+   * network.
+   * The value sohuld be the name of the address
+   * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses)
+   * Example: 'vertex-ai-ip-range'.
+   * 
+ * + * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of reservedIpRanges. + */ + int getReservedIpRangesCount(); + /** + * + * + *
+   * Optional. A list of reserved ip ranges under the VPC network that can be
+   * used for this DeployedIndex.
+   * If set, we will deploy the index within the provided ip ranges. Otherwise,
+   * the index might be deployed to any ip ranges under the provided VPC
+   * network.
+   * The value sohuld be the name of the address
+   * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses)
+   * Example: 'vertex-ai-ip-range'.
+   * 
+ * + * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The reservedIpRanges at the given index. + */ + java.lang.String getReservedIpRanges(int index); + /** + * + * + *
+   * Optional. A list of reserved ip ranges under the VPC network that can be
+   * used for this DeployedIndex.
+   * If set, we will deploy the index within the provided ip ranges. Otherwise,
+   * the index might be deployed to any ip ranges under the provided VPC
+   * network.
+   * The value sohuld be the name of the address
+   * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses)
+   * Example: 'vertex-ai-ip-range'.
+   * 
+ * + * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the reservedIpRanges at the given index. + */ + com.google.protobuf.ByteString getReservedIpRangesBytes(int index); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexRefProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexRefProto.java index 131b35d12..715799431 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexRefProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexRefProto.java @@ -47,11 +47,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "api/annotations.proto\"{\n\020DeployedIndexRe" + "f\022G\n\016index_endpoint\030\001 \001(\tB/\340A\005\372A)\n\'aipla" + "tform.googleapis.com/IndexEndpoint\022\036\n\021de" - + "ployed_index_id\030\002 \001(\tB\003\340A\005B\211\001\n#com.googl" + + "ployed_index_id\030\002 \001(\tB\003\340A\005B\362\001\n#com.googl" + "e.cloud.aiplatform.v1beta1B\025DeployedInde" + "xRefProtoP\001ZIgoogle.golang.org/genproto/" + "googleapis/cloud/aiplatform/v1beta1;aipl" - + "atformb\006proto3" + + "atform\252\002\037Google.Cloud.AIPlatform.V1Beta1" + + "\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Goo" + + "gle::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModel.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModel.java index 25dd46d74..75457a30e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModel.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModel.java @@ -181,6 +181,23 @@ private DeployedModel( case 104: { enableAccessLogging_ = input.readBool(); + break; + } + case 114: + { + com.google.cloud.aiplatform.v1beta1.PrivateEndpoints.Builder subBuilder = null; + if (privateEndpoints_ != null) { + subBuilder = privateEndpoints_.toBuilder(); + } + privateEndpoints_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.PrivateEndpoints.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(privateEndpoints_); + privateEndpoints_ = subBuilder.buildPartial(); + } + break; } default: @@ -749,6 +766,67 @@ public boolean getEnableAccessLogging() { return enableAccessLogging_; } + public static final int PRIVATE_ENDPOINTS_FIELD_NUMBER = 14; + private com.google.cloud.aiplatform.v1beta1.PrivateEndpoints privateEndpoints_; + /** + * + * + *
+   * Output only. Provide paths for users to send predict/explain/health requests directly to
+   * the deployed model services running on Cloud via private services access.
+   * This field is populated if [network][google.cloud.aiplatform.v1beta1.Endpoint.network] is configured.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateEndpoints field is set. + */ + @java.lang.Override + public boolean hasPrivateEndpoints() { + return privateEndpoints_ != null; + } + /** + * + * + *
+   * Output only. Provide paths for users to send predict/explain/health requests directly to
+   * the deployed model services running on Cloud via private services access.
+   * This field is populated if [network][google.cloud.aiplatform.v1beta1.Endpoint.network] is configured.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateEndpoints. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PrivateEndpoints getPrivateEndpoints() { + return privateEndpoints_ == null + ? com.google.cloud.aiplatform.v1beta1.PrivateEndpoints.getDefaultInstance() + : privateEndpoints_; + } + /** + * + * + *
+   * Output only. Provide paths for users to send predict/explain/health requests directly to
+   * the deployed model services running on Cloud via private services access.
+   * This field is populated if [network][google.cloud.aiplatform.v1beta1.Endpoint.network] is configured.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PrivateEndpointsOrBuilder + getPrivateEndpointsOrBuilder() { + return getPrivateEndpoints(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -795,6 +873,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableAccessLogging_ != false) { output.writeBool(13, enableAccessLogging_); } + if (privateEndpoints_ != null) { + output.writeMessage(14, getPrivateEndpoints()); + } unknownFields.writeTo(output); } @@ -838,6 +919,9 @@ public int getSerializedSize() { if (enableAccessLogging_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, enableAccessLogging_); } + if (privateEndpoints_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getPrivateEndpoints()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -868,6 +952,10 @@ public boolean equals(final java.lang.Object obj) { if (!getServiceAccount().equals(other.getServiceAccount())) return false; if (getEnableContainerLogging() != other.getEnableContainerLogging()) return false; if (getEnableAccessLogging() != other.getEnableAccessLogging()) return false; + if (hasPrivateEndpoints() != other.hasPrivateEndpoints()) return false; + if (hasPrivateEndpoints()) { + if (!getPrivateEndpoints().equals(other.getPrivateEndpoints())) return false; + } if (!getPredictionResourcesCase().equals(other.getPredictionResourcesCase())) return false; switch (predictionResourcesCase_) { case 7: @@ -910,6 +998,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableContainerLogging()); hash = (37 * hash) + ENABLE_ACCESS_LOGGING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableAccessLogging()); + if (hasPrivateEndpoints()) { + hash = (37 * hash) + PRIVATE_ENDPOINTS_FIELD_NUMBER; + hash = (53 * hash) + getPrivateEndpoints().hashCode(); + } switch (predictionResourcesCase_) { case 7: hash = (37 * hash) + DEDICATED_RESOURCES_FIELD_NUMBER; @@ -1091,6 +1183,12 @@ public Builder clear() { enableAccessLogging_ = false; + if (privateEndpointsBuilder_ == null) { + privateEndpoints_ = null; + } else { + privateEndpoints_ = null; + privateEndpointsBuilder_ = null; + } predictionResourcesCase_ = 0; predictionResources_ = null; return this; @@ -1150,6 +1248,11 @@ public com.google.cloud.aiplatform.v1beta1.DeployedModel buildPartial() { result.serviceAccount_ = serviceAccount_; result.enableContainerLogging_ = enableContainerLogging_; result.enableAccessLogging_ = enableAccessLogging_; + if (privateEndpointsBuilder_ == null) { + result.privateEndpoints_ = privateEndpoints_; + } else { + result.privateEndpoints_ = privateEndpointsBuilder_.build(); + } result.predictionResourcesCase_ = predictionResourcesCase_; onBuilt(); return result; @@ -1229,6 +1332,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeployedModel other if (other.getEnableAccessLogging() != false) { setEnableAccessLogging(other.getEnableAccessLogging()); } + if (other.hasPrivateEndpoints()) { + mergePrivateEndpoints(other.getPrivateEndpoints()); + } switch (other.getPredictionResourcesCase()) { case DEDICATED_RESOURCES: { @@ -2779,6 +2885,231 @@ public Builder clearEnableAccessLogging() { return this; } + private com.google.cloud.aiplatform.v1beta1.PrivateEndpoints privateEndpoints_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PrivateEndpoints, + com.google.cloud.aiplatform.v1beta1.PrivateEndpoints.Builder, + com.google.cloud.aiplatform.v1beta1.PrivateEndpointsOrBuilder> + privateEndpointsBuilder_; + /** + * + * + *
+     * Output only. Provide paths for users to send predict/explain/health requests directly to
+     * the deployed model services running on Cloud via private services access.
+     * This field is populated if [network][google.cloud.aiplatform.v1beta1.Endpoint.network] is configured.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateEndpoints field is set. + */ + public boolean hasPrivateEndpoints() { + return privateEndpointsBuilder_ != null || privateEndpoints_ != null; + } + /** + * + * + *
+     * Output only. Provide paths for users to send predict/explain/health requests directly to
+     * the deployed model services running on Cloud via private services access.
+     * This field is populated if [network][google.cloud.aiplatform.v1beta1.Endpoint.network] is configured.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateEndpoints. + */ + public com.google.cloud.aiplatform.v1beta1.PrivateEndpoints getPrivateEndpoints() { + if (privateEndpointsBuilder_ == null) { + return privateEndpoints_ == null + ? com.google.cloud.aiplatform.v1beta1.PrivateEndpoints.getDefaultInstance() + : privateEndpoints_; + } else { + return privateEndpointsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Provide paths for users to send predict/explain/health requests directly to
+     * the deployed model services running on Cloud via private services access.
+     * This field is populated if [network][google.cloud.aiplatform.v1beta1.Endpoint.network] is configured.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPrivateEndpoints(com.google.cloud.aiplatform.v1beta1.PrivateEndpoints value) { + if (privateEndpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateEndpoints_ = value; + onChanged(); + } else { + privateEndpointsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Provide paths for users to send predict/explain/health requests directly to
+     * the deployed model services running on Cloud via private services access.
+     * This field is populated if [network][google.cloud.aiplatform.v1beta1.Endpoint.network] is configured.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPrivateEndpoints( + com.google.cloud.aiplatform.v1beta1.PrivateEndpoints.Builder builderForValue) { + if (privateEndpointsBuilder_ == null) { + privateEndpoints_ = builderForValue.build(); + onChanged(); + } else { + privateEndpointsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Provide paths for users to send predict/explain/health requests directly to
+     * the deployed model services running on Cloud via private services access.
+     * This field is populated if [network][google.cloud.aiplatform.v1beta1.Endpoint.network] is configured.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePrivateEndpoints( + com.google.cloud.aiplatform.v1beta1.PrivateEndpoints value) { + if (privateEndpointsBuilder_ == null) { + if (privateEndpoints_ != null) { + privateEndpoints_ = + com.google.cloud.aiplatform.v1beta1.PrivateEndpoints.newBuilder(privateEndpoints_) + .mergeFrom(value) + .buildPartial(); + } else { + privateEndpoints_ = value; + } + onChanged(); + } else { + privateEndpointsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Provide paths for users to send predict/explain/health requests directly to
+     * the deployed model services running on Cloud via private services access.
+     * This field is populated if [network][google.cloud.aiplatform.v1beta1.Endpoint.network] is configured.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPrivateEndpoints() { + if (privateEndpointsBuilder_ == null) { + privateEndpoints_ = null; + onChanged(); + } else { + privateEndpoints_ = null; + privateEndpointsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Provide paths for users to send predict/explain/health requests directly to
+     * the deployed model services running on Cloud via private services access.
+     * This field is populated if [network][google.cloud.aiplatform.v1beta1.Endpoint.network] is configured.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PrivateEndpoints.Builder + getPrivateEndpointsBuilder() { + + onChanged(); + return getPrivateEndpointsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Provide paths for users to send predict/explain/health requests directly to
+     * the deployed model services running on Cloud via private services access.
+     * This field is populated if [network][google.cloud.aiplatform.v1beta1.Endpoint.network] is configured.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PrivateEndpointsOrBuilder + getPrivateEndpointsOrBuilder() { + if (privateEndpointsBuilder_ != null) { + return privateEndpointsBuilder_.getMessageOrBuilder(); + } else { + return privateEndpoints_ == null + ? com.google.cloud.aiplatform.v1beta1.PrivateEndpoints.getDefaultInstance() + : privateEndpoints_; + } + } + /** + * + * + *
+     * Output only. Provide paths for users to send predict/explain/health requests directly to
+     * the deployed model services running on Cloud via private services access.
+     * This field is populated if [network][google.cloud.aiplatform.v1beta1.Endpoint.network] is configured.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PrivateEndpoints, + com.google.cloud.aiplatform.v1beta1.PrivateEndpoints.Builder, + com.google.cloud.aiplatform.v1beta1.PrivateEndpointsOrBuilder> + getPrivateEndpointsFieldBuilder() { + if (privateEndpointsBuilder_ == null) { + privateEndpointsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PrivateEndpoints, + com.google.cloud.aiplatform.v1beta1.PrivateEndpoints.Builder, + com.google.cloud.aiplatform.v1beta1.PrivateEndpointsOrBuilder>( + getPrivateEndpoints(), getParentForChildren(), isClean()); + privateEndpoints_ = null; + } + return privateEndpointsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelNameProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelNameProto.java index d8ea0f98f..47598f0b7 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelNameProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelNameProto.java @@ -47,11 +47,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "api/annotations.proto\"p\n\020DeployedModelRe" + "f\022<\n\010endpoint\030\001 \001(\tB*\340A\005\372A$\n\"aiplatform." + "googleapis.com/Endpoint\022\036\n\021deployed_mode" - + "l_id\030\002 \001(\tB\003\340A\005B\212\001\n#com.google.cloud.aip" + + "l_id\030\002 \001(\tB\003\340A\005B\363\001\n#com.google.cloud.aip" + "latform.v1beta1B\026DeployedModelNameProtoP" + "\001ZIgoogle.golang.org/genproto/googleapis" - + "/cloud/aiplatform/v1beta1;aiplatformb\006pr" - + "oto3" + + "/cloud/aiplatform/v1beta1;aiplatform\252\002\037G" + + "oogle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\" + + "Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cloud" + + "::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelOrBuilder.java index fc20be252..0e63af578 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelOrBuilder.java @@ -343,6 +343,53 @@ public interface DeployedModelOrBuilder */ boolean getEnableAccessLogging(); + /** + * + * + *
+   * Output only. Provide paths for users to send predict/explain/health requests directly to
+   * the deployed model services running on Cloud via private services access.
+   * This field is populated if [network][google.cloud.aiplatform.v1beta1.Endpoint.network] is configured.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the privateEndpoints field is set. + */ + boolean hasPrivateEndpoints(); + /** + * + * + *
+   * Output only. Provide paths for users to send predict/explain/health requests directly to
+   * the deployed model services running on Cloud via private services access.
+   * This field is populated if [network][google.cloud.aiplatform.v1beta1.Endpoint.network] is configured.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The privateEndpoints. + */ + com.google.cloud.aiplatform.v1beta1.PrivateEndpoints getPrivateEndpoints(); + /** + * + * + *
+   * Output only. Provide paths for users to send predict/explain/health requests directly to
+   * the deployed model services running on Cloud via private services access.
+   * This field is populated if [network][google.cloud.aiplatform.v1beta1.Endpoint.network] is configured.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.PrivateEndpointsOrBuilder getPrivateEndpointsOrBuilder(); + public com.google.cloud.aiplatform.v1beta1.DeployedModel.PredictionResourcesCase getPredictionResourcesCase(); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EncryptionSpecProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EncryptionSpecProto.java index 097eddefb..754533a67 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EncryptionSpecProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EncryptionSpecProto.java @@ -44,11 +44,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tion_spec.proto\022\037google.cloud.aiplatform" + ".v1beta1\032\037google/api/field_behavior.prot" + "o\032\034google/api/annotations.proto\"+\n\016Encry" - + "ptionSpec\022\031\n\014kms_key_name\030\001 \001(\tB\003\340A\002B\207\001\n" + + "ptionSpec\022\031\n\014kms_key_name\030\001 \001(\tB\003\340A\002B\360\001\n" + "#com.google.cloud.aiplatform.v1beta1B\023En" + "cryptionSpecProtoP\001ZIgoogle.golang.org/g" + "enproto/googleapis/cloud/aiplatform/v1be" - + "ta1;aiplatformb\006proto3" + + "ta1;aiplatform\252\002\037Google.Cloud.AIPlatform" + + ".V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1bet" + + "a1\352\002\"Google::Cloud::AIPlatform::V1beta1b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Endpoint.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Endpoint.java index 9ee75e4a9..1623e7bd0 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Endpoint.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Endpoint.java @@ -44,6 +44,7 @@ private Endpoint() { description_ = ""; deployedModels_ = java.util.Collections.emptyList(); etag_ = ""; + network_ = ""; } @java.lang.Override @@ -190,6 +191,13 @@ private Endpoint( encryptionSpec_ = subBuilder.buildPartial(); } + break; + } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + + network_ = s; break; } default: @@ -920,6 +928,71 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryption return getEncryptionSpec(); } + public static final int NETWORK_FIELD_NUMBER = 13; + private volatile java.lang.Object network_; + /** + * + * + *
+   * The full name of the Google Compute Engine
+   * [network](/compute/docs/networks-and-firewalls#networks) to which the
+   * Endpoint should be peered.
+   * Private services access must already be configured for the network. If left
+   * unspecified, the Endpoint is not peered with any network.
+   * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert):
+   * projects/{project}/global/networks/{network}.
+   * Where {project} is a project number, as in '12345', and {network} is
+   * network name.
+   * 
+ * + * string network = 13 [(.google.api.resource_reference) = { ... } + * + * @return The network. + */ + @java.lang.Override + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + 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(); + network_ = s; + return s; + } + } + /** + * + * + *
+   * The full name of the Google Compute Engine
+   * [network](/compute/docs/networks-and-firewalls#networks) to which the
+   * Endpoint should be peered.
+   * Private services access must already be configured for the network. If left
+   * unspecified, the Endpoint is not peered with any network.
+   * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert):
+   * projects/{project}/global/networks/{network}.
+   * Where {project} is a project number, as in '12345', and {network} is
+   * network name.
+   * 
+ * + * string network = 13 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for network. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -962,6 +1035,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (encryptionSpec_ != null) { output.writeMessage(10, getEncryptionSpec()); } + if (!getNetworkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, network_); + } unknownFields.writeTo(output); } @@ -1015,6 +1091,9 @@ public int getSerializedSize() { if (encryptionSpec_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getEncryptionSpec()); } + if (!getNetworkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, network_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1050,6 +1129,7 @@ public boolean equals(final java.lang.Object obj) { if (hasEncryptionSpec()) { if (!getEncryptionSpec().equals(other.getEncryptionSpec())) return false; } + if (!getNetwork().equals(other.getNetwork())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1093,6 +1173,8 @@ public int hashCode() { hash = (37 * hash) + ENCRYPTION_SPEC_FIELD_NUMBER; hash = (53 * hash) + getEncryptionSpec().hashCode(); } + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1299,6 +1381,8 @@ public Builder clear() { encryptionSpec_ = null; encryptionSpecBuilder_ = null; } + network_ = ""; + return this; } @@ -1359,6 +1443,7 @@ public com.google.cloud.aiplatform.v1beta1.Endpoint buildPartial() { } else { result.encryptionSpec_ = encryptionSpecBuilder_.build(); } + result.network_ = network_; onBuilt(); return result; } @@ -1462,6 +1547,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Endpoint other) { if (other.hasEncryptionSpec()) { mergeEncryptionSpec(other.getEncryptionSpec()); } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -3350,6 +3439,152 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionS return encryptionSpecBuilder_; } + private java.lang.Object network_ = ""; + /** + * + * + *
+     * The full name of the Google Compute Engine
+     * [network](/compute/docs/networks-and-firewalls#networks) to which the
+     * Endpoint should be peered.
+     * Private services access must already be configured for the network. If left
+     * unspecified, the Endpoint is not peered with any network.
+     * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert):
+     * projects/{project}/global/networks/{network}.
+     * Where {project} is a project number, as in '12345', and {network} is
+     * network name.
+     * 
+ * + * string network = 13 [(.google.api.resource_reference) = { ... } + * + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The full name of the Google Compute Engine
+     * [network](/compute/docs/networks-and-firewalls#networks) to which the
+     * Endpoint should be peered.
+     * Private services access must already be configured for the network. If left
+     * unspecified, the Endpoint is not peered with any network.
+     * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert):
+     * projects/{project}/global/networks/{network}.
+     * Where {project} is a project number, as in '12345', and {network} is
+     * network name.
+     * 
+ * + * string network = 13 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for network. + */ + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The full name of the Google Compute Engine
+     * [network](/compute/docs/networks-and-firewalls#networks) to which the
+     * Endpoint should be peered.
+     * Private services access must already be configured for the network. If left
+     * unspecified, the Endpoint is not peered with any network.
+     * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert):
+     * projects/{project}/global/networks/{network}.
+     * Where {project} is a project number, as in '12345', and {network} is
+     * network name.
+     * 
+ * + * string network = 13 [(.google.api.resource_reference) = { ... } + * + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + network_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The full name of the Google Compute Engine
+     * [network](/compute/docs/networks-and-firewalls#networks) to which the
+     * Endpoint should be peered.
+     * Private services access must already be configured for the network. If left
+     * unspecified, the Endpoint is not peered with any network.
+     * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert):
+     * projects/{project}/global/networks/{network}.
+     * Where {project} is a project number, as in '12345', and {network} is
+     * network name.
+     * 
+ * + * string network = 13 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + + network_ = getDefaultInstance().getNetwork(); + onChanged(); + return this; + } + /** + * + * + *
+     * The full name of the Google Compute Engine
+     * [network](/compute/docs/networks-and-firewalls#networks) to which the
+     * Endpoint should be peered.
+     * Private services access must already be configured for the network. If left
+     * unspecified, the Endpoint is not peered with any network.
+     * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert):
+     * projects/{project}/global/networks/{network}.
+     * Where {project} is a project number, as in '12345', and {network} is
+     * network name.
+     * 
+ * + * string network = 13 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + network_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointOrBuilder.java index 83d69a594..09cb42de4 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointOrBuilder.java @@ -470,4 +470,45 @@ public interface EndpointOrBuilder * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 10; */ com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder(); + + /** + * + * + *
+   * The full name of the Google Compute Engine
+   * [network](/compute/docs/networks-and-firewalls#networks) to which the
+   * Endpoint should be peered.
+   * Private services access must already be configured for the network. If left
+   * unspecified, the Endpoint is not peered with any network.
+   * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert):
+   * projects/{project}/global/networks/{network}.
+   * Where {project} is a project number, as in '12345', and {network} is
+   * network name.
+   * 
+ * + * string network = 13 [(.google.api.resource_reference) = { ... } + * + * @return The network. + */ + java.lang.String getNetwork(); + /** + * + * + *
+   * The full name of the Google Compute Engine
+   * [network](/compute/docs/networks-and-firewalls#networks) to which the
+   * Endpoint should be peered.
+   * Private services access must already be configured for the network. If left
+   * unspecified, the Endpoint is not peered with any network.
+   * [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert):
+   * projects/{project}/global/networks/{network}.
+   * Where {project} is a project number, as in '12345', and {network} is
+   * network name.
+   * 
+ * + * string network = 13 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java index 7fe774cda..4648d8ed9 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java @@ -43,6 +43,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_DeployedModel_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_DeployedModel_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PrivateEndpoints_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PrivateEndpoints_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -62,7 +66,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/machine_resources.proto\032Egoogle/cloud/a" + "iplatform/v1beta1/model_deployment_monit" + "oring_job.proto\032\037google/protobuf/timesta" - + "mp.proto\032\034google/api/annotations.proto\"\305" + + "mp.proto\032\034google/api/annotations.proto\"\373" + "\005\n\010Endpoint\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014displa" + "y_name\030\002 \001(\tB\003\340A\002\022\023\n\013description\030\003 \001(\t\022L" + "\n\017deployed_models\030\004 \003(\0132..google.cloud.a" @@ -75,29 +79,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "obuf.TimestampB\003\340A\003\0224\n\013update_time\030\t \001(\013" + "2\032.google.protobuf.TimestampB\003\340A\003\022H\n\017enc" + "ryption_spec\030\n \001(\0132/.google.cloud.aiplat" - + "form.v1beta1.EncryptionSpec\0323\n\021TrafficSp" - + "litEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:\0028\001" - + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001:e\352Ab\n\"aiplatform.googleapis.com/" - + "Endpoint\022FAILED = 4;
*/ FAILED(4), + /** + * + * + *
+     * The Execution completed through Cache hit.
+     * 
+ * + * CACHED = 5; + */ + CACHED(5), + /** + * + * + *
+     * The Execution was cancelled.
+     * 
+ * + * CANCELLED = 6; + */ + CANCELLED(6), UNRECOGNIZED(-1), ; @@ -341,6 +361,26 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * FAILED = 4; */ public static final int FAILED_VALUE = 4; + /** + * + * + *
+     * The Execution completed through Cache hit.
+     * 
+ * + * CACHED = 5; + */ + public static final int CACHED_VALUE = 5; + /** + * + * + *
+     * The Execution was cancelled.
+     * 
+ * + * CANCELLED = 6; + */ + public static final int CANCELLED_VALUE = 6; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -376,6 +416,10 @@ public static State forNumber(int value) { return COMPLETE; case 4: return FAILED; + case 5: + return CACHED; + case 6: + return CANCELLED; default: return null; } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExecutionProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExecutionProto.java index 8fd46853a..e32f90e8a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExecutionProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExecutionProto.java @@ -51,7 +51,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "latform/v1beta1/value.proto\032\034google/prot" + "obuf/struct.proto\032\037google/protobuf/times" + "tamp.proto\032\034google/api/annotations.proto" - + "\"\260\005\n\tExecution\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014dis" + + "\"\313\005\n\tExecution\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014dis" + "play_name\030\002 \001(\t\022?\n\005state\030\006 \001(\01620.google." + "cloud.aiplatform.v1beta1.Execution.State" + "\022\014\n\004etag\030\t \001(\t\022F\n\006labels\030\n \003(\01326.google." @@ -62,16 +62,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "hema_title\030\r \001(\t\022\026\n\016schema_version\030\016 \001(\t" + "\022)\n\010metadata\030\017 \001(\0132\027.google.protobuf.Str" + "uct\022\023\n\013description\030\020 \001(\t\032-\n\013LabelsEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"N\n\005State" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"i\n\005State" + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\007\n\003NEW\020\001\022\013\n\007RUNN" - + "ING\020\002\022\014\n\010COMPLETE\020\003\022\n\n\006FAILED\020\004:\211\001\352A\205\001\n#" - + "aiplatform.googleapis.com/Execution\022^pro" - + "jects/{project}/locations/{location}/met" - + "adataStores/{metadata_store}/executions/" - + "{execution}B\202\001\n#com.google.cloud.aiplatf" - + "orm.v1beta1B\016ExecutionProtoP\001ZIgoogle.go" - + "lang.org/genproto/googleapis/cloud/aipla" - + "tform/v1beta1;aiplatformb\006proto3" + + "ING\020\002\022\014\n\010COMPLETE\020\003\022\n\n\006FAILED\020\004\022\n\n\006CACHE" + + "D\020\005\022\r\n\tCANCELLED\020\006:\211\001\352A\205\001\n#aiplatform.go" + + "ogleapis.com/Execution\022^projects/{projec" + + "t}/locations/{location}/metadataStores/{" + + "metadata_store}/executions/{execution}B\353" + + "\001\n#com.google.cloud.aiplatform.v1beta1B\016" + + "ExecutionProtoP\001ZIgoogle.golang.org/genp" + + "roto/googleapis/cloud/aiplatform/v1beta1" + + ";aiplatform\252\002\037Google.Cloud.AIPlatform.V1" + + "Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352" + + "\002\"Google::Cloud::AIPlatform::V1beta1b\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataProto.java index 10baf6297..bfcce7b60 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationMetadataProto.java @@ -128,11 +128,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ta1.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." - + "ExplanationMetadata.OutputMetadata:\0028\001B\214" + + "ExplanationMetadata.OutputMetadata:\0028\001B\365" + "\001\n#com.google.cloud.aiplatform.v1beta1B\030" + "ExplanationMetadataProtoP\001ZIgoogle.golan" + "g.org/genproto/googleapis/cloud/aiplatfo" - + "rm/v1beta1;aiplatformb\006proto3" + + "rm/v1beta1;aiplatform\252\002\037Google.Cloud.AIP" + + "latform.V1Beta1\312\002\037Google\\Cloud\\AIPlatfor" + + "m\\V1beta1\352\002\"Google::Cloud::AIPlatform::V" + + "1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationProto.java index 5e310f3bb..5c3cb77ac 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ExplanationProto.java @@ -158,10 +158,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "try\022\013\n\003key\030\001 \001(\t\022a\n\005value\030\002 \001(\0132R.google" + ".cloud.aiplatform.v1beta1.ExplanationMet" + "adataOverride.InputMetadataOverride:\0028\001B" - + "\204\001\n#com.google.cloud.aiplatform.v1beta1B" + + "\355\001\n#com.google.cloud.aiplatform.v1beta1B" + "\020ExplanationProtoP\001ZIgoogle.golang.org/g" + "enproto/googleapis/cloud/aiplatform/v1be" - + "ta1;aiplatformb\006proto3" + + "ta1;aiplatform\252\002\037Google.Cloud.AIPlatform" + + ".V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1bet" + + "a1\352\002\"Google::Cloud::AIPlatform::V1beta1b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureMonitoringStatsProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureMonitoringStatsProto.java index 8c139b67c..87cbc4454 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureMonitoringStatsProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureMonitoringStatsProto.java @@ -50,10 +50,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ly_detection_threshold\030\t \001(\001\022.\n\nstart_ti" + "me\030\007 \001(\0132\032.google.protobuf.Timestamp\022,\n\010" + "end_time\030\010 \001(\0132\032.google.protobuf.Timesta" - + "mpB\217\001\n#com.google.cloud.aiplatform.v1bet" + + "mpB\370\001\n#com.google.cloud.aiplatform.v1bet" + "a1B\033FeatureMonitoringStatsProtoP\001ZIgoogl" + "e.golang.org/genproto/googleapis/cloud/a" - + "iplatform/v1beta1;aiplatformb\006proto3" + + "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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureProto.java index 6154fd675..d62ec0302 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureProto.java @@ -74,10 +74,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "pis.com/Feature\022qprojects/{project}/loca" + "tions/{location}/featurestores/{features" + "tore}/entityTypes/{entity_type}/features" - + "/{feature}B\200\001\n#com.google.cloud.aiplatfo" + + "/{feature}B\351\001\n#com.google.cloud.aiplatfo" + "rm.v1beta1B\014FeatureProtoP\001ZIgoogle.golan" + "g.org/genproto/googleapis/cloud/aiplatfo" - + "rm/v1beta1;aiplatformb\006proto3" + + "rm/v1beta1;aiplatform\252\002\037Google.Cloud.AIP" + + "latform.V1Beta1\312\002\037Google\\Cloud\\AIPlatfor" + + "m\\V1beta1\352\002\"Google::Cloud::AIPlatform::V" + + "1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureSelectorProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureSelectorProto.java index 62cb61d7f..22b32d3ef 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureSelectorProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureSelectorProto.java @@ -50,11 +50,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "to\032\034google/api/annotations.proto\"\035\n\tIdMa" + "tcher\022\020\n\003ids\030\001 \003(\tB\003\340A\002\"V\n\017FeatureSelect" + "or\022C\n\nid_matcher\030\001 \001(\0132*.google.cloud.ai" - + "platform.v1beta1.IdMatcherB\003\340A\002B\210\001\n#com." + + "platform.v1beta1.IdMatcherB\003\340A\002B\361\001\n#com." + "google.cloud.aiplatform.v1beta1B\024Feature" + "SelectorProtoP\001ZIgoogle.golang.org/genpr" + "oto/googleapis/cloud/aiplatform/v1beta1;" - + "aiplatformb\006proto3" + + "aiplatform\252\002\037Google.Cloud.AIPlatform.V1B" + + "eta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002" + + "\"Google::Cloud::AIPlatform::V1beta1b\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValue.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValue.java index ec95362ac..a68c81a6f 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValue.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValue.java @@ -1507,12 +1507,10 @@ public com.google.protobuf.ByteString getBytesValue() { * * *
-   * Output only. Metadata of feature value.
+   * Metadata of feature value.
    * 
* - * - * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14; * * @return Whether the metadata field is set. */ @@ -1524,12 +1522,10 @@ public boolean hasMetadata() { * * *
-   * Output only. Metadata of feature value.
+   * Metadata of feature value.
    * 
* - * - * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14; * * @return The metadata. */ @@ -1543,12 +1539,10 @@ public com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata getMetadata() { * * *
-   * Output only. Metadata of feature value.
+   * Metadata of feature value.
    * 
* - * - * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14; */ @java.lang.Override public com.google.cloud.aiplatform.v1beta1.FeatureValue.MetadataOrBuilder getMetadataOrBuilder() { @@ -3403,12 +3397,10 @@ public Builder clearBytesValue() { * * *
-     * Output only. Metadata of feature value.
+     * Metadata of feature value.
      * 
* - * - * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14; * * @return Whether the metadata field is set. */ @@ -3419,12 +3411,10 @@ public boolean hasMetadata() { * * *
-     * Output only. Metadata of feature value.
+     * Metadata of feature value.
      * 
* - * - * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14; * * @return The metadata. */ @@ -3441,12 +3431,10 @@ public com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata getMetadata() { * * *
-     * Output only. Metadata of feature value.
+     * Metadata of feature value.
      * 
* - * - * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14; */ public Builder setMetadata(com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata value) { if (metadataBuilder_ == null) { @@ -3465,12 +3453,10 @@ public Builder setMetadata(com.google.cloud.aiplatform.v1beta1.FeatureValue.Meta * * *
-     * Output only. Metadata of feature value.
+     * Metadata of feature value.
      * 
* - * - * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14; */ public Builder setMetadata( com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.Builder builderForValue) { @@ -3487,12 +3473,10 @@ public Builder setMetadata( * * *
-     * Output only. Metadata of feature value.
+     * Metadata of feature value.
      * 
* - * - * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14; */ public Builder mergeMetadata(com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata value) { if (metadataBuilder_ == null) { @@ -3515,12 +3499,10 @@ public Builder mergeMetadata(com.google.cloud.aiplatform.v1beta1.FeatureValue.Me * * *
-     * Output only. Metadata of feature value.
+     * Metadata of feature value.
      * 
* - * - * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { @@ -3537,12 +3519,10 @@ public Builder clearMetadata() { * * *
-     * Output only. Metadata of feature value.
+     * Metadata of feature value.
      * 
* - * - * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14; */ public com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.Builder getMetadataBuilder() { @@ -3553,12 +3533,10 @@ public com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.Builder getMeta * * *
-     * Output only. Metadata of feature value.
+     * Metadata of feature value.
      * 
* - * - * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14; */ public com.google.cloud.aiplatform.v1beta1.FeatureValue.MetadataOrBuilder getMetadataOrBuilder() { @@ -3574,12 +3552,10 @@ public com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.Builder getMeta * * *
-     * Output only. Metadata of feature value.
+     * Metadata of feature value.
      * 
* - * - * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata, diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueOrBuilder.java index 21aaaacb5..c461987ef 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureValueOrBuilder.java @@ -304,12 +304,10 @@ public interface FeatureValueOrBuilder * * *
-   * Output only. Metadata of feature value.
+   * Metadata of feature value.
    * 
* - * - * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14; * * @return Whether the metadata field is set. */ @@ -318,12 +316,10 @@ public interface FeatureValueOrBuilder * * *
-   * Output only. Metadata of feature value.
+   * Metadata of feature value.
    * 
* - * - * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14; * * @return The metadata. */ @@ -332,12 +328,10 @@ public interface FeatureValueOrBuilder * * *
-   * Output only. Metadata of feature value.
+   * Metadata of feature value.
    * 
* - * - * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.aiplatform.v1beta1.FeatureValue.Metadata metadata = 14; */ com.google.cloud.aiplatform.v1beta1.FeatureValue.MetadataOrBuilder getMetadataOrBuilder(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreMonitoringConfig.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreMonitoringConfig.java index e19facd76..f57fa1a0d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreMonitoringConfig.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreMonitoringConfig.java @@ -187,6 +187,26 @@ public interface SnapshotAnalysisOrBuilder * .google.protobuf.Duration monitoring_interval = 2; */ com.google.protobuf.DurationOrBuilder getMonitoringIntervalOrBuilder(); + + /** + * + * + *
+     * Configuration of the snapshot analysis based monitoring pipeline
+     * running interval. The value indicates number of days.
+     * If both
+     * [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days]
+     * and [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval]
+     * are set when creating/updating EntityTypes/Features,
+     * [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days]
+     * will be used.
+     * 
+ * + * int32 monitoring_interval_days = 3; + * + * @return The monitoringIntervalDays. + */ + int getMonitoringIntervalDays(); } /** * @@ -260,6 +280,11 @@ private SnapshotAnalysis( monitoringInterval_ = subBuilder.buildPartial(); } + break; + } + case 24: + { + monitoringIntervalDays_ = input.readInt32(); break; } default: @@ -377,6 +402,31 @@ public com.google.protobuf.DurationOrBuilder getMonitoringIntervalOrBuilder() { return getMonitoringInterval(); } + public static final int MONITORING_INTERVAL_DAYS_FIELD_NUMBER = 3; + private int monitoringIntervalDays_; + /** + * + * + *
+     * Configuration of the snapshot analysis based monitoring pipeline
+     * running interval. The value indicates number of days.
+     * If both
+     * [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days]
+     * and [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval]
+     * are set when creating/updating EntityTypes/Features,
+     * [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days]
+     * will be used.
+     * 
+ * + * int32 monitoring_interval_days = 3; + * + * @return The monitoringIntervalDays. + */ + @java.lang.Override + public int getMonitoringIntervalDays() { + return monitoringIntervalDays_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -397,6 +447,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (monitoringInterval_ != null) { output.writeMessage(2, getMonitoringInterval()); } + if (monitoringIntervalDays_ != 0) { + output.writeInt32(3, monitoringIntervalDays_); + } unknownFields.writeTo(output); } @@ -413,6 +466,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMonitoringInterval()); } + if (monitoringIntervalDays_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, monitoringIntervalDays_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -436,6 +492,7 @@ public boolean equals(final java.lang.Object obj) { if (hasMonitoringInterval()) { if (!getMonitoringInterval().equals(other.getMonitoringInterval())) return false; } + if (getMonitoringIntervalDays() != other.getMonitoringIntervalDays()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -453,6 +510,8 @@ public int hashCode() { hash = (37 * hash) + MONITORING_INTERVAL_FIELD_NUMBER; hash = (53 * hash) + getMonitoringInterval().hashCode(); } + hash = (37 * hash) + MONITORING_INTERVAL_DAYS_FIELD_NUMBER; + hash = (53 * hash) + getMonitoringIntervalDays(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -623,6 +682,8 @@ public Builder clear() { monitoringInterval_ = null; monitoringIntervalBuilder_ = null; } + monitoringIntervalDays_ = 0; + return this; } @@ -662,6 +723,7 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } else { result.monitoringInterval_ = monitoringIntervalBuilder_.build(); } + result.monitoringIntervalDays_ = monitoringIntervalDays_; onBuilt(); return result; } @@ -726,6 +788,9 @@ public Builder mergeFrom( if (other.hasMonitoringInterval()) { mergeMonitoringInterval(other.getMonitoringInterval()); } + if (other.getMonitoringIntervalDays() != 0) { + setMonitoringIntervalDays(other.getMonitoringIntervalDays()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1034,6 +1099,79 @@ public com.google.protobuf.DurationOrBuilder getMonitoringIntervalOrBuilder() { return monitoringIntervalBuilder_; } + private int monitoringIntervalDays_; + /** + * + * + *
+       * Configuration of the snapshot analysis based monitoring pipeline
+       * running interval. The value indicates number of days.
+       * If both
+       * [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days]
+       * and [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval]
+       * are set when creating/updating EntityTypes/Features,
+       * [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days]
+       * will be used.
+       * 
+ * + * int32 monitoring_interval_days = 3; + * + * @return The monitoringIntervalDays. + */ + @java.lang.Override + public int getMonitoringIntervalDays() { + return monitoringIntervalDays_; + } + /** + * + * + *
+       * Configuration of the snapshot analysis based monitoring pipeline
+       * running interval. The value indicates number of days.
+       * If both
+       * [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days]
+       * and [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval]
+       * are set when creating/updating EntityTypes/Features,
+       * [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days]
+       * will be used.
+       * 
+ * + * int32 monitoring_interval_days = 3; + * + * @param value The monitoringIntervalDays to set. + * @return This builder for chaining. + */ + public Builder setMonitoringIntervalDays(int value) { + + monitoringIntervalDays_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Configuration of the snapshot analysis based monitoring pipeline
+       * running interval. The value indicates number of days.
+       * If both
+       * [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days]
+       * and [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval]
+       * are set when creating/updating EntityTypes/Features,
+       * [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days]
+       * will be used.
+       * 
+ * + * int32 monitoring_interval_days = 3; + * + * @return This builder for chaining. + */ + public Builder clearMonitoringIntervalDays() { + + monitoringIntervalDays_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreMonitoringProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreMonitoringProto.java index 93b3aa5ef..092041481 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreMonitoringProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreMonitoringProto.java @@ -47,17 +47,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n=google/cloud/aiplatform/v1beta1/featur" + "estore_monitoring.proto\022\037google.cloud.ai" + "platform.v1beta1\032\036google/protobuf/durati" - + "on.proto\032\034google/api/annotations.proto\"\347" - + "\001\n\034FeaturestoreMonitoringConfig\022i\n\021snaps" + + "on.proto\032\034google/api/annotations.proto\"\211" + + "\002\n\034FeaturestoreMonitoringConfig\022i\n\021snaps" + "hot_analysis\030\001 \001(\0132N.google.cloud.aiplat" + "form.v1beta1.FeaturestoreMonitoringConfi" - + "g.SnapshotAnalysis\032\\\n\020SnapshotAnalysis\022\020" + + "g.SnapshotAnalysis\032~\n\020SnapshotAnalysis\022\020" + "\n\010disabled\030\001 \001(\010\0226\n\023monitoring_interval\030" - + "\002 \001(\0132\031.google.protobuf.DurationB\217\001\n#com" - + ".google.cloud.aiplatform.v1beta1B\033Featur" - + "estoreMonitoringProtoP\001ZIgoogle.golang.o" - + "rg/genproto/googleapis/cloud/aiplatform/" - + "v1beta1;aiplatformb\006proto3" + + "\002 \001(\0132\031.google.protobuf.Duration\022 \n\030moni" + + "toring_interval_days\030\003 \001(\005B\370\001\n#com.googl" + + "e.cloud.aiplatform.v1beta1B\033Featurestore" + + "MonitoringProtoP\001ZIgoogle.golang.org/gen" + + "proto/googleapis/cloud/aiplatform/v1beta" + + "1;aiplatform\252\002\037Google.Cloud.AIPlatform.V" + + "1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1" + + "\352\002\"Google::Cloud::AIPlatform::V1beta1b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -82,7 +86,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_FeaturestoreMonitoringConfig_SnapshotAnalysis_descriptor, new java.lang.String[] { - "Disabled", "MonitoringInterval", + "Disabled", "MonitoringInterval", "MonitoringIntervalDays", }); com.google.protobuf.DurationProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServiceProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServiceProto.java index 3132ad3ab..4814424e1 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServiceProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOnlineServiceProto.java @@ -112,7 +112,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "orm.googleapis.com/EntityType\022\027\n\nentity_" + "ids\030\002 \003(\tB\003\340A\002\022O\n\020feature_selector\030\003 \001(\013" + "20.google.cloud.aiplatform.v1beta1.Featu" - + "reSelectorB\003\340A\002\"\303\004\n\014FeatureValue\022\024\n\nbool" + + "reSelectorB\003\340A\002\"\276\004\n\014FeatureValue\022\024\n\nbool" + "_value\030\001 \001(\010H\000\022\026\n\014double_value\030\002 \001(\001H\000\022\025" + "\n\013int64_value\030\005 \001(\003H\000\022\026\n\014string_value\030\006 " + "\001(\tH\000\022F\n\020bool_array_value\030\007 \001(\0132*.google" @@ -123,33 +123,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "atform.v1beta1.Int64ArrayH\000\022J\n\022string_ar" + "ray_value\030\014 \001(\0132,.google.cloud.aiplatfor" + "m.v1beta1.StringArrayH\000\022\025\n\013bytes_value\030\r" - + " \001(\014H\000\022M\n\010metadata\030\016 \001(\01326.google.cloud." + + " \001(\014H\000\022H\n\010metadata\030\016 \001(\01326.google.cloud." + "aiplatform.v1beta1.FeatureValue.Metadata" - + "B\003\340A\003\032=\n\010Metadata\0221\n\rgenerate_time\030\001 \001(\013" - + "2\032.google.protobuf.TimestampB\007\n\005value\"Q\n" - + "\020FeatureValueList\022=\n\006values\030\001 \003(\0132-.goog" - + "le.cloud.aiplatform.v1beta1.FeatureValue" - + "2\230\005\n FeaturestoreOnlineServingService\022\202\002" - + "\n\021ReadFeatureValues\0229.google.cloud.aipla" - + "tform.v1beta1.ReadFeatureValuesRequest\032:" - + ".google.cloud.aiplatform.v1beta1.ReadFea" - + "tureValuesResponse\"v\202\323\344\223\002b\"]/v1beta1/{en" - + "tity_type=projects/*/locations/*/feature" - + "stores/*/entityTypes/*}:readFeatureValue" - + "s:\001*\332A\013entity_type\022\237\002\n\032StreamingReadFeat" - + "ureValues\022B.google.cloud.aiplatform.v1be" - + "ta1.StreamingReadFeatureValuesRequest\032:." - + "google.cloud.aiplatform.v1beta1.ReadFeat" - + "ureValuesResponse\"\177\202\323\344\223\002k\"f/v1beta1/{ent" - + "ity_type=projects/*/locations/*/features" - + "tores/*/entityTypes/*}:streamingReadFeat" - + "ureValues:\001*\332A\013entity_type0\001\032M\312A\031aiplatf" - + "orm.googleapis.com\322A.https://www.googlea" - + "pis.com/auth/cloud-platformB\222\001\n#com.goog" - + "le.cloud.aiplatform.v1beta1B\036Featurestor" - + "eOnlineServiceProtoP\001ZIgoogle.golang.org" - + "/genproto/googleapis/cloud/aiplatform/v1" - + "beta1;aiplatformb\006proto3" + + "\032=\n\010Metadata\0221\n\rgenerate_time\030\001 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\007\n\005value\"Q\n\020Feat" + + "ureValueList\022=\n\006values\030\001 \003(\0132-.google.cl" + + "oud.aiplatform.v1beta1.FeatureValue2\230\005\n " + + "FeaturestoreOnlineServingService\022\202\002\n\021Rea" + + "dFeatureValues\0229.google.cloud.aiplatform" + + ".v1beta1.ReadFeatureValuesRequest\032:.goog" + + "le.cloud.aiplatform.v1beta1.ReadFeatureV" + + "aluesResponse\"v\202\323\344\223\002b\"]/v1beta1/{entity_" + + "type=projects/*/locations/*/featurestore" + + "s/*/entityTypes/*}:readFeatureValues:\001*\332" + + "A\013entity_type\022\237\002\n\032StreamingReadFeatureVa" + + "lues\022B.google.cloud.aiplatform.v1beta1.S" + + "treamingReadFeatureValuesRequest\032:.googl" + + "e.cloud.aiplatform.v1beta1.ReadFeatureVa" + + "luesResponse\"\177\202\323\344\223\002k\"f/v1beta1/{entity_t" + + "ype=projects/*/locations/*/featurestores" + + "/*/entityTypes/*}:streamingReadFeatureVa" + + "lues:\001*\332A\013entity_type0\001\032M\312A\031aiplatform.g" + + "oogleapis.com\322A.https://www.googleapis.c" + + "om/auth/cloud-platformB\373\001\n#com.google.cl" + + "oud.aiplatform.v1beta1B\036FeaturestoreOnli" + + "neServiceProtoP\001ZIgoogle.golang.org/genp" + + "roto/googleapis/cloud/aiplatform/v1beta1" + + ";aiplatform\252\002\037Google.Cloud.AIPlatform.V1" + + "Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352" + + "\002\"Google::Cloud::AIPlatform::V1beta1b\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreProto.java index 7b202fa93..52d9e0504 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreProto.java @@ -51,29 +51,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n2google/cloud/aiplatform/v1beta1/featur" + "estore.proto\022\037google.cloud.aiplatform.v1" + "beta1\032\037google/api/field_behavior.proto\032\031" - + "google/api/resource.proto\032\037google/protob" - + "uf/timestamp.proto\032\034google/api/annotatio" - + "ns.proto\"\262\005\n\014Featurestore\022\021\n\004name\030\001 \001(\tB" - + "\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\0224\n\013update_time\030\004 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003\022\021\n\004etag" - + "\030\005 \001(\tB\003\340A\001\022N\n\006labels\030\006 \003(\01329.google.clo" - + "ud.aiplatform.v1beta1.Featurestore.Label" - + "sEntryB\003\340A\001\022e\n\025online_serving_config\030\007 \001" - + "(\0132A.google.cloud.aiplatform.v1beta1.Fea" - + "turestore.OnlineServingConfigB\003\340A\002\022G\n\005st" - + "ate\030\010 \001(\01623.google.cloud.aiplatform.v1be" - + "ta1.Featurestore.StateB\003\340A\003\0324\n\023OnlineSer" - + "vingConfig\022\035\n\020fixed_node_count\030\002 \001(\005B\003\340A" - + "\002\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\021STATE_UNSPECIFIED\020\000" - + "\022\n\n\006STABLE\020\001\022\014\n\010UPDATING\020\002:q\352An\n&aiplatf" - + "orm.googleapis.com/Featurestore\022Dproject" - + "s/{project}/locations/{location}/feature" - + "stores/{featurestore}B\205\001\n#com.google.clo" - + "ud.aiplatform.v1beta1B\021FeaturestoreProto" - + "P\001ZIgoogle.golang.org/genproto/googleapi" - + "s/cloud/aiplatform/v1beta1;aiplatformb\006p" + + "google/api/resource.proto\0325google/cloud/" + + "aiplatform/v1beta1/encryption_spec.proto" + + "\032\037google/protobuf/timestamp.proto\032\034googl" + + "e/api/annotations.proto\"\262\005\n\014Featurestore" + + "\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\003 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upd" + + "ate_time\030\004 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\022\021\n\004etag\030\005 \001(\tB\003\340A\001\022N\n\006labels\030\006 \003" + + "(\01329.google.cloud.aiplatform.v1beta1.Fea" + + "turestore.LabelsEntryB\003\340A\001\022e\n\025online_ser" + + "ving_config\030\007 \001(\0132A.google.cloud.aiplatf" + + "orm.v1beta1.Featurestore.OnlineServingCo" + + "nfigB\003\340A\002\022G\n\005state\030\010 \001(\01623.google.cloud." + + "aiplatform.v1beta1.Featurestore.StateB\003\340" + + "A\003\0324\n\023OnlineServingConfig\022\035\n\020fixed_node_" + + "count\030\002 \001(\005B\003\340A\002\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\021STAT" + + "E_UNSPECIFIED\020\000\022\n\n\006STABLE\020\001\022\014\n\010UPDATING\020" + + "\002:q\352An\n&aiplatform.googleapis.com/Featur" + + "estore\022Dprojects/{project}/locations/{lo" + + "cation}/featurestores/{featurestore}B\356\001\n" + + "#com.google.cloud.aiplatform.v1beta1B\021Fe" + + "aturestoreProtoP\001ZIgoogle.golang.org/gen" + + "proto/googleapis/cloud/aiplatform/v1beta" + + "1;aiplatform\252\002\037Google.Cloud.AIPlatform.V" + + "1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1" + + "\352\002\"Google::Cloud::AIPlatform::V1beta1b\006p" + "roto3" }; descriptor = @@ -82,6 +86,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), }); @@ -121,6 +126,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceProto.java index 9f63d2a14..1f7a4e341 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceProto.java @@ -67,6 +67,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_PassThroughField_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_PassThroughField_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_EntityTypeSpec_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -258,260 +262,269 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_time_source\"}\n\033ImportFeatureValuesRespo" + "nse\022\035\n\025imported_entity_count\030\001 \001(\003\022$\n\034im" + "ported_feature_value_count\030\002 \001(\003\022\031\n\021inva" - + "lid_row_count\030\006 \001(\003\"\320\004\n\035BatchReadFeature" + + "lid_row_count\030\006 \001(\003\"\277\006\n\035BatchReadFeature" + "ValuesRequest\022H\n\022csv_read_instances\030\003 \001(" + "\0132*.google.cloud.aiplatform.v1beta1.CsvS" - + "ourceH\000\022D\n\014featurestore\030\001 \001(\tB.\340A\002\372A(\n&a" - + "iplatform.googleapis.com/Featurestore\022R\n" - + "\013destination\030\004 \001(\01328.google.cloud.aiplat" - + "form.v1beta1.FeatureValueDestinationB\003\340A" - + "\002\022m\n\021entity_type_specs\030\007 \003(\0132M.google.cl" - + "oud.aiplatform.v1beta1.BatchReadFeatureV" - + "aluesRequest.EntityTypeSpecB\003\340A\002\032\314\001\n\016Ent" - + "ityTypeSpec\022\033\n\016entity_type_id\030\001 \001(\tB\003\340A\002" - + "\022O\n\020feature_selector\030\002 \001(\01320.google.clou" - + "d.aiplatform.v1beta1.FeatureSelectorB\003\340A" - + "\002\022L\n\010settings\030\003 \003(\0132:.google.cloud.aipla" - + "tform.v1beta1.DestinationFeatureSettingB" - + "\r\n\013read_option\"\206\004\n\032ExportFeatureValuesRe" - + "quest\022e\n\017snapshot_export\030\003 \001(\0132J.google." - + "cloud.aiplatform.v1beta1.ExportFeatureVa" - + "luesRequest.SnapshotExportH\000\022A\n\013entity_t" - + "ype\030\001 \001(\tB,\340A\002\372A&\n$aiplatform.googleapis" - + ".com/EntityType\022R\n\013destination\030\004 \001(\01328.g" - + "oogle.cloud.aiplatform.v1beta1.FeatureVa" - + "lueDestinationB\003\340A\002\022O\n\020feature_selector\030" - + "\005 \001(\01320.google.cloud.aiplatform.v1beta1." - + "FeatureSelectorB\003\340A\002\022L\n\010settings\030\006 \003(\0132:" - + ".google.cloud.aiplatform.v1beta1.Destina" - + "tionFeatureSetting\032C\n\016SnapshotExport\0221\n\r" - + "snapshot_time\030\001 \001(\0132\032.google.protobuf.Ti" - + "mestampB\006\n\004mode\"O\n\031DestinationFeatureSet" - + "ting\022\027\n\nfeature_id\030\001 \001(\tB\003\340A\002\022\031\n\021destina" - + "tion_field\030\002 \001(\t\"\240\002\n\027FeatureValueDestina" - + "tion\022T\n\024bigquery_destination\030\001 \001(\01324.goo" - + "gle.cloud.aiplatform.v1beta1.BigQueryDes" - + "tinationH\000\022T\n\024tfrecord_destination\030\002 \001(\013" - + "24.google.cloud.aiplatform.v1beta1.TFRec" - + "ordDestinationH\000\022J\n\017csv_destination\030\003 \001(" - + "\0132/.google.cloud.aiplatform.v1beta1.CsvD" - + "estinationH\000B\r\n\013destination\"\035\n\033ExportFea" - + "tureValuesResponse\" \n\036BatchReadFeatureVa" - + "luesResponse\"\270\001\n\027CreateEntityTypeRequest" - + "\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\n&aiplatform.goo" - + "gleapis.com/Featurestore\022@\n\013entity_type\030" - + "\002 \001(\0132+.google.cloud.aiplatform.v1beta1." - + "EntityType\022\033\n\016entity_type_id\030\003 \001(\tB\003\340A\002\"" - + "R\n\024GetEntityTypeRequest\022:\n\004name\030\001 \001(\tB,\340" - + "A\002\372A&\n$aiplatform.googleapis.com/EntityT" - + "ype\"\316\001\n\026ListEntityTypesRequest\022<\n\006parent" - + "\030\001 \001(\tB,\340A\002\372A&\022$aiplatform.googleapis.co" - + "m/EntityType\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\020\n\010order_by\030" - + "\005 \001(\t\022-\n\tread_mask\030\006 \001(\0132\032.google.protob" - + "uf.FieldMask\"u\n\027ListEntityTypesResponse\022" - + "A\n\014entity_types\030\001 \003(\0132+.google.cloud.aip" - + "latform.v1beta1.EntityType\022\027\n\017next_page_" - + "token\030\002 \001(\t\"\221\001\n\027UpdateEntityTypeRequest\022" - + "E\n\013entity_type\030\001 \001(\0132+.google.cloud.aipl" - + "atform.v1beta1.EntityTypeB\003\340A\002\022/\n\013update" - + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"" - + "d\n\027DeleteEntityTypeRequest\022:\n\004name\030\001 \001(\t" - + "B,\340A\002\372A&\n$aiplatform.googleapis.com/Enti" - + "tyType\022\r\n\005force\030\002 \001(\010\"\255\001\n\024CreateFeatureR" - + "equest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$aiplatfo" - + "rm.googleapis.com/EntityType\022>\n\007feature\030" - + "\002 \001(\0132(.google.cloud.aiplatform.v1beta1." - + "FeatureB\003\340A\002\022\027\n\nfeature_id\030\003 \001(\tB\003\340A\002\"\250\001" - + "\n\032BatchCreateFeaturesRequest\022<\n\006parent\030\001" - + " \001(\tB,\340A\002\372A&\n$aiplatform.googleapis.com/" - + "EntityType\022L\n\010requests\030\002 \003(\01325.google.cl" - + "oud.aiplatform.v1beta1.CreateFeatureRequ" - + "estB\003\340A\002\"Y\n\033BatchCreateFeaturesResponse\022" - + ":\n\010features\030\001 \003(\0132(.google.cloud.aiplatf" - + "orm.v1beta1.Feature\"L\n\021GetFeatureRequest" - + "\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!aiplatform.googl" - + "eapis.com/Feature\"\344\001\n\023ListFeaturesReques" - + "t\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!aiplatform.go" - + "ogleapis.com/Feature\022\016\n\006filter\030\002 \001(\t\022\021\n\t" - + "page_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022\020\n\010o" - + "rder_by\030\005 \001(\t\022-\n\tread_mask\030\006 \001(\0132\032.googl" - + "e.protobuf.FieldMask\022\032\n\022latest_stats_cou" - + "nt\030\007 \001(\005\"k\n\024ListFeaturesResponse\022:\n\010feat" - + "ures\030\001 \003(\0132(.google.cloud.aiplatform.v1b" - + "eta1.Feature\022\027\n\017next_page_token\030\002 \001(\t\"\212\001" - + "\n\025SearchFeaturesRequest\022;\n\010location\030\001 \001(" - + "\tB)\340A\002\372A#\n!locations.googleapis.com/Loca" - + "tion\022\r\n\005query\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\022\022" - + "\n\npage_token\030\005 \001(\t\"m\n\026SearchFeaturesResp" - + "onse\022:\n\010features\030\001 \003(\0132(.google.cloud.ai" - + "platform.v1beta1.Feature\022\027\n\017next_page_to" - + "ken\030\002 \001(\t\"\207\001\n\024UpdateFeatureRequest\022>\n\007fe" - + "ature\030\001 \001(\0132(.google.cloud.aiplatform.v1" - + "beta1.FeatureB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132" - + "\032.google.protobuf.FieldMask\"O\n\024DeleteFea" - + "tureRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!aipla" - + "tform.googleapis.com/Feature\"z\n#CreateFe" - + "aturestoreOperationMetadata\022S\n\020generic_m" - + "etadata\030\001 \001(\01329.google.cloud.aiplatform." - + "v1beta1.GenericOperationMetadata\"z\n#Upda" - + "teFeaturestoreOperationMetadata\022S\n\020gener" - + "ic_metadata\030\001 \001(\01329.google.cloud.aiplatf" - + "orm.v1beta1.GenericOperationMetadata\"\333\001\n" - + "$ImportFeatureValuesOperationMetadata\022S\n" - + "\020generic_metadata\030\001 \001(\01329.google.cloud.a" - + "iplatform.v1beta1.GenericOperationMetada" - + "ta\022\035\n\025imported_entity_count\030\002 \001(\003\022$\n\034imp" - + "orted_feature_value_count\030\003 \001(\003\022\031\n\021inval" - + "id_row_count\030\006 \001(\003\"{\n$ExportFeatureValue" - + "sOperationMetadata\022S\n\020generic_metadata\030\001" - + " \001(\01329.google.cloud.aiplatform.v1beta1.G" - + "enericOperationMetadata\"~\n\'BatchReadFeat" - + "ureValuesOperationMetadata\022S\n\020generic_me" + + "ourceH\000\022R\n\027bigquery_read_instances\030\005 \001(\013" + + "2/.google.cloud.aiplatform.v1beta1.BigQu" + + "erySourceH\000\022D\n\014featurestore\030\001 \001(\tB.\340A\002\372A" + + "(\n&aiplatform.googleapis.com/Featurestor" + + "e\022R\n\013destination\030\004 \001(\01328.google.cloud.ai" + + "platform.v1beta1.FeatureValueDestination" + + "B\003\340A\002\022l\n\023pass_through_fields\030\010 \003(\0132O.goo" + + "gle.cloud.aiplatform.v1beta1.BatchReadFe" + + "atureValuesRequest.PassThroughField\022m\n\021e" + + "ntity_type_specs\030\007 \003(\0132M.google.cloud.ai" + + "platform.v1beta1.BatchReadFeatureValuesR" + + "equest.EntityTypeSpecB\003\340A\002\032+\n\020PassThroug" + + "hField\022\027\n\nfield_name\030\001 \001(\tB\003\340A\002\032\314\001\n\016Enti" + + "tyTypeSpec\022\033\n\016entity_type_id\030\001 \001(\tB\003\340A\002\022" + + "O\n\020feature_selector\030\002 \001(\01320.google.cloud" + + ".aiplatform.v1beta1.FeatureSelectorB\003\340A\002" + + "\022L\n\010settings\030\003 \003(\0132:.google.cloud.aiplat" + + "form.v1beta1.DestinationFeatureSettingB\r" + + "\n\013read_option\"\206\004\n\032ExportFeatureValuesReq" + + "uest\022e\n\017snapshot_export\030\003 \001(\0132J.google.c" + + "loud.aiplatform.v1beta1.ExportFeatureVal" + + "uesRequest.SnapshotExportH\000\022A\n\013entity_ty" + + "pe\030\001 \001(\tB,\340A\002\372A&\n$aiplatform.googleapis." + + "com/EntityType\022R\n\013destination\030\004 \001(\01328.go" + + "ogle.cloud.aiplatform.v1beta1.FeatureVal" + + "ueDestinationB\003\340A\002\022O\n\020feature_selector\030\005" + + " \001(\01320.google.cloud.aiplatform.v1beta1.F" + + "eatureSelectorB\003\340A\002\022L\n\010settings\030\006 \003(\0132:." + + "google.cloud.aiplatform.v1beta1.Destinat" + + "ionFeatureSetting\032C\n\016SnapshotExport\0221\n\rs" + + "napshot_time\030\001 \001(\0132\032.google.protobuf.Tim" + + "estampB\006\n\004mode\"O\n\031DestinationFeatureSett" + + "ing\022\027\n\nfeature_id\030\001 \001(\tB\003\340A\002\022\031\n\021destinat" + + "ion_field\030\002 \001(\t\"\240\002\n\027FeatureValueDestinat" + + "ion\022T\n\024bigquery_destination\030\001 \001(\01324.goog" + + "le.cloud.aiplatform.v1beta1.BigQueryDest" + + "inationH\000\022T\n\024tfrecord_destination\030\002 \001(\0132" + + "4.google.cloud.aiplatform.v1beta1.TFReco" + + "rdDestinationH\000\022J\n\017csv_destination\030\003 \001(\013" + + "2/.google.cloud.aiplatform.v1beta1.CsvDe" + + "stinationH\000B\r\n\013destination\"\035\n\033ExportFeat" + + "ureValuesResponse\" \n\036BatchReadFeatureVal" + + "uesResponse\"\270\001\n\027CreateEntityTypeRequest\022" + + ">\n\006parent\030\001 \001(\tB.\340A\002\372A(\n&aiplatform.goog" + + "leapis.com/Featurestore\022@\n\013entity_type\030\002" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.E" + + "ntityType\022\033\n\016entity_type_id\030\003 \001(\tB\003\340A\002\"R" + + "\n\024GetEntityTypeRequest\022:\n\004name\030\001 \001(\tB,\340A" + + "\002\372A&\n$aiplatform.googleapis.com/EntityTy" + + "pe\"\316\001\n\026ListEntityTypesRequest\022<\n\006parent\030" + + "\001 \001(\tB,\340A\002\372A&\022$aiplatform.googleapis.com" + + "/EntityType\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\020\n\010order_by\030\005" + + " \001(\t\022-\n\tread_mask\030\006 \001(\0132\032.google.protobu" + + "f.FieldMask\"u\n\027ListEntityTypesResponse\022A" + + "\n\014entity_types\030\001 \003(\0132+.google.cloud.aipl" + + "atform.v1beta1.EntityType\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\"\221\001\n\027UpdateEntityTypeRequest\022E" + + "\n\013entity_type\030\001 \001(\0132+.google.cloud.aipla" + + "tform.v1beta1.EntityTypeB\003\340A\002\022/\n\013update_" + + "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"d" + + "\n\027DeleteEntityTypeRequest\022:\n\004name\030\001 \001(\tB" + + ",\340A\002\372A&\n$aiplatform.googleapis.com/Entit" + + "yType\022\r\n\005force\030\002 \001(\010\"\255\001\n\024CreateFeatureRe" + + "quest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$aiplatfor" + + "m.googleapis.com/EntityType\022>\n\007feature\030\002" + + " \001(\0132(.google.cloud.aiplatform.v1beta1.F" + + "eatureB\003\340A\002\022\027\n\nfeature_id\030\003 \001(\tB\003\340A\002\"\250\001\n" + + "\032BatchCreateFeaturesRequest\022<\n\006parent\030\001 " + + "\001(\tB,\340A\002\372A&\n$aiplatform.googleapis.com/E" + + "ntityType\022L\n\010requests\030\002 \003(\01325.google.clo" + + "ud.aiplatform.v1beta1.CreateFeatureReque" + + "stB\003\340A\002\"Y\n\033BatchCreateFeaturesResponse\022:" + + "\n\010features\030\001 \003(\0132(.google.cloud.aiplatfo" + + "rm.v1beta1.Feature\"L\n\021GetFeatureRequest\022" + + "7\n\004name\030\001 \001(\tB)\340A\002\372A#\n!aiplatform.google" + + "apis.com/Feature\"\344\001\n\023ListFeaturesRequest" + + "\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!aiplatform.goo" + + "gleapis.com/Feature\022\016\n\006filter\030\002 \001(\t\022\021\n\tp" + + "age_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022\020\n\010or" + + "der_by\030\005 \001(\t\022-\n\tread_mask\030\006 \001(\0132\032.google" + + ".protobuf.FieldMask\022\032\n\022latest_stats_coun" + + "t\030\007 \001(\005\"k\n\024ListFeaturesResponse\022:\n\010featu" + + "res\030\001 \003(\0132(.google.cloud.aiplatform.v1be" + + "ta1.Feature\022\027\n\017next_page_token\030\002 \001(\t\"\212\001\n" + + "\025SearchFeaturesRequest\022;\n\010location\030\001 \001(\t" + + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" + + "ion\022\r\n\005query\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\022\022\n" + + "\npage_token\030\005 \001(\t\"m\n\026SearchFeaturesRespo" + + "nse\022:\n\010features\030\001 \003(\0132(.google.cloud.aip" + + "latform.v1beta1.Feature\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\"\207\001\n\024UpdateFeatureRequest\022>\n\007fea" + + "ture\030\001 \001(\0132(.google.cloud.aiplatform.v1b" + + "eta1.FeatureB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032" + + ".google.protobuf.FieldMask\"O\n\024DeleteFeat" + + "ureRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!aiplat" + + "form.googleapis.com/Feature\"z\n#CreateFea" + + "turestoreOperationMetadata\022S\n\020generic_me" + "tadata\030\001 \001(\01329.google.cloud.aiplatform.v" - + "1beta1.GenericOperationMetadata\"x\n!Creat" - + "eEntityTypeOperationMetadata\022S\n\020generic_" - + "metadata\030\001 \001(\01329.google.cloud.aiplatform" - + ".v1beta1.GenericOperationMetadata\"u\n\036Cre" - + "ateFeatureOperationMetadata\022S\n\020generic_m" + + "1beta1.GenericOperationMetadata\"z\n#Updat" + + "eFeaturestoreOperationMetadata\022S\n\020generi" + + "c_metadata\030\001 \001(\01329.google.cloud.aiplatfo" + + "rm.v1beta1.GenericOperationMetadata\"\333\001\n$" + + "ImportFeatureValuesOperationMetadata\022S\n\020" + + "generic_metadata\030\001 \001(\01329.google.cloud.ai" + + "platform.v1beta1.GenericOperationMetadat" + + "a\022\035\n\025imported_entity_count\030\002 \001(\003\022$\n\034impo" + + "rted_feature_value_count\030\003 \001(\003\022\031\n\021invali" + + "d_row_count\030\006 \001(\003\"{\n$ExportFeatureValues" + + "OperationMetadata\022S\n\020generic_metadata\030\001 " + + "\001(\01329.google.cloud.aiplatform.v1beta1.Ge" + + "nericOperationMetadata\"~\n\'BatchReadFeatu" + + "reValuesOperationMetadata\022S\n\020generic_met" + + "adata\030\001 \001(\01329.google.cloud.aiplatform.v1" + + "beta1.GenericOperationMetadata\"x\n!Create" + + "EntityTypeOperationMetadata\022S\n\020generic_m" + "etadata\030\001 \001(\01329.google.cloud.aiplatform." - + "v1beta1.GenericOperationMetadata\"{\n$Batc" - + "hCreateFeaturesOperationMetadata\022S\n\020gene" - + "ric_metadata\030\001 \001(\01329.google.cloud.aiplat" - + "form.v1beta1.GenericOperationMetadata2\236(" - + "\n\023FeaturestoreService\022\212\002\n\022CreateFeatures" - + "tore\022:.google.cloud.aiplatform.v1beta1.C" - + "reateFeaturestoreRequest\032\035.google.longru" - + "nning.Operation\"\230\001\202\323\344\223\002F\"6/v1beta1/{pare" - + "nt=projects/*/locations/*}/featurestores" - + ":\014featurestore\332A\023parent,featurestore\312A3\n" - + "\014Featurestore\022#CreateFeaturestoreOperati" - + "onMetadata\022\300\001\n\017GetFeaturestore\0227.google." - + "cloud.aiplatform.v1beta1.GetFeaturestore" - + "Request\032-.google.cloud.aiplatform.v1beta" - + "1.Featurestore\"E\202\323\344\223\0028\0226/v1beta1/{name=p" - + "rojects/*/locations/*/featurestores/*}\332A" - + "\004name\022\323\001\n\021ListFeaturestores\0229.google.clo" - + "ud.aiplatform.v1beta1.ListFeaturestoresR" - + "equest\032:.google.cloud.aiplatform.v1beta1" - + ".ListFeaturestoresResponse\"G\202\323\344\223\0028\0226/v1b" - + "eta1/{parent=projects/*/locations/*}/fea" - + "turestores\332A\006parent\022\234\002\n\022UpdateFeaturesto" - + "re\022:.google.cloud.aiplatform.v1beta1.Upd" - + "ateFeaturestoreRequest\032\035.google.longrunn" - + "ing.Operation\"\252\001\202\323\344\223\002S2C/v1beta1/{featur" - + "estore.name=projects/*/locations/*/featu" - + "restores/*}:\014featurestore\332A\030featurestore" - + ",update_mask\312A3\n\014Featurestore\022#UpdateFea" - + "turestoreOperationMetadata\022\351\001\n\022DeleteFea" - + "turestore\022:.google.cloud.aiplatform.v1be" - + "ta1.DeleteFeaturestoreRequest\032\035.google.l" - + "ongrunning.Operation\"x\202\323\344\223\0028*6/v1beta1/{" - + "name=projects/*/locations/*/featurestore" - + "s/*}\332A\004name\312A0\n\025google.protobuf.Empty\022\027D" - + "eleteOperationMetadata\022\216\002\n\020CreateEntityT" - + "ype\0228.google.cloud.aiplatform.v1beta1.Cr" - + "eateEntityTypeRequest\032\035.google.longrunni" - + "ng.Operation\"\240\001\202\323\344\223\002S\"D/v1beta1/{parent=" - + "projects/*/locations/*/featurestores/*}/" - + "entityTypes:\013entity_type\332A\022parent,entity" - + "_type\312A/\n\nEntityType\022!CreateEntityTypeOp" - + "erationMetadata\022\310\001\n\rGetEntityType\0225.goog" - + "le.cloud.aiplatform.v1beta1.GetEntityTyp" - + "eRequest\032+.google.cloud.aiplatform.v1bet" - + "a1.EntityType\"S\202\323\344\223\002F\022D/v1beta1/{name=pr" - + "ojects/*/locations/*/featurestores/*/ent" - + "ityTypes/*}\332A\004name\022\333\001\n\017ListEntityTypes\0227" - + ".google.cloud.aiplatform.v1beta1.ListEnt" - + "ityTypesRequest\0328.google.cloud.aiplatfor" - + "m.v1beta1.ListEntityTypesResponse\"U\202\323\344\223\002" - + "F\022D/v1beta1/{parent=projects/*/locations" - + "/*/featurestores/*}/entityTypes\332A\006parent" - + "\022\372\001\n\020UpdateEntityType\0228.google.cloud.aip" - + "latform.v1beta1.UpdateEntityTypeRequest\032" - + "+.google.cloud.aiplatform.v1beta1.Entity" - + "Type\"\177\202\323\344\223\002_2P/v1beta1/{entity_type.name" - + "=projects/*/locations/*/featurestores/*/" - + "entityTypes/*}:\013entity_type\332A\027entity_typ" - + "e,update_mask\022\364\001\n\020DeleteEntityType\0228.goo" - + "gle.cloud.aiplatform.v1beta1.DeleteEntit" - + "yTypeRequest\032\035.google.longrunning.Operat" - + "ion\"\206\001\202\323\344\223\002F*D/v1beta1/{name=projects/*/" - + "locations/*/featurestores/*/entityTypes/" - + "*}\332A\004name\312A0\n\025google.protobuf.Empty\022\027Del" - + "eteOperationMetadata\022\205\002\n\rCreateFeature\0225" - + ".google.cloud.aiplatform.v1beta1.CreateF" - + "eatureRequest\032\035.google.longrunning.Opera" - + "tion\"\235\001\202\323\344\223\002Z\"O/v1beta1/{parent=projects" - + "/*/locations/*/featurestores/*/entityTyp" - + "es/*}/features:\007feature\332A\016parent,feature" - + "\312A)\n\007Feature\022\036CreateFeatureOperationMeta" - + "data\022\262\002\n\023BatchCreateFeatures\022;.google.cl" - + "oud.aiplatform.v1beta1.BatchCreateFeatur" - + "esRequest\032\035.google.longrunning.Operation" - + "\"\276\001\202\323\344\223\002`\"[/v1beta1/{parent=projects/*/l" + + "v1beta1.GenericOperationMetadata\"u\n\036Crea" + + "teFeatureOperationMetadata\022S\n\020generic_me" + + "tadata\030\001 \001(\01329.google.cloud.aiplatform.v" + + "1beta1.GenericOperationMetadata\"{\n$Batch" + + "CreateFeaturesOperationMetadata\022S\n\020gener" + + "ic_metadata\030\001 \001(\01329.google.cloud.aiplatf" + + "orm.v1beta1.GenericOperationMetadata2\236(\n" + + "\023FeaturestoreService\022\212\002\n\022CreateFeaturest" + + "ore\022:.google.cloud.aiplatform.v1beta1.Cr" + + "eateFeaturestoreRequest\032\035.google.longrun" + + "ning.Operation\"\230\001\202\323\344\223\002F\"6/v1beta1/{paren" + + "t=projects/*/locations/*}/featurestores:" + + "\014featurestore\332A\023parent,featurestore\312A3\n\014" + + "Featurestore\022#CreateFeaturestoreOperatio" + + "nMetadata\022\300\001\n\017GetFeaturestore\0227.google.c" + + "loud.aiplatform.v1beta1.GetFeaturestoreR" + + "equest\032-.google.cloud.aiplatform.v1beta1" + + ".Featurestore\"E\202\323\344\223\0028\0226/v1beta1/{name=pr" + + "ojects/*/locations/*/featurestores/*}\332A\004" + + "name\022\323\001\n\021ListFeaturestores\0229.google.clou" + + "d.aiplatform.v1beta1.ListFeaturestoresRe" + + "quest\032:.google.cloud.aiplatform.v1beta1." + + "ListFeaturestoresResponse\"G\202\323\344\223\0028\0226/v1be" + + "ta1/{parent=projects/*/locations/*}/feat" + + "urestores\332A\006parent\022\234\002\n\022UpdateFeaturestor" + + "e\022:.google.cloud.aiplatform.v1beta1.Upda" + + "teFeaturestoreRequest\032\035.google.longrunni" + + "ng.Operation\"\252\001\202\323\344\223\002S2C/v1beta1/{feature" + + "store.name=projects/*/locations/*/featur" + + "estores/*}:\014featurestore\332A\030featurestore," + + "update_mask\312A3\n\014Featurestore\022#UpdateFeat" + + "urestoreOperationMetadata\022\351\001\n\022DeleteFeat" + + "urestore\022:.google.cloud.aiplatform.v1bet" + + "a1.DeleteFeaturestoreRequest\032\035.google.lo" + + "ngrunning.Operation\"x\202\323\344\223\0028*6/v1beta1/{n" + + "ame=projects/*/locations/*/featurestores" + + "/*}\332A\004name\312A0\n\025google.protobuf.Empty\022\027De" + + "leteOperationMetadata\022\216\002\n\020CreateEntityTy" + + "pe\0228.google.cloud.aiplatform.v1beta1.Cre" + + "ateEntityTypeRequest\032\035.google.longrunnin" + + "g.Operation\"\240\001\202\323\344\223\002S\"D/v1beta1/{parent=p" + + "rojects/*/locations/*/featurestores/*}/e" + + "ntityTypes:\013entity_type\332A\022parent,entity_" + + "type\312A/\n\nEntityType\022!CreateEntityTypeOpe" + + "rationMetadata\022\310\001\n\rGetEntityType\0225.googl" + + "e.cloud.aiplatform.v1beta1.GetEntityType" + + "Request\032+.google.cloud.aiplatform.v1beta" + + "1.EntityType\"S\202\323\344\223\002F\022D/v1beta1/{name=pro" + + "jects/*/locations/*/featurestores/*/enti" + + "tyTypes/*}\332A\004name\022\333\001\n\017ListEntityTypes\0227." + + "google.cloud.aiplatform.v1beta1.ListEnti" + + "tyTypesRequest\0328.google.cloud.aiplatform" + + ".v1beta1.ListEntityTypesResponse\"U\202\323\344\223\002F" + + "\022D/v1beta1/{parent=projects/*/locations/" + + "*/featurestores/*}/entityTypes\332A\006parent\022" + + "\372\001\n\020UpdateEntityType\0228.google.cloud.aipl" + + "atform.v1beta1.UpdateEntityTypeRequest\032+" + + ".google.cloud.aiplatform.v1beta1.EntityT" + + "ype\"\177\202\323\344\223\002_2P/v1beta1/{entity_type.name=" + + "projects/*/locations/*/featurestores/*/e" + + "ntityTypes/*}:\013entity_type\332A\027entity_type" + + ",update_mask\022\364\001\n\020DeleteEntityType\0228.goog" + + "le.cloud.aiplatform.v1beta1.DeleteEntity" + + "TypeRequest\032\035.google.longrunning.Operati" + + "on\"\206\001\202\323\344\223\002F*D/v1beta1/{name=projects/*/l" + "ocations/*/featurestores/*/entityTypes/*" - + "}/features:batchCreate:\001*\332A\017parent,reque" - + "sts\312AC\n\033BatchCreateFeaturesResponse\022$Bat" - + "chCreateFeaturesOperationMetadata\022\312\001\n\nGe" - + "tFeature\0222.google.cloud.aiplatform.v1bet" - + "a1.GetFeatureRequest\032(.google.cloud.aipl" - + "atform.v1beta1.Feature\"^\202\323\344\223\002Q\022O/v1beta1" - + "/{name=projects/*/locations/*/featuresto" - + "res/*/entityTypes/*/features/*}\332A\004name\022\335" - + "\001\n\014ListFeatures\0224.google.cloud.aiplatfor" - + "m.v1beta1.ListFeaturesRequest\0325.google.c" - + "loud.aiplatform.v1beta1.ListFeaturesResp" - + "onse\"`\202\323\344\223\002Q\022O/v1beta1/{parent=projects/" + + "}\332A\004name\312A0\n\025google.protobuf.Empty\022\027Dele" + + "teOperationMetadata\022\205\002\n\rCreateFeature\0225." + + "google.cloud.aiplatform.v1beta1.CreateFe" + + "atureRequest\032\035.google.longrunning.Operat" + + "ion\"\235\001\202\323\344\223\002Z\"O/v1beta1/{parent=projects/" + "*/locations/*/featurestores/*/entityType" - + "s/*}/features\332A\006parent\022\360\001\n\rUpdateFeature" - + "\0225.google.cloud.aiplatform.v1beta1.Updat" - + "eFeatureRequest\032(.google.cloud.aiplatfor" - + "m.v1beta1.Feature\"~\202\323\344\223\002b2W/v1beta1/{fea" - + "ture.name=projects/*/locations/*/feature" - + "stores/*/entityTypes/*/features/*}:\007feat" - + "ure\332A\023feature,update_mask\022\371\001\n\rDeleteFeat" - + "ure\0225.google.cloud.aiplatform.v1beta1.De" - + "leteFeatureRequest\032\035.google.longrunning." - + "Operation\"\221\001\202\323\344\223\002Q*O/v1beta1/{name=proje" - + "cts/*/locations/*/featurestores/*/entity" - + "Types/*/features/*}\332A\004name\312A0\n\025google.pr" - + "otobuf.Empty\022\027DeleteOperationMetadata\022\262\002" - + "\n\023ImportFeatureValues\022;.google.cloud.aip" - + "latform.v1beta1.ImportFeatureValuesReque" - + "st\032\035.google.longrunning.Operation\"\276\001\202\323\344\223" - + "\002d\"_/v1beta1/{entity_type=projects/*/loc" - + "ations/*/featurestores/*/entityTypes/*}:" - + "importFeatureValues:\001*\332A\013entity_type\312AC\n" - + "\033ImportFeatureValuesResponse\022$ImportFeat" - + "ureValuesOperationMetadata\022\265\002\n\026BatchRead" - + "FeatureValues\022>.google.cloud.aiplatform." - + "v1beta1.BatchReadFeatureValuesRequest\032\035." - + "google.longrunning.Operation\"\273\001\202\323\344\223\002Z\"U/" - + "v1beta1/{featurestore=projects/*/locatio" - + "ns/*/featurestores/*}:batchReadFeatureVa" - + "lues:\001*\332A\014featurestore\312AI\n\036BatchReadFeat" - + "ureValuesResponse\022\'BatchReadFeatureValue" - + "sOperationMetadata\022\262\002\n\023ExportFeatureValu" - + "es\022;.google.cloud.aiplatform.v1beta1.Exp" - + "ortFeatureValuesRequest\032\035.google.longrun" - + "ning.Operation\"\276\001\202\323\344\223\002d\"_/v1beta1/{entit" - + "y_type=projects/*/locations/*/featuresto" - + "res/*/entityTypes/*}:exportFeatureValues" - + ":\001*\332A\013entity_type\312AC\n\033ExportFeatureValue" - + "sResponse\022$ExportFeatureValuesOperationM" - + "etadata\022\335\001\n\016SearchFeatures\0226.google.clou" - + "d.aiplatform.v1beta1.SearchFeaturesReque" - + "st\0327.google.cloud.aiplatform.v1beta1.Sea" - + "rchFeaturesResponse\"Z\202\323\344\223\002I\022G/v1beta1/{l" - + "ocation=projects/*/locations/*}/features" - + "tores:searchFeatures\332A\010location\032M\312A\031aipl" - + "atform.googleapis.com\322A.https://www.goog" - + "leapis.com/auth/cloud-platformB\214\001\n#com.g" - + "oogle.cloud.aiplatform.v1beta1B\030Features" - + "toreServiceProtoP\001ZIgoogle.golang.org/ge" - + "nproto/googleapis/cloud/aiplatform/v1bet" - + "a1;aiplatformb\006proto3" + + "s/*}/features:\007feature\332A\016parent,feature\312" + + "A)\n\007Feature\022\036CreateFeatureOperationMetad" + + "ata\022\262\002\n\023BatchCreateFeatures\022;.google.clo" + + "ud.aiplatform.v1beta1.BatchCreateFeature" + + "sRequest\032\035.google.longrunning.Operation\"" + + "\276\001\202\323\344\223\002`\"[/v1beta1/{parent=projects/*/lo" + + "cations/*/featurestores/*/entityTypes/*}" + + "/features:batchCreate:\001*\332A\017parent,reques" + + "ts\312AC\n\033BatchCreateFeaturesResponse\022$Batc" + + "hCreateFeaturesOperationMetadata\022\312\001\n\nGet" + + "Feature\0222.google.cloud.aiplatform.v1beta" + + "1.GetFeatureRequest\032(.google.cloud.aipla" + + "tform.v1beta1.Feature\"^\202\323\344\223\002Q\022O/v1beta1/" + + "{name=projects/*/locations/*/featurestor" + + "es/*/entityTypes/*/features/*}\332A\004name\022\335\001" + + "\n\014ListFeatures\0224.google.cloud.aiplatform" + + ".v1beta1.ListFeaturesRequest\0325.google.cl" + + "oud.aiplatform.v1beta1.ListFeaturesRespo" + + "nse\"`\202\323\344\223\002Q\022O/v1beta1/{parent=projects/*" + + "/locations/*/featurestores/*/entityTypes" + + "/*}/features\332A\006parent\022\360\001\n\rUpdateFeature\022" + + "5.google.cloud.aiplatform.v1beta1.Update" + + "FeatureRequest\032(.google.cloud.aiplatform" + + ".v1beta1.Feature\"~\202\323\344\223\002b2W/v1beta1/{feat" + + "ure.name=projects/*/locations/*/features" + + "tores/*/entityTypes/*/features/*}:\007featu" + + "re\332A\023feature,update_mask\022\371\001\n\rDeleteFeatu" + + "re\0225.google.cloud.aiplatform.v1beta1.Del" + + "eteFeatureRequest\032\035.google.longrunning.O" + + "peration\"\221\001\202\323\344\223\002Q*O/v1beta1/{name=projec" + + "ts/*/locations/*/featurestores/*/entityT" + + "ypes/*/features/*}\332A\004name\312A0\n\025google.pro" + + "tobuf.Empty\022\027DeleteOperationMetadata\022\262\002\n" + + "\023ImportFeatureValues\022;.google.cloud.aipl" + + "atform.v1beta1.ImportFeatureValuesReques" + + "t\032\035.google.longrunning.Operation\"\276\001\202\323\344\223\002" + + "d\"_/v1beta1/{entity_type=projects/*/loca" + + "tions/*/featurestores/*/entityTypes/*}:i" + + "mportFeatureValues:\001*\332A\013entity_type\312AC\n\033" + + "ImportFeatureValuesResponse\022$ImportFeatu" + + "reValuesOperationMetadata\022\265\002\n\026BatchReadF" + + "eatureValues\022>.google.cloud.aiplatform.v" + + "1beta1.BatchReadFeatureValuesRequest\032\035.g" + + "oogle.longrunning.Operation\"\273\001\202\323\344\223\002Z\"U/v" + + "1beta1/{featurestore=projects/*/location" + + "s/*/featurestores/*}:batchReadFeatureVal" + + "ues:\001*\332A\014featurestore\312AI\n\036BatchReadFeatu" + + "reValuesResponse\022\'BatchReadFeatureValues" + + "OperationMetadata\022\262\002\n\023ExportFeatureValue" + + "s\022;.google.cloud.aiplatform.v1beta1.Expo" + + "rtFeatureValuesRequest\032\035.google.longrunn" + + "ing.Operation\"\276\001\202\323\344\223\002d\"_/v1beta1/{entity" + + "_type=projects/*/locations/*/featurestor" + + "es/*/entityTypes/*}:exportFeatureValues:" + + "\001*\332A\013entity_type\312AC\n\033ExportFeatureValues" + + "Response\022$ExportFeatureValuesOperationMe" + + "tadata\022\335\001\n\016SearchFeatures\0226.google.cloud" + + ".aiplatform.v1beta1.SearchFeaturesReques" + + "t\0327.google.cloud.aiplatform.v1beta1.Sear" + + "chFeaturesResponse\"Z\202\323\344\223\002I\022G/v1beta1/{lo" + + "cation=projects/*/locations/*}/featurest" + + "ores:searchFeatures\332A\010location\032M\312A\031aipla" + + "tform.googleapis.com\322A.https://www.googl" + + "eapis.com/auth/cloud-platformB\365\001\n#com.go" + + "ogle.cloud.aiplatform.v1beta1B\030Featurest" + + "oreServiceProtoP\001ZIgoogle.golang.org/gen" + + "proto/googleapis/cloud/aiplatform/v1beta" + + "1;aiplatform\252\002\037Google.Cloud.AIPlatform.V" + + "1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1" + + "\352\002\"Google::Cloud::AIPlatform::V1beta1b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -623,12 +636,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_descriptor, new java.lang.String[] { - "CsvReadInstances", "Featurestore", "Destination", "EntityTypeSpecs", "ReadOption", + "CsvReadInstances", + "BigqueryReadInstances", + "Featurestore", + "Destination", + "PassThroughFields", + "EntityTypeSpecs", + "ReadOption", }); - internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_EntityTypeSpec_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_PassThroughField_descriptor = internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_descriptor .getNestedTypes() .get(0); + internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_PassThroughField_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_PassThroughField_descriptor, + new java.lang.String[] { + "FieldName", + }); + internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_EntityTypeSpec_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_descriptor + .getNestedTypes() + .get(1); internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_EntityTypeSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesRequest_EntityTypeSpec_descriptor, diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobProto.java index fac475138..8ef009b03 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobProto.java @@ -81,11 +81,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "form.googleapis.com/HyperparameterTuning" + "Job\022\\projects/{project}/locations/{locat" + "ion}/hyperparameterTuningJobs/{hyperpara" - + "meter_tuning_job}B\220\001\n#com.google.cloud.a" + + "meter_tuning_job}B\371\001\n#com.google.cloud.a" + "iplatform.v1beta1B\034HyperparameterTuningJ" + "obProtoP\001ZIgoogle.golang.org/genproto/go" + "ogleapis/cloud/aiplatform/v1beta1;aiplat" - + "formb\006proto3" + + "form\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002" + + "\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Googl" + + "e::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointProto.java index d536f0b63..c73245c57 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointProto.java @@ -81,7 +81,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:u\352Ar\n\'aiplatf" + "orm.googleapis.com/IndexEndpoint\022Gprojec" + "ts/{project}/locations/{location}/indexE" - + "ndpoints/{index_endpoint}\"\224\004\n\rDeployedIn" + + "ndpoints/{index_endpoint}\"\265\004\n\rDeployedIn" + "dex\022\017\n\002id\030\001 \001(\tB\003\340A\002\0226\n\005index\030\002 \001(\tB\'\340A\002" + "\372A!\n\037aiplatform.googleapis.com/Index\022\024\n\014" + "display_name\030\003 \001(\t\0224\n\013create_time\030\004 \001(\0132" @@ -95,16 +95,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ss_logging\030\010 \001(\010B\003\340A\001\022a\n\032deployed_index_" + "auth_config\030\t \001(\01328.google.cloud.aiplatf" + "orm.v1beta1.DeployedIndexAuthConfigB\003\340A\001" - + "\"\263\001\n\027DeployedIndexAuthConfig\022\\\n\rauth_pro" - + "vider\030\001 \001(\0132E.google.cloud.aiplatform.v1" - + "beta1.DeployedIndexAuthConfig.AuthProvid" - + "er\032:\n\014AuthProvider\022\021\n\taudiences\030\001 \003(\t\022\027\n" - + "\017allowed_issuers\030\002 \003(\t\"8\n\025IndexPrivateEn" - + "dpoints\022\037\n\022match_grpc_address\030\001 \001(\tB\003\340A\003" - + "B\206\001\n#com.google.cloud.aiplatform.v1beta1" - + "B\022IndexEndpointProtoP\001ZIgoogle.golang.or" - + "g/genproto/googleapis/cloud/aiplatform/v" - + "1beta1;aiplatformb\006proto3" + + "\022\037\n\022reserved_ip_ranges\030\n \003(\tB\003\340A\001\"\263\001\n\027De" + + "ployedIndexAuthConfig\022\\\n\rauth_provider\030\001" + + " \001(\0132E.google.cloud.aiplatform.v1beta1.D" + + "eployedIndexAuthConfig.AuthProvider\032:\n\014A" + + "uthProvider\022\021\n\taudiences\030\001 \003(\t\022\027\n\017allowe" + + "d_issuers\030\002 \003(\t\"8\n\025IndexPrivateEndpoints" + + "\022\037\n\022match_grpc_address\030\001 \001(\tB\003\340A\003B\357\001\n#co" + + "m.google.cloud.aiplatform.v1beta1B\022Index" + + "EndpointProtoP\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::V1beta1b\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -158,6 +162,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AutomaticResources", "EnableAccessLogging", "DeployedIndexAuthConfig", + "ReservedIpRanges", }); internal_static_google_cloud_aiplatform_v1beta1_DeployedIndexAuthConfig_descriptor = getDescriptor().getMessageTypes().get(2); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceProto.java index f6819ce02..e3f3b38de 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexEndpointServiceProto.java @@ -128,67 +128,71 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "2..google.cloud.aiplatform.v1beta1.Deplo" + "yedIndexB\003\340A\002\"]\n\023DeployIndexResponse\022F\n\016" + "deployed_index\030\001 \001(\0132..google.cloud.aipl" - + "atform.v1beta1.DeployedIndex\"s\n\034DeployIn" - + "dexOperationMetadata\022S\n\020generic_metadata" - + "\030\001 \001(\01329.google.cloud.aiplatform.v1beta1" - + ".GenericOperationMetadata\"\177\n\024UndeployInd" - + "exRequest\022G\n\016index_endpoint\030\001 \001(\tB/\340A\002\372A" - + ")\n\'aiplatform.googleapis.com/IndexEndpoi" - + "nt\022\036\n\021deployed_index_id\030\002 \001(\tB\003\340A\002\"\027\n\025Un" - + "deployIndexResponse\"u\n\036UndeployIndexOper" - + "ationMetadata\022S\n\020generic_metadata\030\001 \001(\0132" - + "9.google.cloud.aiplatform.v1beta1.Generi" - + "cOperationMetadata2\304\016\n\024IndexEndpointServ" - + "ice\022\223\002\n\023CreateIndexEndpoint\022;.google.clo" - + "ud.aiplatform.v1beta1.CreateIndexEndpoin" - + "tRequest\032\035.google.longrunning.Operation\"" - + "\237\001\202\323\344\223\002I\"7/v1beta1/{parent=projects/*/lo" - + "cations/*}/indexEndpoints:\016index_endpoin" - + "t\332A\025parent,index_endpoint\312A5\n\rIndexEndpo" - + "int\022$CreateIndexEndpointOperationMetadat" - + "a\022\304\001\n\020GetIndexEndpoint\0228.google.cloud.ai" - + "platform.v1beta1.GetIndexEndpointRequest" - + "\032..google.cloud.aiplatform.v1beta1.Index" - + "Endpoint\"F\202\323\344\223\0029\0227/v1beta1/{name=project" - + "s/*/locations/*/indexEndpoints/*}\332A\004name" - + "\022\327\001\n\022ListIndexEndpoints\022:.google.cloud.a" - + "iplatform.v1beta1.ListIndexEndpointsRequ" - + "est\032;.google.cloud.aiplatform.v1beta1.Li" - + "stIndexEndpointsResponse\"H\202\323\344\223\0029\0227/v1bet" - + "a1/{parent=projects/*/locations/*}/index" - + "Endpoints\332A\006parent\022\377\001\n\023UpdateIndexEndpoi" - + "nt\022;.google.cloud.aiplatform.v1beta1.Upd" - + "ateIndexEndpointRequest\032..google.cloud.a" - + "iplatform.v1beta1.IndexEndpoint\"{\202\323\344\223\002X2" - + "F/v1beta1/{index_endpoint.name=projects/" - + "*/locations/*/indexEndpoints/*}:\016index_e" - + "ndpoint\332A\032index_endpoint,update_mask\022\354\001\n" - + "\023DeleteIndexEndpoint\022;.google.cloud.aipl" - + "atform.v1beta1.DeleteIndexEndpointReques" - + "t\032\035.google.longrunning.Operation\"y\202\323\344\223\0029" - + "*7/v1beta1/{name=projects/*/locations/*/" - + "indexEndpoints/*}\332A\004name\312A0\n\025google.prot" - + "obuf.Empty\022\027DeleteOperationMetadata\022\222\002\n\013" - + "DeployIndex\0223.google.cloud.aiplatform.v1" - + "beta1.DeployIndexRequest\032\035.google.longru" - + "nning.Operation\"\256\001\202\323\344\223\002R\"M/v1beta1/{inde" - + "x_endpoint=projects/*/locations/*/indexE" - + "ndpoints/*}:deployIndex:\001*\332A\035index_endpo" - + "int,deployed_index\312A3\n\023DeployIndexRespon" - + "se\022\034DeployIndexOperationMetadata\022\237\002\n\rUnd" - + "eployIndex\0225.google.cloud.aiplatform.v1b" - + "eta1.UndeployIndexRequest\032\035.google.longr" - + "unning.Operation\"\267\001\202\323\344\223\002T\"O/v1beta1/{ind" - + "ex_endpoint=projects/*/locations/*/index" - + "Endpoints/*}:undeployIndex:\001*\332A index_en" - + "dpoint,deployed_index_id\312A7\n\025UndeployInd" - + "exResponse\022\036UndeployIndexOperationMetada" - + "ta\032M\312A\031aiplatform.googleapis.com\322A.https" - + "://www.googleapis.com/auth/cloud-platfor" - + "mB\215\001\n#com.google.cloud.aiplatform.v1beta" - + "1B\031IndexEndpointServiceProtoP\001ZIgoogle.g" - + "olang.org/genproto/googleapis/cloud/aipl" - + "atform/v1beta1;aiplatformb\006proto3" + + "atform.v1beta1.DeployedIndex\"\216\001\n\034DeployI" + + "ndexOperationMetadata\022S\n\020generic_metadat" + + "a\030\001 \001(\01329.google.cloud.aiplatform.v1beta" + + "1.GenericOperationMetadata\022\031\n\021deployed_i" + + "ndex_id\030\002 \001(\t\"\177\n\024UndeployIndexRequest\022G\n" + + "\016index_endpoint\030\001 \001(\tB/\340A\002\372A)\n\'aiplatfor" + + "m.googleapis.com/IndexEndpoint\022\036\n\021deploy" + + "ed_index_id\030\002 \001(\tB\003\340A\002\"\027\n\025UndeployIndexR" + + "esponse\"u\n\036UndeployIndexOperationMetadat" + + "a\022S\n\020generic_metadata\030\001 \001(\01329.google.clo" + + "ud.aiplatform.v1beta1.GenericOperationMe" + + "tadata2\304\016\n\024IndexEndpointService\022\223\002\n\023Crea" + + "teIndexEndpoint\022;.google.cloud.aiplatfor" + + "m.v1beta1.CreateIndexEndpointRequest\032\035.g" + + "oogle.longrunning.Operation\"\237\001\202\323\344\223\002I\"7/v" + + "1beta1/{parent=projects/*/locations/*}/i" + + "ndexEndpoints:\016index_endpoint\332A\025parent,i" + + "ndex_endpoint\312A5\n\rIndexEndpoint\022$CreateI" + + "ndexEndpointOperationMetadata\022\304\001\n\020GetInd" + + "exEndpoint\0228.google.cloud.aiplatform.v1b" + + "eta1.GetIndexEndpointRequest\032..google.cl" + + "oud.aiplatform.v1beta1.IndexEndpoint\"F\202\323" + + "\344\223\0029\0227/v1beta1/{name=projects/*/location" + + "s/*/indexEndpoints/*}\332A\004name\022\327\001\n\022ListInd" + + "exEndpoints\022:.google.cloud.aiplatform.v1" + + "beta1.ListIndexEndpointsRequest\032;.google" + + ".cloud.aiplatform.v1beta1.ListIndexEndpo" + + "intsResponse\"H\202\323\344\223\0029\0227/v1beta1/{parent=p" + + "rojects/*/locations/*}/indexEndpoints\332A\006" + + "parent\022\377\001\n\023UpdateIndexEndpoint\022;.google." + + "cloud.aiplatform.v1beta1.UpdateIndexEndp" + + "ointRequest\032..google.cloud.aiplatform.v1" + + "beta1.IndexEndpoint\"{\202\323\344\223\002X2F/v1beta1/{i" + + "ndex_endpoint.name=projects/*/locations/" + + "*/indexEndpoints/*}:\016index_endpoint\332A\032in" + + "dex_endpoint,update_mask\022\354\001\n\023DeleteIndex" + + "Endpoint\022;.google.cloud.aiplatform.v1bet" + + "a1.DeleteIndexEndpointRequest\032\035.google.l" + + "ongrunning.Operation\"y\202\323\344\223\0029*7/v1beta1/{" + + "name=projects/*/locations/*/indexEndpoin" + + "ts/*}\332A\004name\312A0\n\025google.protobuf.Empty\022\027" + + "DeleteOperationMetadata\022\222\002\n\013DeployIndex\022" + + "3.google.cloud.aiplatform.v1beta1.Deploy" + + "IndexRequest\032\035.google.longrunning.Operat" + + "ion\"\256\001\202\323\344\223\002R\"M/v1beta1/{index_endpoint=p" + + "rojects/*/locations/*/indexEndpoints/*}:" + + "deployIndex:\001*\332A\035index_endpoint,deployed" + + "_index\312A3\n\023DeployIndexResponse\022\034DeployIn" + + "dexOperationMetadata\022\237\002\n\rUndeployIndex\0225" + + ".google.cloud.aiplatform.v1beta1.Undeplo" + + "yIndexRequest\032\035.google.longrunning.Opera" + + "tion\"\267\001\202\323\344\223\002T\"O/v1beta1/{index_endpoint=" + + "projects/*/locations/*/indexEndpoints/*}" + + ":undeployIndex:\001*\332A index_endpoint,deplo" + + "yed_index_id\312A7\n\025UndeployIndexResponse\022\036" + + "UndeployIndexOperationMetadata\032M\312A\031aipla" + + "tform.googleapis.com\322A.https://www.googl" + + "eapis.com/auth/cloud-platformB\366\001\n#com.go" + + "ogle.cloud.aiplatform.v1beta1B\031IndexEndp" + + "ointServiceProtoP\001ZIgoogle.golang.org/ge" + + "nproto/googleapis/cloud/aiplatform/v1bet" + + "a1;aiplatform\252\002\037Google.Cloud.AIPlatform." + + "V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta" + + "1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006" + + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -281,7 +285,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_DeployIndexOperationMetadata_descriptor, new java.lang.String[] { - "GenericMetadata", + "GenericMetadata", "DeployedIndexId", }); internal_static_google_cloud_aiplatform_v1beta1_UndeployIndexRequest_descriptor = getDescriptor().getMessageTypes().get(10); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexProto.java index 31db89f33..767d8eb86 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexProto.java @@ -65,10 +65,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + "\001:]\352AZ\n\037aiplatform.googleapis.com/Index\022" + "7projects/{project}/locations/{location}" - + "/indexes/{index}B~\n#com.google.cloud.aip" - + "latform.v1beta1B\nIndexProtoP\001ZIgoogle.go" - + "lang.org/genproto/googleapis/cloud/aipla" - + "tform/v1beta1;aiplatformb\006proto3" + + "/indexes/{index}B\347\001\n#com.google.cloud.ai" + + "platform.v1beta1B\nIndexProtoP\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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceProto.java index 12859a37c..8ffbd2da3 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexServiceProto.java @@ -168,10 +168,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gle.protobuf.Empty\022\027DeleteOperationMetad" + "ata\032M\312A\031aiplatform.googleapis.com\322A.http" + "s://www.googleapis.com/auth/cloud-platfo" - + "rmB\205\001\n#com.google.cloud.aiplatform.v1bet" + + "rmB\356\001\n#com.google.cloud.aiplatform.v1bet" + "a1B\021IndexServiceProtoP\001ZIgoogle.golang.o" + "rg/genproto/googleapis/cloud/aiplatform/" - + "v1beta1;aiplatformb\006proto3" + + "v1beta1;aiplatform\252\002\037Google.Cloud.AIPlat" + + "form.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V" + + "1beta1\352\002\"Google::Cloud::AIPlatform::V1be" + + "ta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IoProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IoProto.java index 2a7f6dcac..1d1457a6d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IoProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IoProto.java @@ -90,10 +90,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "cs_destination\030\001 \001(\0132/.google.cloud.aipl" + "atform.v1beta1.GcsDestinationB\003\340A\002\"7\n\034Co" + "ntainerRegistryDestination\022\027\n\noutput_uri" - + "\030\001 \001(\tB\003\340A\002B{\n#com.google.cloud.aiplatfo" - + "rm.v1beta1B\007IoProtoP\001ZIgoogle.golang.org" - + "/genproto/googleapis/cloud/aiplatform/v1" - + "beta1;aiplatformb\006proto3" + + "\030\001 \001(\tB\003\340A\002B\344\001\n#com.google.cloud.aiplatf" + + "orm.v1beta1B\007IoProtoP\001ZIgoogle.golang.or" + + "g/genproto/googleapis/cloud/aiplatform/v" + + "1beta1;aiplatform\252\002\037Google.Cloud.AIPlatf" + + "orm.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1" + + "beta1\352\002\"Google::Cloud::AIPlatform::V1bet" + + "a1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceProto.java index 9e8d897d6..dd2263f9d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceProto.java @@ -513,11 +513,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/{name=projects/*/locations/*/modelDeplo" + "ymentMonitoringJobs/*}:resume:\001*\332A\004name\032" + "M\312A\031aiplatform.googleapis.com\322A.https://" - + "www.googleapis.com/auth/cloud-platformB\203" + + "www.googleapis.com/auth/cloud-platformB\354" + "\001\n#com.google.cloud.aiplatform.v1beta1B\017" + "JobServiceProtoP\001ZIgoogle.golang.org/gen" + "proto/googleapis/cloud/aiplatform/v1beta" - + "1;aiplatformb\006proto3" + + "1;aiplatform\252\002\037Google.Cloud.AIPlatform.V" + + "1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1" + + "\352\002\"Google::Cloud::AIPlatform::V1beta1b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/JobStateProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/JobStateProto.java index bc4cd57bc..c5bf1cafe 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/JobStateProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/JobStateProto.java @@ -44,10 +44,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "DED\020\004\022\024\n\020JOB_STATE_FAILED\020\005\022\030\n\024JOB_STATE" + "_CANCELLING\020\006\022\027\n\023JOB_STATE_CANCELLED\020\007\022\024" + "\n\020JOB_STATE_PAUSED\020\010\022\025\n\021JOB_STATE_EXPIRE" - + "D\020\tB\201\001\n#com.google.cloud.aiplatform.v1be" + + "D\020\tB\352\001\n#com.google.cloud.aiplatform.v1be" + "ta1B\rJobStateProtoP\001ZIgoogle.golang.org/" + "genproto/googleapis/cloud/aiplatform/v1b" - + "eta1;aiplatformb\006proto3" + + "eta1;aiplatform\252\002\037Google.Cloud.AIPlatfor" + + "m.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1be" + + "ta1\352\002\"Google::Cloud::AIPlatform::V1beta1" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LineageSubgraphProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LineageSubgraphProto.java index 6577efd95..be553467e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LineageSubgraphProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LineageSubgraphProto.java @@ -54,10 +54,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".cloud.aiplatform.v1beta1.ExecutionB(\372A%" + "\n#aiplatform.googleapis.com/Execution\0226\n" + "\006events\030\003 \003(\0132&.google.cloud.aiplatform." - + "v1beta1.EventB\210\001\n#com.google.cloud.aipla" + + "v1beta1.EventB\361\001\n#com.google.cloud.aipla" + "tform.v1beta1B\024LineageSubgraphProtoP\001ZIg" + "oogle.golang.org/genproto/googleapis/clo" - + "ud/aiplatform/v1beta1;aiplatformb\006proto3" + + "ud/aiplatform/v1beta1;aiplatform\252\002\037Googl" + + "e.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Clou" + + "d\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AI" + + "Platform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesRequest.java index ffee6a8e8..0c89e22ca 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesRequest.java @@ -208,15 +208,27 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The standard list filter.
-   * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
-   * Some examples of using the filter are:
-   *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-   *  * `NOT display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_FAILED"`
+   * Lists the PipelineJobs that match the filter expression. The following
+   * fields are supported:
+   * * `pipeline_name`: Supports `=` and `!=` comparisons.
+   * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+   *   Values must be in RFC 3339 format.
+   * * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+   *   Values must be in RFC 3339 format.
+   * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+   *   Values must be in RFC 3339 format.
+   * * `labels`: Supports key-value equality and key presence.
+   * Filter expressions can be combined together using logical operators
+   * (`AND` & `OR`).
+   * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`.
+   * The syntax to define filter expression is based on
+   * https://google.aip.dev/160.
+   * Examples:
+   * * `create_time>"2021-05-18T00:00:00Z" OR
+   *   update_time>"2020-05-18T00:00:00Z"` PipelineJobs created or updated
+   *   after 2020-05-18 00:00:00 UTC.
+   * * `labels.env = "prod"`
+   *   PipelineJobs with label "env" set to "prod".
    * 
* * string filter = 2; @@ -239,15 +251,27 @@ public java.lang.String getFilter() { * * *
-   * The standard list filter.
-   * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
-   * Some examples of using the filter are:
-   *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-   *  * `NOT display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_FAILED"`
+   * Lists the PipelineJobs that match the filter expression. The following
+   * fields are supported:
+   * * `pipeline_name`: Supports `=` and `!=` comparisons.
+   * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+   *   Values must be in RFC 3339 format.
+   * * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+   *   Values must be in RFC 3339 format.
+   * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+   *   Values must be in RFC 3339 format.
+   * * `labels`: Supports key-value equality and key presence.
+   * Filter expressions can be combined together using logical operators
+   * (`AND` & `OR`).
+   * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`.
+   * The syntax to define filter expression is based on
+   * https://google.aip.dev/160.
+   * Examples:
+   * * `create_time>"2021-05-18T00:00:00Z" OR
+   *   update_time>"2020-05-18T00:00:00Z"` PipelineJobs created or updated
+   *   after 2020-05-18 00:00:00 UTC.
+   * * `labels.env = "prod"`
+   *   PipelineJobs with label "env" set to "prod".
    * 
* * string filter = 2; @@ -910,15 +934,27 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The standard list filter.
-     * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
-     * Some examples of using the filter are:
-     *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-     *  * `NOT display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_FAILED"`
+     * Lists the PipelineJobs that match the filter expression. The following
+     * fields are supported:
+     * * `pipeline_name`: Supports `=` and `!=` comparisons.
+     * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+     *   Values must be in RFC 3339 format.
+     * * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+     *   Values must be in RFC 3339 format.
+     * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+     *   Values must be in RFC 3339 format.
+     * * `labels`: Supports key-value equality and key presence.
+     * Filter expressions can be combined together using logical operators
+     * (`AND` & `OR`).
+     * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`.
+     * The syntax to define filter expression is based on
+     * https://google.aip.dev/160.
+     * Examples:
+     * * `create_time>"2021-05-18T00:00:00Z" OR
+     *   update_time>"2020-05-18T00:00:00Z"` PipelineJobs created or updated
+     *   after 2020-05-18 00:00:00 UTC.
+     * * `labels.env = "prod"`
+     *   PipelineJobs with label "env" set to "prod".
      * 
* * string filter = 2; @@ -940,15 +976,27 @@ public java.lang.String getFilter() { * * *
-     * The standard list filter.
-     * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
-     * Some examples of using the filter are:
-     *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-     *  * `NOT display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_FAILED"`
+     * Lists the PipelineJobs that match the filter expression. The following
+     * fields are supported:
+     * * `pipeline_name`: Supports `=` and `!=` comparisons.
+     * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+     *   Values must be in RFC 3339 format.
+     * * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+     *   Values must be in RFC 3339 format.
+     * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+     *   Values must be in RFC 3339 format.
+     * * `labels`: Supports key-value equality and key presence.
+     * Filter expressions can be combined together using logical operators
+     * (`AND` & `OR`).
+     * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`.
+     * The syntax to define filter expression is based on
+     * https://google.aip.dev/160.
+     * Examples:
+     * * `create_time>"2021-05-18T00:00:00Z" OR
+     *   update_time>"2020-05-18T00:00:00Z"` PipelineJobs created or updated
+     *   after 2020-05-18 00:00:00 UTC.
+     * * `labels.env = "prod"`
+     *   PipelineJobs with label "env" set to "prod".
      * 
* * string filter = 2; @@ -970,15 +1018,27 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-     * The standard list filter.
-     * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
-     * Some examples of using the filter are:
-     *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-     *  * `NOT display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_FAILED"`
+     * Lists the PipelineJobs that match the filter expression. The following
+     * fields are supported:
+     * * `pipeline_name`: Supports `=` and `!=` comparisons.
+     * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+     *   Values must be in RFC 3339 format.
+     * * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+     *   Values must be in RFC 3339 format.
+     * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+     *   Values must be in RFC 3339 format.
+     * * `labels`: Supports key-value equality and key presence.
+     * Filter expressions can be combined together using logical operators
+     * (`AND` & `OR`).
+     * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`.
+     * The syntax to define filter expression is based on
+     * https://google.aip.dev/160.
+     * Examples:
+     * * `create_time>"2021-05-18T00:00:00Z" OR
+     *   update_time>"2020-05-18T00:00:00Z"` PipelineJobs created or updated
+     *   after 2020-05-18 00:00:00 UTC.
+     * * `labels.env = "prod"`
+     *   PipelineJobs with label "env" set to "prod".
      * 
* * string filter = 2; @@ -999,15 +1059,27 @@ public Builder setFilter(java.lang.String value) { * * *
-     * The standard list filter.
-     * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
-     * Some examples of using the filter are:
-     *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-     *  * `NOT display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_FAILED"`
+     * Lists the PipelineJobs that match the filter expression. The following
+     * fields are supported:
+     * * `pipeline_name`: Supports `=` and `!=` comparisons.
+     * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+     *   Values must be in RFC 3339 format.
+     * * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+     *   Values must be in RFC 3339 format.
+     * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+     *   Values must be in RFC 3339 format.
+     * * `labels`: Supports key-value equality and key presence.
+     * Filter expressions can be combined together using logical operators
+     * (`AND` & `OR`).
+     * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`.
+     * The syntax to define filter expression is based on
+     * https://google.aip.dev/160.
+     * Examples:
+     * * `create_time>"2021-05-18T00:00:00Z" OR
+     *   update_time>"2020-05-18T00:00:00Z"` PipelineJobs created or updated
+     *   after 2020-05-18 00:00:00 UTC.
+     * * `labels.env = "prod"`
+     *   PipelineJobs with label "env" set to "prod".
      * 
* * string filter = 2; @@ -1024,15 +1096,27 @@ public Builder clearFilter() { * * *
-     * The standard list filter.
-     * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
-     * Some examples of using the filter are:
-     *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-     *  * `NOT display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_FAILED"`
+     * Lists the PipelineJobs that match the filter expression. The following
+     * fields are supported:
+     * * `pipeline_name`: Supports `=` and `!=` comparisons.
+     * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+     *   Values must be in RFC 3339 format.
+     * * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+     *   Values must be in RFC 3339 format.
+     * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+     *   Values must be in RFC 3339 format.
+     * * `labels`: Supports key-value equality and key presence.
+     * Filter expressions can be combined together using logical operators
+     * (`AND` & `OR`).
+     * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`.
+     * The syntax to define filter expression is based on
+     * https://google.aip.dev/160.
+     * Examples:
+     * * `create_time>"2021-05-18T00:00:00Z" OR
+     *   update_time>"2020-05-18T00:00:00Z"` PipelineJobs created or updated
+     *   after 2020-05-18 00:00:00 UTC.
+     * * `labels.env = "prod"`
+     *   PipelineJobs with label "env" set to "prod".
      * 
* * string filter = 2; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesRequestOrBuilder.java index 1d8c99ffe..4837d76f5 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesRequestOrBuilder.java @@ -58,15 +58,27 @@ public interface ListTrainingPipelinesRequestOrBuilder * * *
-   * The standard list filter.
-   * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
-   * Some examples of using the filter are:
-   *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-   *  * `NOT display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_FAILED"`
+   * Lists the PipelineJobs that match the filter expression. The following
+   * fields are supported:
+   * * `pipeline_name`: Supports `=` and `!=` comparisons.
+   * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+   *   Values must be in RFC 3339 format.
+   * * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+   *   Values must be in RFC 3339 format.
+   * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+   *   Values must be in RFC 3339 format.
+   * * `labels`: Supports key-value equality and key presence.
+   * Filter expressions can be combined together using logical operators
+   * (`AND` & `OR`).
+   * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`.
+   * The syntax to define filter expression is based on
+   * https://google.aip.dev/160.
+   * Examples:
+   * * `create_time>"2021-05-18T00:00:00Z" OR
+   *   update_time>"2020-05-18T00:00:00Z"` PipelineJobs created or updated
+   *   after 2020-05-18 00:00:00 UTC.
+   * * `labels.env = "prod"`
+   *   PipelineJobs with label "env" set to "prod".
    * 
* * string filter = 2; @@ -78,15 +90,27 @@ public interface ListTrainingPipelinesRequestOrBuilder * * *
-   * The standard list filter.
-   * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
-   * Some examples of using the filter are:
-   *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-   *  * `NOT display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_FAILED"`
+   * Lists the PipelineJobs that match the filter expression. The following
+   * fields are supported:
+   * * `pipeline_name`: Supports `=` and `!=` comparisons.
+   * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+   *   Values must be in RFC 3339 format.
+   * * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+   *   Values must be in RFC 3339 format.
+   * * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
+   *   Values must be in RFC 3339 format.
+   * * `labels`: Supports key-value equality and key presence.
+   * Filter expressions can be combined together using logical operators
+   * (`AND` & `OR`).
+   * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`.
+   * The syntax to define filter expression is based on
+   * https://google.aip.dev/160.
+   * Examples:
+   * * `create_time>"2021-05-18T00:00:00Z" OR
+   *   update_time>"2020-05-18T00:00:00Z"` PipelineJobs created or updated
+   *   after 2020-05-18 00:00:00 UTC.
+   * * `labels.env = "prod"`
+   *   PipelineJobs with label "env" set to "prod".
    * 
* * string filter = 2; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineResourcesProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineResourcesProto.java index 4759b2fd1..e2bc28112 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineResourcesProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineResourcesProto.java @@ -90,11 +90,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\001B\003\340A\003\"=\n\010DiskSpec\022\026\n\016boot_disk_type\030" + "\001 \001(\t\022\031\n\021boot_disk_size_gb\030\002 \001(\005\"A\n\025Auto" + "scalingMetricSpec\022\030\n\013metric_name\030\001 \001(\tB\003" - + "\340A\002\022\016\n\006target\030\002 \001(\005B\211\001\n#com.google.cloud" + + "\340A\002\022\016\n\006target\030\002 \001(\005B\362\001\n#com.google.cloud" + ".aiplatform.v1beta1B\025MachineResourcesPro" + "toP\001ZIgoogle.golang.org/genproto/googlea" - + "pis/cloud/aiplatform/v1beta1;aiplatformb" - + "\006proto3" + + "pis/cloud/aiplatform/v1beta1;aiplatform\252" + + "\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037Goog" + + "le\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cl" + + "oud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ManualBatchTuningParametersProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ManualBatchTuningParametersProto.java index bb3cc84a7..eb21c9292 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ManualBatchTuningParametersProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ManualBatchTuningParametersProto.java @@ -45,11 +45,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "loud.aiplatform.v1beta1\032\037google/api/fiel" + "d_behavior.proto\032\034google/api/annotations" + ".proto\"6\n\033ManualBatchTuningParameters\022\027\n" - + "\nbatch_size\030\001 \001(\005B\003\340A\005B\224\001\n#com.google.cl" + + "\nbatch_size\030\001 \001(\005B\003\340A\005B\375\001\n#com.google.cl" + "oud.aiplatform.v1beta1B ManualBatchTunin" + "gParametersProtoP\001ZIgoogle.golang.org/ge" + "nproto/googleapis/cloud/aiplatform/v1bet" - + "a1;aiplatformb\006proto3" + + "a1;aiplatform\252\002\037Google.Cloud.AIPlatform." + + "V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta" + + "1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006" + + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataProto.java index 30ca3af6f..4012772ef 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataProto.java @@ -63,10 +63,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030\001 \001(\003:u\352Ar\n\'aiplatform.googleapis.com/M" + "etadataStore\022Gprojects/{project}/locatio" + "ns/{location}/metadataStores/{metadata_s" - + "tore}B\201\001\n#com.google.cloud.aiplatform.v1" + + "tore}B\352\001\n#com.google.cloud.aiplatform.v1" + "beta1B\rMetadataProtoP\001ZIgoogle.golang.or" + "g/genproto/googleapis/cloud/aiplatform/v" - + "1beta1;aiplatformb\006proto3" + + "1beta1;aiplatform\252\002\037Google.Cloud.AIPlatf" + + "orm.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1" + + "beta1\352\002\"Google::Cloud::AIPlatform::V1bet" + + "a1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchemaProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchemaProto.java index 65871a22a..37f25b6ac 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchemaProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataSchemaProto.java @@ -58,10 +58,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "eapis.com/MetadataSchema\022iprojects/{proj" + "ect}/locations/{location}/metadataStores" + "/{metadata_store}/metadataSchemas/{metad" - + "ata_schema}B\207\001\n#com.google.cloud.aiplatf" + + "ata_schema}B\360\001\n#com.google.cloud.aiplatf" + "orm.v1beta1B\023MetadataSchemaProtoP\001ZIgoog" + "le.golang.org/genproto/googleapis/cloud/" - + "aiplatform/v1beta1;aiplatformb\006proto3" + + "aiplatform/v1beta1;aiplatform\252\002\037Google.C" + + "loud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\A" + + "IPlatform\\V1beta1\352\002\"Google::Cloud::AIPla" + + "tform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceProto.java index 04f0b3244..8f86af89c 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetadataServiceProto.java @@ -75,6 +75,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_UpdateArtifactRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_UpdateArtifactRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeleteArtifactRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeleteArtifactRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PurgeArtifactsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PurgeArtifactsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PurgeArtifactsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PurgeArtifactsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PurgeArtifactsMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PurgeArtifactsMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_CreateContextRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -99,6 +115,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_DeleteContextRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_DeleteContextRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PurgeContextsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PurgeContextsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PurgeContextsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PurgeContextsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PurgeContextsMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PurgeContextsMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_AddContextArtifactsAndExecutionsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -139,6 +167,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_UpdateExecutionRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_UpdateExecutionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeleteExecutionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeleteExecutionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PurgeExecutionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PurgeExecutionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PurgeExecutionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PurgeExecutionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PurgeExecutionsMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PurgeExecutionsMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_AddExecutionEventsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -236,245 +280,311 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "act\030\001 \001(\0132).google.cloud.aiplatform.v1be" + "ta1.ArtifactB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032" + ".google.protobuf.FieldMaskB\003\340A\002\022\025\n\rallow" - + "_missing\030\003 \001(\010\"\253\001\n\024CreateContextRequest\022" - + "?\n\006parent\030\001 \001(\tB/\340A\002\372A)\n\'aiplatform.goog" - + "leapis.com/MetadataStore\022>\n\007context\030\002 \001(" - + "\0132(.google.cloud.aiplatform.v1beta1.Cont" - + "extB\003\340A\002\022\022\n\ncontext_id\030\003 \001(\t\"L\n\021GetConte" - + "xtRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!aiplatf" - + "orm.googleapis.com/Context\"\207\001\n\023ListConte" - + "xtsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!aipl" - + "atform.googleapis.com/Context\022\021\n\tpage_si" - + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004" - + " \001(\t\"k\n\024ListContextsResponse\022:\n\010contexts" - + "\030\001 \003(\0132(.google.cloud.aiplatform.v1beta1" - + ".Context\022\027\n\017next_page_token\030\002 \001(\t\"\243\001\n\024Up" - + "dateContextRequest\022>\n\007context\030\001 \001(\0132(.go" - + "ogle.cloud.aiplatform.v1beta1.ContextB\003\340" - + "A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protobu" - + "f.FieldMaskB\003\340A\002\022\025\n\rallow_missing\030\003 \001(\010\"" - + "^\n\024DeleteContextRequest\0227\n\004name\030\001 \001(\tB)\340" - + "A\002\372A#\n!aiplatform.googleapis.com/Context" - + "\022\r\n\005force\030\002 \001(\010\"\337\001\n\'AddContextArtifactsA" - + "ndExecutionsRequest\022:\n\007context\030\001 \001(\tB)\340A" - + "\002\372A#\n!aiplatform.googleapis.com/Context\022" - + ":\n\tartifacts\030\002 \003(\tB\'\372A$\n\"aiplatform.goog" - + "leapis.com/Artifact\022<\n\nexecutions\030\003 \003(\tB" - + "(\372A%\n#aiplatform.googleapis.com/Executio" - + "n\"*\n(AddContextArtifactsAndExecutionsRes" - + "ponse\"\227\001\n\031AddContextChildrenRequest\022:\n\007c" - + "ontext\030\001 \001(\tB)\340A\002\372A#\n!aiplatform.googlea" - + "pis.com/Context\022>\n\016child_contexts\030\002 \003(\tB" - + "&\372A#\n!aiplatform.googleapis.com/Context\"" - + "\034\n\032AddContextChildrenResponse\"`\n\"QueryCo" - + "ntextLineageSubgraphRequest\022:\n\007context\030\001" - + " \001(\tB)\340A\002\372A#\n!aiplatform.googleapis.com/" - + "Context\"\263\001\n\026CreateExecutionRequest\022?\n\006pa" - + "rent\030\001 \001(\tB/\340A\002\372A)\n\'aiplatform.googleapi" - + "s.com/MetadataStore\022B\n\texecution\030\002 \001(\0132*" - + ".google.cloud.aiplatform.v1beta1.Executi" - + "onB\003\340A\002\022\024\n\014execution_id\030\003 \001(\t\"P\n\023GetExec" - + "utionRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#aipl" - + "atform.googleapis.com/Execution\"\213\001\n\025List" - + "ExecutionsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A" - + "%\022#aiplatform.googleapis.com/Execution\022\021" + + "_missing\030\003 \001(\010\"d\n\025DeleteArtifactRequest\022" + + "8\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.google" + + "apis.com/Artifact\022\021\n\004etag\030\002 \001(\tB\003\340A\001\"|\n\025" + + "PurgeArtifactsRequest\022:\n\006parent\030\001 \001(\tB*\340" + + "A\002\372A$\022\"aiplatform.googleapis.com/Artifac" + + "t\022\023\n\006filter\030\002 \001(\tB\003\340A\002\022\022\n\005force\030\003 \001(\010B\003\340" + + "A\001\"l\n\026PurgeArtifactsResponse\022\023\n\013purge_co" + + "unt\030\001 \001(\003\022=\n\014purge_sample\030\002 \003(\tB\'\372A$\n\"ai" + + "platform.googleapis.com/Artifact\"m\n\026Purg" + + "eArtifactsMetadata\022S\n\020generic_metadata\030\001" + + " \001(\01329.google.cloud.aiplatform.v1beta1.G" + + "enericOperationMetadata\"\253\001\n\024CreateContex" + + "tRequest\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\n\'aiplat" + + "form.googleapis.com/MetadataStore\022>\n\007con" + + "text\030\002 \001(\0132(.google.cloud.aiplatform.v1b" + + "eta1.ContextB\003\340A\002\022\022\n\ncontext_id\030\003 \001(\t\"L\n" + + "\021GetContextRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#" + + "\n!aiplatform.googleapis.com/Context\"\207\001\n\023" + + "ListContextsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002" + + "\372A#\022!aiplatform.googleapis.com/Context\022\021" + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n" - + "\006filter\030\004 \001(\t\"q\n\026ListExecutionsResponse\022" - + ">\n\nexecutions\030\001 \003(\0132*.google.cloud.aipla" - + "tform.v1beta1.Execution\022\027\n\017next_page_tok" - + "en\030\002 \001(\t\"\251\001\n\026UpdateExecutionRequest\022B\n\te" - + "xecution\030\001 \001(\0132*.google.cloud.aiplatform" - + ".v1beta1.ExecutionB\003\340A\002\0224\n\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022\025\n" - + "\rallow_missing\030\003 \001(\010\"\223\001\n\031AddExecutionEve" - + "ntsRequest\022>\n\texecution\030\001 \001(\tB+\340A\002\372A%\n#a" - + "iplatform.googleapis.com/Execution\0226\n\006ev" - + "ents\030\002 \003(\0132&.google.cloud.aiplatform.v1b" - + "eta1.Event\"\034\n\032AddExecutionEventsResponse" - + "\"g\n%QueryExecutionInputsAndOutputsReques" - + "t\022>\n\texecution\030\001 \001(\tB+\340A\002\372A%\n#aiplatform" - + ".googleapis.com/Execution\"\311\001\n\033CreateMeta" - + "dataSchemaRequest\022?\n\006parent\030\001 \001(\tB/\340A\002\372A" - + ")\n\'aiplatform.googleapis.com/MetadataSto" - + "re\022M\n\017metadata_schema\030\002 \001(\0132/.google.clo" - + "ud.aiplatform.v1beta1.MetadataSchemaB\003\340A" - + "\002\022\032\n\022metadata_schema_id\030\003 \001(\t\"Z\n\030GetMeta" - + "dataSchemaRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n" - + "(aiplatform.googleapis.com/MetadataSchem" - + "a\"\225\001\n\032ListMetadataSchemasRequest\022@\n\006pare" - + "nt\030\001 \001(\tB0\340A\002\372A*\022(aiplatform.googleapis." - + "com/MetadataSchema\022\021\n\tpage_size\030\002 \001(\005\022\022\n" - + "\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"\201\001\n\033Li" - + "stMetadataSchemasResponse\022I\n\020metadata_sc" - + "hemas\030\001 \003(\0132/.google.cloud.aiplatform.v1" - + "beta1.MetadataSchema\022\027\n\017next_page_token\030" - + "\002 \001(\t\"\205\001\n#QueryArtifactLineageSubgraphRe" - + "quest\022<\n\010artifact\030\001 \001(\tB*\340A\002\372A$\n\"aiplatf" - + "orm.googleapis.com/Artifact\022\020\n\010max_hops\030" - + "\002 \001(\005\022\016\n\006filter\030\003 \001(\t2\3621\n\017MetadataServic" - + "e\022\245\002\n\023CreateMetadataStore\022;.google.cloud" - + ".aiplatform.v1beta1.CreateMetadataStoreR" - + "equest\032\035.google.longrunning.Operation\"\261\001" - + "\202\323\344\223\002I\"7/v1beta1/{parent=projects/*/loca" - + "tions/*}/metadataStores:\016metadata_store\332" - + "A\'parent,metadata_store,metadata_store_i" - + "d\312A5\n\rMetadataStore\022$CreateMetadataStore" - + "OperationMetadata\022\304\001\n\020GetMetadataStore\0228" - + ".google.cloud.aiplatform.v1beta1.GetMeta" - + "dataStoreRequest\032..google.cloud.aiplatfo" - + "rm.v1beta1.MetadataStore\"F\202\323\344\223\0029\0227/v1bet" - + "a1/{name=projects/*/locations/*/metadata" - + "Stores/*}\332A\004name\022\327\001\n\022ListMetadataStores\022" - + ":.google.cloud.aiplatform.v1beta1.ListMe" - + "tadataStoresRequest\032;.google.cloud.aipla" - + "tform.v1beta1.ListMetadataStoresResponse" - + "\"H\202\323\344\223\0029\0227/v1beta1/{parent=projects/*/lo" - + "cations/*}/metadataStores\332A\006parent\022\372\001\n\023D" - + "eleteMetadataStore\022;.google.cloud.aiplat" - + "form.v1beta1.DeleteMetadataStoreRequest\032" - + "\035.google.longrunning.Operation\"\206\001\202\323\344\223\0029*" - + "7/v1beta1/{name=projects/*/locations/*/m" - + "etadataStores/*}\332A\004name\312A=\n\025google.proto" - + "buf.Empty\022$DeleteMetadataStoreOperationM" - + "etadata\022\350\001\n\016CreateArtifact\0226.google.clou" - + "d.aiplatform.v1beta1.CreateArtifactReque" - + "st\032).google.cloud.aiplatform.v1beta1.Art" - + "ifact\"s\202\323\344\223\002O\"C/v1beta1/{parent=projects" - + "/*/locations/*/metadataStores/*}/artifac" - + "ts:\010artifact\332A\033parent,artifact,artifact_" - + "id\022\301\001\n\013GetArtifact\0223.google.cloud.aiplat" - + "form.v1beta1.GetArtifactRequest\032).google" - + ".cloud.aiplatform.v1beta1.Artifact\"R\202\323\344\223" - + "\002E\022C/v1beta1/{name=projects/*/locations/" - + "*/metadataStores/*/artifacts/*}\332A\004name\022\324" - + "\001\n\rListArtifacts\0225.google.cloud.aiplatfo" - + "rm.v1beta1.ListArtifactsRequest\0326.google" - + ".cloud.aiplatform.v1beta1.ListArtifactsR" - + "esponse\"T\202\323\344\223\002E\022C/v1beta1/{parent=projec" - + "ts/*/locations/*/metadataStores/*}/artif" - + "acts\332A\006parent\022\352\001\n\016UpdateArtifact\0226.googl" - + "e.cloud.aiplatform.v1beta1.UpdateArtifac" - + "tRequest\032).google.cloud.aiplatform.v1bet" - + "a1.Artifact\"u\202\323\344\223\002X2L/v1beta1/{artifact." + + "\006filter\030\004 \001(\t\"k\n\024ListContextsResponse\022:\n" + + "\010contexts\030\001 \003(\0132(.google.cloud.aiplatfor" + + "m.v1beta1.Context\022\027\n\017next_page_token\030\002 \001" + + "(\t\"\243\001\n\024UpdateContextRequest\022>\n\007context\030\001" + + " \001(\0132(.google.cloud.aiplatform.v1beta1.C" + + "ontextB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.googl" + + "e.protobuf.FieldMaskB\003\340A\002\022\025\n\rallow_missi" + + "ng\030\003 \001(\010\"q\n\024DeleteContextRequest\0227\n\004name" + + "\030\001 \001(\tB)\340A\002\372A#\n!aiplatform.googleapis.co" + + "m/Context\022\r\n\005force\030\002 \001(\010\022\021\n\004etag\030\003 \001(\tB\003" + + "\340A\001\"z\n\024PurgeContextsRequest\0229\n\006parent\030\001 " + + "\001(\tB)\340A\002\372A#\022!aiplatform.googleapis.com/C" + + "ontext\022\023\n\006filter\030\002 \001(\tB\003\340A\002\022\022\n\005force\030\003 \001" + + "(\010B\003\340A\001\"j\n\025PurgeContextsResponse\022\023\n\013purg" + + "e_count\030\001 \001(\003\022<\n\014purge_sample\030\002 \003(\tB&\372A#" + + "\n!aiplatform.googleapis.com/Context\"l\n\025P" + + "urgeContextsMetadata\022S\n\020generic_metadata" + + "\030\001 \001(\01329.google.cloud.aiplatform.v1beta1" + + ".GenericOperationMetadata\"\337\001\n\'AddContext" + + "ArtifactsAndExecutionsRequest\022:\n\007context" + + "\030\001 \001(\tB)\340A\002\372A#\n!aiplatform.googleapis.co" + + "m/Context\022:\n\tartifacts\030\002 \003(\tB\'\372A$\n\"aipla" + + "tform.googleapis.com/Artifact\022<\n\nexecuti" + + "ons\030\003 \003(\tB(\372A%\n#aiplatform.googleapis.co" + + "m/Execution\"*\n(AddContextArtifactsAndExe" + + "cutionsResponse\"\227\001\n\031AddContextChildrenRe" + + "quest\022:\n\007context\030\001 \001(\tB)\340A\002\372A#\n!aiplatfo" + + "rm.googleapis.com/Context\022>\n\016child_conte" + + "xts\030\002 \003(\tB&\372A#\n!aiplatform.googleapis.co" + + "m/Context\"\034\n\032AddContextChildrenResponse\"" + + "`\n\"QueryContextLineageSubgraphRequest\022:\n" + + "\007context\030\001 \001(\tB)\340A\002\372A#\n!aiplatform.googl" + + "eapis.com/Context\"\263\001\n\026CreateExecutionReq" + + "uest\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\n\'aiplatform" + + ".googleapis.com/MetadataStore\022B\n\texecuti" + + "on\030\002 \001(\0132*.google.cloud.aiplatform.v1bet" + + "a1.ExecutionB\003\340A\002\022\024\n\014execution_id\030\003 \001(\t\"" + + "P\n\023GetExecutionRequest\0229\n\004name\030\001 \001(\tB+\340A" + + "\002\372A%\n#aiplatform.googleapis.com/Executio" + + "n\"\213\001\n\025ListExecutionsRequest\022;\n\006parent\030\001 " + + "\001(\tB+\340A\002\372A%\022#aiplatform.googleapis.com/E" + + "xecution\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" + + "n\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"q\n\026ListExecution" + + "sResponse\022>\n\nexecutions\030\001 \003(\0132*.google.c" + + "loud.aiplatform.v1beta1.Execution\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\"\251\001\n\026UpdateExecutionRe" + + "quest\022B\n\texecution\030\001 \001(\0132*.google.cloud." + + "aiplatform.v1beta1.ExecutionB\003\340A\002\0224\n\013upd" + + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" + + "skB\003\340A\002\022\025\n\rallow_missing\030\003 \001(\010\"f\n\026Delete" + + "ExecutionRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#" + + "aiplatform.googleapis.com/Execution\022\021\n\004e" + + "tag\030\002 \001(\tB\003\340A\001\"~\n\026PurgeExecutionsRequest" + + "\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#aiplatform.goo" + + "gleapis.com/Execution\022\023\n\006filter\030\002 \001(\tB\003\340" + + "A\002\022\022\n\005force\030\003 \001(\010B\003\340A\001\"n\n\027PurgeExecution" + + "sResponse\022\023\n\013purge_count\030\001 \001(\003\022>\n\014purge_" + + "sample\030\002 \003(\tB(\372A%\n#aiplatform.googleapis" + + ".com/Execution\"n\n\027PurgeExecutionsMetadat" + + "a\022S\n\020generic_metadata\030\001 \001(\01329.google.clo" + + "ud.aiplatform.v1beta1.GenericOperationMe" + + "tadata\"\223\001\n\031AddExecutionEventsRequest\022>\n\t" + + "execution\030\001 \001(\tB+\340A\002\372A%\n#aiplatform.goog" + + "leapis.com/Execution\0226\n\006events\030\002 \003(\0132&.g" + + "oogle.cloud.aiplatform.v1beta1.Event\"\034\n\032" + + "AddExecutionEventsResponse\"g\n%QueryExecu" + + "tionInputsAndOutputsRequest\022>\n\texecution" + + "\030\001 \001(\tB+\340A\002\372A%\n#aiplatform.googleapis.co" + + "m/Execution\"\311\001\n\033CreateMetadataSchemaRequ" + + "est\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\n\'aiplatform." + + "googleapis.com/MetadataStore\022M\n\017metadata" + + "_schema\030\002 \001(\0132/.google.cloud.aiplatform." + + "v1beta1.MetadataSchemaB\003\340A\002\022\032\n\022metadata_" + + "schema_id\030\003 \001(\t\"Z\n\030GetMetadataSchemaRequ" + + "est\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(aiplatform.go" + + "ogleapis.com/MetadataSchema\"\225\001\n\032ListMeta" + + "dataSchemasRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372" + + "A*\022(aiplatform.googleapis.com/MetadataSc" + + "hema\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + + "\001(\t\022\016\n\006filter\030\004 \001(\t\"\201\001\n\033ListMetadataSche" + + "masResponse\022I\n\020metadata_schemas\030\001 \003(\0132/." + + "google.cloud.aiplatform.v1beta1.Metadata" + + "Schema\022\027\n\017next_page_token\030\002 \001(\t\"\205\001\n#Quer" + + "yArtifactLineageSubgraphRequest\022<\n\010artif" + + "act\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.googleapis" + + ".com/Artifact\022\020\n\010max_hops\030\002 \001(\005\022\016\n\006filte" + + "r\030\003 \001(\t2\320;\n\017MetadataService\022\245\002\n\023CreateMe" + + "tadataStore\022;.google.cloud.aiplatform.v1" + + "beta1.CreateMetadataStoreRequest\032\035.googl" + + "e.longrunning.Operation\"\261\001\202\323\344\223\002I\"7/v1bet" + + "a1/{parent=projects/*/locations/*}/metad" + + "ataStores:\016metadata_store\332A\'parent,metad" + + "ata_store,metadata_store_id\312A5\n\rMetadata" + + "Store\022$CreateMetadataStoreOperationMetad" + + "ata\022\304\001\n\020GetMetadataStore\0228.google.cloud." + + "aiplatform.v1beta1.GetMetadataStoreReque" + + "st\032..google.cloud.aiplatform.v1beta1.Met" + + "adataStore\"F\202\323\344\223\0029\0227/v1beta1/{name=proje" + + "cts/*/locations/*/metadataStores/*}\332A\004na" + + "me\022\327\001\n\022ListMetadataStores\022:.google.cloud" + + ".aiplatform.v1beta1.ListMetadataStoresRe" + + "quest\032;.google.cloud.aiplatform.v1beta1." + + "ListMetadataStoresResponse\"H\202\323\344\223\0029\0227/v1b" + + "eta1/{parent=projects/*/locations/*}/met" + + "adataStores\332A\006parent\022\372\001\n\023DeleteMetadataS" + + "tore\022;.google.cloud.aiplatform.v1beta1.D" + + "eleteMetadataStoreRequest\032\035.google.longr" + + "unning.Operation\"\206\001\202\323\344\223\0029*7/v1beta1/{nam" + + "e=projects/*/locations/*/metadataStores/" + + "*}\332A\004name\312A=\n\025google.protobuf.Empty\022$Del" + + "eteMetadataStoreOperationMetadata\022\350\001\n\016Cr" + + "eateArtifact\0226.google.cloud.aiplatform.v" + + "1beta1.CreateArtifactRequest\032).google.cl" + + "oud.aiplatform.v1beta1.Artifact\"s\202\323\344\223\002O\"" + + "C/v1beta1/{parent=projects/*/locations/*" + + "/metadataStores/*}/artifacts:\010artifact\332A" + + "\033parent,artifact,artifact_id\022\301\001\n\013GetArti" + + "fact\0223.google.cloud.aiplatform.v1beta1.G" + + "etArtifactRequest\032).google.cloud.aiplatf" + + "orm.v1beta1.Artifact\"R\202\323\344\223\002E\022C/v1beta1/{" + "name=projects/*/locations/*/metadataStor" - + "es/*/artifacts/*}:\010artifact\332A\024artifact,u" - + "pdate_mask\022\341\001\n\rCreateContext\0225.google.cl" - + "oud.aiplatform.v1beta1.CreateContextRequ" - + "est\032(.google.cloud.aiplatform.v1beta1.Co" - + "ntext\"o\202\323\344\223\002M\"B/v1beta1/{parent=projects" - + "/*/locations/*/metadataStores/*}/context" - + "s:\007context\332A\031parent,context,context_id\022\275" - + "\001\n\nGetContext\0222.google.cloud.aiplatform." - + "v1beta1.GetContextRequest\032(.google.cloud" - + ".aiplatform.v1beta1.Context\"Q\202\323\344\223\002D\022B/v1" + + "es/*/artifacts/*}\332A\004name\022\324\001\n\rListArtifac" + + "ts\0225.google.cloud.aiplatform.v1beta1.Lis" + + "tArtifactsRequest\0326.google.cloud.aiplatf" + + "orm.v1beta1.ListArtifactsResponse\"T\202\323\344\223\002" + + "E\022C/v1beta1/{parent=projects/*/locations" + + "/*/metadataStores/*}/artifacts\332A\006parent\022" + + "\352\001\n\016UpdateArtifact\0226.google.cloud.aiplat" + + "form.v1beta1.UpdateArtifactRequest\032).goo" + + "gle.cloud.aiplatform.v1beta1.Artifact\"u\202" + + "\323\344\223\002X2L/v1beta1/{artifact.name=projects/" + + "*/locations/*/metadataStores/*/artifacts" + + "/*}:\010artifact\332A\024artifact,update_mask\022\357\001\n" + + "\016DeleteArtifact\0226.google.cloud.aiplatfor" + + "m.v1beta1.DeleteArtifactRequest\032\035.google" + + ".longrunning.Operation\"\205\001\202\323\344\223\002E*C/v1beta" + + "1/{name=projects/*/locations/*/metadataS" + + "tores/*/artifacts/*}\332A\004name\312A0\n\025google.p" + + "rotobuf.Empty\022\027DeleteOperationMetadata\022\372" + + "\001\n\016PurgeArtifacts\0226.google.cloud.aiplatf" + + "orm.v1beta1.PurgeArtifactsRequest\032\035.goog" + + "le.longrunning.Operation\"\220\001\202\323\344\223\002N\"I/v1be" + + "ta1/{parent=projects/*/locations/*/metad" + + "ataStores/*}/artifacts:purge:\001*\332A\006parent" + + "\312A0\n\026PurgeArtifactsResponse\022\026PurgeArtifa" + + "ctsMetadata\022\341\001\n\rCreateContext\0225.google.c" + + "loud.aiplatform.v1beta1.CreateContextReq" + + "uest\032(.google.cloud.aiplatform.v1beta1.C" + + "ontext\"o\202\323\344\223\002M\"B/v1beta1/{parent=project" + + "s/*/locations/*/metadataStores/*}/contex" + + "ts:\007context\332A\031parent,context,context_id\022" + + "\275\001\n\nGetContext\0222.google.cloud.aiplatform" + + ".v1beta1.GetContextRequest\032(.google.clou" + + "d.aiplatform.v1beta1.Context\"Q\202\323\344\223\002D\022B/v" + + "1beta1/{name=projects/*/locations/*/meta" + + "dataStores/*/contexts/*}\332A\004name\022\320\001\n\014List" + + "Contexts\0224.google.cloud.aiplatform.v1bet" + + "a1.ListContextsRequest\0325.google.cloud.ai" + + "platform.v1beta1.ListContextsResponse\"S\202" + + "\323\344\223\002D\022B/v1beta1/{parent=projects/*/locat" + + "ions/*/metadataStores/*}/contexts\332A\006pare" + + "nt\022\343\001\n\rUpdateContext\0225.google.cloud.aipl" + + "atform.v1beta1.UpdateContextRequest\032(.go" + + "ogle.cloud.aiplatform.v1beta1.Context\"q\202" + + "\323\344\223\002U2J/v1beta1/{context.name=projects/*" + + "/locations/*/metadataStores/*/contexts/*" + + "}:\007context\332A\023context,update_mask\022\354\001\n\rDel" + + "eteContext\0225.google.cloud.aiplatform.v1b" + + "eta1.DeleteContextRequest\032\035.google.longr" + + "unning.Operation\"\204\001\202\323\344\223\002D*B/v1beta1/{nam" + + "e=projects/*/locations/*/metadataStores/" + + "*/contexts/*}\332A\004name\312A0\n\025google.protobuf" + + ".Empty\022\027DeleteOperationMetadata\022\365\001\n\rPurg" + + "eContexts\0225.google.cloud.aiplatform.v1be" + + "ta1.PurgeContextsRequest\032\035.google.longru" + + "nning.Operation\"\215\001\202\323\344\223\002M\"H/v1beta1/{pare" + + "nt=projects/*/locations/*/metadataStores" + + "/*}/contexts:purge:\001*\332A\006parent\312A.\n\025Purge" + + "ContextsResponse\022\025PurgeContextsMetadata\022" + + "\312\002\n AddContextArtifactsAndExecutions\022H.g" + + "oogle.cloud.aiplatform.v1beta1.AddContex" + + "tArtifactsAndExecutionsRequest\032I.google." + + "cloud.aiplatform.v1beta1.AddContextArtif" + + "actsAndExecutionsResponse\"\220\001\202\323\344\223\002k\"f/v1b" + + "eta1/{context=projects/*/locations/*/met" + + "adataStores/*/contexts/*}:addContextArti" + + "factsAndExecutions:\001*\332A\034context,artifact" + + "s,executions\022\213\002\n\022AddContextChildren\022:.go" + + "ogle.cloud.aiplatform.v1beta1.AddContext" + + "ChildrenRequest\032;.google.cloud.aiplatfor" + + "m.v1beta1.AddContextChildrenResponse\"|\202\323" + + "\344\223\002]\"X/v1beta1/{context=projects/*/locat" + + "ions/*/metadataStores/*/contexts/*}:addC" + + "ontextChildren:\001*\332A\026context,child_contex" + + "ts\022\211\002\n\033QueryContextLineageSubgraph\022C.goo" + + "gle.cloud.aiplatform.v1beta1.QueryContex" + + "tLineageSubgraphRequest\0320.google.cloud.a" + + "iplatform.v1beta1.LineageSubgraph\"s\202\323\344\223\002" + + "c\022a/v1beta1/{context=projects/*/location" + + "s/*/metadataStores/*/contexts/*}:queryCo" + + "ntextLineageSubgraph\332A\007context\022\357\001\n\017Creat" + + "eExecution\0227.google.cloud.aiplatform.v1b" + + "eta1.CreateExecutionRequest\032*.google.clo" + + "ud.aiplatform.v1beta1.Execution\"w\202\323\344\223\002Q\"" + + "D/v1beta1/{parent=projects/*/locations/*" + + "/metadataStores/*}/executions:\texecution" + + "\332A\035parent,execution,execution_id\022\305\001\n\014Get" + + "Execution\0224.google.cloud.aiplatform.v1be" + + "ta1.GetExecutionRequest\032*.google.cloud.a" + + "iplatform.v1beta1.Execution\"S\202\323\344\223\002F\022D/v1" + "beta1/{name=projects/*/locations/*/metad" - + "ataStores/*/contexts/*}\332A\004name\022\320\001\n\014ListC" - + "ontexts\0224.google.cloud.aiplatform.v1beta" - + "1.ListContextsRequest\0325.google.cloud.aip" - + "latform.v1beta1.ListContextsResponse\"S\202\323" - + "\344\223\002D\022B/v1beta1/{parent=projects/*/locati" - + "ons/*/metadataStores/*}/contexts\332A\006paren" - + "t\022\343\001\n\rUpdateContext\0225.google.cloud.aipla" - + "tform.v1beta1.UpdateContextRequest\032(.goo" - + "gle.cloud.aiplatform.v1beta1.Context\"q\202\323" - + "\344\223\002U2J/v1beta1/{context.name=projects/*/" - + "locations/*/metadataStores/*/contexts/*}" - + ":\007context\332A\023context,update_mask\022\354\001\n\rDele" - + "teContext\0225.google.cloud.aiplatform.v1be" - + "ta1.DeleteContextRequest\032\035.google.longru" - + "nning.Operation\"\204\001\202\323\344\223\002D*B/v1beta1/{name" - + "=projects/*/locations/*/metadataStores/*" - + "/contexts/*}\332A\004name\312A0\n\025google.protobuf." - + "Empty\022\027DeleteOperationMetadata\022\312\002\n AddCo" - + "ntextArtifactsAndExecutions\022H.google.clo" - + "ud.aiplatform.v1beta1.AddContextArtifact" - + "sAndExecutionsRequest\032I.google.cloud.aip" - + "latform.v1beta1.AddContextArtifactsAndEx" - + "ecutionsResponse\"\220\001\202\323\344\223\002k\"f/v1beta1/{con" - + "text=projects/*/locations/*/metadataStor" - + "es/*/contexts/*}:addContextArtifactsAndE" - + "xecutions:\001*\332A\034context,artifacts,executi" - + "ons\022\213\002\n\022AddContextChildren\022:.google.clou" - + "d.aiplatform.v1beta1.AddContextChildrenR" - + "equest\032;.google.cloud.aiplatform.v1beta1" - + ".AddContextChildrenResponse\"|\202\323\344\223\002]\"X/v1" - + "beta1/{context=projects/*/locations/*/me" - + "tadataStores/*/contexts/*}:addContextChi" - + "ldren:\001*\332A\026context,child_contexts\022\211\002\n\033Qu" - + "eryContextLineageSubgraph\022C.google.cloud" - + ".aiplatform.v1beta1.QueryContextLineageS" - + "ubgraphRequest\0320.google.cloud.aiplatform" - + ".v1beta1.LineageSubgraph\"s\202\323\344\223\002c\022a/v1bet" - + "a1/{context=projects/*/locations/*/metad" - + "ataStores/*/contexts/*}:queryContextLine" - + "ageSubgraph\332A\007context\022\357\001\n\017CreateExecutio" - + "n\0227.google.cloud.aiplatform.v1beta1.Crea" - + "teExecutionRequest\032*.google.cloud.aiplat" - + "form.v1beta1.Execution\"w\202\323\344\223\002Q\"D/v1beta1" - + "/{parent=projects/*/locations/*/metadata" - + "Stores/*}/executions:\texecution\332A\035parent" - + ",execution,execution_id\022\305\001\n\014GetExecution" - + "\0224.google.cloud.aiplatform.v1beta1.GetEx" - + "ecutionRequest\032*.google.cloud.aiplatform" - + ".v1beta1.Execution\"S\202\323\344\223\002F\022D/v1beta1/{na" - + "me=projects/*/locations/*/metadataStores" - + "/*/executions/*}\332A\004name\022\330\001\n\016ListExecutio" - + "ns\0226.google.cloud.aiplatform.v1beta1.Lis" - + "tExecutionsRequest\0327.google.cloud.aiplat" - + "form.v1beta1.ListExecutionsResponse\"U\202\323\344" - + "\223\002F\022D/v1beta1/{parent=projects/*/locatio" - + "ns/*/metadataStores/*}/executions\332A\006pare" - + "nt\022\361\001\n\017UpdateExecution\0227.google.cloud.ai" - + "platform.v1beta1.UpdateExecutionRequest\032" - + "*.google.cloud.aiplatform.v1beta1.Execut" - + "ion\"y\202\323\344\223\002[2N/v1beta1/{execution.name=pr" - + "ojects/*/locations/*/metadataStores/*/ex" - + "ecutions/*}:\texecution\332A\025execution,updat" - + "e_mask\022\211\002\n\022AddExecutionEvents\022:.google.c" - + "loud.aiplatform.v1beta1.AddExecutionEven" - + "tsRequest\032;.google.cloud.aiplatform.v1be" - + "ta1.AddExecutionEventsResponse\"z\202\323\344\223\002a\"\\" - + "/v1beta1/{execution=projects/*/locations" - + "/*/metadataStores/*/executions/*}:addExe" - + "cutionEvents:\001*\332A\020execution,events\022\230\002\n\036Q" - + "ueryExecutionInputsAndOutputs\022F.google.c" - + "loud.aiplatform.v1beta1.QueryExecutionIn" - + "putsAndOutputsRequest\0320.google.cloud.aip" - + "latform.v1beta1.LineageSubgraph\"|\202\323\344\223\002j\022" - + "h/v1beta1/{execution=projects/*/location" - + "s/*/metadataStores/*/executions/*}:query" - + "ExecutionInputsAndOutputs\332A\texecution\022\226\002" - + "\n\024CreateMetadataSchema\022<.google.cloud.ai" - + "platform.v1beta1.CreateMetadataSchemaReq" - + "uest\032/.google.cloud.aiplatform.v1beta1.M" - + "etadataSchema\"\216\001\202\323\344\223\002\\\"I/v1beta1/{parent" - + "=projects/*/locations/*/metadataStores/*" - + "}/metadataSchemas:\017metadata_schema\332A)par" - + "ent,metadata_schema,metadata_schema_id\022\331" - + "\001\n\021GetMetadataSchema\0229.google.cloud.aipl" - + "atform.v1beta1.GetMetadataSchemaRequest\032" - + "/.google.cloud.aiplatform.v1beta1.Metada" - + "taSchema\"X\202\323\344\223\002K\022I/v1beta1/{name=project" - + "s/*/locations/*/metadataStores/*/metadat" - + "aSchemas/*}\332A\004name\022\354\001\n\023ListMetadataSchem" - + "as\022;.google.cloud.aiplatform.v1beta1.Lis" - + "tMetadataSchemasRequest\032<.google.cloud.a" - + "iplatform.v1beta1.ListMetadataSchemasRes" - + "ponse\"Z\202\323\344\223\002K\022I/v1beta1/{parent=projects" - + "/*/locations/*/metadataStores/*}/metadat" - + "aSchemas\332A\006parent\022\217\002\n\034QueryArtifactLinea" - + "geSubgraph\022D.google.cloud.aiplatform.v1b" - + "eta1.QueryArtifactLineageSubgraphRequest" - + "\0320.google.cloud.aiplatform.v1beta1.Linea" - + "geSubgraph\"w\202\323\344\223\002f\022d/v1beta1/{artifact=p" - + "rojects/*/locations/*/metadataStores/*/a" - + "rtifacts/*}:queryArtifactLineageSubgraph" - + "\332A\010artifact\032M\312A\031aiplatform.googleapis.co" - + "m\322A.https://www.googleapis.com/auth/clou" - + "d-platformB\210\001\n#com.google.cloud.aiplatfo" - + "rm.v1beta1B\024MetadataServiceProtoP\001ZIgoog" - + "le.golang.org/genproto/googleapis/cloud/" - + "aiplatform/v1beta1;aiplatformb\006proto3" + + "ataStores/*/executions/*}\332A\004name\022\330\001\n\016Lis" + + "tExecutions\0226.google.cloud.aiplatform.v1" + + "beta1.ListExecutionsRequest\0327.google.clo" + + "ud.aiplatform.v1beta1.ListExecutionsResp" + + "onse\"U\202\323\344\223\002F\022D/v1beta1/{parent=projects/" + + "*/locations/*/metadataStores/*}/executio" + + "ns\332A\006parent\022\361\001\n\017UpdateExecution\0227.google" + + ".cloud.aiplatform.v1beta1.UpdateExecutio" + + "nRequest\032*.google.cloud.aiplatform.v1bet" + + "a1.Execution\"y\202\323\344\223\002[2N/v1beta1/{executio" + + "n.name=projects/*/locations/*/metadataSt" + + "ores/*/executions/*}:\texecution\332A\025execut" + + "ion,update_mask\022\362\001\n\017DeleteExecution\0227.go" + + "ogle.cloud.aiplatform.v1beta1.DeleteExec" + + "utionRequest\032\035.google.longrunning.Operat" + + "ion\"\206\001\202\323\344\223\002F*D/v1beta1/{name=projects/*/" + + "locations/*/metadataStores/*/executions/" + + "*}\332A\004name\312A0\n\025google.protobuf.Empty\022\027Del" + + "eteOperationMetadata\022\377\001\n\017PurgeExecutions" + + "\0227.google.cloud.aiplatform.v1beta1.Purge" + + "ExecutionsRequest\032\035.google.longrunning.O" + + "peration\"\223\001\202\323\344\223\002O\"J/v1beta1/{parent=proj" + + "ects/*/locations/*/metadataStores/*}/exe" + + "cutions:purge:\001*\332A\006parent\312A2\n\027PurgeExecu" + + "tionsResponse\022\027PurgeExecutionsMetadata\022\211" + + "\002\n\022AddExecutionEvents\022:.google.cloud.aip" + + "latform.v1beta1.AddExecutionEventsReques" + + "t\032;.google.cloud.aiplatform.v1beta1.AddE" + + "xecutionEventsResponse\"z\202\323\344\223\002a\"\\/v1beta1" + + "/{execution=projects/*/locations/*/metad" + + "ataStores/*/executions/*}:addExecutionEv" + + "ents:\001*\332A\020execution,events\022\230\002\n\036QueryExec" + + "utionInputsAndOutputs\022F.google.cloud.aip" + + "latform.v1beta1.QueryExecutionInputsAndO" + + "utputsRequest\0320.google.cloud.aiplatform." + + "v1beta1.LineageSubgraph\"|\202\323\344\223\002j\022h/v1beta" + + "1/{execution=projects/*/locations/*/meta" + + "dataStores/*/executions/*}:queryExecutio" + + "nInputsAndOutputs\332A\texecution\022\226\002\n\024Create" + + "MetadataSchema\022<.google.cloud.aiplatform" + + ".v1beta1.CreateMetadataSchemaRequest\032/.g" + + "oogle.cloud.aiplatform.v1beta1.MetadataS" + + "chema\"\216\001\202\323\344\223\002\\\"I/v1beta1/{parent=project" + + "s/*/locations/*/metadataStores/*}/metada" + + "taSchemas:\017metadata_schema\332A)parent,meta" + + "data_schema,metadata_schema_id\022\331\001\n\021GetMe" + + "tadataSchema\0229.google.cloud.aiplatform.v" + + "1beta1.GetMetadataSchemaRequest\032/.google" + + ".cloud.aiplatform.v1beta1.MetadataSchema" + + "\"X\202\323\344\223\002K\022I/v1beta1/{name=projects/*/loca" + + "tions/*/metadataStores/*/metadataSchemas" + + "/*}\332A\004name\022\354\001\n\023ListMetadataSchemas\022;.goo" + + "gle.cloud.aiplatform.v1beta1.ListMetadat" + + "aSchemasRequest\032<.google.cloud.aiplatfor" + + "m.v1beta1.ListMetadataSchemasResponse\"Z\202" + + "\323\344\223\002K\022I/v1beta1/{parent=projects/*/locat" + + "ions/*/metadataStores/*}/metadataSchemas" + + "\332A\006parent\022\217\002\n\034QueryArtifactLineageSubgra" + + "ph\022D.google.cloud.aiplatform.v1beta1.Que" + + "ryArtifactLineageSubgraphRequest\0320.googl" + + "e.cloud.aiplatform.v1beta1.LineageSubgra" + + "ph\"w\202\323\344\223\002f\022d/v1beta1/{artifact=projects/" + + "*/locations/*/metadataStores/*/artifacts" + + "/*}:queryArtifactLineageSubgraph\332A\010artif" + + "act\032M\312A\031aiplatform.googleapis.com\322A.http" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rmB\361\001\n#com.google.cloud.aiplatform.v1bet" + + "a1B\024MetadataServiceProtoP\001ZIgoogle.golan" + + "g.org/genproto/googleapis/cloud/aiplatfo" + + "rm/v1beta1;aiplatform\252\002\037Google.Cloud.AIP" + + "latform.V1Beta1\312\002\037Google\\Cloud\\AIPlatfor" + + "m\\V1beta1\352\002\"Google::Cloud::AIPlatform::V" + + "1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -591,8 +701,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Artifact", "UpdateMask", "AllowMissing", }); - internal_static_google_cloud_aiplatform_v1beta1_CreateContextRequest_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_DeleteArtifactRequest_descriptor = getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_aiplatform_v1beta1_DeleteArtifactRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DeleteArtifactRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", + }); + internal_static_google_cloud_aiplatform_v1beta1_PurgeArtifactsRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_aiplatform_v1beta1_PurgeArtifactsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_PurgeArtifactsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "Force", + }); + internal_static_google_cloud_aiplatform_v1beta1_PurgeArtifactsResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_aiplatform_v1beta1_PurgeArtifactsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_PurgeArtifactsResponse_descriptor, + new java.lang.String[] { + "PurgeCount", "PurgeSample", + }); + internal_static_google_cloud_aiplatform_v1beta1_PurgeArtifactsMetadata_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_aiplatform_v1beta1_PurgeArtifactsMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_PurgeArtifactsMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1beta1_CreateContextRequest_descriptor = + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_aiplatform_v1beta1_CreateContextRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_CreateContextRequest_descriptor, @@ -600,7 +742,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Context", "ContextId", }); internal_static_google_cloud_aiplatform_v1beta1_GetContextRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_aiplatform_v1beta1_GetContextRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_GetContextRequest_descriptor, @@ -608,7 +750,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1beta1_ListContextsRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_aiplatform_v1beta1_ListContextsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListContextsRequest_descriptor, @@ -616,7 +758,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_aiplatform_v1beta1_ListContextsResponse_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_aiplatform_v1beta1_ListContextsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListContextsResponse_descriptor, @@ -624,7 +766,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Contexts", "NextPageToken", }); internal_static_google_cloud_aiplatform_v1beta1_UpdateContextRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_aiplatform_v1beta1_UpdateContextRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_UpdateContextRequest_descriptor, @@ -632,15 +774,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Context", "UpdateMask", "AllowMissing", }); internal_static_google_cloud_aiplatform_v1beta1_DeleteContextRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_aiplatform_v1beta1_DeleteContextRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_DeleteContextRequest_descriptor, new java.lang.String[] { - "Name", "Force", + "Name", "Force", "Etag", + }); + internal_static_google_cloud_aiplatform_v1beta1_PurgeContextsRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_aiplatform_v1beta1_PurgeContextsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_PurgeContextsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "Force", + }); + internal_static_google_cloud_aiplatform_v1beta1_PurgeContextsResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_aiplatform_v1beta1_PurgeContextsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_PurgeContextsResponse_descriptor, + new java.lang.String[] { + "PurgeCount", "PurgeSample", + }); + internal_static_google_cloud_aiplatform_v1beta1_PurgeContextsMetadata_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_aiplatform_v1beta1_PurgeContextsMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_PurgeContextsMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", }); internal_static_google_cloud_aiplatform_v1beta1_AddContextArtifactsAndExecutionsRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_aiplatform_v1beta1_AddContextArtifactsAndExecutionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_AddContextArtifactsAndExecutionsRequest_descriptor, @@ -648,13 +814,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Context", "Artifacts", "Executions", }); internal_static_google_cloud_aiplatform_v1beta1_AddContextArtifactsAndExecutionsResponse_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_aiplatform_v1beta1_AddContextArtifactsAndExecutionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_AddContextArtifactsAndExecutionsResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_aiplatform_v1beta1_AddContextChildrenRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_aiplatform_v1beta1_AddContextChildrenRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_AddContextChildrenRequest_descriptor, @@ -662,13 +828,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Context", "ChildContexts", }); internal_static_google_cloud_aiplatform_v1beta1_AddContextChildrenResponse_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_aiplatform_v1beta1_AddContextChildrenResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_AddContextChildrenResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_aiplatform_v1beta1_QueryContextLineageSubgraphRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_aiplatform_v1beta1_QueryContextLineageSubgraphRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_QueryContextLineageSubgraphRequest_descriptor, @@ -676,7 +842,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Context", }); internal_static_google_cloud_aiplatform_v1beta1_CreateExecutionRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_aiplatform_v1beta1_CreateExecutionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_CreateExecutionRequest_descriptor, @@ -684,7 +850,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Execution", "ExecutionId", }); internal_static_google_cloud_aiplatform_v1beta1_GetExecutionRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_aiplatform_v1beta1_GetExecutionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_GetExecutionRequest_descriptor, @@ -692,7 +858,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1beta1_ListExecutionsRequest_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_aiplatform_v1beta1_ListExecutionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListExecutionsRequest_descriptor, @@ -700,7 +866,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_aiplatform_v1beta1_ListExecutionsResponse_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_aiplatform_v1beta1_ListExecutionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListExecutionsResponse_descriptor, @@ -708,15 +874,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Executions", "NextPageToken", }); internal_static_google_cloud_aiplatform_v1beta1_UpdateExecutionRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_aiplatform_v1beta1_UpdateExecutionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_UpdateExecutionRequest_descriptor, new java.lang.String[] { "Execution", "UpdateMask", "AllowMissing", }); + internal_static_google_cloud_aiplatform_v1beta1_DeleteExecutionRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_aiplatform_v1beta1_DeleteExecutionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DeleteExecutionRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", + }); + internal_static_google_cloud_aiplatform_v1beta1_PurgeExecutionsRequest_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_aiplatform_v1beta1_PurgeExecutionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_PurgeExecutionsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "Force", + }); + internal_static_google_cloud_aiplatform_v1beta1_PurgeExecutionsResponse_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_cloud_aiplatform_v1beta1_PurgeExecutionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_PurgeExecutionsResponse_descriptor, + new java.lang.String[] { + "PurgeCount", "PurgeSample", + }); + internal_static_google_cloud_aiplatform_v1beta1_PurgeExecutionsMetadata_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_cloud_aiplatform_v1beta1_PurgeExecutionsMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_PurgeExecutionsMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); internal_static_google_cloud_aiplatform_v1beta1_AddExecutionEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_aiplatform_v1beta1_AddExecutionEventsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_AddExecutionEventsRequest_descriptor, @@ -724,13 +922,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Execution", "Events", }); internal_static_google_cloud_aiplatform_v1beta1_AddExecutionEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(40); internal_static_google_cloud_aiplatform_v1beta1_AddExecutionEventsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_AddExecutionEventsResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_aiplatform_v1beta1_QueryExecutionInputsAndOutputsRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(41); internal_static_google_cloud_aiplatform_v1beta1_QueryExecutionInputsAndOutputsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_QueryExecutionInputsAndOutputsRequest_descriptor, @@ -738,7 +936,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Execution", }); internal_static_google_cloud_aiplatform_v1beta1_CreateMetadataSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(42); internal_static_google_cloud_aiplatform_v1beta1_CreateMetadataSchemaRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_CreateMetadataSchemaRequest_descriptor, @@ -746,7 +944,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "MetadataSchema", "MetadataSchemaId", }); internal_static_google_cloud_aiplatform_v1beta1_GetMetadataSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(43); internal_static_google_cloud_aiplatform_v1beta1_GetMetadataSchemaRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_GetMetadataSchemaRequest_descriptor, @@ -754,7 +952,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1beta1_ListMetadataSchemasRequest_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(44); internal_static_google_cloud_aiplatform_v1beta1_ListMetadataSchemasRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListMetadataSchemasRequest_descriptor, @@ -762,7 +960,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_aiplatform_v1beta1_ListMetadataSchemasResponse_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(45); internal_static_google_cloud_aiplatform_v1beta1_ListMetadataSchemasResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListMetadataSchemasResponse_descriptor, @@ -770,7 +968,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MetadataSchemas", "NextPageToken", }); internal_static_google_cloud_aiplatform_v1beta1_QueryArtifactLineageSubgraphRequest_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(46); internal_static_google_cloud_aiplatform_v1beta1_QueryArtifactLineageSubgraphRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_QueryArtifactLineageSubgraphRequest_descriptor, diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigratableResourceProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigratableResourceProto.java index 40ed2a0d0..4030a21a0 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigratableResourceProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigratableResourceProto.java @@ -96,23 +96,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "DataLabelingAnnotatedDataset\022L\n\021annotate" + "d_dataset\030\001 \001(\tB1\372A.\n,datalabeling.googl" + "eapis.com/AnnotatedDataset\022&\n\036annotated_" - + "dataset_display_name\030\003 \001(\tB\n\n\010resourceB\342" - + "\004\n#com.google.cloud.aiplatform.v1beta1B\027" + + "dataset_display_name\030\003 \001(\tB\n\n\010resourceB\313" + + "\005\n#com.google.cloud.aiplatform.v1beta1B\027" + "MigratableResourceProtoP\001ZIgoogle.golang" + ".org/genproto/googleapis/cloud/aiplatfor" - + "m/v1beta1;aiplatform\352AQ\n\031ml.googleapis.c" - + "om/Version\0224projects/{project}/models/{m" - + "odel}/versions/{version}\352AU\n\033automl.goog" - + "leapis.com/Model\0226projects/{project}/loc" - + "ations/{location}/models/{model}\352A[\n\035aut" - + "oml.googleapis.com/Dataset\022:projects/{pr" - + "oject}/locations/{location}/datasets/{da" - + "taset}\352AL\n#datalabeling.googleapis.com/D" - + "ataset\022%projects/{project}/datasets/{dat" - + "aset}\352A{\n,datalabeling.googleapis.com/An" - + "notatedDataset\022Kprojects/{project}/datas" - + "ets/{dataset}/annotatedDatasets/{annotat" - + "ed_dataset}b\006proto3" + + "m/v1beta1;aiplatform\252\002\037Google.Cloud.AIPl" + + "atform.V1Beta1\312\002\037Google\\Cloud\\AIPlatform" + + "\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1" + + "beta1\352AQ\n\031ml.googleapis.com/Version\0224pro" + + "jects/{project}/models/{model}/versions/" + + "{version}\352AU\n\033automl.googleapis.com/Mode" + + "l\0226projects/{project}/locations/{locatio" + + "n}/models/{model}\352A[\n\035automl.googleapis." + + "com/Dataset\022:projects/{project}/location" + + "s/{location}/datasets/{dataset}\352AL\n#data" + + "labeling.googleapis.com/Dataset\022%project" + + "s/{project}/datasets/{dataset}\352A{\n,datal" + + "abeling.googleapis.com/AnnotatedDataset\022" + + "Kprojects/{project}/datasets/{dataset}/a" + + "nnotatedDatasets/{annotated_dataset}b\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceProto.java index 81177ae42..44ca205c7 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceProto.java @@ -185,11 +185,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "esourcesResponse\022&BatchMigrateResourcesO" + "perationMetadata\032M\312A\031aiplatform.googleap" + "is.com\322A.https://www.googleapis.com/auth" - + "/cloud-platformB\211\001\n#com.google.cloud.aip" + + "/cloud-platformB\362\001\n#com.google.cloud.aip" + "latform.v1beta1B\025MigrationServiceProtoP\001" + "ZIgoogle.golang.org/genproto/googleapis/" - + "cloud/aiplatform/v1beta1;aiplatformb\006pro" - + "to3" + + "cloud/aiplatform/v1beta1;aiplatform\252\002\037Go" + + "ogle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\C" + + "loud\\AIPlatform\\V1beta1\352\002\"Google::Cloud:" + + ":AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJob.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJob.java index 39fc12624..2117203e0 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJob.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJob.java @@ -819,7 +819,7 @@ public int getScheduleStateValue() { * *
    * Required. The config for monitoring objectives. This is a per DeployedModel config.
-   * Each DeployedModel needs to be configed separately.
+   * Each DeployedModel needs to be configured separately.
    * 
* * @@ -837,7 +837,7 @@ public int getScheduleStateValue() { * *
    * Required. The config for monitoring objectives. This is a per DeployedModel config.
-   * Each DeployedModel needs to be configed separately.
+   * Each DeployedModel needs to be configured separately.
    * 
* * @@ -856,7 +856,7 @@ public int getScheduleStateValue() { * *
    * Required. The config for monitoring objectives. This is a per DeployedModel config.
-   * Each DeployedModel needs to be configed separately.
+   * Each DeployedModel needs to be configured separately.
    * 
* * @@ -872,7 +872,7 @@ public int getModelDeploymentMonitoringObjectiveConfigsCount() { * *
    * Required. The config for monitoring objectives. This is a per DeployedModel config.
-   * Each DeployedModel needs to be configed separately.
+   * Each DeployedModel needs to be configured separately.
    * 
* * @@ -889,7 +889,7 @@ public int getModelDeploymentMonitoringObjectiveConfigsCount() { * *
    * Required. The config for monitoring objectives. This is a per DeployedModel config.
-   * Each DeployedModel needs to be configed separately.
+   * Each DeployedModel needs to be configured separately.
    * 
* * @@ -3192,7 +3192,7 @@ private void ensureModelDeploymentMonitoringObjectiveConfigsIsMutable() { * *
      * Required. The config for monitoring objectives. This is a per DeployedModel config.
-     * Each DeployedModel needs to be configed separately.
+     * Each DeployedModel needs to be configured separately.
      * 
* * @@ -3213,7 +3213,7 @@ private void ensureModelDeploymentMonitoringObjectiveConfigsIsMutable() { * *
      * Required. The config for monitoring objectives. This is a per DeployedModel config.
-     * Each DeployedModel needs to be configed separately.
+     * Each DeployedModel needs to be configured separately.
      * 
* * @@ -3232,7 +3232,7 @@ public int getModelDeploymentMonitoringObjectiveConfigsCount() { * *
      * Required. The config for monitoring objectives. This is a per DeployedModel config.
-     * Each DeployedModel needs to be configed separately.
+     * Each DeployedModel needs to be configured separately.
      * 
* * @@ -3252,7 +3252,7 @@ public int getModelDeploymentMonitoringObjectiveConfigsCount() { * *
      * Required. The config for monitoring objectives. This is a per DeployedModel config.
-     * Each DeployedModel needs to be configed separately.
+     * Each DeployedModel needs to be configured separately.
      * 
* * @@ -3279,7 +3279,7 @@ public Builder setModelDeploymentMonitoringObjectiveConfigs( * *
      * Required. The config for monitoring objectives. This is a per DeployedModel config.
-     * Each DeployedModel needs to be configed separately.
+     * Each DeployedModel needs to be configured separately.
      * 
* * @@ -3305,7 +3305,7 @@ public Builder setModelDeploymentMonitoringObjectiveConfigs( * *
      * Required. The config for monitoring objectives. This is a per DeployedModel config.
-     * Each DeployedModel needs to be configed separately.
+     * Each DeployedModel needs to be configured separately.
      * 
* * @@ -3331,7 +3331,7 @@ public Builder addModelDeploymentMonitoringObjectiveConfigs( * *
      * Required. The config for monitoring objectives. This is a per DeployedModel config.
-     * Each DeployedModel needs to be configed separately.
+     * Each DeployedModel needs to be configured separately.
      * 
* * @@ -3358,7 +3358,7 @@ public Builder addModelDeploymentMonitoringObjectiveConfigs( * *
      * Required. The config for monitoring objectives. This is a per DeployedModel config.
-     * Each DeployedModel needs to be configed separately.
+     * Each DeployedModel needs to be configured separately.
      * 
* * @@ -3382,7 +3382,7 @@ public Builder addModelDeploymentMonitoringObjectiveConfigs( * *
      * Required. The config for monitoring objectives. This is a per DeployedModel config.
-     * Each DeployedModel needs to be configed separately.
+     * Each DeployedModel needs to be configured separately.
      * 
* * @@ -3408,7 +3408,7 @@ public Builder addModelDeploymentMonitoringObjectiveConfigs( * *
      * Required. The config for monitoring objectives. This is a per DeployedModel config.
-     * Each DeployedModel needs to be configed separately.
+     * Each DeployedModel needs to be configured separately.
      * 
* * @@ -3435,7 +3435,7 @@ public Builder addAllModelDeploymentMonitoringObjectiveConfigs( * *
      * Required. The config for monitoring objectives. This is a per DeployedModel config.
-     * Each DeployedModel needs to be configed separately.
+     * Each DeployedModel needs to be configured separately.
      * 
* * @@ -3457,7 +3457,7 @@ public Builder clearModelDeploymentMonitoringObjectiveConfigs() { * *
      * Required. The config for monitoring objectives. This is a per DeployedModel config.
-     * Each DeployedModel needs to be configed separately.
+     * Each DeployedModel needs to be configured separately.
      * 
* * @@ -3479,7 +3479,7 @@ public Builder removeModelDeploymentMonitoringObjectiveConfigs(int index) { * *
      * Required. The config for monitoring objectives. This is a per DeployedModel config.
-     * Each DeployedModel needs to be configed separately.
+     * Each DeployedModel needs to be configured separately.
      * 
* * @@ -3495,7 +3495,7 @@ public Builder removeModelDeploymentMonitoringObjectiveConfigs(int index) { * *
      * Required. The config for monitoring objectives. This is a per DeployedModel config.
-     * Each DeployedModel needs to be configed separately.
+     * Each DeployedModel needs to be configured separately.
      * 
* * @@ -3515,7 +3515,7 @@ public Builder removeModelDeploymentMonitoringObjectiveConfigs(int index) { * *
      * Required. The config for monitoring objectives. This is a per DeployedModel config.
-     * Each DeployedModel needs to be configed separately.
+     * Each DeployedModel needs to be configured separately.
      * 
* * @@ -3538,7 +3538,7 @@ public Builder removeModelDeploymentMonitoringObjectiveConfigs(int index) { * *
      * Required. The config for monitoring objectives. This is a per DeployedModel config.
-     * Each DeployedModel needs to be configed separately.
+     * Each DeployedModel needs to be configured separately.
      * 
* * @@ -3557,7 +3557,7 @@ public Builder removeModelDeploymentMonitoringObjectiveConfigs(int index) { * *
      * Required. The config for monitoring objectives. This is a per DeployedModel config.
-     * Each DeployedModel needs to be configed separately.
+     * Each DeployedModel needs to be configured separately.
      * 
* * @@ -3577,7 +3577,7 @@ public Builder removeModelDeploymentMonitoringObjectiveConfigs(int index) { * *
      * Required. The config for monitoring objectives. This is a per DeployedModel config.
-     * Each DeployedModel needs to be configed separately.
+     * Each DeployedModel needs to be configured separately.
      * 
* * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobOrBuilder.java index d53b87ca0..416bb5e06 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobOrBuilder.java @@ -182,7 +182,7 @@ public interface ModelDeploymentMonitoringJobOrBuilder * *
    * Required. The config for monitoring objectives. This is a per DeployedModel config.
-   * Each DeployedModel needs to be configed separately.
+   * Each DeployedModel needs to be configured separately.
    * 
* * @@ -196,7 +196,7 @@ public interface ModelDeploymentMonitoringJobOrBuilder * *
    * Required. The config for monitoring objectives. This is a per DeployedModel config.
-   * Each DeployedModel needs to be configed separately.
+   * Each DeployedModel needs to be configured separately.
    * 
* * @@ -210,7 +210,7 @@ public interface ModelDeploymentMonitoringJobOrBuilder * *
    * Required. The config for monitoring objectives. This is a per DeployedModel config.
-   * Each DeployedModel needs to be configed separately.
+   * Each DeployedModel needs to be configured separately.
    * 
* * @@ -223,7 +223,7 @@ public interface ModelDeploymentMonitoringJobOrBuilder * *
    * Required. The config for monitoring objectives. This is a per DeployedModel config.
-   * Each DeployedModel needs to be configed separately.
+   * Each DeployedModel needs to be configured separately.
    * 
* * @@ -239,7 +239,7 @@ public interface ModelDeploymentMonitoringJobOrBuilder * *
    * Required. The config for monitoring objectives. This is a per DeployedModel config.
-   * Each DeployedModel needs to be configed separately.
+   * Each DeployedModel needs to be configured separately.
    * 
* * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobProto.java index 004b2d87a..8009b30d9 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobProto.java @@ -68,99 +68,103 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "deployment_monitoring_job.proto\022\037google." + "cloud.aiplatform.v1beta1\032\037google/api/fie" + "ld_behavior.proto\032\031google/api/resource.p" - + "roto\032>google/cloud/aiplatform/v1beta1/fe" - + "ature_monitoring_stats.proto\032(google/clo" - + "ud/aiplatform/v1beta1/io.proto\032/google/c" - + "loud/aiplatform/v1beta1/job_state.proto\032" - + "6google/cloud/aiplatform/v1beta1/model_m" - + "onitoring.proto\032\036google/protobuf/duratio" - + "n.proto\032\034google/protobuf/struct.proto\032\037g" - + "oogle/protobuf/timestamp.proto\032\034google/a" - + "pi/annotations.proto\"\301\r\n\034ModelDeployment" - + "MonitoringJob\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014disp" - + "lay_name\030\002 \001(\tB\003\340A\002\022<\n\010endpoint\030\003 \001(\tB*\340" - + "A\002\372A$\n\"aiplatform.googleapis.com/Endpoin" - + "t\022=\n\005state\030\004 \001(\0162).google.cloud.aiplatfo" - + "rm.v1beta1.JobStateB\003\340A\003\022r\n\016schedule_sta" - + "te\030\005 \001(\0162U.google.cloud.aiplatform.v1bet" - + "a1.ModelDeploymentMonitoringJob.Monitori" - + "ngScheduleStateB\003\340A\003\022\205\001\n-model_deploymen" - + "t_monitoring_objective_configs\030\006 \003(\0132I.g" - + "oogle.cloud.aiplatform.v1beta1.ModelDepl" - + "oymentMonitoringObjectiveConfigB\003\340A\002\022\202\001\n" - + "+model_deployment_monitoring_schedule_co" - + "nfig\030\007 \001(\0132H.google.cloud.aiplatform.v1b" - + "eta1.ModelDeploymentMonitoringScheduleCo" - + "nfigB\003\340A\002\022Y\n\031logging_sampling_strategy\030\010" - + " \001(\01321.google.cloud.aiplatform.v1beta1.S" - + "amplingStrategyB\003\340A\002\022b\n\035model_monitoring" - + "_alert_config\030\017 \001(\0132;.google.cloud.aipla" - + "tform.v1beta1.ModelMonitoringAlertConfig" - + "\022#\n\033predict_instance_schema_uri\030\t \001(\t\0227\n" - + "\027sample_predict_instance\030\023 \001(\0132\026.google." - + "protobuf.Value\022$\n\034analysis_instance_sche" - + "ma_uri\030\020 \001(\t\022e\n\017bigquery_tables\030\n \003(\0132G." - + "google.cloud.aiplatform.v1beta1.ModelDep" - + "loymentMonitoringBigQueryTableB\003\340A\003\022*\n\007l" - + "og_ttl\030\021 \001(\0132\031.google.protobuf.Duration\022" - + "Y\n\006labels\030\013 \003(\0132I.google.cloud.aiplatfor" - + "m.v1beta1.ModelDeploymentMonitoringJob.L" - + "abelsEntry\0224\n\013create_time\030\014 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\0224\n\013update_time\030" - + "\r \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022;" - + "\n\022next_schedule_time\030\016 \001(\0132\032.google.prot" - + "obuf.TimestampB\003\340A\003\022W\n\036stats_anomalies_b" - + "ase_directory\030\024 \001(\0132/.google.cloud.aipla" - + "tform.v1beta1.GcsDestination\032-\n\013LabelsEn" - + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"k\n\027M" - + "onitoringScheduleState\022)\n%MONITORING_SCH" - + "EDULE_STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013" - + "\n\007OFFLINE\020\002\022\013\n\007RUNNING\020\003:\245\001\352A\241\001\n6aiplatf" - + "orm.googleapis.com/ModelDeploymentMonito" - + "ringJob\022gprojects/{project}/locations/{l" - + "ocation}/modelDeploymentMonitoringJobs/{" - + "model_deployment_monitoring_job}\"\222\003\n&Mod" - + "elDeploymentMonitoringBigQueryTable\022e\n\nl" - + "og_source\030\001 \001(\0162Q.google.cloud.aiplatfor" - + "m.v1beta1.ModelDeploymentMonitoringBigQu" - + "eryTable.LogSource\022a\n\010log_type\030\002 \001(\0162O.g" - + "oogle.cloud.aiplatform.v1beta1.ModelDepl" - + "oymentMonitoringBigQueryTable.LogType\022\033\n" - + "\023bigquery_table_path\030\003 \001(\t\"B\n\tLogSource\022" - + "\032\n\026LOG_SOURCE_UNSPECIFIED\020\000\022\014\n\010TRAINING\020" - + "\001\022\013\n\007SERVING\020\002\"=\n\007LogType\022\030\n\024LOG_TYPE_UN" - + "SPECIFIED\020\000\022\013\n\007PREDICT\020\001\022\013\n\007EXPLAIN\020\002\"\240\001" - + "\n(ModelDeploymentMonitoringObjectiveConf" - + "ig\022\031\n\021deployed_model_id\030\001 \001(\t\022Y\n\020objecti" - + "ve_config\030\002 \001(\0132?.google.cloud.aiplatfor" - + "m.v1beta1.ModelMonitoringObjectiveConfig" - + "\"c\n\'ModelDeploymentMonitoringScheduleCon" - + "fig\0228\n\020monitor_interval\030\001 \001(\0132\031.google.p" - + "rotobuf.DurationB\003\340A\002\"\305\004\n\035ModelMonitorin" - + "gStatsAnomalies\022Z\n\tobjective\030\001 \001(\0162G.goo" - + "gle.cloud.aiplatform.v1beta1.ModelDeploy" - + "mentMonitoringObjectiveType\022\031\n\021deployed_" - + "model_id\030\002 \001(\t\022\025\n\ranomaly_count\030\003 \001(\005\022s\n" - + "\rfeature_stats\030\004 \003(\0132\\.google.cloud.aipl" - + "atform.v1beta1.ModelMonitoringStatsAnoma" - + "lies.FeatureHistoricStatsAnomalies\032\240\002\n\035F" - + "eatureHistoricStatsAnomalies\022\034\n\024feature_" - + "display_name\030\001 \001(\t\022C\n\tthreshold\030\003 \001(\01320." - + "google.cloud.aiplatform.v1beta1.Threshol" - + "dConfig\022L\n\016training_stats\030\004 \001(\01324.google" - + ".cloud.aiplatform.v1beta1.FeatureStatsAn" - + "omaly\022N\n\020prediction_stats\030\005 \003(\01324.google" - + ".cloud.aiplatform.v1beta1.FeatureStatsAn" - + "omaly*\316\001\n&ModelDeploymentMonitoringObjec" - + "tiveType\022:\n6MODEL_DEPLOYMENT_MONITORING_" - + "OBJECTIVE_TYPE_UNSPECIFIED\020\000\022\024\n\020RAW_FEAT" - + "URE_SKEW\020\001\022\025\n\021RAW_FEATURE_DRIFT\020\002\022\034\n\030FEA" - + "TURE_ATTRIBUTION_SKEW\020\003\022\035\n\031FEATURE_ATTRI" - + "BUTION_DRIFT\020\004B\225\001\n#com.google.cloud.aipl" - + "atform.v1beta1B!ModelDeploymentMonitorin" - + "gJobProtoP\001ZIgoogle.golang.org/genproto/" - + "googleapis/cloud/aiplatform/v1beta1;aipl" - + "atformb\006proto3" + + "roto\0325google/cloud/aiplatform/v1beta1/en" + + "cryption_spec.proto\032>google/cloud/aiplat" + + "form/v1beta1/feature_monitoring_stats.pr" + + "oto\032(google/cloud/aiplatform/v1beta1/io." + + "proto\032/google/cloud/aiplatform/v1beta1/j" + + "ob_state.proto\0326google/cloud/aiplatform/" + + "v1beta1/model_monitoring.proto\032\036google/p" + + "rotobuf/duration.proto\032\034google/protobuf/" + + "struct.proto\032\037google/protobuf/timestamp." + + "proto\032\034google/api/annotations.proto\"\301\r\n\034" + + "ModelDeploymentMonitoringJob\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022<\n\010en" + + "dpoint\030\003 \001(\tB*\340A\002\372A$\n\"aiplatform.googlea" + + "pis.com/Endpoint\022=\n\005state\030\004 \001(\0162).google" + + ".cloud.aiplatform.v1beta1.JobStateB\003\340A\003\022" + + "r\n\016schedule_state\030\005 \001(\0162U.google.cloud.a" + + "iplatform.v1beta1.ModelDeploymentMonitor" + + "ingJob.MonitoringScheduleStateB\003\340A\003\022\205\001\n-" + + "model_deployment_monitoring_objective_co" + + "nfigs\030\006 \003(\0132I.google.cloud.aiplatform.v1" + + "beta1.ModelDeploymentMonitoringObjective" + + "ConfigB\003\340A\002\022\202\001\n+model_deployment_monitor" + + "ing_schedule_config\030\007 \001(\0132H.google.cloud" + + ".aiplatform.v1beta1.ModelDeploymentMonit" + + "oringScheduleConfigB\003\340A\002\022Y\n\031logging_samp" + + "ling_strategy\030\010 \001(\01321.google.cloud.aipla" + + "tform.v1beta1.SamplingStrategyB\003\340A\002\022b\n\035m" + + "odel_monitoring_alert_config\030\017 \001(\0132;.goo" + + "gle.cloud.aiplatform.v1beta1.ModelMonito" + + "ringAlertConfig\022#\n\033predict_instance_sche" + + "ma_uri\030\t \001(\t\0227\n\027sample_predict_instance\030" + + "\023 \001(\0132\026.google.protobuf.Value\022$\n\034analysi" + + "s_instance_schema_uri\030\020 \001(\t\022e\n\017bigquery_" + + "tables\030\n \003(\0132G.google.cloud.aiplatform.v" + + "1beta1.ModelDeploymentMonitoringBigQuery" + + "TableB\003\340A\003\022*\n\007log_ttl\030\021 \001(\0132\031.google.pro" + + "tobuf.Duration\022Y\n\006labels\030\013 \003(\0132I.google." + + "cloud.aiplatform.v1beta1.ModelDeployment" + + "MonitoringJob.LabelsEntry\0224\n\013create_time" + + "\030\014 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "4\n\013update_time\030\r \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\022;\n\022next_schedule_time\030\016 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022W\n\036st" + + "ats_anomalies_base_directory\030\024 \001(\0132/.goo" + + "gle.cloud.aiplatform.v1beta1.GcsDestinat" + + "ion\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + + "\030\002 \001(\t:\0028\001\"k\n\027MonitoringScheduleState\022)\n" + + "%MONITORING_SCHEDULE_STATE_UNSPECIFIED\020\000" + + "\022\013\n\007PENDING\020\001\022\013\n\007OFFLINE\020\002\022\013\n\007RUNNING\020\003:" + + "\245\001\352A\241\001\n6aiplatform.googleapis.com/ModelD" + + "eploymentMonitoringJob\022gprojects/{projec" + + "t}/locations/{location}/modelDeploymentM" + + "onitoringJobs/{model_deployment_monitori" + + "ng_job}\"\222\003\n&ModelDeploymentMonitoringBig" + + "QueryTable\022e\n\nlog_source\030\001 \001(\0162Q.google." + + "cloud.aiplatform.v1beta1.ModelDeployment" + + "MonitoringBigQueryTable.LogSource\022a\n\010log" + + "_type\030\002 \001(\0162O.google.cloud.aiplatform.v1" + + "beta1.ModelDeploymentMonitoringBigQueryT" + + "able.LogType\022\033\n\023bigquery_table_path\030\003 \001(" + + "\t\"B\n\tLogSource\022\032\n\026LOG_SOURCE_UNSPECIFIED" + + "\020\000\022\014\n\010TRAINING\020\001\022\013\n\007SERVING\020\002\"=\n\007LogType" + + "\022\030\n\024LOG_TYPE_UNSPECIFIED\020\000\022\013\n\007PREDICT\020\001\022" + + "\013\n\007EXPLAIN\020\002\"\240\001\n(ModelDeploymentMonitori" + + "ngObjectiveConfig\022\031\n\021deployed_model_id\030\001" + + " \001(\t\022Y\n\020objective_config\030\002 \001(\0132?.google." + + "cloud.aiplatform.v1beta1.ModelMonitoring" + + "ObjectiveConfig\"c\n\'ModelDeploymentMonito" + + "ringScheduleConfig\0228\n\020monitor_interval\030\001" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\002\"\305\004\n" + + "\035ModelMonitoringStatsAnomalies\022Z\n\tobject" + + "ive\030\001 \001(\0162G.google.cloud.aiplatform.v1be" + + "ta1.ModelDeploymentMonitoringObjectiveTy" + + "pe\022\031\n\021deployed_model_id\030\002 \001(\t\022\025\n\ranomaly" + + "_count\030\003 \001(\005\022s\n\rfeature_stats\030\004 \003(\0132\\.go" + + "ogle.cloud.aiplatform.v1beta1.ModelMonit" + + "oringStatsAnomalies.FeatureHistoricStats" + + "Anomalies\032\240\002\n\035FeatureHistoricStatsAnomal" + + "ies\022\034\n\024feature_display_name\030\001 \001(\t\022C\n\tthr" + + "eshold\030\003 \001(\01320.google.cloud.aiplatform.v" + + "1beta1.ThresholdConfig\022L\n\016training_stats" + + "\030\004 \001(\01324.google.cloud.aiplatform.v1beta1" + + ".FeatureStatsAnomaly\022N\n\020prediction_stats" + + "\030\005 \003(\01324.google.cloud.aiplatform.v1beta1" + + ".FeatureStatsAnomaly*\316\001\n&ModelDeployment" + + "MonitoringObjectiveType\022:\n6MODEL_DEPLOYM" + + "ENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIE" + + "D\020\000\022\024\n\020RAW_FEATURE_SKEW\020\001\022\025\n\021RAW_FEATURE" + + "_DRIFT\020\002\022\034\n\030FEATURE_ATTRIBUTION_SKEW\020\003\022\035" + + "\n\031FEATURE_ATTRIBUTION_DRIFT\020\004B\376\001\n#com.go" + + "ogle.cloud.aiplatform.v1beta1B!ModelDepl" + + "oymentMonitoringJobProtoP\001ZIgoogle.golan" + + "g.org/genproto/googleapis/cloud/aiplatfo" + + "rm/v1beta1;aiplatform\252\002\037Google.Cloud.AIP" + + "latform.V1Beta1\312\002\037Google\\Cloud\\AIPlatfor" + + "m\\V1beta1\352\002\"Google::Cloud::AIPlatform::V" + + "1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -168,6 +172,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.FeatureMonitoringStatsProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.JobStateProto.getDescriptor(), @@ -264,6 +269,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.FeatureMonitoringStatsProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.JobStateProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationProto.java index b219e56e7..ad4493b86 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationProto.java @@ -67,11 +67,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tform.v1beta1.ExplanationSpec:\177\352A|\n)aipl" + "atform.googleapis.com/ModelEvaluation\022Op" + "rojects/{project}/locations/{location}/m" - + "odels/{model}/evaluations/{evaluation}B\210" + + "odels/{model}/evaluations/{evaluation}B\361" + "\001\n#com.google.cloud.aiplatform.v1beta1B\024" + "ModelEvaluationProtoP\001ZIgoogle.golang.or" + "g/genproto/googleapis/cloud/aiplatform/v" - + "1beta1;aiplatformb\006proto3" + + "1beta1;aiplatform\252\002\037Google.Cloud.AIPlatf" + + "orm.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1" + + "beta1\352\002\"Google::Cloud::AIPlatform::V1bet" + + "a1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSliceProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSliceProto.java index bc1dd5c3d..6893d88aa 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSliceProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelEvaluationSliceProto.java @@ -61,11 +61,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\224\001\352A\220\001\n.aiplatform.googleapis.com/ModelE" + "valuationSlice\022^projects/{project}/locat" + "ions/{location}/models/{model}/evaluatio" - + "ns/{evaluation}/slices/{slice}B\215\001\n#com.g" + + "ns/{evaluation}/slices/{slice}B\366\001\n#com.g" + "oogle.cloud.aiplatform.v1beta1B\031ModelEva" + "luationSliceProtoP\001ZIgoogle.golang.org/g" + "enproto/googleapis/cloud/aiplatform/v1be" - + "ta1;aiplatformb\006proto3" + + "ta1;aiplatform\252\002\037Google.Cloud.AIPlatform" + + ".V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1bet" + + "a1\352\002\"Google::Cloud::AIPlatform::V1beta1b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringObjectiveConfig.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringObjectiveConfig.java index 238844f64..059b46ca6 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringObjectiveConfig.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringObjectiveConfig.java @@ -127,6 +127,26 @@ private ModelMonitoringObjectiveConfig( predictionDriftDetectionConfig_ = subBuilder.buildPartial(); } + break; + } + case 42: + { + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .Builder + subBuilder = null; + if (explanationConfig_ != null) { + subBuilder = explanationConfig_.toBuilder(); + } + explanationConfig_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .ExplanationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(explanationConfig_); + explanationConfig_ = subBuilder.buildPartial(); + } + break; } default: @@ -2558,7 +2578,7 @@ public interface TrainingPredictionSkewDetectionConfigOrBuilder * *
      * Key is the feature name and value is the threshold. If a feature needs to
-     * be monitored for skew, a value threshold must be configed for that
+     * be monitored for skew, a value threshold must be configured for that
      * feature. The threshold here is against feature distribution distance
      * between the training and prediction feature.
      * 
@@ -2573,7 +2593,7 @@ public interface TrainingPredictionSkewDetectionConfigOrBuilder * *
      * Key is the feature name and value is the threshold. If a feature needs to
-     * be monitored for skew, a value threshold must be configed for that
+     * be monitored for skew, a value threshold must be configured for that
      * feature. The threshold here is against feature distribution distance
      * between the training and prediction feature.
      * 
@@ -2592,7 +2612,7 @@ public interface TrainingPredictionSkewDetectionConfigOrBuilder * *
      * Key is the feature name and value is the threshold. If a feature needs to
-     * be monitored for skew, a value threshold must be configed for that
+     * be monitored for skew, a value threshold must be configured for that
      * feature. The threshold here is against feature distribution distance
      * between the training and prediction feature.
      * 
@@ -2608,7 +2628,7 @@ public interface TrainingPredictionSkewDetectionConfigOrBuilder * *
      * Key is the feature name and value is the threshold. If a feature needs to
-     * be monitored for skew, a value threshold must be configed for that
+     * be monitored for skew, a value threshold must be configured for that
      * feature. The threshold here is against feature distribution distance
      * between the training and prediction feature.
      * 
@@ -2624,7 +2644,7 @@ com.google.cloud.aiplatform.v1beta1.ThresholdConfig getSkewThresholdsOrDefault( * *
      * Key is the feature name and value is the threshold. If a feature needs to
-     * be monitored for skew, a value threshold must be configed for that
+     * be monitored for skew, a value threshold must be configured for that
      * feature. The threshold here is against feature distribution distance
      * between the training and prediction feature.
      * 
@@ -2635,6 +2655,84 @@ com.google.cloud.aiplatform.v1beta1.ThresholdConfig getSkewThresholdsOrDefault( */ com.google.cloud.aiplatform.v1beta1.ThresholdConfig getSkewThresholdsOrThrow( java.lang.String key); + + /** + * + * + *
+     * Key is the feature name and value is the threshold. The threshold here is
+     * against attribution score distance between the training and prediction
+     * feature.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_skew_thresholds = 2; + * + */ + int getAttributionScoreSkewThresholdsCount(); + /** + * + * + *
+     * Key is the feature name and value is the threshold. The threshold here is
+     * against attribution score distance between the training and prediction
+     * feature.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_skew_thresholds = 2; + * + */ + boolean containsAttributionScoreSkewThresholds(java.lang.String key); + /** Use {@link #getAttributionScoreSkewThresholdsMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getAttributionScoreSkewThresholds(); + /** + * + * + *
+     * Key is the feature name and value is the threshold. The threshold here is
+     * against attribution score distance between the training and prediction
+     * feature.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_skew_thresholds = 2; + * + */ + java.util.Map + getAttributionScoreSkewThresholdsMap(); + /** + * + * + *
+     * Key is the feature name and value is the threshold. The threshold here is
+     * against attribution score distance between the training and prediction
+     * feature.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_skew_thresholds = 2; + * + */ + com.google.cloud.aiplatform.v1beta1.ThresholdConfig getAttributionScoreSkewThresholdsOrDefault( + java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue); + /** + * + * + *
+     * Key is the feature name and value is the threshold. The threshold here is
+     * against attribution score distance between the training and prediction
+     * feature.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_skew_thresholds = 2; + * + */ + com.google.cloud.aiplatform.v1beta1.ThresholdConfig getAttributionScoreSkewThresholdsOrThrow( + java.lang.String key); } /** * @@ -2710,6 +2808,28 @@ private TrainingPredictionSkewDetectionConfig( .put(skewThresholds__.getKey(), skewThresholds__.getValue()); break; } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + attributionScoreSkewThresholds_ = + com.google.protobuf.MapField.newMapField( + AttributionScoreSkewThresholdsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> + attributionScoreSkewThresholds__ = + input.readMessage( + AttributionScoreSkewThresholdsDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + attributionScoreSkewThresholds_ + .getMutableMap() + .put( + attributionScoreSkewThresholds__.getKey(), + attributionScoreSkewThresholds__.getValue()); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -2740,6 +2860,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetSkewThresholds(); + case 2: + return internalGetAttributionScoreSkewThresholds(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -2796,7 +2918,7 @@ public int getSkewThresholdsCount() { * *
      * Key is the feature name and value is the threshold. If a feature needs to
-     * be monitored for skew, a value threshold must be configed for that
+     * be monitored for skew, a value threshold must be configured for that
      * feature. The threshold here is against feature distribution distance
      * between the training and prediction feature.
      * 
@@ -2824,7 +2946,7 @@ public boolean containsSkewThresholds(java.lang.String key) { * *
      * Key is the feature name and value is the threshold. If a feature needs to
-     * be monitored for skew, a value threshold must be configed for that
+     * be monitored for skew, a value threshold must be configured for that
      * feature. The threshold here is against feature distribution distance
      * between the training and prediction feature.
      * 
@@ -2843,7 +2965,7 @@ public boolean containsSkewThresholds(java.lang.String key) { * *
      * Key is the feature name and value is the threshold. If a feature needs to
-     * be monitored for skew, a value threshold must be configed for that
+     * be monitored for skew, a value threshold must be configured for that
      * feature. The threshold here is against feature distribution distance
      * between the training and prediction feature.
      * 
@@ -2867,7 +2989,7 @@ public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getSkewThresholdsOrDe * *
      * Key is the feature name and value is the threshold. If a feature needs to
-     * be monitored for skew, a value threshold must be configed for that
+     * be monitored for skew, a value threshold must be configured for that
      * feature. The threshold here is against feature distribution distance
      * between the training and prediction feature.
      * 
@@ -2890,6 +3012,137 @@ public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getSkewThresholdsOrTh return map.get(key); } + public static final int ATTRIBUTION_SCORE_SKEW_THRESHOLDS_FIELD_NUMBER = 2; + + private static final class AttributionScoreSkewThresholdsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_TrainingPredictionSkewDetectionConfig_AttributionScoreSkewThresholdsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.aiplatform.v1beta1.ThresholdConfig.getDefaultInstance()); + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> + attributionScoreSkewThresholds_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> + internalGetAttributionScoreSkewThresholds() { + if (attributionScoreSkewThresholds_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AttributionScoreSkewThresholdsDefaultEntryHolder.defaultEntry); + } + return attributionScoreSkewThresholds_; + } + + public int getAttributionScoreSkewThresholdsCount() { + return internalGetAttributionScoreSkewThresholds().getMap().size(); + } + /** + * + * + *
+     * Key is the feature name and value is the threshold. The threshold here is
+     * against attribution score distance between the training and prediction
+     * feature.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_skew_thresholds = 2; + * + */ + @java.lang.Override + public boolean containsAttributionScoreSkewThresholds(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetAttributionScoreSkewThresholds().getMap().containsKey(key); + } + /** Use {@link #getAttributionScoreSkewThresholdsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getAttributionScoreSkewThresholds() { + return getAttributionScoreSkewThresholdsMap(); + } + /** + * + * + *
+     * Key is the feature name and value is the threshold. The threshold here is
+     * against attribution score distance between the training and prediction
+     * feature.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_skew_thresholds = 2; + * + */ + @java.lang.Override + public java.util.Map + getAttributionScoreSkewThresholdsMap() { + return internalGetAttributionScoreSkewThresholds().getMap(); + } + /** + * + * + *
+     * Key is the feature name and value is the threshold. The threshold here is
+     * against attribution score distance between the training and prediction
+     * feature.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_skew_thresholds = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ThresholdConfig + getAttributionScoreSkewThresholdsOrDefault( + java.lang.String key, + com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetAttributionScoreSkewThresholds().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Key is the feature name and value is the threshold. The threshold here is
+     * against attribution score distance between the training and prediction
+     * feature.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_skew_thresholds = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ThresholdConfig + getAttributionScoreSkewThresholdsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetAttributionScoreSkewThresholds().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2906,6 +3159,11 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetSkewThresholds(), SkewThresholdsDefaultEntryHolder.defaultEntry, 1); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, + internalGetAttributionScoreSkewThresholds(), + AttributionScoreSkewThresholdsDefaultEntryHolder.defaultEntry, + 2); unknownFields.writeTo(output); } @@ -2928,6 +3186,21 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, skewThresholds__); } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> + entry : internalGetAttributionScoreSkewThresholds().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> + attributionScoreSkewThresholds__ = + AttributionScoreSkewThresholdsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, attributionScoreSkewThresholds__); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -2952,6 +3225,8 @@ public boolean equals(final java.lang.Object obj) { obj; if (!internalGetSkewThresholds().equals(other.internalGetSkewThresholds())) return false; + if (!internalGetAttributionScoreSkewThresholds() + .equals(other.internalGetAttributionScoreSkewThresholds())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2967,6 +3242,10 @@ public int hashCode() { hash = (37 * hash) + SKEW_THRESHOLDS_FIELD_NUMBER; hash = (53 * hash) + internalGetSkewThresholds().hashCode(); } + if (!internalGetAttributionScoreSkewThresholds().getMap().isEmpty()) { + hash = (37 * hash) + ATTRIBUTION_SCORE_SKEW_THRESHOLDS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAttributionScoreSkewThresholds().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -3116,6 +3395,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetSkewThresholds(); + case 2: + return internalGetAttributionScoreSkewThresholds(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -3126,6 +3407,8 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 1: return internalGetMutableSkewThresholds(); + case 2: + return internalGetMutableAttributionScoreSkewThresholds(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -3162,6 +3445,7 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); internalGetMutableSkewThresholds().clear(); + internalGetMutableAttributionScoreSkewThresholds().clear(); return this; } @@ -3204,6 +3488,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { int from_bitField0_ = bitField0_; result.skewThresholds_ = internalGetSkewThresholds(); result.skewThresholds_.makeImmutable(); + result.attributionScoreSkewThresholds_ = internalGetAttributionScoreSkewThresholds(); + result.attributionScoreSkewThresholds_.makeImmutable(); onBuilt(); return result; } @@ -3267,6 +3553,8 @@ public Builder mergeFrom( == com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig .TrainingPredictionSkewDetectionConfig.getDefaultInstance()) return this; internalGetMutableSkewThresholds().mergeFrom(other.internalGetSkewThresholds()); + internalGetMutableAttributionScoreSkewThresholds() + .mergeFrom(other.internalGetAttributionScoreSkewThresholds()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -3341,7 +3629,7 @@ public int getSkewThresholdsCount() { * *
        * Key is the feature name and value is the threshold. If a feature needs to
-       * be monitored for skew, a value threshold must be configed for that
+       * be monitored for skew, a value threshold must be configured for that
        * feature. The threshold here is against feature distribution distance
        * between the training and prediction feature.
        * 
@@ -3369,7 +3657,7 @@ public boolean containsSkewThresholds(java.lang.String key) { * *
        * Key is the feature name and value is the threshold. If a feature needs to
-       * be monitored for skew, a value threshold must be configed for that
+       * be monitored for skew, a value threshold must be configured for that
        * feature. The threshold here is against feature distribution distance
        * between the training and prediction feature.
        * 
@@ -3388,7 +3676,7 @@ public boolean containsSkewThresholds(java.lang.String key) { * *
        * Key is the feature name and value is the threshold. If a feature needs to
-       * be monitored for skew, a value threshold must be configed for that
+       * be monitored for skew, a value threshold must be configured for that
        * feature. The threshold here is against feature distribution distance
        * between the training and prediction feature.
        * 
@@ -3412,7 +3700,7 @@ public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getSkewThresholdsOrDe * *
        * Key is the feature name and value is the threshold. If a feature needs to
-       * be monitored for skew, a value threshold must be configed for that
+       * be monitored for skew, a value threshold must be configured for that
        * feature. The threshold here is against feature distribution distance
        * between the training and prediction feature.
        * 
@@ -3444,7 +3732,7 @@ public Builder clearSkewThresholds() { * *
        * Key is the feature name and value is the threshold. If a feature needs to
-       * be monitored for skew, a value threshold must be configed for that
+       * be monitored for skew, a value threshold must be configured for that
        * feature. The threshold here is against feature distribution distance
        * between the training and prediction feature.
        * 
@@ -3471,7 +3759,7 @@ public Builder removeSkewThresholds(java.lang.String key) { * *
        * Key is the feature name and value is the threshold. If a feature needs to
-       * be monitored for skew, a value threshold must be configed for that
+       * be monitored for skew, a value threshold must be configured for that
        * feature. The threshold here is against feature distribution distance
        * between the training and prediction feature.
        * 
@@ -3496,7 +3784,7 @@ public Builder putSkewThresholds( * *
        * Key is the feature name and value is the threshold. If a feature needs to
-       * be monitored for skew, a value threshold must be configed for that
+       * be monitored for skew, a value threshold must be configured for that
        * feature. The threshold here is against feature distribution distance
        * between the training and prediction feature.
        * 
@@ -3512,77 +3800,281 @@ public Builder putAllSkewThresholds( return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> + attributionScoreSkewThresholds_; - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> + internalGetAttributionScoreSkewThresholds() { + if (attributionScoreSkewThresholds_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AttributionScoreSkewThresholdsDefaultEntryHolder.defaultEntry); + } + return attributionScoreSkewThresholds_; } - // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig) - private static final com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .TrainingPredictionSkewDetectionConfig - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .TrainingPredictionSkewDetectionConfig(); - } - - public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .TrainingPredictionSkewDetectionConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TrainingPredictionSkewDetectionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TrainingPredictionSkewDetectionConfig(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.ModelMonitoringObjectiveConfig - .TrainingPredictionSkewDetectionConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface PredictionDriftDetectionConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig) - com.google.protobuf.MessageOrBuilder { + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> + internalGetMutableAttributionScoreSkewThresholds() { + onChanged(); + ; + if (attributionScoreSkewThresholds_ == null) { + attributionScoreSkewThresholds_ = + com.google.protobuf.MapField.newMapField( + AttributionScoreSkewThresholdsDefaultEntryHolder.defaultEntry); + } + if (!attributionScoreSkewThresholds_.isMutable()) { + attributionScoreSkewThresholds_ = attributionScoreSkewThresholds_.copy(); + } + return attributionScoreSkewThresholds_; + } - /** - * - * - *
+      public int getAttributionScoreSkewThresholdsCount() {
+        return internalGetAttributionScoreSkewThresholds().getMap().size();
+      }
+      /**
+       *
+       *
+       * 
+       * Key is the feature name and value is the threshold. The threshold here is
+       * against attribution score distance between the training and prediction
+       * feature.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_skew_thresholds = 2; + * + */ + @java.lang.Override + public boolean containsAttributionScoreSkewThresholds(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetAttributionScoreSkewThresholds().getMap().containsKey(key); + } + /** Use {@link #getAttributionScoreSkewThresholdsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getAttributionScoreSkewThresholds() { + return getAttributionScoreSkewThresholdsMap(); + } + /** + * + * + *
+       * Key is the feature name and value is the threshold. The threshold here is
+       * against attribution score distance between the training and prediction
+       * feature.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_skew_thresholds = 2; + * + */ + @java.lang.Override + public java.util.Map + getAttributionScoreSkewThresholdsMap() { + return internalGetAttributionScoreSkewThresholds().getMap(); + } + /** + * + * + *
+       * Key is the feature name and value is the threshold. The threshold here is
+       * against attribution score distance between the training and prediction
+       * feature.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_skew_thresholds = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ThresholdConfig + getAttributionScoreSkewThresholdsOrDefault( + java.lang.String key, + com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetAttributionScoreSkewThresholds().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+       * Key is the feature name and value is the threshold. The threshold here is
+       * against attribution score distance between the training and prediction
+       * feature.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_skew_thresholds = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ThresholdConfig + getAttributionScoreSkewThresholdsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetAttributionScoreSkewThresholds().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAttributionScoreSkewThresholds() { + internalGetMutableAttributionScoreSkewThresholds().getMutableMap().clear(); + return this; + } + /** + * + * + *
+       * Key is the feature name and value is the threshold. The threshold here is
+       * against attribution score distance between the training and prediction
+       * feature.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_skew_thresholds = 2; + * + */ + public Builder removeAttributionScoreSkewThresholds(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableAttributionScoreSkewThresholds().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableAttributionScoreSkewThresholds() { + return internalGetMutableAttributionScoreSkewThresholds().getMutableMap(); + } + /** + * + * + *
+       * Key is the feature name and value is the threshold. The threshold here is
+       * against attribution score distance between the training and prediction
+       * feature.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_skew_thresholds = 2; + * + */ + public Builder putAttributionScoreSkewThresholds( + java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableAttributionScoreSkewThresholds().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+       * Key is the feature name and value is the threshold. The threshold here is
+       * against attribution score distance between the training and prediction
+       * feature.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_skew_thresholds = 2; + * + */ + public Builder putAllAttributionScoreSkewThresholds( + java.util.Map + values) { + internalGetMutableAttributionScoreSkewThresholds().getMutableMap().putAll(values); + 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.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig) + private static final com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrainingPredictionSkewDetectionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TrainingPredictionSkewDetectionConfig(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.ModelMonitoringObjectiveConfig + .TrainingPredictionSkewDetectionConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PredictionDriftDetectionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      * Key is the feature name and value is the threshold. If a feature needs to
-     * be monitored for drift, a value threshold must be configed for that
+     * be monitored for drift, a value threshold must be configured for that
      * feature. The threshold here is against feature distribution distance
      * between different time windws.
      * 
@@ -3597,7 +4089,7 @@ public interface PredictionDriftDetectionConfigOrBuilder * *
      * Key is the feature name and value is the threshold. If a feature needs to
-     * be monitored for drift, a value threshold must be configed for that
+     * be monitored for drift, a value threshold must be configured for that
      * feature. The threshold here is against feature distribution distance
      * between different time windws.
      * 
@@ -3616,7 +4108,7 @@ public interface PredictionDriftDetectionConfigOrBuilder * *
      * Key is the feature name and value is the threshold. If a feature needs to
-     * be monitored for drift, a value threshold must be configed for that
+     * be monitored for drift, a value threshold must be configured for that
      * feature. The threshold here is against feature distribution distance
      * between different time windws.
      * 
@@ -3632,7 +4124,7 @@ public interface PredictionDriftDetectionConfigOrBuilder * *
      * Key is the feature name and value is the threshold. If a feature needs to
-     * be monitored for drift, a value threshold must be configed for that
+     * be monitored for drift, a value threshold must be configured for that
      * feature. The threshold here is against feature distribution distance
      * between different time windws.
      * 
@@ -3648,7 +4140,7 @@ com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDriftThresholdsOrDefault( * *
      * Key is the feature name and value is the threshold. If a feature needs to
-     * be monitored for drift, a value threshold must be configed for that
+     * be monitored for drift, a value threshold must be configured for that
      * feature. The threshold here is against feature distribution distance
      * between different time windws.
      * 
@@ -3659,6 +4151,79 @@ com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDriftThresholdsOrDefault( */ com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDriftThresholdsOrThrow( java.lang.String key); + + /** + * + * + *
+     * Key is the feature name and value is the threshold. The threshold here is
+     * against attribution score distance between different time windows.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_drift_thresholds = 2; + * + */ + int getAttributionScoreDriftThresholdsCount(); + /** + * + * + *
+     * Key is the feature name and value is the threshold. The threshold here is
+     * against attribution score distance between different time windows.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_drift_thresholds = 2; + * + */ + boolean containsAttributionScoreDriftThresholds(java.lang.String key); + /** Use {@link #getAttributionScoreDriftThresholdsMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getAttributionScoreDriftThresholds(); + /** + * + * + *
+     * Key is the feature name and value is the threshold. The threshold here is
+     * against attribution score distance between different time windows.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_drift_thresholds = 2; + * + */ + java.util.Map + getAttributionScoreDriftThresholdsMap(); + /** + * + * + *
+     * Key is the feature name and value is the threshold. The threshold here is
+     * against attribution score distance between different time windows.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_drift_thresholds = 2; + * + */ + com.google.cloud.aiplatform.v1beta1.ThresholdConfig getAttributionScoreDriftThresholdsOrDefault( + java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue); + /** + * + * + *
+     * Key is the feature name and value is the threshold. The threshold here is
+     * against attribution score distance between different time windows.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_drift_thresholds = 2; + * + */ + com.google.cloud.aiplatform.v1beta1.ThresholdConfig getAttributionScoreDriftThresholdsOrThrow( + java.lang.String key); } /** * @@ -3733,6 +4298,28 @@ private PredictionDriftDetectionConfig( .put(driftThresholds__.getKey(), driftThresholds__.getValue()); break; } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + attributionScoreDriftThresholds_ = + com.google.protobuf.MapField.newMapField( + AttributionScoreDriftThresholdsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> + attributionScoreDriftThresholds__ = + input.readMessage( + AttributionScoreDriftThresholdsDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + attributionScoreDriftThresholds_ + .getMutableMap() + .put( + attributionScoreDriftThresholds__.getKey(), + attributionScoreDriftThresholds__.getValue()); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -3763,6 +4350,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetDriftThresholds(); + case 2: + return internalGetAttributionScoreDriftThresholds(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -3819,7 +4408,7 @@ public int getDriftThresholdsCount() { * *
      * Key is the feature name and value is the threshold. If a feature needs to
-     * be monitored for drift, a value threshold must be configed for that
+     * be monitored for drift, a value threshold must be configured for that
      * feature. The threshold here is against feature distribution distance
      * between different time windws.
      * 
@@ -3847,7 +4436,7 @@ public boolean containsDriftThresholds(java.lang.String key) { * *
      * Key is the feature name and value is the threshold. If a feature needs to
-     * be monitored for drift, a value threshold must be configed for that
+     * be monitored for drift, a value threshold must be configured for that
      * feature. The threshold here is against feature distribution distance
      * between different time windws.
      * 
@@ -3866,7 +4455,7 @@ public boolean containsDriftThresholds(java.lang.String key) { * *
      * Key is the feature name and value is the threshold. If a feature needs to
-     * be monitored for drift, a value threshold must be configed for that
+     * be monitored for drift, a value threshold must be configured for that
      * feature. The threshold here is against feature distribution distance
      * between different time windws.
      * 
@@ -3890,7 +4479,7 @@ public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDriftThresholdsOrD * *
      * Key is the feature name and value is the threshold. If a feature needs to
-     * be monitored for drift, a value threshold must be configed for that
+     * be monitored for drift, a value threshold must be configured for that
      * feature. The threshold here is against feature distribution distance
      * between different time windws.
      * 
@@ -3913,13 +4502,140 @@ public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDriftThresholdsOrT return map.get(key); } - private byte memoizedIsInitialized = -1; + public static final int ATTRIBUTION_SCORE_DRIFT_THRESHOLDS_FIELD_NUMBER = 2; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private static final class AttributionScoreDriftThresholdsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_AttributionScoreDriftThresholdsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.aiplatform.v1beta1.ThresholdConfig.getDefaultInstance()); + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> + attributionScoreDriftThresholds_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> + internalGetAttributionScoreDriftThresholds() { + if (attributionScoreDriftThresholds_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AttributionScoreDriftThresholdsDefaultEntryHolder.defaultEntry); + } + return attributionScoreDriftThresholds_; + } + + public int getAttributionScoreDriftThresholdsCount() { + return internalGetAttributionScoreDriftThresholds().getMap().size(); + } + /** + * + * + *
+     * Key is the feature name and value is the threshold. The threshold here is
+     * against attribution score distance between different time windows.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_drift_thresholds = 2; + * + */ + @java.lang.Override + public boolean containsAttributionScoreDriftThresholds(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetAttributionScoreDriftThresholds().getMap().containsKey(key); + } + /** Use {@link #getAttributionScoreDriftThresholdsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getAttributionScoreDriftThresholds() { + return getAttributionScoreDriftThresholdsMap(); + } + /** + * + * + *
+     * Key is the feature name and value is the threshold. The threshold here is
+     * against attribution score distance between different time windows.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_drift_thresholds = 2; + * + */ + @java.lang.Override + public java.util.Map + getAttributionScoreDriftThresholdsMap() { + return internalGetAttributionScoreDriftThresholds().getMap(); + } + /** + * + * + *
+     * Key is the feature name and value is the threshold. The threshold here is
+     * against attribution score distance between different time windows.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_drift_thresholds = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ThresholdConfig + getAttributionScoreDriftThresholdsOrDefault( + java.lang.String key, + com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetAttributionScoreDriftThresholds().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Key is the feature name and value is the threshold. The threshold here is
+     * against attribution score distance between different time windows.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_drift_thresholds = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ThresholdConfig + getAttributionScoreDriftThresholdsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetAttributionScoreDriftThresholds().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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; @@ -3929,6 +4645,11 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetDriftThresholds(), DriftThresholdsDefaultEntryHolder.defaultEntry, 1); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, + internalGetAttributionScoreDriftThresholds(), + AttributionScoreDriftThresholdsDefaultEntryHolder.defaultEntry, + 2); unknownFields.writeTo(output); } @@ -3951,6 +4672,2859 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, driftThresholds__); } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> + entry : internalGetAttributionScoreDriftThresholds().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> + attributionScoreDriftThresholds__ = + AttributionScoreDriftThresholdsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, attributionScoreDriftThresholds__); + } + 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.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + other = + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig) + obj; + + if (!internalGetDriftThresholds().equals(other.internalGetDriftThresholds())) return false; + if (!internalGetAttributionScoreDriftThresholds() + .equals(other.internalGetAttributionScoreDriftThresholds())) 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 (!internalGetDriftThresholds().getMap().isEmpty()) { + hash = (37 * hash) + DRIFT_THRESHOLDS_FIELD_NUMBER; + hash = (53 * hash) + internalGetDriftThresholds().hashCode(); + } + if (!internalGetAttributionScoreDriftThresholds().getMap().isEmpty()) { + hash = (37 * hash) + ATTRIBUTION_SCORE_DRIFT_THRESHOLDS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAttributionScoreDriftThresholds().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + 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.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + 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.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + 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.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + 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.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + 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.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + 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.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + 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.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + 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; + } + /** + * + * + *
+     * The config for Prediction data drift detection.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig) + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetDriftThresholds(); + case 2: + return internalGetAttributionScoreDriftThresholds(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 1: + return internalGetMutableDriftThresholds(); + case 2: + return internalGetMutableAttributionScoreDriftThresholds(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig.class, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.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(); + internalGetMutableDriftThresholds().clear(); + internalGetMutableAttributionScoreDriftThresholds().clear(); + 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_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + build() { + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + buildPartial() { + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + result = + new com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig(this); + int from_bitField0_ = bitField0_; + result.driftThresholds_ = internalGetDriftThresholds(); + result.driftThresholds_.makeImmutable(); + result.attributionScoreDriftThresholds_ = internalGetAttributionScoreDriftThresholds(); + result.attributionScoreDriftThresholds_.makeImmutable(); + 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.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig.getDefaultInstance()) return this; + internalGetMutableDriftThresholds().mergeFrom(other.internalGetDriftThresholds()); + internalGetMutableAttributionScoreDriftThresholds() + .mergeFrom(other.internalGetAttributionScoreDriftThresholds()); + 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.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> + driftThresholds_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> + internalGetDriftThresholds() { + if (driftThresholds_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DriftThresholdsDefaultEntryHolder.defaultEntry); + } + return driftThresholds_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> + internalGetMutableDriftThresholds() { + onChanged(); + ; + if (driftThresholds_ == null) { + driftThresholds_ = + com.google.protobuf.MapField.newMapField( + DriftThresholdsDefaultEntryHolder.defaultEntry); + } + if (!driftThresholds_.isMutable()) { + driftThresholds_ = driftThresholds_.copy(); + } + return driftThresholds_; + } + + public int getDriftThresholdsCount() { + return internalGetDriftThresholds().getMap().size(); + } + /** + * + * + *
+       * Key is the feature name and value is the threshold. If a feature needs to
+       * be monitored for drift, a value threshold must be configured for that
+       * feature. The threshold here is against feature distribution distance
+       * between different time windws.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> drift_thresholds = 1; + * + */ + @java.lang.Override + public boolean containsDriftThresholds(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetDriftThresholds().getMap().containsKey(key); + } + /** Use {@link #getDriftThresholdsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getDriftThresholds() { + return getDriftThresholdsMap(); + } + /** + * + * + *
+       * Key is the feature name and value is the threshold. If a feature needs to
+       * be monitored for drift, a value threshold must be configured for that
+       * feature. The threshold here is against feature distribution distance
+       * between different time windws.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> drift_thresholds = 1; + * + */ + @java.lang.Override + public java.util.Map + getDriftThresholdsMap() { + return internalGetDriftThresholds().getMap(); + } + /** + * + * + *
+       * Key is the feature name and value is the threshold. If a feature needs to
+       * be monitored for drift, a value threshold must be configured for that
+       * feature. The threshold here is against feature distribution distance
+       * between different time windws.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> drift_thresholds = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDriftThresholdsOrDefault( + java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetDriftThresholds().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+       * Key is the feature name and value is the threshold. If a feature needs to
+       * be monitored for drift, a value threshold must be configured for that
+       * feature. The threshold here is against feature distribution distance
+       * between different time windws.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> drift_thresholds = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDriftThresholdsOrThrow( + java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetDriftThresholds().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearDriftThresholds() { + internalGetMutableDriftThresholds().getMutableMap().clear(); + return this; + } + /** + * + * + *
+       * Key is the feature name and value is the threshold. If a feature needs to
+       * be monitored for drift, a value threshold must be configured for that
+       * feature. The threshold here is against feature distribution distance
+       * between different time windws.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> drift_thresholds = 1; + * + */ + public Builder removeDriftThresholds(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableDriftThresholds().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableDriftThresholds() { + return internalGetMutableDriftThresholds().getMutableMap(); + } + /** + * + * + *
+       * Key is the feature name and value is the threshold. If a feature needs to
+       * be monitored for drift, a value threshold must be configured for that
+       * feature. The threshold here is against feature distribution distance
+       * between different time windws.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> drift_thresholds = 1; + * + */ + public Builder putDriftThresholds( + java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableDriftThresholds().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+       * Key is the feature name and value is the threshold. If a feature needs to
+       * be monitored for drift, a value threshold must be configured for that
+       * feature. The threshold here is against feature distribution distance
+       * between different time windws.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> drift_thresholds = 1; + * + */ + public Builder putAllDriftThresholds( + java.util.Map + values) { + internalGetMutableDriftThresholds().getMutableMap().putAll(values); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> + attributionScoreDriftThresholds_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> + internalGetAttributionScoreDriftThresholds() { + if (attributionScoreDriftThresholds_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AttributionScoreDriftThresholdsDefaultEntryHolder.defaultEntry); + } + return attributionScoreDriftThresholds_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> + internalGetMutableAttributionScoreDriftThresholds() { + onChanged(); + ; + if (attributionScoreDriftThresholds_ == null) { + attributionScoreDriftThresholds_ = + com.google.protobuf.MapField.newMapField( + AttributionScoreDriftThresholdsDefaultEntryHolder.defaultEntry); + } + if (!attributionScoreDriftThresholds_.isMutable()) { + attributionScoreDriftThresholds_ = attributionScoreDriftThresholds_.copy(); + } + return attributionScoreDriftThresholds_; + } + + public int getAttributionScoreDriftThresholdsCount() { + return internalGetAttributionScoreDriftThresholds().getMap().size(); + } + /** + * + * + *
+       * Key is the feature name and value is the threshold. The threshold here is
+       * against attribution score distance between different time windows.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_drift_thresholds = 2; + * + */ + @java.lang.Override + public boolean containsAttributionScoreDriftThresholds(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetAttributionScoreDriftThresholds().getMap().containsKey(key); + } + /** Use {@link #getAttributionScoreDriftThresholdsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getAttributionScoreDriftThresholds() { + return getAttributionScoreDriftThresholdsMap(); + } + /** + * + * + *
+       * Key is the feature name and value is the threshold. The threshold here is
+       * against attribution score distance between different time windows.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_drift_thresholds = 2; + * + */ + @java.lang.Override + public java.util.Map + getAttributionScoreDriftThresholdsMap() { + return internalGetAttributionScoreDriftThresholds().getMap(); + } + /** + * + * + *
+       * Key is the feature name and value is the threshold. The threshold here is
+       * against attribution score distance between different time windows.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_drift_thresholds = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ThresholdConfig + getAttributionScoreDriftThresholdsOrDefault( + java.lang.String key, + com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetAttributionScoreDriftThresholds().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+       * Key is the feature name and value is the threshold. The threshold here is
+       * against attribution score distance between different time windows.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_drift_thresholds = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ThresholdConfig + getAttributionScoreDriftThresholdsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetAttributionScoreDriftThresholds().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAttributionScoreDriftThresholds() { + internalGetMutableAttributionScoreDriftThresholds().getMutableMap().clear(); + return this; + } + /** + * + * + *
+       * Key is the feature name and value is the threshold. The threshold here is
+       * against attribution score distance between different time windows.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_drift_thresholds = 2; + * + */ + public Builder removeAttributionScoreDriftThresholds(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableAttributionScoreDriftThresholds().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableAttributionScoreDriftThresholds() { + return internalGetMutableAttributionScoreDriftThresholds().getMutableMap(); + } + /** + * + * + *
+       * Key is the feature name and value is the threshold. The threshold here is
+       * against attribution score distance between different time windows.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_drift_thresholds = 2; + * + */ + public Builder putAttributionScoreDriftThresholds( + java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableAttributionScoreDriftThresholds().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+       * Key is the feature name and value is the threshold. The threshold here is
+       * against attribution score distance between different time windows.
+       * 
+ * + * + * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> attribution_score_drift_thresholds = 2; + * + */ + public Builder putAllAttributionScoreDriftThresholds( + java.util.Map + values) { + internalGetMutableAttributionScoreDriftThresholds().getMutableMap().putAll(values); + 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.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig) + private static final com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PredictionDriftDetectionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PredictionDriftDetectionConfig(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.ModelMonitoringObjectiveConfig + .PredictionDriftDetectionConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ExplanationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * If want to analyze the Explainable AI feature attribute scores or not.
+     * If set to true, Vertex AI will log the feature attributions from
+     * explain response and do the skew/drift detection for them.
+     * 
+ * + * bool enable_feature_attributes = 1; + * + * @return The enableFeatureAttributes. + */ + boolean getEnableFeatureAttributes(); + + /** + * + * + *
+     * Predictions generated by the BatchPredictionJob using baseline dataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline explanation_baseline = 2; + * + * + * @return Whether the explanationBaseline field is set. + */ + boolean hasExplanationBaseline(); + /** + * + * + *
+     * Predictions generated by the BatchPredictionJob using baseline dataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline explanation_baseline = 2; + * + * + * @return The explanationBaseline. + */ + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline + getExplanationBaseline(); + /** + * + * + *
+     * Predictions generated by the BatchPredictionJob using baseline dataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline explanation_baseline = 2; + * + */ + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaselineOrBuilder + getExplanationBaselineOrBuilder(); + } + /** + * + * + *
+   * The config for integrated with Explainable AI. Only applicable if the Model
+   * has explanation_spec populated.
+   * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig} + */ + public static final class ExplanationConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig) + ExplanationConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExplanationConfig.newBuilder() to construct. + private ExplanationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExplanationConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExplanationConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExplanationConfig( + 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: + { + enableFeatureAttributes_ = input.readBool(); + break; + } + case 18: + { + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline.Builder + subBuilder = null; + if (explanationBaseline_ != null) { + subBuilder = explanationBaseline_.toBuilder(); + } + explanationBaseline_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .ExplanationConfig.ExplanationBaseline.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(explanationBaseline_); + explanationBaseline_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_ExplanationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_ExplanationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .class, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .Builder.class); + } + + public interface ExplanationBaselineOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Cloud Storage location for BatchExplain output.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs = 2; + * + * @return Whether the gcs field is set. + */ + boolean hasGcs(); + /** + * + * + *
+       * Cloud Storage location for BatchExplain output.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs = 2; + * + * @return The gcs. + */ + com.google.cloud.aiplatform.v1beta1.GcsDestination getGcs(); + /** + * + * + *
+       * Cloud Storage location for BatchExplain output.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs = 2; + */ + com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder getGcsOrBuilder(); + + /** + * + * + *
+       * BigQuery location for BatchExplain output.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery = 3; + * + * @return Whether the bigquery field is set. + */ + boolean hasBigquery(); + /** + * + * + *
+       * BigQuery location for BatchExplain output.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery = 3; + * + * @return The bigquery. + */ + com.google.cloud.aiplatform.v1beta1.BigQueryDestination getBigquery(); + /** + * + * + *
+       * BigQuery location for BatchExplain output.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery = 3; + */ + com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder getBigqueryOrBuilder(); + + /** + * + * + *
+       * The storage format of the predictions generated BatchPrediction job.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat prediction_format = 1; + * + * + * @return The enum numeric value on the wire for predictionFormat. + */ + int getPredictionFormatValue(); + /** + * + * + *
+       * The storage format of the predictions generated BatchPrediction job.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat prediction_format = 1; + * + * + * @return The predictionFormat. + */ + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline.PredictionFormat + getPredictionFormat(); + + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline.DestinationCase + getDestinationCase(); + } + /** + * + * + *
+     * Output from [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob] for Model Monitoring baseline dataset,
+     * which can be used to generate baseline attribution scores.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} + */ + public static final class ExplanationBaseline extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline) + ExplanationBaselineOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExplanationBaseline.newBuilder() to construct. + private ExplanationBaseline(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExplanationBaseline() { + predictionFormat_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExplanationBaseline(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExplanationBaseline( + 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: + { + int rawValue = input.readEnum(); + + predictionFormat_ = rawValue; + break; + } + case 18: + { + com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder subBuilder = null; + if (destinationCase_ == 2) { + subBuilder = + ((com.google.cloud.aiplatform.v1beta1.GcsDestination) destination_) + .toBuilder(); + } + destination_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.GcsDestination.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.aiplatform.v1beta1.GcsDestination) destination_); + destination_ = subBuilder.buildPartial(); + } + destinationCase_ = 2; + break; + } + case 26: + { + com.google.cloud.aiplatform.v1beta1.BigQueryDestination.Builder subBuilder = null; + if (destinationCase_ == 3) { + subBuilder = + ((com.google.cloud.aiplatform.v1beta1.BigQueryDestination) destination_) + .toBuilder(); + } + destination_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.BigQueryDestination.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.aiplatform.v1beta1.BigQueryDestination) destination_); + destination_ = subBuilder.buildPartial(); + } + destinationCase_ = 3; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_ExplanationConfig_ExplanationBaseline_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_ExplanationConfig_ExplanationBaseline_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline.class, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline.Builder.class); + } + + /** + * + * + *
+       * The storage format of the predictions generated BatchPrediction job.
+       * 
+ * + * Protobuf enum {@code + * google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat} + */ + public enum PredictionFormat implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+         * Should not be set.
+         * 
+ * + * PREDICTION_FORMAT_UNSPECIFIED = 0; + */ + PREDICTION_FORMAT_UNSPECIFIED(0), + /** + * + * + *
+         * Predictions are in JSONL files, consistent from the definition here
+         * (http://shortn/_4bS0hL7ofb).
+         * 
+ * + * JSONL = 2; + */ + JSONL(2), + /** + * + * + *
+         * Predictions are in BigQuery.
+         * 
+ * + * BIGQUERY = 3; + */ + BIGQUERY(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+         * Should not be set.
+         * 
+ * + * PREDICTION_FORMAT_UNSPECIFIED = 0; + */ + public static final int PREDICTION_FORMAT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+         * Predictions are in JSONL files, consistent from the definition here
+         * (http://shortn/_4bS0hL7ofb).
+         * 
+ * + * JSONL = 2; + */ + public static final int JSONL_VALUE = 2; + /** + * + * + *
+         * Predictions are in BigQuery.
+         * 
+ * + * BIGQUERY = 3; + */ + public static final int BIGQUERY_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 PredictionFormat 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 PredictionFormat forNumber(int value) { + switch (value) { + case 0: + return PREDICTION_FORMAT_UNSPECIFIED; + case 2: + return JSONL; + case 3: + return BIGQUERY; + 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 PredictionFormat findValueByNumber(int number) { + return PredictionFormat.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.ModelMonitoringObjectiveConfig + .ExplanationConfig.ExplanationBaseline.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final PredictionFormat[] VALUES = values(); + + public static PredictionFormat 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 PredictionFormat(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat) + } + + private int destinationCase_ = 0; + private java.lang.Object destination_; + + public enum DestinationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GCS(2), + BIGQUERY(3), + DESTINATION_NOT_SET(0); + private final int value; + + private DestinationCase(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 DestinationCase valueOf(int value) { + return forNumber(value); + } + + public static DestinationCase forNumber(int value) { + switch (value) { + case 2: + return GCS; + case 3: + return BIGQUERY; + case 0: + return DESTINATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public static final int GCS_FIELD_NUMBER = 2; + /** + * + * + *
+       * Cloud Storage location for BatchExplain output.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs = 2; + * + * @return Whether the gcs field is set. + */ + @java.lang.Override + public boolean hasGcs() { + return destinationCase_ == 2; + } + /** + * + * + *
+       * Cloud Storage location for BatchExplain output.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs = 2; + * + * @return The gcs. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GcsDestination getGcs() { + if (destinationCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.GcsDestination) destination_; + } + return com.google.cloud.aiplatform.v1beta1.GcsDestination.getDefaultInstance(); + } + /** + * + * + *
+       * Cloud Storage location for BatchExplain output.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder getGcsOrBuilder() { + if (destinationCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.GcsDestination) destination_; + } + return com.google.cloud.aiplatform.v1beta1.GcsDestination.getDefaultInstance(); + } + + public static final int BIGQUERY_FIELD_NUMBER = 3; + /** + * + * + *
+       * BigQuery location for BatchExplain output.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery = 3; + * + * @return Whether the bigquery field is set. + */ + @java.lang.Override + public boolean hasBigquery() { + return destinationCase_ == 3; + } + /** + * + * + *
+       * BigQuery location for BatchExplain output.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery = 3; + * + * @return The bigquery. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BigQueryDestination getBigquery() { + if (destinationCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.BigQueryDestination) destination_; + } + return com.google.cloud.aiplatform.v1beta1.BigQueryDestination.getDefaultInstance(); + } + /** + * + * + *
+       * BigQuery location for BatchExplain output.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery = 3; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder + getBigqueryOrBuilder() { + if (destinationCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.BigQueryDestination) destination_; + } + return com.google.cloud.aiplatform.v1beta1.BigQueryDestination.getDefaultInstance(); + } + + public static final int PREDICTION_FORMAT_FIELD_NUMBER = 1; + private int predictionFormat_; + /** + * + * + *
+       * The storage format of the predictions generated BatchPrediction job.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat prediction_format = 1; + * + * + * @return The enum numeric value on the wire for predictionFormat. + */ + @java.lang.Override + public int getPredictionFormatValue() { + return predictionFormat_; + } + /** + * + * + *
+       * The storage format of the predictions generated BatchPrediction job.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat prediction_format = 1; + * + * + * @return The predictionFormat. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline.PredictionFormat + getPredictionFormat() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline.PredictionFormat + result = + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline.PredictionFormat.valueOf(predictionFormat_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline.PredictionFormat.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 (predictionFormat_ + != com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline.PredictionFormat.PREDICTION_FORMAT_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, predictionFormat_); + } + if (destinationCase_ == 2) { + output.writeMessage(2, (com.google.cloud.aiplatform.v1beta1.GcsDestination) destination_); + } + if (destinationCase_ == 3) { + output.writeMessage( + 3, (com.google.cloud.aiplatform.v1beta1.BigQueryDestination) destination_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (predictionFormat_ + != com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline.PredictionFormat.PREDICTION_FORMAT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, predictionFormat_); + } + if (destinationCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.aiplatform.v1beta1.GcsDestination) destination_); + } + if (destinationCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.aiplatform.v1beta1.BigQueryDestination) destination_); + } + 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.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline + other = + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .ExplanationConfig.ExplanationBaseline) + obj; + + if (predictionFormat_ != other.predictionFormat_) return false; + if (!getDestinationCase().equals(other.getDestinationCase())) return false; + switch (destinationCase_) { + case 2: + if (!getGcs().equals(other.getGcs())) return false; + break; + case 3: + if (!getBigquery().equals(other.getBigquery())) return false; + break; + case 0: + default: + } + 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) + PREDICTION_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + predictionFormat_; + switch (destinationCase_) { + case 2: + hash = (37 * hash) + GCS_FIELD_NUMBER; + hash = (53 * hash) + getGcs().hashCode(); + break; + case 3: + hash = (37 * hash) + BIGQUERY_FIELD_NUMBER; + hash = (53 * hash) + getBigquery().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .ExplanationConfig.ExplanationBaseline + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .ExplanationConfig.ExplanationBaseline + 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.ModelMonitoringObjectiveConfig + .ExplanationConfig.ExplanationBaseline + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .ExplanationConfig.ExplanationBaseline + 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.ModelMonitoringObjectiveConfig + .ExplanationConfig.ExplanationBaseline + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .ExplanationConfig.ExplanationBaseline + 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.ModelMonitoringObjectiveConfig + .ExplanationConfig.ExplanationBaseline + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .ExplanationConfig.ExplanationBaseline + 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.ModelMonitoringObjectiveConfig + .ExplanationConfig.ExplanationBaseline + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .ExplanationConfig.ExplanationBaseline + 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.ModelMonitoringObjectiveConfig + .ExplanationConfig.ExplanationBaseline + 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.ModelMonitoringObjectiveConfig + .ExplanationConfig.ExplanationBaseline + 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.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline + 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; + } + /** + * + * + *
+       * Output from [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob] for Model Monitoring baseline dataset,
+       * which can be used to generate baseline attribution scores.
+       * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline) + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaselineOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_ExplanationConfig_ExplanationBaseline_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_ExplanationConfig_ExplanationBaseline_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .ExplanationConfig.ExplanationBaseline.class, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .ExplanationConfig.ExplanationBaseline.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.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(); + predictionFormat_ = 0; + + destinationCase_ = 0; + destination_ = null; + 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_ModelMonitoringObjectiveConfig_ExplanationConfig_ExplanationBaseline_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .ExplanationConfig.ExplanationBaseline.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline + build() { + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline + buildPartial() { + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline + result = + new com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .ExplanationConfig.ExplanationBaseline(this); + if (destinationCase_ == 2) { + if (gcsBuilder_ == null) { + result.destination_ = destination_; + } else { + result.destination_ = gcsBuilder_.build(); + } + } + if (destinationCase_ == 3) { + if (bigqueryBuilder_ == null) { + result.destination_ = destination_; + } else { + result.destination_ = bigqueryBuilder_.build(); + } + } + result.predictionFormat_ = predictionFormat_; + result.destinationCase_ = destinationCase_; + 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.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .ExplanationConfig.ExplanationBaseline) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .ExplanationConfig.ExplanationBaseline.getDefaultInstance()) return this; + if (other.predictionFormat_ != 0) { + setPredictionFormatValue(other.getPredictionFormatValue()); + } + switch (other.getDestinationCase()) { + case GCS: + { + mergeGcs(other.getGcs()); + break; + } + case BIGQUERY: + { + mergeBigquery(other.getBigquery()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } + } + 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.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .ExplanationConfig.ExplanationBaseline) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int destinationCase_ = 0; + private java.lang.Object destination_; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public Builder clearDestination() { + destinationCase_ = 0; + destination_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GcsDestination, + com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder, + com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder> + gcsBuilder_; + /** + * + * + *
+         * Cloud Storage location for BatchExplain output.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs = 2; + * + * @return Whether the gcs field is set. + */ + @java.lang.Override + public boolean hasGcs() { + return destinationCase_ == 2; + } + /** + * + * + *
+         * Cloud Storage location for BatchExplain output.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs = 2; + * + * @return The gcs. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GcsDestination getGcs() { + if (gcsBuilder_ == null) { + if (destinationCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.GcsDestination) destination_; + } + return com.google.cloud.aiplatform.v1beta1.GcsDestination.getDefaultInstance(); + } else { + if (destinationCase_ == 2) { + return gcsBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.GcsDestination.getDefaultInstance(); + } + } + /** + * + * + *
+         * Cloud Storage location for BatchExplain output.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs = 2; + */ + public Builder setGcs(com.google.cloud.aiplatform.v1beta1.GcsDestination value) { + if (gcsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destination_ = value; + onChanged(); + } else { + gcsBuilder_.setMessage(value); + } + destinationCase_ = 2; + return this; + } + /** + * + * + *
+         * Cloud Storage location for BatchExplain output.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs = 2; + */ + public Builder setGcs( + com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder builderForValue) { + if (gcsBuilder_ == null) { + destination_ = builderForValue.build(); + onChanged(); + } else { + gcsBuilder_.setMessage(builderForValue.build()); + } + destinationCase_ = 2; + return this; + } + /** + * + * + *
+         * Cloud Storage location for BatchExplain output.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs = 2; + */ + public Builder mergeGcs(com.google.cloud.aiplatform.v1beta1.GcsDestination value) { + if (gcsBuilder_ == null) { + if (destinationCase_ == 2 + && destination_ + != com.google.cloud.aiplatform.v1beta1.GcsDestination.getDefaultInstance()) { + destination_ = + com.google.cloud.aiplatform.v1beta1.GcsDestination.newBuilder( + (com.google.cloud.aiplatform.v1beta1.GcsDestination) destination_) + .mergeFrom(value) + .buildPartial(); + } else { + destination_ = value; + } + onChanged(); + } else { + if (destinationCase_ == 2) { + gcsBuilder_.mergeFrom(value); + } + gcsBuilder_.setMessage(value); + } + destinationCase_ = 2; + return this; + } + /** + * + * + *
+         * Cloud Storage location for BatchExplain output.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs = 2; + */ + public Builder clearGcs() { + if (gcsBuilder_ == null) { + if (destinationCase_ == 2) { + destinationCase_ = 0; + destination_ = null; + onChanged(); + } + } else { + if (destinationCase_ == 2) { + destinationCase_ = 0; + destination_ = null; + } + gcsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+         * Cloud Storage location for BatchExplain output.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs = 2; + */ + public com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder getGcsBuilder() { + return getGcsFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * Cloud Storage location for BatchExplain output.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder getGcsOrBuilder() { + if ((destinationCase_ == 2) && (gcsBuilder_ != null)) { + return gcsBuilder_.getMessageOrBuilder(); + } else { + if (destinationCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.GcsDestination) destination_; + } + return com.google.cloud.aiplatform.v1beta1.GcsDestination.getDefaultInstance(); + } + } + /** + * + * + *
+         * Cloud Storage location for BatchExplain output.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.GcsDestination gcs = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GcsDestination, + com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder, + com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder> + getGcsFieldBuilder() { + if (gcsBuilder_ == null) { + if (!(destinationCase_ == 2)) { + destination_ = + com.google.cloud.aiplatform.v1beta1.GcsDestination.getDefaultInstance(); + } + gcsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GcsDestination, + com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder, + com.google.cloud.aiplatform.v1beta1.GcsDestinationOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.GcsDestination) destination_, + getParentForChildren(), + isClean()); + destination_ = null; + } + destinationCase_ = 2; + onChanged(); + ; + return gcsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.BigQueryDestination, + com.google.cloud.aiplatform.v1beta1.BigQueryDestination.Builder, + com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder> + bigqueryBuilder_; + /** + * + * + *
+         * BigQuery location for BatchExplain output.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery = 3; + * + * @return Whether the bigquery field is set. + */ + @java.lang.Override + public boolean hasBigquery() { + return destinationCase_ == 3; + } + /** + * + * + *
+         * BigQuery location for BatchExplain output.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery = 3; + * + * @return The bigquery. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BigQueryDestination getBigquery() { + if (bigqueryBuilder_ == null) { + if (destinationCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.BigQueryDestination) destination_; + } + return com.google.cloud.aiplatform.v1beta1.BigQueryDestination.getDefaultInstance(); + } else { + if (destinationCase_ == 3) { + return bigqueryBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.BigQueryDestination.getDefaultInstance(); + } + } + /** + * + * + *
+         * BigQuery location for BatchExplain output.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery = 3; + */ + public Builder setBigquery(com.google.cloud.aiplatform.v1beta1.BigQueryDestination value) { + if (bigqueryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destination_ = value; + onChanged(); + } else { + bigqueryBuilder_.setMessage(value); + } + destinationCase_ = 3; + return this; + } + /** + * + * + *
+         * BigQuery location for BatchExplain output.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery = 3; + */ + public Builder setBigquery( + com.google.cloud.aiplatform.v1beta1.BigQueryDestination.Builder builderForValue) { + if (bigqueryBuilder_ == null) { + destination_ = builderForValue.build(); + onChanged(); + } else { + bigqueryBuilder_.setMessage(builderForValue.build()); + } + destinationCase_ = 3; + return this; + } + /** + * + * + *
+         * BigQuery location for BatchExplain output.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery = 3; + */ + public Builder mergeBigquery( + com.google.cloud.aiplatform.v1beta1.BigQueryDestination value) { + if (bigqueryBuilder_ == null) { + if (destinationCase_ == 3 + && destination_ + != com.google.cloud.aiplatform.v1beta1.BigQueryDestination + .getDefaultInstance()) { + destination_ = + com.google.cloud.aiplatform.v1beta1.BigQueryDestination.newBuilder( + (com.google.cloud.aiplatform.v1beta1.BigQueryDestination) destination_) + .mergeFrom(value) + .buildPartial(); + } else { + destination_ = value; + } + onChanged(); + } else { + if (destinationCase_ == 3) { + bigqueryBuilder_.mergeFrom(value); + } + bigqueryBuilder_.setMessage(value); + } + destinationCase_ = 3; + return this; + } + /** + * + * + *
+         * BigQuery location for BatchExplain output.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery = 3; + */ + public Builder clearBigquery() { + if (bigqueryBuilder_ == null) { + if (destinationCase_ == 3) { + destinationCase_ = 0; + destination_ = null; + onChanged(); + } + } else { + if (destinationCase_ == 3) { + destinationCase_ = 0; + destination_ = null; + } + bigqueryBuilder_.clear(); + } + return this; + } + /** + * + * + *
+         * BigQuery location for BatchExplain output.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery = 3; + */ + public com.google.cloud.aiplatform.v1beta1.BigQueryDestination.Builder + getBigqueryBuilder() { + return getBigqueryFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * BigQuery location for BatchExplain output.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery = 3; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder + getBigqueryOrBuilder() { + if ((destinationCase_ == 3) && (bigqueryBuilder_ != null)) { + return bigqueryBuilder_.getMessageOrBuilder(); + } else { + if (destinationCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.BigQueryDestination) destination_; + } + return com.google.cloud.aiplatform.v1beta1.BigQueryDestination.getDefaultInstance(); + } + } + /** + * + * + *
+         * BigQuery location for BatchExplain output.
+         * 
+ * + * .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.BigQueryDestination, + com.google.cloud.aiplatform.v1beta1.BigQueryDestination.Builder, + com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder> + getBigqueryFieldBuilder() { + if (bigqueryBuilder_ == null) { + if (!(destinationCase_ == 3)) { + destination_ = + com.google.cloud.aiplatform.v1beta1.BigQueryDestination.getDefaultInstance(); + } + bigqueryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.BigQueryDestination, + com.google.cloud.aiplatform.v1beta1.BigQueryDestination.Builder, + com.google.cloud.aiplatform.v1beta1.BigQueryDestinationOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.BigQueryDestination) destination_, + getParentForChildren(), + isClean()); + destination_ = null; + } + destinationCase_ = 3; + onChanged(); + ; + return bigqueryBuilder_; + } + + private int predictionFormat_ = 0; + /** + * + * + *
+         * The storage format of the predictions generated BatchPrediction job.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat prediction_format = 1; + * + * + * @return The enum numeric value on the wire for predictionFormat. + */ + @java.lang.Override + public int getPredictionFormatValue() { + return predictionFormat_; + } + /** + * + * + *
+         * The storage format of the predictions generated BatchPrediction job.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat prediction_format = 1; + * + * + * @param value The enum numeric value on the wire for predictionFormat to set. + * @return This builder for chaining. + */ + public Builder setPredictionFormatValue(int value) { + + predictionFormat_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * The storage format of the predictions generated BatchPrediction job.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat prediction_format = 1; + * + * + * @return The predictionFormat. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline.PredictionFormat + getPredictionFormat() { + @SuppressWarnings("deprecation") + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline.PredictionFormat + result = + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .ExplanationConfig.ExplanationBaseline.PredictionFormat.valueOf( + predictionFormat_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline.PredictionFormat.UNRECOGNIZED + : result; + } + /** + * + * + *
+         * The storage format of the predictions generated BatchPrediction job.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat prediction_format = 1; + * + * + * @param value The predictionFormat to set. + * @return This builder for chaining. + */ + public Builder setPredictionFormat( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline.PredictionFormat + value) { + if (value == null) { + throw new NullPointerException(); + } + + predictionFormat_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+         * The storage format of the predictions generated BatchPrediction job.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat prediction_format = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearPredictionFormat() { + + predictionFormat_ = 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.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline) + private static final com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .ExplanationConfig.ExplanationBaseline + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline(); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .ExplanationConfig.ExplanationBaseline + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExplanationBaseline parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExplanationBaseline(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.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int ENABLE_FEATURE_ATTRIBUTES_FIELD_NUMBER = 1; + private boolean enableFeatureAttributes_; + /** + * + * + *
+     * If want to analyze the Explainable AI feature attribute scores or not.
+     * If set to true, Vertex AI will log the feature attributions from
+     * explain response and do the skew/drift detection for them.
+     * 
+ * + * bool enable_feature_attributes = 1; + * + * @return The enableFeatureAttributes. + */ + @java.lang.Override + public boolean getEnableFeatureAttributes() { + return enableFeatureAttributes_; + } + + public static final int EXPLANATION_BASELINE_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline + explanationBaseline_; + /** + * + * + *
+     * Predictions generated by the BatchPredictionJob using baseline dataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline explanation_baseline = 2; + * + * + * @return Whether the explanationBaseline field is set. + */ + @java.lang.Override + public boolean hasExplanationBaseline() { + return explanationBaseline_ != null; + } + /** + * + * + *
+     * Predictions generated by the BatchPredictionJob using baseline dataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline explanation_baseline = 2; + * + * + * @return The explanationBaseline. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline + getExplanationBaseline() { + return explanationBaseline_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline.getDefaultInstance() + : explanationBaseline_; + } + /** + * + * + *
+     * Predictions generated by the BatchPredictionJob using baseline dataset.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline explanation_baseline = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaselineOrBuilder + getExplanationBaselineOrBuilder() { + return getExplanationBaseline(); + } + + 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 (enableFeatureAttributes_ != false) { + output.writeBool(1, enableFeatureAttributes_); + } + if (explanationBaseline_ != null) { + output.writeMessage(2, getExplanationBaseline()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableFeatureAttributes_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableFeatureAttributes_); + } + if (explanationBaseline_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExplanationBaseline()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -3963,18 +7537,18 @@ public boolean equals(final java.lang.Object obj) { } if (!(obj instanceof - com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig)) { + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig)) { return super.equals(obj); } - com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig - other = - (com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig) - obj; + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig other = + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig) + obj; - if (!internalGetDriftThresholds().equals(other.internalGetDriftThresholds())) return false; + if (getEnableFeatureAttributes() != other.getEnableFeatureAttributes()) return false; + if (hasExplanationBaseline() != other.hasExplanationBaseline()) return false; + if (hasExplanationBaseline()) { + if (!getExplanationBaseline().equals(other.getExplanationBaseline())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3986,9 +7560,11 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetDriftThresholds().getMap().isEmpty()) { - hash = (37 * hash) + DRIFT_THRESHOLDS_FIELD_NUMBER; - hash = (53 * hash) + internalGetDriftThresholds().hashCode(); + hash = (37 * hash) + ENABLE_FEATURE_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableFeatureAttributes()); + if (hasExplanationBaseline()) { + hash = (37 * hash) + EXPLANATION_BASELINE_FIELD_NUMBER; + hash = (53 * hash) + getExplanationBaseline().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; @@ -3996,14 +7572,14 @@ public int hashCode() { } public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig + .ExplanationConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig + .ExplanationConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4011,14 +7587,14 @@ public int hashCode() { } public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig + .ExplanationConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig + .ExplanationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4027,26 +7603,26 @@ public int hashCode() { } public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig + .ExplanationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig + .ExplanationConfig 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.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig + .ExplanationConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig + .ExplanationConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -4055,13 +7631,13 @@ public int hashCode() { } public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig + .ExplanationConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig + .ExplanationConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -4070,13 +7646,13 @@ public int hashCode() { } public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig + .ExplanationConfig 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.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig + .ExplanationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4095,8 +7671,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -4116,57 +7691,38 @@ protected Builder newBuilderForType( * * *
-     * The config for Prediction data drift detection.
+     * The config for integrated with Explainable AI. Only applicable if the Model
+     * has explanation_spec populated.
      * 
* * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} + * google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig) + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig) com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfigOrBuilder { + .ExplanationConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto - .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 1: - return internalGetDriftThresholds(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 1: - return internalGetMutableDriftThresholds(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_ExplanationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.aiplatform.v1beta1.ModelMonitoringProto - .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_fieldAccessorTable + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_ExplanationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig.class, - com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig.Builder.class); + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .class, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .Builder.class); } // Construct using - // com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.newBuilder() + // com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -4183,30 +7739,34 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - internalGetMutableDriftThresholds().clear(); + enableFeatureAttributes_ = false; + + if (explanationBaselineBuilder_ == null) { + explanationBaseline_ = null; + } else { + explanationBaseline_ = null; + explanationBaselineBuilder_ = null; + } 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_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_descriptor; + .internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_ExplanationConfig_descriptor; } @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig getDefaultInstanceForType() { - return com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig build() { - com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -4215,17 +7775,18 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig buildPartial() { - com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig result = new com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig(this); - int from_bitField0_ = bitField0_; - result.driftThresholds_ = internalGetDriftThresholds(); - result.driftThresholds_.makeImmutable(); + .ExplanationConfig(this); + result.enableFeatureAttributes_ = enableFeatureAttributes_; + if (explanationBaselineBuilder_ == null) { + result.explanationBaseline_ = explanationBaseline_; + } else { + result.explanationBaseline_ = explanationBaselineBuilder_.build(); + } onBuilt(); return result; } @@ -4269,11 +7830,9 @@ public Builder addRepeatedField( public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof - com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig) { + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig) { return mergeFrom( - (com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig) + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig) other); } else { super.mergeFrom(other); @@ -4282,13 +7841,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig other) { if (other - == com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig.getDefaultInstance()) return this; - internalGetMutableDriftThresholds().mergeFrom(other.internalGetDriftThresholds()); + == com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .getDefaultInstance()) return this; + if (other.getEnableFeatureAttributes() != false) { + setEnableFeatureAttributes(other.getEnableFeatureAttributes()); + } + if (other.hasExplanationBaseline()) { + mergeExplanationBaseline(other.getExplanationBaseline()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -4304,15 +7867,13 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = - (com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig) + (com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { @@ -4323,215 +7884,294 @@ public Builder mergeFrom( return this; } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> - driftThresholds_; + private boolean enableFeatureAttributes_; + /** + * + * + *
+       * If want to analyze the Explainable AI feature attribute scores or not.
+       * If set to true, Vertex AI will log the feature attributions from
+       * explain response and do the skew/drift detection for them.
+       * 
+ * + * bool enable_feature_attributes = 1; + * + * @return The enableFeatureAttributes. + */ + @java.lang.Override + public boolean getEnableFeatureAttributes() { + return enableFeatureAttributes_; + } + /** + * + * + *
+       * If want to analyze the Explainable AI feature attribute scores or not.
+       * If set to true, Vertex AI will log the feature attributions from
+       * explain response and do the skew/drift detection for them.
+       * 
+ * + * bool enable_feature_attributes = 1; + * + * @param value The enableFeatureAttributes to set. + * @return This builder for chaining. + */ + public Builder setEnableFeatureAttributes(boolean value) { - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> - internalGetDriftThresholds() { - if (driftThresholds_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DriftThresholdsDefaultEntryHolder.defaultEntry); - } - return driftThresholds_; + enableFeatureAttributes_ = value; + onChanged(); + return this; } + /** + * + * + *
+       * If want to analyze the Explainable AI feature attribute scores or not.
+       * If set to true, Vertex AI will log the feature attributions from
+       * explain response and do the skew/drift detection for them.
+       * 
+ * + * bool enable_feature_attributes = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnableFeatureAttributes() { - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.aiplatform.v1beta1.ThresholdConfig> - internalGetMutableDriftThresholds() { + enableFeatureAttributes_ = false; onChanged(); - ; - if (driftThresholds_ == null) { - driftThresholds_ = - com.google.protobuf.MapField.newMapField( - DriftThresholdsDefaultEntryHolder.defaultEntry); - } - if (!driftThresholds_.isMutable()) { - driftThresholds_ = driftThresholds_.copy(); - } - return driftThresholds_; + return this; } - public int getDriftThresholdsCount() { - return internalGetDriftThresholds().getMap().size(); + private com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline + explanationBaseline_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaselineOrBuilder> + explanationBaselineBuilder_; + /** + * + * + *
+       * Predictions generated by the BatchPredictionJob using baseline dataset.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline explanation_baseline = 2; + * + * + * @return Whether the explanationBaseline field is set. + */ + public boolean hasExplanationBaseline() { + return explanationBaselineBuilder_ != null || explanationBaseline_ != null; } /** * * *
-       * Key is the feature name and value is the threshold. If a feature needs to
-       * be monitored for drift, a value threshold must be configed for that
-       * feature. The threshold here is against feature distribution distance
-       * between different time windws.
+       * Predictions generated by the BatchPredictionJob using baseline dataset.
        * 
* * - * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> drift_thresholds = 1; + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline explanation_baseline = 2; * + * + * @return The explanationBaseline. */ - @java.lang.Override - public boolean containsDriftThresholds(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline + getExplanationBaseline() { + if (explanationBaselineBuilder_ == null) { + return explanationBaseline_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline.getDefaultInstance() + : explanationBaseline_; + } else { + return explanationBaselineBuilder_.getMessage(); } - return internalGetDriftThresholds().getMap().containsKey(key); - } - /** Use {@link #getDriftThresholdsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getDriftThresholds() { - return getDriftThresholdsMap(); } /** * * *
-       * Key is the feature name and value is the threshold. If a feature needs to
-       * be monitored for drift, a value threshold must be configed for that
-       * feature. The threshold here is against feature distribution distance
-       * between different time windws.
+       * Predictions generated by the BatchPredictionJob using baseline dataset.
        * 
* * - * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> drift_thresholds = 1; + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline explanation_baseline = 2; * */ - @java.lang.Override - public java.util.Map - getDriftThresholdsMap() { - return internalGetDriftThresholds().getMap(); + public Builder setExplanationBaseline( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline + value) { + if (explanationBaselineBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + explanationBaseline_ = value; + onChanged(); + } else { + explanationBaselineBuilder_.setMessage(value); + } + + return this; } /** * * *
-       * Key is the feature name and value is the threshold. If a feature needs to
-       * be monitored for drift, a value threshold must be configed for that
-       * feature. The threshold here is against feature distribution distance
-       * between different time windws.
+       * Predictions generated by the BatchPredictionJob using baseline dataset.
        * 
* * - * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> drift_thresholds = 1; + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline explanation_baseline = 2; * */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDriftThresholdsOrDefault( - java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); + public Builder setExplanationBaseline( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline.Builder + builderForValue) { + if (explanationBaselineBuilder_ == null) { + explanationBaseline_ = builderForValue.build(); + onChanged(); + } else { + explanationBaselineBuilder_.setMessage(builderForValue.build()); } - java.util.Map map = - internalGetDriftThresholds().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; + + return this; } /** * * *
-       * Key is the feature name and value is the threshold. If a feature needs to
-       * be monitored for drift, a value threshold must be configed for that
-       * feature. The threshold here is against feature distribution distance
-       * between different time windws.
+       * Predictions generated by the BatchPredictionJob using baseline dataset.
        * 
* * - * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> drift_thresholds = 1; + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline explanation_baseline = 2; * */ - @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ThresholdConfig getDriftThresholdsOrThrow( - java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); + public Builder mergeExplanationBaseline( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline + value) { + if (explanationBaselineBuilder_ == null) { + if (explanationBaseline_ != null) { + explanationBaseline_ = + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline.newBuilder(explanationBaseline_) + .mergeFrom(value) + .buildPartial(); + } else { + explanationBaseline_ = value; + } + onChanged(); + } else { + explanationBaselineBuilder_.mergeFrom(value); } - java.util.Map map = - internalGetDriftThresholds().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + + return this; + } + /** + * + * + *
+       * Predictions generated by the BatchPredictionJob using baseline dataset.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline explanation_baseline = 2; + * + */ + public Builder clearExplanationBaseline() { + if (explanationBaselineBuilder_ == null) { + explanationBaseline_ = null; + onChanged(); + } else { + explanationBaseline_ = null; + explanationBaselineBuilder_ = null; } - return map.get(key); - } - public Builder clearDriftThresholds() { - internalGetMutableDriftThresholds().getMutableMap().clear(); return this; } /** * * *
-       * Key is the feature name and value is the threshold. If a feature needs to
-       * be monitored for drift, a value threshold must be configed for that
-       * feature. The threshold here is against feature distribution distance
-       * between different time windws.
+       * Predictions generated by the BatchPredictionJob using baseline dataset.
        * 
* * - * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> drift_thresholds = 1; + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline explanation_baseline = 2; * */ - public Builder removeDriftThresholds(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableDriftThresholds().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map - getMutableDriftThresholds() { - return internalGetMutableDriftThresholds().getMutableMap(); + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline.Builder + getExplanationBaselineBuilder() { + + onChanged(); + return getExplanationBaselineFieldBuilder().getBuilder(); } /** * * *
-       * Key is the feature name and value is the threshold. If a feature needs to
-       * be monitored for drift, a value threshold must be configed for that
-       * feature. The threshold here is against feature distribution distance
-       * between different time windws.
+       * Predictions generated by the BatchPredictionJob using baseline dataset.
        * 
* * - * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> drift_thresholds = 1; + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline explanation_baseline = 2; * */ - public Builder putDriftThresholds( - java.lang.String key, com.google.cloud.aiplatform.v1beta1.ThresholdConfig value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaselineOrBuilder + getExplanationBaselineOrBuilder() { + if (explanationBaselineBuilder_ != null) { + return explanationBaselineBuilder_.getMessageOrBuilder(); + } else { + return explanationBaseline_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline.getDefaultInstance() + : explanationBaseline_; } - internalGetMutableDriftThresholds().getMutableMap().put(key, value); - return this; } /** * * *
-       * Key is the feature name and value is the threshold. If a feature needs to
-       * be monitored for drift, a value threshold must be configed for that
-       * feature. The threshold here is against feature distribution distance
-       * between different time windws.
+       * Predictions generated by the BatchPredictionJob using baseline dataset.
        * 
* * - * map<string, .google.cloud.aiplatform.v1beta1.ThresholdConfig> drift_thresholds = 1; + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline explanation_baseline = 2; * */ - public Builder putAllDriftThresholds( - java.util.Map - values) { - internalGetMutableDriftThresholds().getMutableMap().putAll(values); - return this; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaseline.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .ExplanationBaselineOrBuilder> + getExplanationBaselineFieldBuilder() { + if (explanationBaselineBuilder_ == null) { + explanationBaselineBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .ExplanationConfig.ExplanationBaseline, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .ExplanationConfig.ExplanationBaseline.Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .ExplanationConfig.ExplanationBaselineOrBuilder>( + getExplanationBaseline(), getParentForChildren(), isClean()); + explanationBaseline_ = null; + } + return explanationBaselineBuilder_; } @java.lang.Override @@ -4546,49 +8186,48 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig) + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig) } - // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig) + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig) private static final com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig + .ExplanationConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig(); + .ExplanationConfig(); } public static com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig + .ExplanationConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public PredictionDriftDetectionConfig parsePartialFrom( + public ExplanationConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PredictionDriftDetectionConfig(input, extensionRegistry); + return new ExplanationConfig(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - .PredictionDriftDetectionConfig + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -4777,6 +8416,65 @@ public boolean hasPredictionDriftDetectionConfig() { return getPredictionDriftDetectionConfig(); } + public static final int EXPLANATION_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + explanationConfig_; + /** + * + * + *
+   * The config for integrated with Explainable AI.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig explanation_config = 5; + * + * + * @return Whether the explanationConfig field is set. + */ + @java.lang.Override + public boolean hasExplanationConfig() { + return explanationConfig_ != null; + } + /** + * + * + *
+   * The config for integrated with Explainable AI.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig explanation_config = 5; + * + * + * @return The explanationConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + getExplanationConfig() { + return explanationConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .getDefaultInstance() + : explanationConfig_; + } + /** + * + * + *
+   * The config for integrated with Explainable AI.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig explanation_config = 5; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .ExplanationConfigOrBuilder + getExplanationConfigOrBuilder() { + return getExplanationConfig(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4800,6 +8498,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (predictionDriftDetectionConfig_ != null) { output.writeMessage(3, getPredictionDriftDetectionConfig()); } + if (explanationConfig_ != null) { + output.writeMessage(5, getExplanationConfig()); + } unknownFields.writeTo(output); } @@ -4822,6 +8523,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 3, getPredictionDriftDetectionConfig()); } + if (explanationConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getExplanationConfig()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -4854,6 +8558,10 @@ public boolean equals(final java.lang.Object obj) { if (!getPredictionDriftDetectionConfig().equals(other.getPredictionDriftDetectionConfig())) return false; } + if (hasExplanationConfig() != other.hasExplanationConfig()) return false; + if (hasExplanationConfig()) { + if (!getExplanationConfig().equals(other.getExplanationConfig())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4877,6 +8585,10 @@ public int hashCode() { hash = (37 * hash) + PREDICTION_DRIFT_DETECTION_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getPredictionDriftDetectionConfig().hashCode(); } + if (hasExplanationConfig()) { + hash = (37 * hash) + EXPLANATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getExplanationConfig().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -5043,6 +8755,12 @@ public Builder clear() { predictionDriftDetectionConfig_ = null; predictionDriftDetectionConfigBuilder_ = null; } + if (explanationConfigBuilder_ == null) { + explanationConfig_ = null; + } else { + explanationConfig_ = null; + explanationConfigBuilder_ = null; + } return this; } @@ -5088,6 +8806,11 @@ public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig buildP } else { result.predictionDriftDetectionConfig_ = predictionDriftDetectionConfigBuilder_.build(); } + if (explanationConfigBuilder_ == null) { + result.explanationConfig_ = explanationConfig_; + } else { + result.explanationConfig_ = explanationConfigBuilder_.build(); + } onBuilt(); return result; } @@ -5151,6 +8874,9 @@ public Builder mergeFrom( if (other.hasPredictionDriftDetectionConfig()) { mergePredictionDriftDetectionConfig(other.getPredictionDriftDetectionConfig()); } + if (other.hasExplanationConfig()) { + mergeExplanationConfig(other.getExplanationConfig()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -5880,6 +9606,231 @@ public Builder clearPredictionDriftDetectionConfig() { return predictionDriftDetectionConfigBuilder_; } + private com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + explanationConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .ExplanationConfigOrBuilder> + explanationConfigBuilder_; + /** + * + * + *
+     * The config for integrated with Explainable AI.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig explanation_config = 5; + * + * + * @return Whether the explanationConfig field is set. + */ + public boolean hasExplanationConfig() { + return explanationConfigBuilder_ != null || explanationConfig_ != null; + } + /** + * + * + *
+     * The config for integrated with Explainable AI.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig explanation_config = 5; + * + * + * @return The explanationConfig. + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + getExplanationConfig() { + if (explanationConfigBuilder_ == null) { + return explanationConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .getDefaultInstance() + : explanationConfig_; + } else { + return explanationConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The config for integrated with Explainable AI.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig explanation_config = 5; + * + */ + public Builder setExplanationConfig( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + value) { + if (explanationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + explanationConfig_ = value; + onChanged(); + } else { + explanationConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The config for integrated with Explainable AI.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig explanation_config = 5; + * + */ + public Builder setExplanationConfig( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.Builder + builderForValue) { + if (explanationConfigBuilder_ == null) { + explanationConfig_ = builderForValue.build(); + onChanged(); + } else { + explanationConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The config for integrated with Explainable AI.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig explanation_config = 5; + * + */ + public Builder mergeExplanationConfig( + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + value) { + if (explanationConfigBuilder_ == null) { + if (explanationConfig_ != null) { + explanationConfig_ = + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .newBuilder(explanationConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + explanationConfig_ = value; + } + onChanged(); + } else { + explanationConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The config for integrated with Explainable AI.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig explanation_config = 5; + * + */ + public Builder clearExplanationConfig() { + if (explanationConfigBuilder_ == null) { + explanationConfig_ = null; + onChanged(); + } else { + explanationConfig_ = null; + explanationConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The config for integrated with Explainable AI.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig explanation_config = 5; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .Builder + getExplanationConfigBuilder() { + + onChanged(); + return getExplanationConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The config for integrated with Explainable AI.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig explanation_config = 5; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .ExplanationConfigOrBuilder + getExplanationConfigOrBuilder() { + if (explanationConfigBuilder_ != null) { + return explanationConfigBuilder_.getMessageOrBuilder(); + } else { + return explanationConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .getDefaultInstance() + : explanationConfig_; + } + } + /** + * + * + *
+     * The config for integrated with Explainable AI.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig explanation_config = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .ExplanationConfigOrBuilder> + getExplanationConfigFieldBuilder() { + if (explanationConfigBuilder_ == null) { + explanationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .ExplanationConfig, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + .Builder, + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + .ExplanationConfigOrBuilder>( + getExplanationConfig(), getParentForChildren(), isClean()); + explanationConfig_ = null; + } + return explanationConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringObjectiveConfigOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringObjectiveConfigOrBuilder.java index fd183a88f..5de6f4c1c 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringObjectiveConfigOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringObjectiveConfigOrBuilder.java @@ -157,4 +157,47 @@ public interface ModelMonitoringObjectiveConfigOrBuilder com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig .PredictionDriftDetectionConfigOrBuilder getPredictionDriftDetectionConfigOrBuilder(); + + /** + * + * + *
+   * The config for integrated with Explainable AI.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig explanation_config = 5; + * + * + * @return Whether the explanationConfig field is set. + */ + boolean hasExplanationConfig(); + /** + * + * + *
+   * The config for integrated with Explainable AI.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig explanation_config = 5; + * + * + * @return The explanationConfig. + */ + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + getExplanationConfig(); + /** + * + * + *
+   * The config for integrated with Explainable AI.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig explanation_config = 5; + * + */ + com.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfigOrBuilder + getExplanationConfigOrBuilder(); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringProto.java index 220be8fe3..5b3ad76b0 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringProto.java @@ -43,6 +43,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_TrainingPredictionSkewDetectionConfig_SkewThresholdsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_TrainingPredictionSkewDetectionConfig_SkewThresholdsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_TrainingPredictionSkewDetectionConfig_AttributionScoreSkewThresholdsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_TrainingPredictionSkewDetectionConfig_AttributionScoreSkewThresholdsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -51,6 +55,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_DriftThresholdsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_DriftThresholdsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_AttributionScoreDriftThresholdsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_AttributionScoreDriftThresholdsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_ExplanationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_ExplanationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_ExplanationConfig_ExplanationBaseline_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_ExplanationConfig_ExplanationBaseline_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringAlertConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -84,7 +100,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "monitoring.proto\022\037google.cloud.aiplatfor" + "m.v1beta1\032\031google/api/resource.proto\032(go" + "ogle/cloud/aiplatform/v1beta1/io.proto\032\034" - + "google/api/annotations.proto\"\344\n\n\036ModelMo" + + "google/api/annotations.proto\"\205\025\n\036ModelMo" + "nitoringObjectiveConfig\022i\n\020training_data" + "set\030\001 \001(\0132O.google.cloud.aiplatform.v1be" + "ta1.ModelMonitoringObjectiveConfig.Train" @@ -95,44 +111,80 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "onfig\022\211\001\n!prediction_drift_detection_con" + "fig\030\003 \001(\0132^.google.cloud.aiplatform.v1be" + "ta1.ModelMonitoringObjectiveConfig.Predi" - + "ctionDriftDetectionConfig\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\245\002\n%Train" - + "ingPredictionSkewDetectionConfig\022\222\001\n\017ske" - + "w_thresholds\030\001 \003(\0132y.google.cloud.aiplat" - + "form.v1beta1.ModelMonitoringObjectiveCon" - + "fig.TrainingPredictionSkewDetectionConfi" - + "g.SkewThresholdsEntry\032g\n\023SkewThresholdsE" + + "ctionDriftDetectionConfig\022m\n\022explanation" + + "_config\030\005 \001(\0132Q.google.cloud.aiplatform." + + "v1beta1.ModelMonitoringObjectiveConfig.E" + + "xplanationConfig\032\352\002\n\017TrainingDataset\0229\n\007" + + "dataset\030\003 \001(\tB&\372A#\n!aiplatform.googleapi" + + "s.com/DatasetH\000\022@\n\ngcs_source\030\004 \001(\0132*.go" + + "ogle.cloud.aiplatform.v1beta1.GcsSourceH" + + "\000\022J\n\017bigquery_source\030\005 \001(\0132/.google.clou" + + "d.aiplatform.v1beta1.BigQuerySourceH\000\022\023\n" + + "\013data_format\030\002 \001(\t\022\024\n\014target_field\030\006 \001(\t" + + "\022T\n\031logging_sampling_strategy\030\007 \001(\01321.go" + + "ogle.cloud.aiplatform.v1beta1.SamplingSt" + + "rategyB\r\n\013data_source\032\326\004\n%TrainingPredic" + + "tionSkewDetectionConfig\022\222\001\n\017skew_thresho" + + "lds\030\001 \003(\0132y.google.cloud.aiplatform.v1be" + + "ta1.ModelMonitoringObjectiveConfig.Train" + + "ingPredictionSkewDetectionConfig.SkewThr" + + "esholdsEntry\022\265\001\n!attribution_score_skew_" + + "thresholds\030\002 \003(\0132\211\001.google.cloud.aiplatf" + + "orm.v1beta1.ModelMonitoringObjectiveConf" + + "ig.TrainingPredictionSkewDetectionConfig" + + ".AttributionScoreSkewThresholdsEntry\032g\n\023" + + "SkewThresholdsEntry\022\013\n\003key\030\001 \001(\t\022?\n\005valu" + + "e\030\002 \001(\01320.google.cloud.aiplatform.v1beta" + + "1.ThresholdConfig:\0028\001\032w\n#AttributionScor" + + "eSkewThresholdsEntry\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\307\004\n\036PredictionDri" + + "ftDetectionConfig\022\215\001\n\020drift_thresholds\030\001" + + " \003(\0132s.google.cloud.aiplatform.v1beta1.M" + + "odelMonitoringObjectiveConfig.Prediction" + + "DriftDetectionConfig.DriftThresholdsEntr" + + "y\022\260\001\n\"attribution_score_drift_thresholds" + + "\030\002 \003(\0132\203\001.google.cloud.aiplatform.v1beta" + + "1.ModelMonitoringObjectiveConfig.Predict" + + "ionDriftDetectionConfig.AttributionScore" + + "DriftThresholdsEntry\032h\n\024DriftThresholdsE" + "ntry\022\013\n\003key\030\001 \001(\t\022?\n\005value\030\002 \001(\01320.googl" + "e.cloud.aiplatform.v1beta1.ThresholdConf" - + "ig:\0028\001\032\232\002\n\036PredictionDriftDetectionConfi" - + "g\022\215\001\n\020drift_thresholds\030\001 \003(\0132s.google.cl" - + "oud.aiplatform.v1beta1.ModelMonitoringOb" - + "jectiveConfig.PredictionDriftDetectionCo" - + "nfig.DriftThresholdsEntry\032h\n\024DriftThresh" - + "oldsEntry\022\013\n\003key\030\001 \001(\t\022?\n\005value\030\002 \001(\01320." - + "google.cloud.aiplatform.v1beta1.Threshol" - + "dConfig:\0028\001\"\272\001\n\032ModelMonitoringAlertConf" - + "ig\022j\n\022email_alert_config\030\001 \001(\0132L.google." - + "cloud.aiplatform.v1beta1.ModelMonitoring" - + "AlertConfig.EmailAlertConfigH\000\032\'\n\020EmailA" - + "lertConfig\022\023\n\013user_emails\030\001 \003(\tB\007\n\005alert" - + "\"/\n\017ThresholdConfig\022\017\n\005value\030\001 \001(\001H\000B\013\n\t" - + "threshold\"\241\001\n\020SamplingStrategy\022b\n\024random" - + "_sample_config\030\001 \001(\0132D.google.cloud.aipl" - + "atform.v1beta1.SamplingStrategy.RandomSa" - + "mpleConfig\032)\n\022RandomSampleConfig\022\023\n\013samp" - + "le_rate\030\001 \001(\001B\210\001\n#com.google.cloud.aipla" - + "tform.v1beta1B\024ModelMonitoringProtoP\001ZIg" - + "oogle.golang.org/genproto/googleapis/clo" - + "ud/aiplatform/v1beta1;aiplatformb\006proto3" + + "ig:\0028\001\032x\n$AttributionScoreDriftThreshold" + + "sEntry\022\013\n\003key\030\001 \001(\t\022?\n\005value\030\002 \001(\01320.goo" + + "gle.cloud.aiplatform.v1beta1.ThresholdCo" + + "nfig:\0028\001\032\321\004\n\021ExplanationConfig\022!\n\031enable" + + "_feature_attributes\030\001 \001(\010\022\203\001\n\024explanatio" + + "n_baseline\030\002 \001(\0132e.google.cloud.aiplatfo" + + "rm.v1beta1.ModelMonitoringObjectiveConfi" + + "g.ExplanationConfig.ExplanationBaseline\032" + + "\222\003\n\023ExplanationBaseline\022>\n\003gcs\030\002 \001(\0132/.g" + + "oogle.cloud.aiplatform.v1beta1.GcsDestin" + + "ationH\000\022H\n\010bigquery\030\003 \001(\01324.google.cloud" + + ".aiplatform.v1beta1.BigQueryDestinationH" + + "\000\022\221\001\n\021prediction_format\030\001 \001(\0162v.google.c" + + "loud.aiplatform.v1beta1.ModelMonitoringO" + + "bjectiveConfig.ExplanationConfig.Explana" + + "tionBaseline.PredictionFormat\"N\n\020Predict" + + "ionFormat\022!\n\035PREDICTION_FORMAT_UNSPECIFI" + + "ED\020\000\022\t\n\005JSONL\020\002\022\014\n\010BIGQUERY\020\003B\r\n\013destina" + + "tion\"\272\001\n\032ModelMonitoringAlertConfig\022j\n\022e" + + "mail_alert_config\030\001 \001(\0132L.google.cloud.a" + + "iplatform.v1beta1.ModelMonitoringAlertCo" + + "nfig.EmailAlertConfigH\000\032\'\n\020EmailAlertCon" + + "fig\022\023\n\013user_emails\030\001 \003(\tB\007\n\005alert\"/\n\017Thr" + + "esholdConfig\022\017\n\005value\030\001 \001(\001H\000B\013\n\tthresho" + + "ld\"\241\001\n\020SamplingStrategy\022b\n\024random_sample" + + "_config\030\001 \001(\0132D.google.cloud.aiplatform." + + "v1beta1.SamplingStrategy.RandomSampleCon" + + "fig\032)\n\022RandomSampleConfig\022\023\n\013sample_rate" + + "\030\001 \001(\001B\361\001\n#com.google.cloud.aiplatform.v" + + "1beta1B\024ModelMonitoringProtoP\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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -151,6 +203,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TrainingDataset", "TrainingPredictionSkewDetectionConfig", "PredictionDriftDetectionConfig", + "ExplanationConfig", }); internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_TrainingDataset_descriptor = internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_descriptor @@ -176,7 +229,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", + "SkewThresholds", "AttributionScoreSkewThresholds", }); internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_TrainingPredictionSkewDetectionConfig_SkewThresholdsEntry_descriptor = internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_TrainingPredictionSkewDetectionConfig_descriptor @@ -188,6 +241,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_TrainingPredictionSkewDetectionConfig_AttributionScoreSkewThresholdsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_TrainingPredictionSkewDetectionConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_TrainingPredictionSkewDetectionConfig_AttributionScoreSkewThresholdsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_TrainingPredictionSkewDetectionConfig_AttributionScoreSkewThresholdsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_descriptor = internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_descriptor .getNestedTypes() @@ -196,7 +259,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", + "DriftThresholds", "AttributionScoreDriftThresholds", }); internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_DriftThresholdsEntry_descriptor = internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_descriptor @@ -208,6 +271,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_AttributionScoreDriftThresholdsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_AttributionScoreDriftThresholdsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_PredictionDriftDetectionConfig_AttributionScoreDriftThresholdsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_ExplanationConfig_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_ExplanationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_ExplanationConfig_descriptor, + new java.lang.String[] { + "EnableFeatureAttributes", "ExplanationBaseline", + }); + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_ExplanationConfig_ExplanationBaseline_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_ExplanationConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_ExplanationConfig_ExplanationBaseline_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringObjectiveConfig_ExplanationConfig_ExplanationBaseline_descriptor, + new java.lang.String[] { + "Gcs", "Bigquery", "PredictionFormat", "Destination", + }); internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringAlertConfig_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_google_cloud_aiplatform_v1beta1_ModelMonitoringAlertConfig_fieldAccessorTable = diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelProto.java index c8b0bde7f..6003fab33 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelProto.java @@ -123,10 +123,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "%.google.cloud.aiplatform.v1beta1.PortB\003" + "\340A\005\022\032\n\rpredict_route\030\006 \001(\tB\003\340A\005\022\031\n\014healt" + "h_route\030\007 \001(\tB\003\340A\005\"\036\n\004Port\022\026\n\016container_" - + "port\030\003 \001(\005B~\n#com.google.cloud.aiplatfor" - + "m.v1beta1B\nModelProtoP\001ZIgoogle.golang.o" - + "rg/genproto/googleapis/cloud/aiplatform/" - + "v1beta1;aiplatformb\006proto3" + + "port\030\003 \001(\005B\347\001\n#com.google.cloud.aiplatfo" + + "rm.v1beta1B\nModelProtoP\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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceProto.java index ad01a5f72..ab0ee26bc 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceProto.java @@ -244,10 +244,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/*/locations/*/models/*/evaluations/*}/s" + "lices\332A\006parent\032M\312A\031aiplatform.googleapis" + ".com\322A.https://www.googleapis.com/auth/c" - + "loud-platformB\205\001\n#com.google.cloud.aipla" + + "loud-platformB\356\001\n#com.google.cloud.aipla" + "tform.v1beta1B\021ModelServiceProtoP\001ZIgoog" + "le.golang.org/genproto/googleapis/cloud/" - + "aiplatform/v1beta1;aiplatformb\006proto3" + + "aiplatform/v1beta1;aiplatform\252\002\037Google.C" + + "loud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\A" + + "IPlatform\\V1beta1\352\002\"Google::Cloud::AIPla" + + "tform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NetworkName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NetworkName.java deleted file mode 100644 index 52661e8f4..000000000 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NetworkName.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2021 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.v1beta1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class NetworkName implements ResourceName { - private static final PathTemplate PROJECT_NETWORK = - PathTemplate.createWithoutUrlEncoding("projects/{project}/global/networks/{network}"); - private volatile Map fieldValuesMap; - private final String project; - private final String network; - - @Deprecated - protected NetworkName() { - project = null; - network = null; - } - - private NetworkName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - network = Preconditions.checkNotNull(builder.getNetwork()); - } - - public String getProject() { - return project; - } - - public String getNetwork() { - return network; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static NetworkName of(String project, String network) { - return newBuilder().setProject(project).setNetwork(network).build(); - } - - public static String format(String project, String network) { - return newBuilder().setProject(project).setNetwork(network).build().toString(); - } - - public static NetworkName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_NETWORK.validatedMatch( - formattedString, "NetworkName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("network")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (NetworkName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_NETWORK.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (network != null) { - fieldMapBuilder.put("network", network); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_NETWORK.instantiate("project", project, "network", network); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - NetworkName that = ((NetworkName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.network, that.network); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(network); - return h; - } - - /** Builder for projects/{project}/global/networks/{network}. */ - public static class Builder { - private String project; - private String network; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getNetwork() { - return network; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setNetwork(String network) { - this.network = network; - return this; - } - - private Builder(NetworkName networkName) { - this.project = networkName.project; - this.network = networkName.network; - } - - public NetworkName build() { - return new NetworkName(this); - } - } -} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OperationProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OperationProto.java index 324461f4c..8e29111cb 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OperationProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OperationProto.java @@ -56,11 +56,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".google.protobuf.TimestampB\003\340A\003\"n\n\027Delet" + "eOperationMetadata\022S\n\020generic_metadata\030\001" + " \001(\01329.google.cloud.aiplatform.v1beta1.G" - + "enericOperationMetadataB\202\001\n#com.google.c" + + "enericOperationMetadataB\353\001\n#com.google.c" + "loud.aiplatform.v1beta1B\016OperationProtoP" + "\001ZIgoogle.golang.org/genproto/googleapis" - + "/cloud/aiplatform/v1beta1;aiplatformb\006pr" - + "oto3" + + "/cloud/aiplatform/v1beta1;aiplatform\252\002\037G" + + "oogle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\" + + "Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cloud" + + "::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java index 69fbc86a7..3c130562d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java @@ -177,12 +177,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "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\315\001\n#com.google.cloud.aiplatform.v1be" + + "ilsB\266\002\n#com.google.cloud.aiplatform.v1be" + "ta1B\010PipelineP\001ZIgoogle.golang.org/genpr" + "oto/googleapis/cloud/aiplatform/v1beta1;" - + "aiplatform\352AN\n\036compute.googleapis.com/Ne" - + "twork\022,projects/{project}/global/network" - + "s/{network}b\006proto3" + + "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( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceProto.java index 4123bdf82..4b5e803ca 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceProto.java @@ -189,11 +189,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\223\002A\"/v1beta1/{end" - + "point=projects/*/locations/*/endpoints/*" - + "}:predict:\001*\332A\035endpoint,instances,parame" - + "ters\022\351\001\n\007Explain\022/.google.cloud.aiplatfo" - + "rm.v1beta1.ExplainRequest\0320.google.cloud" - + ".aiplatform.v1beta1.ExplainResponse\"{\202\323\344" - + "\223\002C\">/v1beta1/{endpoint=projects/*/locat" - + "ions/*/endpoints/*}:explain:\001*\332A/endpoin" - + "t,instances,parameters,deployed_model_id" - + "\032M\312A\031aiplatform.googleapis.com\322A.https:/" - + "/www.googleapis.com/auth/cloud-platformB" - + "\212\001\n#com.google.cloud.aiplatform.v1beta1B" - + "\026PredictionServiceProtoP\001ZIgoogle.golang" - + ".org/genproto/googleapis/cloud/aiplatfor" - + "m/v1beta1;aiplatformb\006proto3" + + "ield_behavior.proto\032\031google/api/httpbody" + + ".proto\032\031google/api/resource.proto\0321googl" + + "e/cloud/aiplatform/v1beta1/explanation.p" + + "roto\032\034google/protobuf/struct.proto\"\252\001\n\016P" + + "redictRequest\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n" + + "\"aiplatform.googleapis.com/Endpoint\022.\n\ti" + + "nstances\030\002 \003(\0132\026.google.protobuf.ValueB\003" + + "\340A\002\022*\n\nparameters\030\003 \001(\0132\026.google.protobu" + + "f.Value\"Y\n\017PredictResponse\022+\n\013prediction" + + "s\030\001 \003(\0132\026.google.protobuf.Value\022\031\n\021deplo" + + "yed_model_id\030\002 \001(\t\"\242\002\n\016ExplainRequest\022<\n" + + "\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.goog" + + "leapis.com/Endpoint\022.\n\tinstances\030\002 \003(\0132\026" + + ".google.protobuf.ValueB\003\340A\002\022*\n\nparameter" + + "s\030\004 \001(\0132\026.google.protobuf.Value\022[\n\031expla" + + "nation_spec_override\030\005 \001(\01328.google.clou" + + "d.aiplatform.v1beta1.ExplanationSpecOver" + + "ride\022\031\n\021deployed_model_id\030\003 \001(\t\"\235\001\n\017Expl" + + "ainResponse\022B\n\014explanations\030\001 \003(\0132,.goog" + + "le.cloud.aiplatform.v1beta1.Explanation\022" + + "\031\n\021deployed_model_id\030\002 \001(\t\022+\n\013prediction" + + "s\030\003 \003(\0132\026.google.protobuf.Value2\250\004\n\021Pred" + + "ictionService\022\327\001\n\007Predict\022/.google.cloud" + + ".aiplatform.v1beta1.PredictRequest\0320.goo" + + "gle.cloud.aiplatform.v1beta1.PredictResp" + + "onse\"i\202\323\344\223\002C\">/v1beta1/{endpoint=project" + + "s/*/locations/*/endpoints/*}:predict:\001*\332" + + "A\035endpoint,instances,parameters\022\351\001\n\007Expl" + + "ain\022/.google.cloud.aiplatform.v1beta1.Ex" + + "plainRequest\0320.google.cloud.aiplatform.v" + + "1beta1.ExplainResponse\"{\202\323\344\223\002C\">/v1beta1" + + "/{endpoint=projects/*/locations/*/endpoi" + + "nts/*}:explain:\001*\332A/endpoint,instances,p" + + "arameters,deployed_model_id\032M\312A\031aiplatfo" + + "rm.googleapis.com\322A.https://www.googleap" + + "is.com/auth/cloud-platformB\363\001\n#com.googl" + + "e.cloud.aiplatform.v1beta1B\026PredictionSe" + + "rviceProtoP\001ZIgoogle.golang.org/genproto" + + "/googleapis/cloud/aiplatform/v1beta1;aip" + + "latform\252\002\037Google.Cloud.AIPlatform.V1Beta" + + "1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Go" + + "ogle::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -103,6 +106,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.HttpBodyProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.ExplanationProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), @@ -152,6 +156,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.HttpBodyProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.ExplanationProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PrivateEndpoints.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PrivateEndpoints.java new file mode 100644 index 000000000..6fe0b4a20 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PrivateEndpoints.java @@ -0,0 +1,996 @@ +/* + * 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/endpoint.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * PrivateEndpoints is used to provide paths for users to send
+ * requests via private services access.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PrivateEndpoints} + */ +public final class PrivateEndpoints extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.PrivateEndpoints) + PrivateEndpointsOrBuilder { + private static final long serialVersionUID = 0L; + // Use PrivateEndpoints.newBuilder() to construct. + private PrivateEndpoints(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PrivateEndpoints() { + predictHttpUri_ = ""; + explainHttpUri_ = ""; + healthHttpUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PrivateEndpoints(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PrivateEndpoints( + 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(); + + predictHttpUri_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + explainHttpUri_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + healthHttpUri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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.EndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_PrivateEndpoints_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_PrivateEndpoints_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PrivateEndpoints.class, + com.google.cloud.aiplatform.v1beta1.PrivateEndpoints.Builder.class); + } + + public static final int PREDICT_HTTP_URI_FIELD_NUMBER = 1; + private volatile java.lang.Object predictHttpUri_; + /** + * + * + *
+   * Output only. Http(s) path to send prediction requests.
+   * 
+ * + * string predict_http_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The predictHttpUri. + */ + @java.lang.Override + public java.lang.String getPredictHttpUri() { + java.lang.Object ref = predictHttpUri_; + 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(); + predictHttpUri_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Http(s) path to send prediction requests.
+   * 
+ * + * string predict_http_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for predictHttpUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPredictHttpUriBytes() { + java.lang.Object ref = predictHttpUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + predictHttpUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPLAIN_HTTP_URI_FIELD_NUMBER = 2; + private volatile java.lang.Object explainHttpUri_; + /** + * + * + *
+   * Output only. Http(s) path to send explain requests.
+   * 
+ * + * string explain_http_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The explainHttpUri. + */ + @java.lang.Override + public java.lang.String getExplainHttpUri() { + java.lang.Object ref = explainHttpUri_; + 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(); + explainHttpUri_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Http(s) path to send explain requests.
+   * 
+ * + * string explain_http_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for explainHttpUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExplainHttpUriBytes() { + java.lang.Object ref = explainHttpUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + explainHttpUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HEALTH_HTTP_URI_FIELD_NUMBER = 3; + private volatile java.lang.Object healthHttpUri_; + /** + * + * + *
+   * Output only. Http(s) path to send health check requests.
+   * 
+ * + * string health_http_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The healthHttpUri. + */ + @java.lang.Override + public java.lang.String getHealthHttpUri() { + java.lang.Object ref = healthHttpUri_; + 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(); + healthHttpUri_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Http(s) path to send health check requests.
+   * 
+ * + * string health_http_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for healthHttpUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHealthHttpUriBytes() { + java.lang.Object ref = healthHttpUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + healthHttpUri_ = 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 (!getPredictHttpUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, predictHttpUri_); + } + if (!getExplainHttpUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, explainHttpUri_); + } + if (!getHealthHttpUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, healthHttpUri_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getPredictHttpUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, predictHttpUri_); + } + if (!getExplainHttpUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, explainHttpUri_); + } + if (!getHealthHttpUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, healthHttpUri_); + } + 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.PrivateEndpoints)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.PrivateEndpoints other = + (com.google.cloud.aiplatform.v1beta1.PrivateEndpoints) obj; + + if (!getPredictHttpUri().equals(other.getPredictHttpUri())) return false; + if (!getExplainHttpUri().equals(other.getExplainHttpUri())) return false; + if (!getHealthHttpUri().equals(other.getHealthHttpUri())) 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) + PREDICT_HTTP_URI_FIELD_NUMBER; + hash = (53 * hash) + getPredictHttpUri().hashCode(); + hash = (37 * hash) + EXPLAIN_HTTP_URI_FIELD_NUMBER; + hash = (53 * hash) + getExplainHttpUri().hashCode(); + hash = (37 * hash) + HEALTH_HTTP_URI_FIELD_NUMBER; + hash = (53 * hash) + getHealthHttpUri().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.PrivateEndpoints parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PrivateEndpoints 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.PrivateEndpoints parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PrivateEndpoints 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.PrivateEndpoints parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PrivateEndpoints 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.PrivateEndpoints parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PrivateEndpoints 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.PrivateEndpoints parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PrivateEndpoints 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.PrivateEndpoints 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.PrivateEndpoints 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.PrivateEndpoints 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; + } + /** + * + * + *
+   * PrivateEndpoints is used to provide paths for users to send
+   * requests via private services access.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PrivateEndpoints} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PrivateEndpoints) + com.google.cloud.aiplatform.v1beta1.PrivateEndpointsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_PrivateEndpoints_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_PrivateEndpoints_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PrivateEndpoints.class, + com.google.cloud.aiplatform.v1beta1.PrivateEndpoints.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.PrivateEndpoints.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(); + predictHttpUri_ = ""; + + explainHttpUri_ = ""; + + healthHttpUri_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EndpointProto + .internal_static_google_cloud_aiplatform_v1beta1_PrivateEndpoints_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PrivateEndpoints getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.PrivateEndpoints.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PrivateEndpoints build() { + com.google.cloud.aiplatform.v1beta1.PrivateEndpoints result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PrivateEndpoints buildPartial() { + com.google.cloud.aiplatform.v1beta1.PrivateEndpoints result = + new com.google.cloud.aiplatform.v1beta1.PrivateEndpoints(this); + result.predictHttpUri_ = predictHttpUri_; + result.explainHttpUri_ = explainHttpUri_; + result.healthHttpUri_ = healthHttpUri_; + 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.PrivateEndpoints) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.PrivateEndpoints) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PrivateEndpoints other) { + if (other == com.google.cloud.aiplatform.v1beta1.PrivateEndpoints.getDefaultInstance()) + return this; + if (!other.getPredictHttpUri().isEmpty()) { + predictHttpUri_ = other.predictHttpUri_; + onChanged(); + } + if (!other.getExplainHttpUri().isEmpty()) { + explainHttpUri_ = other.explainHttpUri_; + onChanged(); + } + if (!other.getHealthHttpUri().isEmpty()) { + healthHttpUri_ = other.healthHttpUri_; + 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.PrivateEndpoints parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.PrivateEndpoints) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object predictHttpUri_ = ""; + /** + * + * + *
+     * Output only. Http(s) path to send prediction requests.
+     * 
+ * + * string predict_http_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The predictHttpUri. + */ + public java.lang.String getPredictHttpUri() { + java.lang.Object ref = predictHttpUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + predictHttpUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Http(s) path to send prediction requests.
+     * 
+ * + * string predict_http_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for predictHttpUri. + */ + public com.google.protobuf.ByteString getPredictHttpUriBytes() { + java.lang.Object ref = predictHttpUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + predictHttpUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Http(s) path to send prediction requests.
+     * 
+ * + * string predict_http_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The predictHttpUri to set. + * @return This builder for chaining. + */ + public Builder setPredictHttpUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + predictHttpUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Http(s) path to send prediction requests.
+     * 
+ * + * string predict_http_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPredictHttpUri() { + + predictHttpUri_ = getDefaultInstance().getPredictHttpUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Http(s) path to send prediction requests.
+     * 
+ * + * string predict_http_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for predictHttpUri to set. + * @return This builder for chaining. + */ + public Builder setPredictHttpUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + predictHttpUri_ = value; + onChanged(); + return this; + } + + private java.lang.Object explainHttpUri_ = ""; + /** + * + * + *
+     * Output only. Http(s) path to send explain requests.
+     * 
+ * + * string explain_http_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The explainHttpUri. + */ + public java.lang.String getExplainHttpUri() { + java.lang.Object ref = explainHttpUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + explainHttpUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Http(s) path to send explain requests.
+     * 
+ * + * string explain_http_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for explainHttpUri. + */ + public com.google.protobuf.ByteString getExplainHttpUriBytes() { + java.lang.Object ref = explainHttpUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + explainHttpUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Http(s) path to send explain requests.
+     * 
+ * + * string explain_http_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The explainHttpUri to set. + * @return This builder for chaining. + */ + public Builder setExplainHttpUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + explainHttpUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Http(s) path to send explain requests.
+     * 
+ * + * string explain_http_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearExplainHttpUri() { + + explainHttpUri_ = getDefaultInstance().getExplainHttpUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Http(s) path to send explain requests.
+     * 
+ * + * string explain_http_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for explainHttpUri to set. + * @return This builder for chaining. + */ + public Builder setExplainHttpUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + explainHttpUri_ = value; + onChanged(); + return this; + } + + private java.lang.Object healthHttpUri_ = ""; + /** + * + * + *
+     * Output only. Http(s) path to send health check requests.
+     * 
+ * + * string health_http_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The healthHttpUri. + */ + public java.lang.String getHealthHttpUri() { + java.lang.Object ref = healthHttpUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + healthHttpUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Http(s) path to send health check requests.
+     * 
+ * + * string health_http_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for healthHttpUri. + */ + public com.google.protobuf.ByteString getHealthHttpUriBytes() { + java.lang.Object ref = healthHttpUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + healthHttpUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Http(s) path to send health check requests.
+     * 
+ * + * string health_http_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The healthHttpUri to set. + * @return This builder for chaining. + */ + public Builder setHealthHttpUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + healthHttpUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Http(s) path to send health check requests.
+     * 
+ * + * string health_http_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearHealthHttpUri() { + + healthHttpUri_ = getDefaultInstance().getHealthHttpUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Http(s) path to send health check requests.
+     * 
+ * + * string health_http_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for healthHttpUri to set. + * @return This builder for chaining. + */ + public Builder setHealthHttpUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + healthHttpUri_ = 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.PrivateEndpoints) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PrivateEndpoints) + private static final com.google.cloud.aiplatform.v1beta1.PrivateEndpoints DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.PrivateEndpoints(); + } + + public static com.google.cloud.aiplatform.v1beta1.PrivateEndpoints getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateEndpoints parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PrivateEndpoints(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.PrivateEndpoints getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PrivateEndpointsOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PrivateEndpointsOrBuilder.java new file mode 100644 index 000000000..133f39260 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PrivateEndpointsOrBuilder.java @@ -0,0 +1,100 @@ +/* + * 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/endpoint.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface PrivateEndpointsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PrivateEndpoints) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Http(s) path to send prediction requests.
+   * 
+ * + * string predict_http_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The predictHttpUri. + */ + java.lang.String getPredictHttpUri(); + /** + * + * + *
+   * Output only. Http(s) path to send prediction requests.
+   * 
+ * + * string predict_http_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for predictHttpUri. + */ + com.google.protobuf.ByteString getPredictHttpUriBytes(); + + /** + * + * + *
+   * Output only. Http(s) path to send explain requests.
+   * 
+ * + * string explain_http_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The explainHttpUri. + */ + java.lang.String getExplainHttpUri(); + /** + * + * + *
+   * Output only. Http(s) path to send explain requests.
+   * 
+ * + * string explain_http_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for explainHttpUri. + */ + com.google.protobuf.ByteString getExplainHttpUriBytes(); + + /** + * + * + *
+   * Output only. Http(s) path to send health check requests.
+   * 
+ * + * string health_http_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The healthHttpUri. + */ + java.lang.String getHealthHttpUri(); + /** + * + * + *
+   * Output only. Http(s) path to send health check requests.
+   * 
+ * + * string health_http_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for healthHttpUri. + */ + com.google.protobuf.ByteString getHealthHttpUriBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsMetadata.java new file mode 100644 index 000000000..0cca241a8 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsMetadata.java @@ -0,0 +1,743 @@ +/* + * 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/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Details of operations that perform [MetadataService.PurgeArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeArtifacts].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata} + */ +public final class PurgeArtifactsMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata) + PurgeArtifactsMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use PurgeArtifactsMetadata.newBuilder() to construct. + private PurgeArtifactsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PurgeArtifactsMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PurgeArtifactsMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PurgeArtifactsMetadata( + 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 (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.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeArtifactsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeArtifactsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata.class, + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata.Builder.class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * Operation metadata for purging Artifacts.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return genericMetadata_ != null; + } + /** + * + * + *
+   * Operation metadata for purging Artifacts.
+   * 
+ * + * .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_; + } + /** + * + * + *
+   * Operation metadata for purging Artifacts.
+   * 
+ * + * .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.PurgeArtifactsMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata other = + (com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata) 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.PurgeArtifactsMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata 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.PurgeArtifactsMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata 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.PurgeArtifactsMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata 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.PurgeArtifactsMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata 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.PurgeArtifactsMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata 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.PurgeArtifactsMetadata 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.PurgeArtifactsMetadata 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.PurgeArtifactsMetadata 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; + } + /** + * + * + *
+   * Details of operations that perform [MetadataService.PurgeArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeArtifacts].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata) + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeArtifactsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeArtifactsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata.class, + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata.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.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeArtifactsMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata build() { + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata buildPartial() { + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata result = + new com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata(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.PurgeArtifactsMetadata) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata other) { + if (other == com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata.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.PurgeArtifactsMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata) 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_; + /** + * + * + *
+     * Operation metadata for purging Artifacts.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return genericMetadataBuilder_ != null || genericMetadata_ != null; + } + /** + * + * + *
+     * Operation metadata for purging Artifacts.
+     * 
+ * + * .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(); + } + } + /** + * + * + *
+     * Operation metadata for purging Artifacts.
+     * 
+ * + * .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; + } + /** + * + * + *
+     * Operation metadata for purging Artifacts.
+     * 
+ * + * .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; + } + /** + * + * + *
+     * Operation metadata for purging Artifacts.
+     * 
+ * + * .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; + } + /** + * + * + *
+     * Operation metadata for purging Artifacts.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = null; + onChanged(); + } else { + genericMetadata_ = null; + genericMetadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Operation metadata for purging Artifacts.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Operation metadata for purging Artifacts.
+     * 
+ * + * .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_; + } + } + /** + * + * + *
+     * Operation metadata for purging Artifacts.
+     * 
+ * + * .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.PurgeArtifactsMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata) + private static final com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeArtifactsMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PurgeArtifactsMetadata(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.PurgeArtifactsMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsMetadataOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsMetadataOrBuilder.java new file mode 100644 index 000000000..32ea29b3f --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsMetadataOrBuilder.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/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface PurgeArtifactsMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PurgeArtifactsMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Operation metadata for purging Artifacts.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * Operation metadata for purging Artifacts.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * Operation metadata for purging Artifacts.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsRequest.java new file mode 100644 index 000000000..d566ef494 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsRequest.java @@ -0,0 +1,949 @@ +/* + * 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/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [MetadataService.PurgeArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeArtifacts].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest} + */ +public final class PurgeArtifactsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest) + PurgeArtifactsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use PurgeArtifactsRequest.newBuilder() to construct. + private PurgeArtifactsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PurgeArtifactsRequest() { + parent_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PurgeArtifactsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PurgeArtifactsRequest( + 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(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 24: + { + force_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeArtifactsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeArtifactsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest.class, + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The metadata store to purge Artifacts from.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The metadata store to purge Artifacts from.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * Required. A required filter matching the Artifacts to be purged.
+   * E.g., update_time <= 2020-11-19T11:30:00-04:00.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+   * Required. A required filter matching the Artifacts to be purged.
+   * E.g., update_time <= 2020-11-19T11:30:00-04:00.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 FORCE_FIELD_NUMBER = 3; + private boolean force_; + /** + * + * + *
+   * Optional. Flag to indicate to actually perform the purge.
+   * If `force` is set to false, the method will return a sample of
+   * Artifact names that would be deleted.
+   * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + 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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (force_ != false) { + output.writeBool(3, force_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + } + 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.PurgeArtifactsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest other = + (com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getForce() != other.getForce()) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest 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.PurgeArtifactsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest 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.PurgeArtifactsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest 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.PurgeArtifactsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest 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.PurgeArtifactsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest 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.PurgeArtifactsRequest 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.PurgeArtifactsRequest 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.PurgeArtifactsRequest 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 [MetadataService.PurgeArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeArtifacts].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest) + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeArtifactsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeArtifactsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest.class, + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest.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(); + parent_ = ""; + + filter_ = ""; + + force_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeArtifactsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest build() { + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest result = + new com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.force_ = force_; + 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.PurgeArtifactsRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + 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.PurgeArtifactsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The metadata store to purge Artifacts from.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The metadata store to purge Artifacts from.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The metadata store to purge Artifacts from.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The metadata store to purge Artifacts from.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The metadata store to purge Artifacts from.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Required. A required filter matching the Artifacts to be purged.
+     * E.g., update_time <= 2020-11-19T11:30:00-04:00.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. A required filter matching the Artifacts to be purged.
+     * E.g., update_time <= 2020-11-19T11:30:00-04:00.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. A required filter matching the Artifacts to be purged.
+     * E.g., update_time <= 2020-11-19T11:30:00-04:00.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + /** + * + * + *
+     * Required. A required filter matching the Artifacts to be purged.
+     * E.g., update_time <= 2020-11-19T11:30:00-04:00.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A required filter matching the Artifacts to be purged.
+     * E.g., update_time <= 2020-11-19T11:30:00-04:00.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 boolean force_; + /** + * + * + *
+     * Optional. Flag to indicate to actually perform the purge.
+     * If `force` is set to false, the method will return a sample of
+     * Artifact names that would be deleted.
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + /** + * + * + *
+     * Optional. Flag to indicate to actually perform the purge.
+     * If `force` is set to false, the method will return a sample of
+     * Artifact names that would be deleted.
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Flag to indicate to actually perform the purge.
+     * If `force` is set to false, the method will return a sample of
+     * Artifact names that would be deleted.
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + + force_ = false; + 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.PurgeArtifactsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest) + private static final com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeArtifactsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PurgeArtifactsRequest(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.PurgeArtifactsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsRequestOrBuilder.java new file mode 100644 index 000000000..3bfba71a9 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsRequestOrBuilder.java @@ -0,0 +1,100 @@ +/* + * 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/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface PurgeArtifactsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PurgeArtifactsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The metadata store to purge Artifacts from.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The metadata store to purge Artifacts from.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. A required filter matching the Artifacts to be purged.
+   * E.g., update_time <= 2020-11-19T11:30:00-04:00.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Required. A required filter matching the Artifacts to be purged.
+   * E.g., update_time <= 2020-11-19T11:30:00-04:00.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Flag to indicate to actually perform the purge.
+   * If `force` is set to false, the method will return a sample of
+   * Artifact names that would be deleted.
+   * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsResponse.java new file mode 100644 index 000000000..bbc991691 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsResponse.java @@ -0,0 +1,858 @@ +/* + * 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/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [MetadataService.PurgeArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeArtifacts].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse} + */ +public final class PurgeArtifactsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse) + PurgeArtifactsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use PurgeArtifactsResponse.newBuilder() to construct. + private PurgeArtifactsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PurgeArtifactsResponse() { + purgeSample_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PurgeArtifactsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PurgeArtifactsResponse( + 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: + { + purgeCount_ = input.readInt64(); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + purgeSample_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + purgeSample_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + purgeSample_ = purgeSample_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeArtifactsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeArtifactsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse.class, + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse.Builder.class); + } + + public static final int PURGE_COUNT_FIELD_NUMBER = 1; + private long purgeCount_; + /** + * + * + *
+   * The number of Artifacts that this request deleted (or, if `force` is false,
+   * the number of Artifacts that will be deleted). This can be an estimate.
+   * 
+ * + * int64 purge_count = 1; + * + * @return The purgeCount. + */ + @java.lang.Override + public long getPurgeCount() { + return purgeCount_; + } + + public static final int PURGE_SAMPLE_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList purgeSample_; + /** + * + * + *
+   * A sample of the Artifact names that will be deleted.
+   * Only populated if `force` is set to false. The maximum number of samples is
+   * 100 (it is possible to return fewer).
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the purgeSample. + */ + public com.google.protobuf.ProtocolStringList getPurgeSampleList() { + return purgeSample_; + } + /** + * + * + *
+   * A sample of the Artifact names that will be deleted.
+   * Only populated if `force` is set to false. The maximum number of samples is
+   * 100 (it is possible to return fewer).
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return The count of purgeSample. + */ + public int getPurgeSampleCount() { + return purgeSample_.size(); + } + /** + * + * + *
+   * A sample of the Artifact names that will be deleted.
+   * Only populated if `force` is set to false. The maximum number of samples is
+   * 100 (it is possible to return fewer).
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The purgeSample at the given index. + */ + public java.lang.String getPurgeSample(int index) { + return purgeSample_.get(index); + } + /** + * + * + *
+   * A sample of the Artifact names that will be deleted.
+   * Only populated if `force` is set to false. The maximum number of samples is
+   * 100 (it is possible to return fewer).
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the purgeSample at the given index. + */ + public com.google.protobuf.ByteString getPurgeSampleBytes(int index) { + return purgeSample_.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 (purgeCount_ != 0L) { + output.writeInt64(1, purgeCount_); + } + for (int i = 0; i < purgeSample_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, purgeSample_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (purgeCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, purgeCount_); + } + { + int dataSize = 0; + for (int i = 0; i < purgeSample_.size(); i++) { + dataSize += computeStringSizeNoTag(purgeSample_.getRaw(i)); + } + size += dataSize; + size += 1 * getPurgeSampleList().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.PurgeArtifactsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse other = + (com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse) obj; + + if (getPurgeCount() != other.getPurgeCount()) return false; + if (!getPurgeSampleList().equals(other.getPurgeSampleList())) 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) + PURGE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPurgeCount()); + if (getPurgeSampleCount() > 0) { + hash = (37 * hash) + PURGE_SAMPLE_FIELD_NUMBER; + hash = (53 * hash) + getPurgeSampleList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse 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.PurgeArtifactsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse 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.PurgeArtifactsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse 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.PurgeArtifactsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse 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.PurgeArtifactsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse 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.PurgeArtifactsResponse 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.PurgeArtifactsResponse 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.PurgeArtifactsResponse 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 [MetadataService.PurgeArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeArtifacts].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse) + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeArtifactsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeArtifactsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse.class, + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse.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(); + purgeCount_ = 0L; + + purgeSample_ = 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.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeArtifactsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse build() { + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse result = + new com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse(this); + int from_bitField0_ = bitField0_; + result.purgeCount_ = purgeCount_; + if (((bitField0_ & 0x00000001) != 0)) { + purgeSample_ = purgeSample_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.purgeSample_ = purgeSample_; + 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.PurgeArtifactsResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse other) { + if (other == com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse.getDefaultInstance()) + return this; + if (other.getPurgeCount() != 0L) { + setPurgeCount(other.getPurgeCount()); + } + if (!other.purgeSample_.isEmpty()) { + if (purgeSample_.isEmpty()) { + purgeSample_ = other.purgeSample_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePurgeSampleIsMutable(); + purgeSample_.addAll(other.purgeSample_); + } + 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.PurgeArtifactsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private long purgeCount_; + /** + * + * + *
+     * The number of Artifacts that this request deleted (or, if `force` is false,
+     * the number of Artifacts that will be deleted). This can be an estimate.
+     * 
+ * + * int64 purge_count = 1; + * + * @return The purgeCount. + */ + @java.lang.Override + public long getPurgeCount() { + return purgeCount_; + } + /** + * + * + *
+     * The number of Artifacts that this request deleted (or, if `force` is false,
+     * the number of Artifacts that will be deleted). This can be an estimate.
+     * 
+ * + * int64 purge_count = 1; + * + * @param value The purgeCount to set. + * @return This builder for chaining. + */ + public Builder setPurgeCount(long value) { + + purgeCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of Artifacts that this request deleted (or, if `force` is false,
+     * the number of Artifacts that will be deleted). This can be an estimate.
+     * 
+ * + * int64 purge_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearPurgeCount() { + + purgeCount_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList purgeSample_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensurePurgeSampleIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + purgeSample_ = new com.google.protobuf.LazyStringArrayList(purgeSample_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * A sample of the Artifact names that will be deleted.
+     * Only populated if `force` is set to false. The maximum number of samples is
+     * 100 (it is possible to return fewer).
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the purgeSample. + */ + public com.google.protobuf.ProtocolStringList getPurgeSampleList() { + return purgeSample_.getUnmodifiableView(); + } + /** + * + * + *
+     * A sample of the Artifact names that will be deleted.
+     * Only populated if `force` is set to false. The maximum number of samples is
+     * 100 (it is possible to return fewer).
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return The count of purgeSample. + */ + public int getPurgeSampleCount() { + return purgeSample_.size(); + } + /** + * + * + *
+     * A sample of the Artifact names that will be deleted.
+     * Only populated if `force` is set to false. The maximum number of samples is
+     * 100 (it is possible to return fewer).
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The purgeSample at the given index. + */ + public java.lang.String getPurgeSample(int index) { + return purgeSample_.get(index); + } + /** + * + * + *
+     * A sample of the Artifact names that will be deleted.
+     * Only populated if `force` is set to false. The maximum number of samples is
+     * 100 (it is possible to return fewer).
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the purgeSample at the given index. + */ + public com.google.protobuf.ByteString getPurgeSampleBytes(int index) { + return purgeSample_.getByteString(index); + } + /** + * + * + *
+     * A sample of the Artifact names that will be deleted.
+     * Only populated if `force` is set to false. The maximum number of samples is
+     * 100 (it is possible to return fewer).
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index to set the value at. + * @param value The purgeSample to set. + * @return This builder for chaining. + */ + public Builder setPurgeSample(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePurgeSampleIsMutable(); + purgeSample_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * A sample of the Artifact names that will be deleted.
+     * Only populated if `force` is set to false. The maximum number of samples is
+     * 100 (it is possible to return fewer).
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The purgeSample to add. + * @return This builder for chaining. + */ + public Builder addPurgeSample(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePurgeSampleIsMutable(); + purgeSample_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * A sample of the Artifact names that will be deleted.
+     * Only populated if `force` is set to false. The maximum number of samples is
+     * 100 (it is possible to return fewer).
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param values The purgeSample to add. + * @return This builder for chaining. + */ + public Builder addAllPurgeSample(java.lang.Iterable values) { + ensurePurgeSampleIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, purgeSample_); + onChanged(); + return this; + } + /** + * + * + *
+     * A sample of the Artifact names that will be deleted.
+     * Only populated if `force` is set to false. The maximum number of samples is
+     * 100 (it is possible to return fewer).
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearPurgeSample() { + purgeSample_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * A sample of the Artifact names that will be deleted.
+     * Only populated if `force` is set to false. The maximum number of samples is
+     * 100 (it is possible to return fewer).
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes of the purgeSample to add. + * @return This builder for chaining. + */ + public Builder addPurgeSampleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePurgeSampleIsMutable(); + purgeSample_.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.PurgeArtifactsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse) + private static final com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeArtifactsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PurgeArtifactsResponse(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.PurgeArtifactsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsResponseOrBuilder.java new file mode 100644 index 000000000..16dc1e61f --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeArtifactsResponseOrBuilder.java @@ -0,0 +1,98 @@ +/* + * 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/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface PurgeArtifactsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The number of Artifacts that this request deleted (or, if `force` is false,
+   * the number of Artifacts that will be deleted). This can be an estimate.
+   * 
+ * + * int64 purge_count = 1; + * + * @return The purgeCount. + */ + long getPurgeCount(); + + /** + * + * + *
+   * A sample of the Artifact names that will be deleted.
+   * Only populated if `force` is set to false. The maximum number of samples is
+   * 100 (it is possible to return fewer).
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the purgeSample. + */ + java.util.List getPurgeSampleList(); + /** + * + * + *
+   * A sample of the Artifact names that will be deleted.
+   * Only populated if `force` is set to false. The maximum number of samples is
+   * 100 (it is possible to return fewer).
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return The count of purgeSample. + */ + int getPurgeSampleCount(); + /** + * + * + *
+   * A sample of the Artifact names that will be deleted.
+   * Only populated if `force` is set to false. The maximum number of samples is
+   * 100 (it is possible to return fewer).
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The purgeSample at the given index. + */ + java.lang.String getPurgeSample(int index); + /** + * + * + *
+   * A sample of the Artifact names that will be deleted.
+   * Only populated if `force` is set to false. The maximum number of samples is
+   * 100 (it is possible to return fewer).
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the purgeSample at the given index. + */ + com.google.protobuf.ByteString getPurgeSampleBytes(int index); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsMetadata.java new file mode 100644 index 000000000..0d6f85032 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsMetadata.java @@ -0,0 +1,743 @@ +/* + * 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/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Details of operations that perform [MetadataService.PurgeContexts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeContexts].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PurgeContextsMetadata} + */ +public final class PurgeContextsMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.PurgeContextsMetadata) + PurgeContextsMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use PurgeContextsMetadata.newBuilder() to construct. + private PurgeContextsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PurgeContextsMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PurgeContextsMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PurgeContextsMetadata( + 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 (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.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeContextsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeContextsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata.class, + com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata.Builder.class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * Operation metadata for purging Contexts.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return genericMetadata_ != null; + } + /** + * + * + *
+   * Operation metadata for purging Contexts.
+   * 
+ * + * .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_; + } + /** + * + * + *
+   * Operation metadata for purging Contexts.
+   * 
+ * + * .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.PurgeContextsMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata other = + (com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata) 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.PurgeContextsMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata 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.PurgeContextsMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata 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.PurgeContextsMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata 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.PurgeContextsMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata 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.PurgeContextsMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata 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.PurgeContextsMetadata 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.PurgeContextsMetadata 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.PurgeContextsMetadata 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; + } + /** + * + * + *
+   * Details of operations that perform [MetadataService.PurgeContexts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeContexts].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PurgeContextsMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PurgeContextsMetadata) + com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeContextsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeContextsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata.class, + com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata.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.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeContextsMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata build() { + com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata buildPartial() { + com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata result = + new com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata(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.PurgeContextsMetadata) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata other) { + if (other == com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata.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.PurgeContextsMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata) 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_; + /** + * + * + *
+     * Operation metadata for purging Contexts.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return genericMetadataBuilder_ != null || genericMetadata_ != null; + } + /** + * + * + *
+     * Operation metadata for purging Contexts.
+     * 
+ * + * .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(); + } + } + /** + * + * + *
+     * Operation metadata for purging Contexts.
+     * 
+ * + * .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; + } + /** + * + * + *
+     * Operation metadata for purging Contexts.
+     * 
+ * + * .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; + } + /** + * + * + *
+     * Operation metadata for purging Contexts.
+     * 
+ * + * .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; + } + /** + * + * + *
+     * Operation metadata for purging Contexts.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = null; + onChanged(); + } else { + genericMetadata_ = null; + genericMetadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Operation metadata for purging Contexts.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Operation metadata for purging Contexts.
+     * 
+ * + * .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_; + } + } + /** + * + * + *
+     * Operation metadata for purging Contexts.
+     * 
+ * + * .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.PurgeContextsMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PurgeContextsMetadata) + private static final com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeContextsMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeContextsMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PurgeContextsMetadata(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.PurgeContextsMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsMetadataOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsMetadataOrBuilder.java new file mode 100644 index 000000000..457501233 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsMetadataOrBuilder.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/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface PurgeContextsMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PurgeContextsMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Operation metadata for purging Contexts.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * Operation metadata for purging Contexts.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * Operation metadata for purging Contexts.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsRequest.java new file mode 100644 index 000000000..d8f203cf5 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsRequest.java @@ -0,0 +1,949 @@ +/* + * 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/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [MetadataService.PurgeContexts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeContexts].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PurgeContextsRequest} + */ +public final class PurgeContextsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.PurgeContextsRequest) + PurgeContextsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use PurgeContextsRequest.newBuilder() to construct. + private PurgeContextsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PurgeContextsRequest() { + parent_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PurgeContextsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PurgeContextsRequest( + 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(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 24: + { + force_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeContextsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeContextsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest.class, + com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The metadata store to purge Contexts from.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The metadata store to purge Contexts from.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * Required. A required filter matching the Contexts to be purged.
+   * E.g., update_time <= 2020-11-19T11:30:00-04:00.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+   * Required. A required filter matching the Contexts to be purged.
+   * E.g., update_time <= 2020-11-19T11:30:00-04:00.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 FORCE_FIELD_NUMBER = 3; + private boolean force_; + /** + * + * + *
+   * Optional. Flag to indicate to actually perform the purge.
+   * If `force` is set to false, the method will return a sample of
+   * Context names that would be deleted.
+   * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + 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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (force_ != false) { + output.writeBool(3, force_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + } + 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.PurgeContextsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest other = + (com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getForce() != other.getForce()) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest 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.PurgeContextsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest 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.PurgeContextsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest 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.PurgeContextsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest 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.PurgeContextsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest 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.PurgeContextsRequest 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.PurgeContextsRequest 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.PurgeContextsRequest 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 [MetadataService.PurgeContexts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeContexts].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PurgeContextsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PurgeContextsRequest) + com.google.cloud.aiplatform.v1beta1.PurgeContextsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeContextsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeContextsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest.class, + com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest.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(); + parent_ = ""; + + filter_ = ""; + + force_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeContextsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest build() { + com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest result = + new com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.force_ = force_; + 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.PurgeContextsRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + 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.PurgeContextsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The metadata store to purge Contexts from.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The metadata store to purge Contexts from.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The metadata store to purge Contexts from.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The metadata store to purge Contexts from.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The metadata store to purge Contexts from.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Required. A required filter matching the Contexts to be purged.
+     * E.g., update_time <= 2020-11-19T11:30:00-04:00.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. A required filter matching the Contexts to be purged.
+     * E.g., update_time <= 2020-11-19T11:30:00-04:00.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. A required filter matching the Contexts to be purged.
+     * E.g., update_time <= 2020-11-19T11:30:00-04:00.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + /** + * + * + *
+     * Required. A required filter matching the Contexts to be purged.
+     * E.g., update_time <= 2020-11-19T11:30:00-04:00.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A required filter matching the Contexts to be purged.
+     * E.g., update_time <= 2020-11-19T11:30:00-04:00.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 boolean force_; + /** + * + * + *
+     * Optional. Flag to indicate to actually perform the purge.
+     * If `force` is set to false, the method will return a sample of
+     * Context names that would be deleted.
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + /** + * + * + *
+     * Optional. Flag to indicate to actually perform the purge.
+     * If `force` is set to false, the method will return a sample of
+     * Context names that would be deleted.
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Flag to indicate to actually perform the purge.
+     * If `force` is set to false, the method will return a sample of
+     * Context names that would be deleted.
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + + force_ = false; + 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.PurgeContextsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PurgeContextsRequest) + private static final com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeContextsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeContextsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PurgeContextsRequest(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.PurgeContextsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsRequestOrBuilder.java new file mode 100644 index 000000000..5f3fa5cbd --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsRequestOrBuilder.java @@ -0,0 +1,100 @@ +/* + * 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/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface PurgeContextsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PurgeContextsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The metadata store to purge Contexts from.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The metadata store to purge Contexts from.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. A required filter matching the Contexts to be purged.
+   * E.g., update_time <= 2020-11-19T11:30:00-04:00.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Required. A required filter matching the Contexts to be purged.
+   * E.g., update_time <= 2020-11-19T11:30:00-04:00.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Flag to indicate to actually perform the purge.
+   * If `force` is set to false, the method will return a sample of
+   * Context names that would be deleted.
+   * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsResponse.java new file mode 100644 index 000000000..512057465 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsResponse.java @@ -0,0 +1,858 @@ +/* + * 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/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [MetadataService.PurgeContexts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeContexts].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PurgeContextsResponse} + */ +public final class PurgeContextsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.PurgeContextsResponse) + PurgeContextsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use PurgeContextsResponse.newBuilder() to construct. + private PurgeContextsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PurgeContextsResponse() { + purgeSample_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PurgeContextsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PurgeContextsResponse( + 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: + { + purgeCount_ = input.readInt64(); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + purgeSample_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + purgeSample_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + purgeSample_ = purgeSample_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeContextsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeContextsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse.class, + com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse.Builder.class); + } + + public static final int PURGE_COUNT_FIELD_NUMBER = 1; + private long purgeCount_; + /** + * + * + *
+   * The number of Contexts that this request deleted (or, if `force` is false,
+   * the number of Contexts that will be deleted). This can be an estimate.
+   * 
+ * + * int64 purge_count = 1; + * + * @return The purgeCount. + */ + @java.lang.Override + public long getPurgeCount() { + return purgeCount_; + } + + public static final int PURGE_SAMPLE_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList purgeSample_; + /** + * + * + *
+   * A sample of the Context names that will be deleted.
+   * Only populated if `force` is set to false. The maximum number of samples is
+   * 100 (it is possible to return fewer).
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the purgeSample. + */ + public com.google.protobuf.ProtocolStringList getPurgeSampleList() { + return purgeSample_; + } + /** + * + * + *
+   * A sample of the Context names that will be deleted.
+   * Only populated if `force` is set to false. The maximum number of samples is
+   * 100 (it is possible to return fewer).
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return The count of purgeSample. + */ + public int getPurgeSampleCount() { + return purgeSample_.size(); + } + /** + * + * + *
+   * A sample of the Context names that will be deleted.
+   * Only populated if `force` is set to false. The maximum number of samples is
+   * 100 (it is possible to return fewer).
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The purgeSample at the given index. + */ + public java.lang.String getPurgeSample(int index) { + return purgeSample_.get(index); + } + /** + * + * + *
+   * A sample of the Context names that will be deleted.
+   * Only populated if `force` is set to false. The maximum number of samples is
+   * 100 (it is possible to return fewer).
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the purgeSample at the given index. + */ + public com.google.protobuf.ByteString getPurgeSampleBytes(int index) { + return purgeSample_.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 (purgeCount_ != 0L) { + output.writeInt64(1, purgeCount_); + } + for (int i = 0; i < purgeSample_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, purgeSample_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (purgeCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, purgeCount_); + } + { + int dataSize = 0; + for (int i = 0; i < purgeSample_.size(); i++) { + dataSize += computeStringSizeNoTag(purgeSample_.getRaw(i)); + } + size += dataSize; + size += 1 * getPurgeSampleList().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.PurgeContextsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse other = + (com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse) obj; + + if (getPurgeCount() != other.getPurgeCount()) return false; + if (!getPurgeSampleList().equals(other.getPurgeSampleList())) 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) + PURGE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPurgeCount()); + if (getPurgeSampleCount() > 0) { + hash = (37 * hash) + PURGE_SAMPLE_FIELD_NUMBER; + hash = (53 * hash) + getPurgeSampleList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse 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.PurgeContextsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse 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.PurgeContextsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse 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.PurgeContextsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse 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.PurgeContextsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse 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.PurgeContextsResponse 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.PurgeContextsResponse 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.PurgeContextsResponse 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 [MetadataService.PurgeContexts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeContexts].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PurgeContextsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PurgeContextsResponse) + com.google.cloud.aiplatform.v1beta1.PurgeContextsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeContextsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeContextsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse.class, + com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse.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(); + purgeCount_ = 0L; + + purgeSample_ = 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.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeContextsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse build() { + com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse result = + new com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse(this); + int from_bitField0_ = bitField0_; + result.purgeCount_ = purgeCount_; + if (((bitField0_ & 0x00000001) != 0)) { + purgeSample_ = purgeSample_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.purgeSample_ = purgeSample_; + 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.PurgeContextsResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse other) { + if (other == com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse.getDefaultInstance()) + return this; + if (other.getPurgeCount() != 0L) { + setPurgeCount(other.getPurgeCount()); + } + if (!other.purgeSample_.isEmpty()) { + if (purgeSample_.isEmpty()) { + purgeSample_ = other.purgeSample_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePurgeSampleIsMutable(); + purgeSample_.addAll(other.purgeSample_); + } + 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.PurgeContextsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private long purgeCount_; + /** + * + * + *
+     * The number of Contexts that this request deleted (or, if `force` is false,
+     * the number of Contexts that will be deleted). This can be an estimate.
+     * 
+ * + * int64 purge_count = 1; + * + * @return The purgeCount. + */ + @java.lang.Override + public long getPurgeCount() { + return purgeCount_; + } + /** + * + * + *
+     * The number of Contexts that this request deleted (or, if `force` is false,
+     * the number of Contexts that will be deleted). This can be an estimate.
+     * 
+ * + * int64 purge_count = 1; + * + * @param value The purgeCount to set. + * @return This builder for chaining. + */ + public Builder setPurgeCount(long value) { + + purgeCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of Contexts that this request deleted (or, if `force` is false,
+     * the number of Contexts that will be deleted). This can be an estimate.
+     * 
+ * + * int64 purge_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearPurgeCount() { + + purgeCount_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList purgeSample_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensurePurgeSampleIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + purgeSample_ = new com.google.protobuf.LazyStringArrayList(purgeSample_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * A sample of the Context names that will be deleted.
+     * Only populated if `force` is set to false. The maximum number of samples is
+     * 100 (it is possible to return fewer).
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the purgeSample. + */ + public com.google.protobuf.ProtocolStringList getPurgeSampleList() { + return purgeSample_.getUnmodifiableView(); + } + /** + * + * + *
+     * A sample of the Context names that will be deleted.
+     * Only populated if `force` is set to false. The maximum number of samples is
+     * 100 (it is possible to return fewer).
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return The count of purgeSample. + */ + public int getPurgeSampleCount() { + return purgeSample_.size(); + } + /** + * + * + *
+     * A sample of the Context names that will be deleted.
+     * Only populated if `force` is set to false. The maximum number of samples is
+     * 100 (it is possible to return fewer).
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The purgeSample at the given index. + */ + public java.lang.String getPurgeSample(int index) { + return purgeSample_.get(index); + } + /** + * + * + *
+     * A sample of the Context names that will be deleted.
+     * Only populated if `force` is set to false. The maximum number of samples is
+     * 100 (it is possible to return fewer).
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the purgeSample at the given index. + */ + public com.google.protobuf.ByteString getPurgeSampleBytes(int index) { + return purgeSample_.getByteString(index); + } + /** + * + * + *
+     * A sample of the Context names that will be deleted.
+     * Only populated if `force` is set to false. The maximum number of samples is
+     * 100 (it is possible to return fewer).
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index to set the value at. + * @param value The purgeSample to set. + * @return This builder for chaining. + */ + public Builder setPurgeSample(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePurgeSampleIsMutable(); + purgeSample_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * A sample of the Context names that will be deleted.
+     * Only populated if `force` is set to false. The maximum number of samples is
+     * 100 (it is possible to return fewer).
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The purgeSample to add. + * @return This builder for chaining. + */ + public Builder addPurgeSample(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePurgeSampleIsMutable(); + purgeSample_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * A sample of the Context names that will be deleted.
+     * Only populated if `force` is set to false. The maximum number of samples is
+     * 100 (it is possible to return fewer).
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param values The purgeSample to add. + * @return This builder for chaining. + */ + public Builder addAllPurgeSample(java.lang.Iterable values) { + ensurePurgeSampleIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, purgeSample_); + onChanged(); + return this; + } + /** + * + * + *
+     * A sample of the Context names that will be deleted.
+     * Only populated if `force` is set to false. The maximum number of samples is
+     * 100 (it is possible to return fewer).
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearPurgeSample() { + purgeSample_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * A sample of the Context names that will be deleted.
+     * Only populated if `force` is set to false. The maximum number of samples is
+     * 100 (it is possible to return fewer).
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes of the purgeSample to add. + * @return This builder for chaining. + */ + public Builder addPurgeSampleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePurgeSampleIsMutable(); + purgeSample_.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.PurgeContextsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PurgeContextsResponse) + private static final com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeContextsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeContextsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PurgeContextsResponse(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.PurgeContextsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsResponseOrBuilder.java new file mode 100644 index 000000000..ed970b23c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeContextsResponseOrBuilder.java @@ -0,0 +1,98 @@ +/* + * 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/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface PurgeContextsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PurgeContextsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The number of Contexts that this request deleted (or, if `force` is false,
+   * the number of Contexts that will be deleted). This can be an estimate.
+   * 
+ * + * int64 purge_count = 1; + * + * @return The purgeCount. + */ + long getPurgeCount(); + + /** + * + * + *
+   * A sample of the Context names that will be deleted.
+   * Only populated if `force` is set to false. The maximum number of samples is
+   * 100 (it is possible to return fewer).
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the purgeSample. + */ + java.util.List getPurgeSampleList(); + /** + * + * + *
+   * A sample of the Context names that will be deleted.
+   * Only populated if `force` is set to false. The maximum number of samples is
+   * 100 (it is possible to return fewer).
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return The count of purgeSample. + */ + int getPurgeSampleCount(); + /** + * + * + *
+   * A sample of the Context names that will be deleted.
+   * Only populated if `force` is set to false. The maximum number of samples is
+   * 100 (it is possible to return fewer).
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The purgeSample at the given index. + */ + java.lang.String getPurgeSample(int index); + /** + * + * + *
+   * A sample of the Context names that will be deleted.
+   * Only populated if `force` is set to false. The maximum number of samples is
+   * 100 (it is possible to return fewer).
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the purgeSample at the given index. + */ + com.google.protobuf.ByteString getPurgeSampleBytes(int index); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsMetadata.java new file mode 100644 index 000000000..30aea0ceb --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsMetadata.java @@ -0,0 +1,743 @@ +/* + * 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/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Details of operations that perform [MetadataService.PurgeExecutions][google.cloud.aiplatform.v1beta1.MetadataService.PurgeExecutions].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata} + */ +public final class PurgeExecutionsMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata) + PurgeExecutionsMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use PurgeExecutionsMetadata.newBuilder() to construct. + private PurgeExecutionsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PurgeExecutionsMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PurgeExecutionsMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PurgeExecutionsMetadata( + 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 (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.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeExecutionsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeExecutionsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata.class, + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata.Builder.class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * Operation metadata for purging Executions.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return genericMetadata_ != null; + } + /** + * + * + *
+   * Operation metadata for purging Executions.
+   * 
+ * + * .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_; + } + /** + * + * + *
+   * Operation metadata for purging Executions.
+   * 
+ * + * .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.PurgeExecutionsMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata other = + (com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata) 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.PurgeExecutionsMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata 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.PurgeExecutionsMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata 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.PurgeExecutionsMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata 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.PurgeExecutionsMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata 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.PurgeExecutionsMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata 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.PurgeExecutionsMetadata 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.PurgeExecutionsMetadata 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.PurgeExecutionsMetadata 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; + } + /** + * + * + *
+   * Details of operations that perform [MetadataService.PurgeExecutions][google.cloud.aiplatform.v1beta1.MetadataService.PurgeExecutions].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata) + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeExecutionsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeExecutionsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata.class, + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata.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.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeExecutionsMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata build() { + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata buildPartial() { + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata result = + new com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata(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.PurgeExecutionsMetadata) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata other) { + if (other == com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata.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.PurgeExecutionsMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata) 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_; + /** + * + * + *
+     * Operation metadata for purging Executions.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return genericMetadataBuilder_ != null || genericMetadata_ != null; + } + /** + * + * + *
+     * Operation metadata for purging Executions.
+     * 
+ * + * .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(); + } + } + /** + * + * + *
+     * Operation metadata for purging Executions.
+     * 
+ * + * .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; + } + /** + * + * + *
+     * Operation metadata for purging Executions.
+     * 
+ * + * .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; + } + /** + * + * + *
+     * Operation metadata for purging Executions.
+     * 
+ * + * .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; + } + /** + * + * + *
+     * Operation metadata for purging Executions.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = null; + onChanged(); + } else { + genericMetadata_ = null; + genericMetadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Operation metadata for purging Executions.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Operation metadata for purging Executions.
+     * 
+ * + * .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_; + } + } + /** + * + * + *
+     * Operation metadata for purging Executions.
+     * 
+ * + * .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.PurgeExecutionsMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata) + private static final com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeExecutionsMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PurgeExecutionsMetadata(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.PurgeExecutionsMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsMetadataOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsMetadataOrBuilder.java new file mode 100644 index 000000000..21d15e0d2 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsMetadataOrBuilder.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/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface PurgeExecutionsMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PurgeExecutionsMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Operation metadata for purging Executions.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * Operation metadata for purging Executions.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * Operation metadata for purging Executions.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsRequest.java new file mode 100644 index 000000000..e12c22c10 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsRequest.java @@ -0,0 +1,949 @@ +/* + * 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/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [MetadataService.PurgeExecutions][google.cloud.aiplatform.v1beta1.MetadataService.PurgeExecutions].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest} + */ +public final class PurgeExecutionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest) + PurgeExecutionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use PurgeExecutionsRequest.newBuilder() to construct. + private PurgeExecutionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PurgeExecutionsRequest() { + parent_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PurgeExecutionsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PurgeExecutionsRequest( + 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(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 24: + { + force_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeExecutionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeExecutionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest.class, + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The metadata store to purge Executions from.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The metadata store to purge Executions from.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * Required. A required filter matching the Executions to be purged.
+   * E.g., update_time <= 2020-11-19T11:30:00-04:00.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+   * Required. A required filter matching the Executions to be purged.
+   * E.g., update_time <= 2020-11-19T11:30:00-04:00.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 FORCE_FIELD_NUMBER = 3; + private boolean force_; + /** + * + * + *
+   * Optional. Flag to indicate to actually perform the purge.
+   * If `force` is set to false, the method will return a sample of
+   * Execution names that would be deleted.
+   * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + 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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (force_ != false) { + output.writeBool(3, force_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + } + 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.PurgeExecutionsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest other = + (com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getForce() != other.getForce()) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest 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.PurgeExecutionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest 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.PurgeExecutionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest 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.PurgeExecutionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest 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.PurgeExecutionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest 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.PurgeExecutionsRequest 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.PurgeExecutionsRequest 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.PurgeExecutionsRequest 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 [MetadataService.PurgeExecutions][google.cloud.aiplatform.v1beta1.MetadataService.PurgeExecutions].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest) + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeExecutionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeExecutionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest.class, + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest.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(); + parent_ = ""; + + filter_ = ""; + + force_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeExecutionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest build() { + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest result = + new com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.force_ = force_; + 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.PurgeExecutionsRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + 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.PurgeExecutionsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The metadata store to purge Executions from.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The metadata store to purge Executions from.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The metadata store to purge Executions from.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The metadata store to purge Executions from.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The metadata store to purge Executions from.
+     * Format:
+     * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Required. A required filter matching the Executions to be purged.
+     * E.g., update_time <= 2020-11-19T11:30:00-04:00.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. A required filter matching the Executions to be purged.
+     * E.g., update_time <= 2020-11-19T11:30:00-04:00.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. A required filter matching the Executions to be purged.
+     * E.g., update_time <= 2020-11-19T11:30:00-04:00.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + /** + * + * + *
+     * Required. A required filter matching the Executions to be purged.
+     * E.g., update_time <= 2020-11-19T11:30:00-04:00.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A required filter matching the Executions to be purged.
+     * E.g., update_time <= 2020-11-19T11:30:00-04:00.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 boolean force_; + /** + * + * + *
+     * Optional. Flag to indicate to actually perform the purge.
+     * If `force` is set to false, the method will return a sample of
+     * Execution names that would be deleted.
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + /** + * + * + *
+     * Optional. Flag to indicate to actually perform the purge.
+     * If `force` is set to false, the method will return a sample of
+     * Execution names that would be deleted.
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Flag to indicate to actually perform the purge.
+     * If `force` is set to false, the method will return a sample of
+     * Execution names that would be deleted.
+     * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + + force_ = false; + 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.PurgeExecutionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest) + private static final com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeExecutionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PurgeExecutionsRequest(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.PurgeExecutionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsRequestOrBuilder.java new file mode 100644 index 000000000..1f149d271 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsRequestOrBuilder.java @@ -0,0 +1,100 @@ +/* + * 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/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface PurgeExecutionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PurgeExecutionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The metadata store to purge Executions from.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The metadata store to purge Executions from.
+   * Format:
+   * projects/{project}/locations/{location}/metadataStores/{metadatastore}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. A required filter matching the Executions to be purged.
+   * E.g., update_time <= 2020-11-19T11:30:00-04:00.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Required. A required filter matching the Executions to be purged.
+   * E.g., update_time <= 2020-11-19T11:30:00-04:00.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Flag to indicate to actually perform the purge.
+   * If `force` is set to false, the method will return a sample of
+   * Execution names that would be deleted.
+   * 
+ * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsResponse.java new file mode 100644 index 000000000..6de4dac56 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsResponse.java @@ -0,0 +1,862 @@ +/* + * 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/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [MetadataService.PurgeExecutions][google.cloud.aiplatform.v1beta1.MetadataService.PurgeExecutions].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse} + */ +public final class PurgeExecutionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse) + PurgeExecutionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use PurgeExecutionsResponse.newBuilder() to construct. + private PurgeExecutionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PurgeExecutionsResponse() { + purgeSample_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PurgeExecutionsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PurgeExecutionsResponse( + 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: + { + purgeCount_ = input.readInt64(); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + purgeSample_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + purgeSample_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + purgeSample_ = purgeSample_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeExecutionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeExecutionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse.class, + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse.Builder.class); + } + + public static final int PURGE_COUNT_FIELD_NUMBER = 1; + private long purgeCount_; + /** + * + * + *
+   * The number of Executions that this request deleted (or, if `force` is
+   * false, the number of Executions that will be deleted). This can be an
+   * estimate.
+   * 
+ * + * int64 purge_count = 1; + * + * @return The purgeCount. + */ + @java.lang.Override + public long getPurgeCount() { + return purgeCount_; + } + + public static final int PURGE_SAMPLE_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList purgeSample_; + /** + * + * + *
+   * A sample of the Execution names that will be deleted.
+   * Only populated if `force` is set to false. The maximum number of samples is
+   * 100 (it is possible to return fewer).
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the purgeSample. + */ + public com.google.protobuf.ProtocolStringList getPurgeSampleList() { + return purgeSample_; + } + /** + * + * + *
+   * A sample of the Execution names that will be deleted.
+   * Only populated if `force` is set to false. The maximum number of samples is
+   * 100 (it is possible to return fewer).
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return The count of purgeSample. + */ + public int getPurgeSampleCount() { + return purgeSample_.size(); + } + /** + * + * + *
+   * A sample of the Execution names that will be deleted.
+   * Only populated if `force` is set to false. The maximum number of samples is
+   * 100 (it is possible to return fewer).
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The purgeSample at the given index. + */ + public java.lang.String getPurgeSample(int index) { + return purgeSample_.get(index); + } + /** + * + * + *
+   * A sample of the Execution names that will be deleted.
+   * Only populated if `force` is set to false. The maximum number of samples is
+   * 100 (it is possible to return fewer).
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the purgeSample at the given index. + */ + public com.google.protobuf.ByteString getPurgeSampleBytes(int index) { + return purgeSample_.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 (purgeCount_ != 0L) { + output.writeInt64(1, purgeCount_); + } + for (int i = 0; i < purgeSample_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, purgeSample_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (purgeCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, purgeCount_); + } + { + int dataSize = 0; + for (int i = 0; i < purgeSample_.size(); i++) { + dataSize += computeStringSizeNoTag(purgeSample_.getRaw(i)); + } + size += dataSize; + size += 1 * getPurgeSampleList().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.PurgeExecutionsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse other = + (com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse) obj; + + if (getPurgeCount() != other.getPurgeCount()) return false; + if (!getPurgeSampleList().equals(other.getPurgeSampleList())) 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) + PURGE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPurgeCount()); + if (getPurgeSampleCount() > 0) { + hash = (37 * hash) + PURGE_SAMPLE_FIELD_NUMBER; + hash = (53 * hash) + getPurgeSampleList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse 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.PurgeExecutionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse 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.PurgeExecutionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse 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.PurgeExecutionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse 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.PurgeExecutionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse 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.PurgeExecutionsResponse 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.PurgeExecutionsResponse 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.PurgeExecutionsResponse 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 [MetadataService.PurgeExecutions][google.cloud.aiplatform.v1beta1.MetadataService.PurgeExecutions].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse) + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeExecutionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeExecutionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse.class, + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse.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(); + purgeCount_ = 0L; + + purgeSample_ = 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.v1beta1.MetadataServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_PurgeExecutionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse build() { + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse result = + new com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse(this); + int from_bitField0_ = bitField0_; + result.purgeCount_ = purgeCount_; + if (((bitField0_ & 0x00000001) != 0)) { + purgeSample_ = purgeSample_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.purgeSample_ = purgeSample_; + 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.PurgeExecutionsResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse other) { + if (other == com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse.getDefaultInstance()) + return this; + if (other.getPurgeCount() != 0L) { + setPurgeCount(other.getPurgeCount()); + } + if (!other.purgeSample_.isEmpty()) { + if (purgeSample_.isEmpty()) { + purgeSample_ = other.purgeSample_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePurgeSampleIsMutable(); + purgeSample_.addAll(other.purgeSample_); + } + 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.PurgeExecutionsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private long purgeCount_; + /** + * + * + *
+     * The number of Executions that this request deleted (or, if `force` is
+     * false, the number of Executions that will be deleted). This can be an
+     * estimate.
+     * 
+ * + * int64 purge_count = 1; + * + * @return The purgeCount. + */ + @java.lang.Override + public long getPurgeCount() { + return purgeCount_; + } + /** + * + * + *
+     * The number of Executions that this request deleted (or, if `force` is
+     * false, the number of Executions that will be deleted). This can be an
+     * estimate.
+     * 
+ * + * int64 purge_count = 1; + * + * @param value The purgeCount to set. + * @return This builder for chaining. + */ + public Builder setPurgeCount(long value) { + + purgeCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of Executions that this request deleted (or, if `force` is
+     * false, the number of Executions that will be deleted). This can be an
+     * estimate.
+     * 
+ * + * int64 purge_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearPurgeCount() { + + purgeCount_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList purgeSample_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensurePurgeSampleIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + purgeSample_ = new com.google.protobuf.LazyStringArrayList(purgeSample_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * A sample of the Execution names that will be deleted.
+     * Only populated if `force` is set to false. The maximum number of samples is
+     * 100 (it is possible to return fewer).
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the purgeSample. + */ + public com.google.protobuf.ProtocolStringList getPurgeSampleList() { + return purgeSample_.getUnmodifiableView(); + } + /** + * + * + *
+     * A sample of the Execution names that will be deleted.
+     * Only populated if `force` is set to false. The maximum number of samples is
+     * 100 (it is possible to return fewer).
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return The count of purgeSample. + */ + public int getPurgeSampleCount() { + return purgeSample_.size(); + } + /** + * + * + *
+     * A sample of the Execution names that will be deleted.
+     * Only populated if `force` is set to false. The maximum number of samples is
+     * 100 (it is possible to return fewer).
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The purgeSample at the given index. + */ + public java.lang.String getPurgeSample(int index) { + return purgeSample_.get(index); + } + /** + * + * + *
+     * A sample of the Execution names that will be deleted.
+     * Only populated if `force` is set to false. The maximum number of samples is
+     * 100 (it is possible to return fewer).
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the purgeSample at the given index. + */ + public com.google.protobuf.ByteString getPurgeSampleBytes(int index) { + return purgeSample_.getByteString(index); + } + /** + * + * + *
+     * A sample of the Execution names that will be deleted.
+     * Only populated if `force` is set to false. The maximum number of samples is
+     * 100 (it is possible to return fewer).
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index to set the value at. + * @param value The purgeSample to set. + * @return This builder for chaining. + */ + public Builder setPurgeSample(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePurgeSampleIsMutable(); + purgeSample_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * A sample of the Execution names that will be deleted.
+     * Only populated if `force` is set to false. The maximum number of samples is
+     * 100 (it is possible to return fewer).
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The purgeSample to add. + * @return This builder for chaining. + */ + public Builder addPurgeSample(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePurgeSampleIsMutable(); + purgeSample_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * A sample of the Execution names that will be deleted.
+     * Only populated if `force` is set to false. The maximum number of samples is
+     * 100 (it is possible to return fewer).
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param values The purgeSample to add. + * @return This builder for chaining. + */ + public Builder addAllPurgeSample(java.lang.Iterable values) { + ensurePurgeSampleIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, purgeSample_); + onChanged(); + return this; + } + /** + * + * + *
+     * A sample of the Execution names that will be deleted.
+     * Only populated if `force` is set to false. The maximum number of samples is
+     * 100 (it is possible to return fewer).
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearPurgeSample() { + purgeSample_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * A sample of the Execution names that will be deleted.
+     * Only populated if `force` is set to false. The maximum number of samples is
+     * 100 (it is possible to return fewer).
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes of the purgeSample to add. + * @return This builder for chaining. + */ + public Builder addPurgeSampleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePurgeSampleIsMutable(); + purgeSample_.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.PurgeExecutionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse) + private static final com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeExecutionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PurgeExecutionsResponse(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.PurgeExecutionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsResponseOrBuilder.java new file mode 100644 index 000000000..4647da644 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PurgeExecutionsResponseOrBuilder.java @@ -0,0 +1,99 @@ +/* + * 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/metadata_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface PurgeExecutionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The number of Executions that this request deleted (or, if `force` is
+   * false, the number of Executions that will be deleted). This can be an
+   * estimate.
+   * 
+ * + * int64 purge_count = 1; + * + * @return The purgeCount. + */ + long getPurgeCount(); + + /** + * + * + *
+   * A sample of the Execution names that will be deleted.
+   * Only populated if `force` is set to false. The maximum number of samples is
+   * 100 (it is possible to return fewer).
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the purgeSample. + */ + java.util.List getPurgeSampleList(); + /** + * + * + *
+   * A sample of the Execution names that will be deleted.
+   * Only populated if `force` is set to false. The maximum number of samples is
+   * 100 (it is possible to return fewer).
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return The count of purgeSample. + */ + int getPurgeSampleCount(); + /** + * + * + *
+   * A sample of the Execution names that will be deleted.
+   * Only populated if `force` is set to false. The maximum number of samples is
+   * 100 (it is possible to return fewer).
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The purgeSample at the given index. + */ + java.lang.String getPurgeSample(int index); + /** + * + * + *
+   * A sample of the Execution names that will be deleted.
+   * Only populated if `force` is set to false. The maximum number of samples is
+   * 100 (it is possible to return fewer).
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the purgeSample at the given index. + */ + com.google.protobuf.ByteString getPurgeSampleBytes(int index); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolProto.java index ff55eb4b9..11fba0481 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolProto.java @@ -52,10 +52,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "x\352Au\n(aiplatform.googleapis.com/Speciali" + "stPool\022Iprojects/{project}/locations/{lo" + "cation}/specialistPools/{specialist_pool" - + "}B\207\001\n#com.google.cloud.aiplatform.v1beta" + + "}B\360\001\n#com.google.cloud.aiplatform.v1beta" + "1B\023SpecialistPoolProtoP\001ZIgoogle.golang." + "org/genproto/googleapis/cloud/aiplatform" - + "/v1beta1;aiplatformb\006proto3" + + "/v1beta1;aiplatform\252\002\037Google.Cloud.AIPla" + + "tform.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\" + + "V1beta1\352\002\"Google::Cloud::AIPlatform::V1b" + + "eta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceProto.java index 3a32f7e8d..bbd24e735 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolServiceProto.java @@ -141,10 +141,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "Pool\022%UpdateSpecialistPoolOperationMetad" + "ata\032M\312A\031aiplatform.googleapis.com\322A.http" + "s://www.googleapis.com/auth/cloud-platfo" - + "rmB\216\001\n#com.google.cloud.aiplatform.v1bet" + + "rmB\367\001\n#com.google.cloud.aiplatform.v1bet" + "a1B\032SpecialistPoolServiceProtoP\001ZIgoogle" + ".golang.org/genproto/googleapis/cloud/ai" - + "platform/v1beta1;aiplatformb\006proto3" + + "platform/v1beta1;aiplatform\252\002\037Google.Clo" + + "ud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIP" + + "latform\\V1beta1\352\002\"Google::Cloud::AIPlatf" + + "orm::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamingReadFeatureValuesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamingReadFeatureValuesRequest.java index b69731610..91c3c0aec 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamingReadFeatureValuesRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamingReadFeatureValuesRequest.java @@ -212,9 +212,9 @@ public com.google.protobuf.ByteString getEntityTypeBytes() { * * *
-   * Required. IDs of entities to read Feature values of. For example,
-   * for a machine learning model predicting user clicks on a website, an
-   * entity ID could be "user_123".
+   * Required. IDs of entities to read Feature values of. The maximum number of IDs is
+   * 100. For example, for a machine learning model predicting user clicks on a
+   * website, an entity ID could be "user_123".
    * 
* * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -228,9 +228,9 @@ public com.google.protobuf.ProtocolStringList getEntityIdsList() { * * *
-   * Required. IDs of entities to read Feature values of. For example,
-   * for a machine learning model predicting user clicks on a website, an
-   * entity ID could be "user_123".
+   * Required. IDs of entities to read Feature values of. The maximum number of IDs is
+   * 100. For example, for a machine learning model predicting user clicks on a
+   * website, an entity ID could be "user_123".
    * 
* * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -244,9 +244,9 @@ public int getEntityIdsCount() { * * *
-   * Required. IDs of entities to read Feature values of. For example,
-   * for a machine learning model predicting user clicks on a website, an
-   * entity ID could be "user_123".
+   * Required. IDs of entities to read Feature values of. The maximum number of IDs is
+   * 100. For example, for a machine learning model predicting user clicks on a
+   * website, an entity ID could be "user_123".
    * 
* * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -261,9 +261,9 @@ public java.lang.String getEntityIds(int index) { * * *
-   * Required. IDs of entities to read Feature values of. For example,
-   * for a machine learning model predicting user clicks on a website, an
-   * entity ID could be "user_123".
+   * Required. IDs of entities to read Feature values of. The maximum number of IDs is
+   * 100. For example, for a machine learning model predicting user clicks on a
+   * website, an entity ID could be "user_123".
    * 
* * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -281,7 +281,8 @@ public com.google.protobuf.ByteString getEntityIdsBytes(int index) { * * *
-   * Required. Selector choosing Features of the target EntityType.
+   * Required. Selector choosing Features of the target EntityType. Feature IDs will be
+   * deduplicated.
    * 
* * @@ -298,7 +299,8 @@ public boolean hasFeatureSelector() { * * *
-   * Required. Selector choosing Features of the target EntityType.
+   * Required. Selector choosing Features of the target EntityType. Feature IDs will be
+   * deduplicated.
    * 
* * @@ -317,7 +319,8 @@ public com.google.cloud.aiplatform.v1beta1.FeatureSelector getFeatureSelector() * * *
-   * Required. Selector choosing Features of the target EntityType.
+   * Required. Selector choosing Features of the target EntityType. Feature IDs will be
+   * deduplicated.
    * 
* * @@ -871,9 +874,9 @@ private void ensureEntityIdsIsMutable() { * * *
-     * Required. IDs of entities to read Feature values of. For example,
-     * for a machine learning model predicting user clicks on a website, an
-     * entity ID could be "user_123".
+     * Required. IDs of entities to read Feature values of. The maximum number of IDs is
+     * 100. For example, for a machine learning model predicting user clicks on a
+     * website, an entity ID could be "user_123".
      * 
* * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -887,9 +890,9 @@ public com.google.protobuf.ProtocolStringList getEntityIdsList() { * * *
-     * Required. IDs of entities to read Feature values of. For example,
-     * for a machine learning model predicting user clicks on a website, an
-     * entity ID could be "user_123".
+     * Required. IDs of entities to read Feature values of. The maximum number of IDs is
+     * 100. For example, for a machine learning model predicting user clicks on a
+     * website, an entity ID could be "user_123".
      * 
* * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -903,9 +906,9 @@ public int getEntityIdsCount() { * * *
-     * Required. IDs of entities to read Feature values of. For example,
-     * for a machine learning model predicting user clicks on a website, an
-     * entity ID could be "user_123".
+     * Required. IDs of entities to read Feature values of. The maximum number of IDs is
+     * 100. For example, for a machine learning model predicting user clicks on a
+     * website, an entity ID could be "user_123".
      * 
* * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -920,9 +923,9 @@ public java.lang.String getEntityIds(int index) { * * *
-     * Required. IDs of entities to read Feature values of. For example,
-     * for a machine learning model predicting user clicks on a website, an
-     * entity ID could be "user_123".
+     * Required. IDs of entities to read Feature values of. The maximum number of IDs is
+     * 100. For example, for a machine learning model predicting user clicks on a
+     * website, an entity ID could be "user_123".
      * 
* * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -937,9 +940,9 @@ public com.google.protobuf.ByteString getEntityIdsBytes(int index) { * * *
-     * Required. IDs of entities to read Feature values of. For example,
-     * for a machine learning model predicting user clicks on a website, an
-     * entity ID could be "user_123".
+     * Required. IDs of entities to read Feature values of. The maximum number of IDs is
+     * 100. For example, for a machine learning model predicting user clicks on a
+     * website, an entity ID could be "user_123".
      * 
* * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -961,9 +964,9 @@ public Builder setEntityIds(int index, java.lang.String value) { * * *
-     * Required. IDs of entities to read Feature values of. For example,
-     * for a machine learning model predicting user clicks on a website, an
-     * entity ID could be "user_123".
+     * Required. IDs of entities to read Feature values of. The maximum number of IDs is
+     * 100. For example, for a machine learning model predicting user clicks on a
+     * website, an entity ID could be "user_123".
      * 
* * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -984,9 +987,9 @@ public Builder addEntityIds(java.lang.String value) { * * *
-     * Required. IDs of entities to read Feature values of. For example,
-     * for a machine learning model predicting user clicks on a website, an
-     * entity ID could be "user_123".
+     * Required. IDs of entities to read Feature values of. The maximum number of IDs is
+     * 100. For example, for a machine learning model predicting user clicks on a
+     * website, an entity ID could be "user_123".
      * 
* * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1004,9 +1007,9 @@ public Builder addAllEntityIds(java.lang.Iterable values) { * * *
-     * Required. IDs of entities to read Feature values of. For example,
-     * for a machine learning model predicting user clicks on a website, an
-     * entity ID could be "user_123".
+     * Required. IDs of entities to read Feature values of. The maximum number of IDs is
+     * 100. For example, for a machine learning model predicting user clicks on a
+     * website, an entity ID could be "user_123".
      * 
* * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1023,9 +1026,9 @@ public Builder clearEntityIds() { * * *
-     * Required. IDs of entities to read Feature values of. For example,
-     * for a machine learning model predicting user clicks on a website, an
-     * entity ID could be "user_123".
+     * Required. IDs of entities to read Feature values of. The maximum number of IDs is
+     * 100. For example, for a machine learning model predicting user clicks on a
+     * website, an entity ID could be "user_123".
      * 
* * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1054,7 +1057,8 @@ public Builder addEntityIdsBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. Selector choosing Features of the target EntityType.
+     * Required. Selector choosing Features of the target EntityType. Feature IDs will be
+     * deduplicated.
      * 
* * @@ -1070,7 +1074,8 @@ public boolean hasFeatureSelector() { * * *
-     * Required. Selector choosing Features of the target EntityType.
+     * Required. Selector choosing Features of the target EntityType. Feature IDs will be
+     * deduplicated.
      * 
* * @@ -1092,7 +1097,8 @@ public com.google.cloud.aiplatform.v1beta1.FeatureSelector getFeatureSelector() * * *
-     * Required. Selector choosing Features of the target EntityType.
+     * Required. Selector choosing Features of the target EntityType. Feature IDs will be
+     * deduplicated.
      * 
* * @@ -1116,7 +1122,8 @@ public Builder setFeatureSelector(com.google.cloud.aiplatform.v1beta1.FeatureSel * * *
-     * Required. Selector choosing Features of the target EntityType.
+     * Required. Selector choosing Features of the target EntityType. Feature IDs will be
+     * deduplicated.
      * 
* * @@ -1138,7 +1145,8 @@ public Builder setFeatureSelector( * * *
-     * Required. Selector choosing Features of the target EntityType.
+     * Required. Selector choosing Features of the target EntityType. Feature IDs will be
+     * deduplicated.
      * 
* * @@ -1166,7 +1174,8 @@ public Builder mergeFeatureSelector(com.google.cloud.aiplatform.v1beta1.FeatureS * * *
-     * Required. Selector choosing Features of the target EntityType.
+     * Required. Selector choosing Features of the target EntityType. Feature IDs will be
+     * deduplicated.
      * 
* * @@ -1188,7 +1197,8 @@ public Builder clearFeatureSelector() { * * *
-     * Required. Selector choosing Features of the target EntityType.
+     * Required. Selector choosing Features of the target EntityType. Feature IDs will be
+     * deduplicated.
      * 
* * @@ -1204,7 +1214,8 @@ public com.google.cloud.aiplatform.v1beta1.FeatureSelector.Builder getFeatureSel * * *
-     * Required. Selector choosing Features of the target EntityType.
+     * Required. Selector choosing Features of the target EntityType. Feature IDs will be
+     * deduplicated.
      * 
* * @@ -1225,7 +1236,8 @@ public com.google.cloud.aiplatform.v1beta1.FeatureSelector.Builder getFeatureSel * * *
-     * Required. Selector choosing Features of the target EntityType.
+     * Required. Selector choosing Features of the target EntityType. Feature IDs will be
+     * deduplicated.
      * 
* * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamingReadFeatureValuesRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamingReadFeatureValuesRequestOrBuilder.java index bef92b329..f7c8ab373 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamingReadFeatureValuesRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamingReadFeatureValuesRequestOrBuilder.java @@ -64,9 +64,9 @@ public interface StreamingReadFeatureValuesRequestOrBuilder * * *
-   * Required. IDs of entities to read Feature values of. For example,
-   * for a machine learning model predicting user clicks on a website, an
-   * entity ID could be "user_123".
+   * Required. IDs of entities to read Feature values of. The maximum number of IDs is
+   * 100. For example, for a machine learning model predicting user clicks on a
+   * website, an entity ID could be "user_123".
    * 
* * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -78,9 +78,9 @@ public interface StreamingReadFeatureValuesRequestOrBuilder * * *
-   * Required. IDs of entities to read Feature values of. For example,
-   * for a machine learning model predicting user clicks on a website, an
-   * entity ID could be "user_123".
+   * Required. IDs of entities to read Feature values of. The maximum number of IDs is
+   * 100. For example, for a machine learning model predicting user clicks on a
+   * website, an entity ID could be "user_123".
    * 
* * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -92,9 +92,9 @@ public interface StreamingReadFeatureValuesRequestOrBuilder * * *
-   * Required. IDs of entities to read Feature values of. For example,
-   * for a machine learning model predicting user clicks on a website, an
-   * entity ID could be "user_123".
+   * Required. IDs of entities to read Feature values of. The maximum number of IDs is
+   * 100. For example, for a machine learning model predicting user clicks on a
+   * website, an entity ID could be "user_123".
    * 
* * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -107,9 +107,9 @@ public interface StreamingReadFeatureValuesRequestOrBuilder * * *
-   * Required. IDs of entities to read Feature values of. For example,
-   * for a machine learning model predicting user clicks on a website, an
-   * entity ID could be "user_123".
+   * Required. IDs of entities to read Feature values of. The maximum number of IDs is
+   * 100. For example, for a machine learning model predicting user clicks on a
+   * website, an entity ID could be "user_123".
    * 
* * repeated string entity_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -123,7 +123,8 @@ public interface StreamingReadFeatureValuesRequestOrBuilder * * *
-   * Required. Selector choosing Features of the target EntityType.
+   * Required. Selector choosing Features of the target EntityType. Feature IDs will be
+   * deduplicated.
    * 
* * @@ -137,7 +138,8 @@ public interface StreamingReadFeatureValuesRequestOrBuilder * * *
-   * Required. Selector choosing Features of the target EntityType.
+   * Required. Selector choosing Features of the target EntityType. Feature IDs will be
+   * deduplicated.
    * 
* * @@ -151,7 +153,8 @@ public interface StreamingReadFeatureValuesRequestOrBuilder * * *
-   * Required. Selector choosing Features of the target EntityType.
+   * Required. Selector choosing Features of the target EntityType. Feature IDs will be
+   * deduplicated.
    * 
* * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudyProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudyProto.java index 0ff2b1300..68d917bd4 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudyProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudyProto.java @@ -39,6 +39,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_Trial_Parameter_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_Trial_Parameter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_Trial_WebAccessUrisEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Trial_WebAccessUrisEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_StudySpec_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -117,132 +121,142 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "google/api/field_behavior.proto\032\031google/" + "api/resource.proto\032\036google/protobuf/dura" + "tion.proto\032\034google/protobuf/struct.proto" - + "\032\037google/protobuf/timestamp.proto\032\036googl" - + "e/protobuf/wrappers.proto\032\034google/api/an" - + "notations.proto\"\270\003\n\005Study\022\021\n\004name\030\001 \001(\tB" - + "\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022C\n\nstudy" - + "_spec\030\003 \001(\0132*.google.cloud.aiplatform.v1" - + "beta1.StudySpecB\003\340A\002\022@\n\005state\030\004 \001(\0162,.go" - + "ogle.cloud.aiplatform.v1beta1.Study.Stat" - + "eB\003\340A\003\0224\n\013create_time\030\005 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\022\034\n\017inactive_reason\030" - + "\006 \001(\tB\003\340A\003\"G\n\005State\022\025\n\021STATE_UNSPECIFIED" - + "\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002\022\r\n\tCOMPLETE" - + "D\020\003:]\352AZ\n\037aiplatform.googleapis.com/Stud" - + "y\0227projects/{project}/locations/{locatio" - + "n}/studies/{study}\"\332\006\n\005Trial\022\021\n\004name\030\001 \001" - + "(\tB\003\340A\003\022\017\n\002id\030\002 \001(\tB\003\340A\003\022@\n\005state\030\003 \001(\0162" - + ",.google.cloud.aiplatform.v1beta1.Trial." - + "StateB\003\340A\003\022I\n\nparameters\030\004 \003(\01320.google." - + "cloud.aiplatform.v1beta1.Trial.Parameter" - + "B\003\340A\003\022L\n\021final_measurement\030\005 \001(\0132,.googl" - + "e.cloud.aiplatform.v1beta1.MeasurementB\003" - + "\340A\003\022G\n\014measurements\030\006 \003(\0132,.google.cloud" - + ".aiplatform.v1beta1.MeasurementB\003\340A\003\0223\n\n" - + "start_time\030\007 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\0221\n\010end_time\030\010 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\022\026\n\tclient_id\030\t \001(\tB" - + "\003\340A\003\022\036\n\021infeasible_reason\030\n \001(\tB\003\340A\003\022?\n\n" - + "custom_job\030\013 \001(\tB+\340A\003\372A%\n#aiplatform.goo" - + "gleapis.com/CustomJob\032R\n\tParameter\022\031\n\014pa" - + "rameter_id\030\001 \001(\tB\003\340A\003\022*\n\005value\030\002 \001(\0132\026.g" - + "oogle.protobuf.ValueB\003\340A\003\"f\n\005State\022\025\n\021ST" - + "ATE_UNSPECIFIED\020\000\022\r\n\tREQUESTED\020\001\022\n\n\006ACTI" - + "VE\020\002\022\014\n\010STOPPING\020\003\022\r\n\tSUCCEEDED\020\004\022\016\n\nINF" - + "EASIBLE\020\005:l\352Ai\n\037aiplatform.googleapis.co" - + "m/Trial\022Fprojects/{project}/locations/{l" - + "ocation}/studies/{study}/trials/{trial}\"" - + "\272\031\n\tStudySpec\022o\n\031decay_curve_stopping_sp" - + "ec\030\004 \001(\0132J.google.cloud.aiplatform.v1bet" - + "a1.StudySpec.DecayCurveAutomatedStopping" - + "SpecH\000\022p\n\036median_automated_stopping_spec" - + "\030\005 \001(\0132F.google.cloud.aiplatform.v1beta1" - + ".StudySpec.MedianAutomatedStoppingSpecH\000" - + "\022Y\n\022convex_stop_config\030\010 \001(\0132;.google.cl" - + "oud.aiplatform.v1beta1.StudySpec.ConvexS" - + "topConfigH\000\022K\n\007metrics\030\001 \003(\01325.google.cl" - + "oud.aiplatform.v1beta1.StudySpec.MetricS" - + "pecB\003\340A\002\022Q\n\nparameters\030\002 \003(\01328.google.cl" - + "oud.aiplatform.v1beta1.StudySpec.Paramet" - + "erSpecB\003\340A\002\022G\n\talgorithm\030\003 \001(\01624.google." - + "cloud.aiplatform.v1beta1.StudySpec.Algor" - + "ithm\022V\n\021observation_noise\030\006 \001(\0162;.google" - + ".cloud.aiplatform.v1beta1.StudySpec.Obse" - + "rvationNoise\022g\n\032measurement_selection_ty" - + "pe\030\007 \001(\0162C.google.cloud.aiplatform.v1bet" - + "a1.StudySpec.MeasurementSelectionType\032\272\001" - + "\n\nMetricSpec\022\026\n\tmetric_id\030\001 \001(\tB\003\340A\002\022Q\n\004" - + "goal\030\002 \001(\0162>.google.cloud.aiplatform.v1b" - + "eta1.StudySpec.MetricSpec.GoalTypeB\003\340A\002\"" - + "A\n\010GoalType\022\031\n\025GOAL_TYPE_UNSPECIFIED\020\000\022\014" - + "\n\010MAXIMIZE\020\001\022\014\n\010MINIMIZE\020\002\032\310\r\n\rParameter" - + "Spec\022e\n\021double_value_spec\030\002 \001(\0132H.google" - + ".cloud.aiplatform.v1beta1.StudySpec.Para" - + "meterSpec.DoubleValueSpecH\000\022g\n\022integer_v" - + "alue_spec\030\003 \001(\0132I.google.cloud.aiplatfor" - + "m.v1beta1.StudySpec.ParameterSpec.Intege" - + "rValueSpecH\000\022o\n\026categorical_value_spec\030\004" - + " \001(\0132M.google.cloud.aiplatform.v1beta1.S" - + "tudySpec.ParameterSpec.CategoricalValueS" - + "pecH\000\022i\n\023discrete_value_spec\030\005 \001(\0132J.goo" - + "gle.cloud.aiplatform.v1beta1.StudySpec.P" - + "arameterSpec.DiscreteValueSpecH\000\022\031\n\014para" - + "meter_id\030\001 \001(\tB\003\340A\002\022V\n\nscale_type\030\006 \001(\0162" - + "B.google.cloud.aiplatform.v1beta1.StudyS" - + "pec.ParameterSpec.ScaleType\022v\n\033condition" - + "al_parameter_specs\030\n \003(\0132Q.google.cloud." - + "aiplatform.v1beta1.StudySpec.ParameterSp" - + "ec.ConditionalParameterSpec\032A\n\017DoubleVal" - + "ueSpec\022\026\n\tmin_value\030\001 \001(\001B\003\340A\002\022\026\n\tmax_va" - + "lue\030\002 \001(\001B\003\340A\002\032B\n\020IntegerValueSpec\022\026\n\tmi" - + "n_value\030\001 \001(\003B\003\340A\002\022\026\n\tmax_value\030\002 \001(\003B\003\340" - + "A\002\032+\n\024CategoricalValueSpec\022\023\n\006values\030\001 \003" - + "(\tB\003\340A\002\032(\n\021DiscreteValueSpec\022\023\n\006values\030\001" - + " \003(\001B\003\340A\002\032\271\005\n\030ConditionalParameterSpec\022\212" - + "\001\n\026parent_discrete_values\030\002 \001(\0132h.google" - + ".cloud.aiplatform.v1beta1.StudySpec.Para" - + "meterSpec.ConditionalParameterSpec.Discr" - + "eteValueConditionH\000\022\200\001\n\021parent_int_value" - + "s\030\003 \001(\0132c.google.cloud.aiplatform.v1beta" - + "1.StudySpec.ParameterSpec.ConditionalPar" - + "ameterSpec.IntValueConditionH\000\022\220\001\n\031paren" - + "t_categorical_values\030\004 \001(\0132k.google.clou" - + "d.aiplatform.v1beta1.StudySpec.Parameter" - + "Spec.ConditionalParameterSpec.Categorica" - + "lValueConditionH\000\022U\n\016parameter_spec\030\001 \001(" - + "\01328.google.cloud.aiplatform.v1beta1.Stud" - + "ySpec.ParameterSpecB\003\340A\002\032-\n\026DiscreteValu" - + "eCondition\022\023\n\006values\030\001 \003(\001B\003\340A\002\032(\n\021IntVa" - + "lueCondition\022\023\n\006values\030\001 \003(\003B\003\340A\002\0320\n\031Cat" - + "egoricalValueCondition\022\023\n\006values\030\001 \003(\tB\003" - + "\340A\002B\030\n\026parent_value_condition\"n\n\tScaleTy" - + "pe\022\032\n\026SCALE_TYPE_UNSPECIFIED\020\000\022\025\n\021UNIT_L" - + "INEAR_SCALE\020\001\022\022\n\016UNIT_LOG_SCALE\020\002\022\032\n\026UNI" - + "T_REVERSE_LOG_SCALE\020\003B\026\n\024parameter_value" - + "_spec\032?\n\037DecayCurveAutomatedStoppingSpec" - + "\022\034\n\024use_elapsed_duration\030\001 \001(\010\032;\n\033Median" - + "AutomatedStoppingSpec\022\034\n\024use_elapsed_dur" - + "ation\030\001 \001(\010\032\231\001\n\020ConvexStopConfig\022\025\n\rmax_" - + "num_steps\030\001 \001(\003\022\025\n\rmin_num_steps\030\002 \001(\003\022\034" - + "\n\024autoregressive_order\030\003 \001(\003\022$\n\034learning" - + "_rate_parameter_name\030\004 \001(\t\022\023\n\013use_second" - + "s\030\005 \001(\010\"J\n\tAlgorithm\022\031\n\025ALGORITHM_UNSPEC" - + "IFIED\020\000\022\017\n\013GRID_SEARCH\020\002\022\021\n\rRANDOM_SEARC" - + "H\020\003\"H\n\020ObservationNoise\022!\n\035OBSERVATION_N" - + "OISE_UNSPECIFIED\020\000\022\007\n\003LOW\020\001\022\010\n\004HIGH\020\002\"r\n" - + "\030MeasurementSelectionType\022*\n&MEASUREMENT" - + "_SELECTION_TYPE_UNSPECIFIED\020\000\022\024\n\020LAST_ME" - + "ASUREMENT\020\001\022\024\n\020BEST_MEASUREMENT\020\002B\031\n\027aut" - + "omated_stopping_spec\"\341\001\n\013Measurement\0228\n\020" - + "elapsed_duration\030\001 \001(\0132\031.google.protobuf" - + ".DurationB\003\340A\003\022\027\n\nstep_count\030\002 \001(\003B\003\340A\003\022" - + "I\n\007metrics\030\003 \003(\01323.google.cloud.aiplatfo" - + "rm.v1beta1.Measurement.MetricB\003\340A\003\0324\n\006Me" - + "tric\022\026\n\tmetric_id\030\001 \001(\tB\003\340A\003\022\022\n\005value\030\002 " - + "\001(\001B\003\340A\003B~\n#com.google.cloud.aiplatform." - + "v1beta1B\nStudyProtoP\001ZIgoogle.golang.org" - + "/genproto/googleapis/cloud/aiplatform/v1" - + "beta1;aiplatformb\006proto3" + + "\032\037google/protobuf/timestamp.proto\032\034googl" + + "e/api/annotations.proto\"\270\003\n\005Study\022\021\n\004nam" + + "e\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022" + + "C\n\nstudy_spec\030\003 \001(\0132*.google.cloud.aipla" + + "tform.v1beta1.StudySpecB\003\340A\002\022@\n\005state\030\004 " + + "\001(\0162,.google.cloud.aiplatform.v1beta1.St" + + "udy.StateB\003\340A\003\0224\n\013create_time\030\005 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\022\034\n\017inactive" + + "_reason\030\006 \001(\tB\003\340A\003\"G\n\005State\022\025\n\021STATE_UNS" + + "PECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002\022\r\n\t" + + "COMPLETED\020\003:]\352AZ\n\037aiplatform.googleapis." + + "com/Study\0227projects/{project}/locations/" + + "{location}/studies/{study}\"\351\007\n\005Trial\022\021\n\004" + + "name\030\001 \001(\tB\003\340A\003\022\017\n\002id\030\002 \001(\tB\003\340A\003\022@\n\005stat" + + "e\030\003 \001(\0162,.google.cloud.aiplatform.v1beta" + + "1.Trial.StateB\003\340A\003\022I\n\nparameters\030\004 \003(\01320" + + ".google.cloud.aiplatform.v1beta1.Trial.P" + + "arameterB\003\340A\003\022L\n\021final_measurement\030\005 \001(\013" + + "2,.google.cloud.aiplatform.v1beta1.Measu" + + "rementB\003\340A\003\022G\n\014measurements\030\006 \003(\0132,.goog" + + "le.cloud.aiplatform.v1beta1.MeasurementB" + + "\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\022\026\n\tclient_i" + + "d\030\t \001(\tB\003\340A\003\022\036\n\021infeasible_reason\030\n \001(\tB" + + "\003\340A\003\022?\n\ncustom_job\030\013 \001(\tB+\340A\003\372A%\n#aiplat" + + "form.googleapis.com/CustomJob\022W\n\017web_acc" + + "ess_uris\030\014 \003(\01329.google.cloud.aiplatform" + + ".v1beta1.Trial.WebAccessUrisEntryB\003\340A\003\032R" + + "\n\tParameter\022\031\n\014parameter_id\030\001 \001(\tB\003\340A\003\022*" + + "\n\005value\030\002 \001(\0132\026.google.protobuf.ValueB\003\340" + + "A\003\0324\n\022WebAccessUrisEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"f\n\005State\022\025\n\021STATE_UNSPE" + + "CIFIED\020\000\022\r\n\tREQUESTED\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010S" + + "TOPPING\020\003\022\r\n\tSUCCEEDED\020\004\022\016\n\nINFEASIBLE\020\005" + + ":l\352Ai\n\037aiplatform.googleapis.com/Trial\022F" + + "projects/{project}/locations/{location}/" + + "studies/{study}/trials/{trial}\"\362\032\n\tStudy" + + "Spec\022o\n\031decay_curve_stopping_spec\030\004 \001(\0132" + + "J.google.cloud.aiplatform.v1beta1.StudyS" + + "pec.DecayCurveAutomatedStoppingSpecH\000\022p\n" + + "\036median_automated_stopping_spec\030\005 \001(\0132F." + + "google.cloud.aiplatform.v1beta1.StudySpe" + + "c.MedianAutomatedStoppingSpecH\000\022Y\n\022conve" + + "x_stop_config\030\010 \001(\0132;.google.cloud.aipla" + + "tform.v1beta1.StudySpec.ConvexStopConfig" + + "H\000\022K\n\007metrics\030\001 \003(\01325.google.cloud.aipla" + + "tform.v1beta1.StudySpec.MetricSpecB\003\340A\002\022" + + "Q\n\nparameters\030\002 \003(\01328.google.cloud.aipla" + + "tform.v1beta1.StudySpec.ParameterSpecB\003\340" + + "A\002\022G\n\talgorithm\030\003 \001(\01624.google.cloud.aip" + + "latform.v1beta1.StudySpec.Algorithm\022V\n\021o" + + "bservation_noise\030\006 \001(\0162;.google.cloud.ai" + + "platform.v1beta1.StudySpec.ObservationNo" + + "ise\022g\n\032measurement_selection_type\030\007 \001(\0162" + + "C.google.cloud.aiplatform.v1beta1.StudyS" + + "pec.MeasurementSelectionType\032\272\001\n\nMetricS" + + "pec\022\026\n\tmetric_id\030\001 \001(\tB\003\340A\002\022Q\n\004goal\030\002 \001(" + + "\0162>.google.cloud.aiplatform.v1beta1.Stud" + + "ySpec.MetricSpec.GoalTypeB\003\340A\002\"A\n\010GoalTy" + + "pe\022\031\n\025GOAL_TYPE_UNSPECIFIED\020\000\022\014\n\010MAXIMIZ" + + "E\020\001\022\014\n\010MINIMIZE\020\002\032\200\017\n\rParameterSpec\022e\n\021d" + + "ouble_value_spec\030\002 \001(\0132H.google.cloud.ai" + + "platform.v1beta1.StudySpec.ParameterSpec" + + ".DoubleValueSpecH\000\022g\n\022integer_value_spec" + + "\030\003 \001(\0132I.google.cloud.aiplatform.v1beta1" + + ".StudySpec.ParameterSpec.IntegerValueSpe" + + "cH\000\022o\n\026categorical_value_spec\030\004 \001(\0132M.go" + + "ogle.cloud.aiplatform.v1beta1.StudySpec." + + "ParameterSpec.CategoricalValueSpecH\000\022i\n\023" + + "discrete_value_spec\030\005 \001(\0132J.google.cloud" + + ".aiplatform.v1beta1.StudySpec.ParameterS" + + "pec.DiscreteValueSpecH\000\022\031\n\014parameter_id\030" + + "\001 \001(\tB\003\340A\002\022V\n\nscale_type\030\006 \001(\0162B.google." + + "cloud.aiplatform.v1beta1.StudySpec.Param" + + "eterSpec.ScaleType\022v\n\033conditional_parame" + + "ter_specs\030\n \003(\0132Q.google.cloud.aiplatfor" + + "m.v1beta1.StudySpec.ParameterSpec.Condit" + + "ionalParameterSpec\032o\n\017DoubleValueSpec\022\026\n" + + "\tmin_value\030\001 \001(\001B\003\340A\002\022\026\n\tmax_value\030\002 \001(\001" + + "B\003\340A\002\022\032\n\rdefault_value\030\004 \001(\001H\000\210\001\001B\020\n\016_de" + + "fault_value\032p\n\020IntegerValueSpec\022\026\n\tmin_v" + + "alue\030\001 \001(\003B\003\340A\002\022\026\n\tmax_value\030\002 \001(\003B\003\340A\002\022" + + "\032\n\rdefault_value\030\004 \001(\003H\000\210\001\001B\020\n\016_default_" + + "value\032Y\n\024CategoricalValueSpec\022\023\n\006values\030" + + "\001 \003(\tB\003\340A\002\022\032\n\rdefault_value\030\003 \001(\tH\000\210\001\001B\020" + + "\n\016_default_value\032V\n\021DiscreteValueSpec\022\023\n" + + "\006values\030\001 \003(\001B\003\340A\002\022\032\n\rdefault_value\030\003 \001(" + + "\001H\000\210\001\001B\020\n\016_default_value\032\271\005\n\030Conditional" + + "ParameterSpec\022\212\001\n\026parent_discrete_values" + + "\030\002 \001(\0132h.google.cloud.aiplatform.v1beta1" + + ".StudySpec.ParameterSpec.ConditionalPara" + + "meterSpec.DiscreteValueConditionH\000\022\200\001\n\021p" + + "arent_int_values\030\003 \001(\0132c.google.cloud.ai" + + "platform.v1beta1.StudySpec.ParameterSpec" + + ".ConditionalParameterSpec.IntValueCondit" + + "ionH\000\022\220\001\n\031parent_categorical_values\030\004 \001(" + + "\0132k.google.cloud.aiplatform.v1beta1.Stud" + + "ySpec.ParameterSpec.ConditionalParameter" + + "Spec.CategoricalValueConditionH\000\022U\n\016para" + + "meter_spec\030\001 \001(\01328.google.cloud.aiplatfo" + + "rm.v1beta1.StudySpec.ParameterSpecB\003\340A\002\032" + + "-\n\026DiscreteValueCondition\022\023\n\006values\030\001 \003(" + + "\001B\003\340A\002\032(\n\021IntValueCondition\022\023\n\006values\030\001 " + + "\003(\003B\003\340A\002\0320\n\031CategoricalValueCondition\022\023\n" + + "\006values\030\001 \003(\tB\003\340A\002B\030\n\026parent_value_condi" + + "tion\"n\n\tScaleType\022\032\n\026SCALE_TYPE_UNSPECIF" + + "IED\020\000\022\025\n\021UNIT_LINEAR_SCALE\020\001\022\022\n\016UNIT_LOG" + + "_SCALE\020\002\022\032\n\026UNIT_REVERSE_LOG_SCALE\020\003B\026\n\024" + + "parameter_value_spec\032?\n\037DecayCurveAutoma" + + "tedStoppingSpec\022\034\n\024use_elapsed_duration\030" + + "\001 \001(\010\032;\n\033MedianAutomatedStoppingSpec\022\034\n\024" + + "use_elapsed_duration\030\001 \001(\010\032\231\001\n\020ConvexSto" + + "pConfig\022\025\n\rmax_num_steps\030\001 \001(\003\022\025\n\rmin_nu" + + "m_steps\030\002 \001(\003\022\034\n\024autoregressive_order\030\003 " + + "\001(\003\022$\n\034learning_rate_parameter_name\030\004 \001(" + + "\t\022\023\n\013use_seconds\030\005 \001(\010\"J\n\tAlgorithm\022\031\n\025A" + + "LGORITHM_UNSPECIFIED\020\000\022\017\n\013GRID_SEARCH\020\002\022" + + "\021\n\rRANDOM_SEARCH\020\003\"H\n\020ObservationNoise\022!" + + "\n\035OBSERVATION_NOISE_UNSPECIFIED\020\000\022\007\n\003LOW" + + "\020\001\022\010\n\004HIGH\020\002\"r\n\030MeasurementSelectionType" + + "\022*\n&MEASUREMENT_SELECTION_TYPE_UNSPECIFI" + + "ED\020\000\022\024\n\020LAST_MEASUREMENT\020\001\022\024\n\020BEST_MEASU" + + "REMENT\020\002B\031\n\027automated_stopping_spec\"\341\001\n\013" + + "Measurement\0228\n\020elapsed_duration\030\001 \001(\0132\031." + + "google.protobuf.DurationB\003\340A\003\022\027\n\nstep_co" + + "unt\030\002 \001(\003B\003\340A\003\022I\n\007metrics\030\003 \003(\01323.google" + + ".cloud.aiplatform.v1beta1.Measurement.Me" + + "tricB\003\340A\003\0324\n\006Metric\022\026\n\tmetric_id\030\001 \001(\tB\003" + + "\340A\003\022\022\n\005value\030\002 \001(\001B\003\340A\003B\347\001\n#com.google.c" + + "loud.aiplatform.v1beta1B\nStudyProtoP\001ZIg" + + "oogle.golang.org/genproto/googleapis/clo" + + "ud/aiplatform/v1beta1;aiplatform\252\002\037Googl" + + "e.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Clou" + + "d\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AI" + + "Platform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -253,7 +267,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), }); internal_static_google_cloud_aiplatform_v1beta1_Study_descriptor = @@ -281,6 +294,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ClientId", "InfeasibleReason", "CustomJob", + "WebAccessUris", }); internal_static_google_cloud_aiplatform_v1beta1_Trial_Parameter_descriptor = internal_static_google_cloud_aiplatform_v1beta1_Trial_descriptor.getNestedTypes().get(0); @@ -290,6 +304,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ParameterId", "Value", }); + internal_static_google_cloud_aiplatform_v1beta1_Trial_WebAccessUrisEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_Trial_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_aiplatform_v1beta1_Trial_WebAccessUrisEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_Trial_WebAccessUrisEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_cloud_aiplatform_v1beta1_StudySpec_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_cloud_aiplatform_v1beta1_StudySpec_fieldAccessorTable = @@ -341,7 +363,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ParameterSpec_DoubleValueSpec_descriptor, new java.lang.String[] { - "MinValue", "MaxValue", + "MinValue", "MaxValue", "DefaultValue", "DefaultValue", }); internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ParameterSpec_IntegerValueSpec_descriptor = internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ParameterSpec_descriptor @@ -351,7 +373,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ParameterSpec_IntegerValueSpec_descriptor, new java.lang.String[] { - "MinValue", "MaxValue", + "MinValue", "MaxValue", "DefaultValue", "DefaultValue", }); internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ParameterSpec_CategoricalValueSpec_descriptor = internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ParameterSpec_descriptor @@ -361,7 +383,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ParameterSpec_CategoricalValueSpec_descriptor, new java.lang.String[] { - "Values", + "Values", "DefaultValue", "DefaultValue", }); internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ParameterSpec_DiscreteValueSpec_descriptor = internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ParameterSpec_descriptor @@ -371,7 +393,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ParameterSpec_DiscreteValueSpec_descriptor, new java.lang.String[] { - "Values", + "Values", "DefaultValue", "DefaultValue", }); internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ParameterSpec_ConditionalParameterSpec_descriptor = internal_static_google_cloud_aiplatform_v1beta1_StudySpec_ParameterSpec_descriptor @@ -481,7 +503,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudySpec.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudySpec.java index 5b0380a16..971bad68c 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudySpec.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudySpec.java @@ -2525,6 +2525,39 @@ public interface DoubleValueSpecOrBuilder * @return The maxValue. */ double getMaxValue(); + + /** + * + * + *
+       * A default value for a `DOUBLE` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * double default_value = 4; + * + * @return Whether the defaultValue field is set. + */ + boolean hasDefaultValue(); + /** + * + * + *
+       * A default value for a `DOUBLE` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * double default_value = 4; + * + * @return The defaultValue. + */ + double getDefaultValue(); } /** * @@ -2566,6 +2599,7 @@ private DoubleValueSpec( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -2586,6 +2620,12 @@ private DoubleValueSpec( maxValue_ = input.readDouble(); break; } + case 33: + { + bitField0_ |= 0x00000001; + defaultValue_ = input.readDouble(); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -2622,6 +2662,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .class); } + private int bitField0_; public static final int MIN_VALUE_FIELD_NUMBER = 1; private double minValue_; /** @@ -2658,6 +2699,47 @@ public double getMaxValue() { return maxValue_; } + public static final int DEFAULT_VALUE_FIELD_NUMBER = 4; + private double defaultValue_; + /** + * + * + *
+       * A default value for a `DOUBLE` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * double default_value = 4; + * + * @return Whether the defaultValue field is set. + */ + @java.lang.Override + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * A default value for a `DOUBLE` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * double default_value = 4; + * + * @return The defaultValue. + */ + @java.lang.Override + public double getDefaultValue() { + return defaultValue_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2678,6 +2760,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (maxValue_ != 0D) { output.writeDouble(2, maxValue_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(4, defaultValue_); + } unknownFields.writeTo(output); } @@ -2693,6 +2778,9 @@ public int getSerializedSize() { if (maxValue_ != 0D) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, maxValue_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, defaultValue_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -2715,6 +2803,11 @@ public boolean equals(final java.lang.Object obj) { != java.lang.Double.doubleToLongBits(other.getMinValue())) return false; if (java.lang.Double.doubleToLongBits(getMaxValue()) != java.lang.Double.doubleToLongBits(other.getMaxValue())) return false; + if (hasDefaultValue() != other.hasDefaultValue()) return false; + if (hasDefaultValue()) { + if (java.lang.Double.doubleToLongBits(getDefaultValue()) + != java.lang.Double.doubleToLongBits(other.getDefaultValue())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2736,6 +2829,13 @@ public int hashCode() { (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMaxValue())); + if (hasDefaultValue()) { + hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDefaultValue())); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -2899,6 +2999,8 @@ public Builder clear() { maxValue_ = 0D; + defaultValue_ = 0D; + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -2930,8 +3032,15 @@ public com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSp buildPartial() { com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec result = new com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; result.minValue_ = minValue_; result.maxValue_ = maxValue_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.defaultValue_ = defaultValue_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -2996,6 +3105,9 @@ public Builder mergeFrom( if (other.getMaxValue() != 0D) { setMaxValue(other.getMaxValue()); } + if (other.hasDefaultValue()) { + setDefaultValue(other.getDefaultValue()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -3028,6 +3140,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private double minValue_; /** * @@ -3132,6 +3246,89 @@ public Builder clearMaxValue() { return this; } + private double defaultValue_; + /** + * + * + *
+         * A default value for a `DOUBLE` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * double default_value = 4; + * + * @return Whether the defaultValue field is set. + */ + @java.lang.Override + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+         * A default value for a `DOUBLE` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * double default_value = 4; + * + * @return The defaultValue. + */ + @java.lang.Override + public double getDefaultValue() { + return defaultValue_; + } + /** + * + * + *
+         * A default value for a `DOUBLE` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * double default_value = 4; + * + * @param value The defaultValue to set. + * @return This builder for chaining. + */ + public Builder setDefaultValue(double value) { + bitField0_ |= 0x00000001; + defaultValue_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * A default value for a `DOUBLE` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * double default_value = 4; + * + * @return This builder for chaining. + */ + public Builder clearDefaultValue() { + bitField0_ = (bitField0_ & ~0x00000001); + defaultValue_ = 0D; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3219,6 +3416,39 @@ public interface IntegerValueSpecOrBuilder * @return The maxValue. */ long getMaxValue(); + + /** + * + * + *
+       * A default value for an `INTEGER` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * int64 default_value = 4; + * + * @return Whether the defaultValue field is set. + */ + boolean hasDefaultValue(); + /** + * + * + *
+       * A default value for an `INTEGER` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * int64 default_value = 4; + * + * @return The defaultValue. + */ + long getDefaultValue(); } /** * @@ -3261,6 +3491,7 @@ private IntegerValueSpec( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -3281,6 +3512,12 @@ private IntegerValueSpec( maxValue_ = input.readInt64(); break; } + case 32: + { + bitField0_ |= 0x00000001; + defaultValue_ = input.readInt64(); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -3317,6 +3554,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .class); } + private int bitField0_; public static final int MIN_VALUE_FIELD_NUMBER = 1; private long minValue_; /** @@ -3353,6 +3591,47 @@ public long getMaxValue() { return maxValue_; } + public static final int DEFAULT_VALUE_FIELD_NUMBER = 4; + private long defaultValue_; + /** + * + * + *
+       * A default value for an `INTEGER` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * int64 default_value = 4; + * + * @return Whether the defaultValue field is set. + */ + @java.lang.Override + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * A default value for an `INTEGER` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * int64 default_value = 4; + * + * @return The defaultValue. + */ + @java.lang.Override + public long getDefaultValue() { + return defaultValue_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3373,6 +3652,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (maxValue_ != 0L) { output.writeInt64(2, maxValue_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt64(4, defaultValue_); + } unknownFields.writeTo(output); } @@ -3388,6 +3670,9 @@ public int getSerializedSize() { if (maxValue_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, maxValue_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, defaultValue_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -3408,6 +3693,10 @@ public boolean equals(final java.lang.Object obj) { if (getMinValue() != other.getMinValue()) return false; if (getMaxValue() != other.getMaxValue()) return false; + if (hasDefaultValue() != other.hasDefaultValue()) return false; + if (hasDefaultValue()) { + if (getDefaultValue() != other.getDefaultValue()) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3423,6 +3712,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMinValue()); hash = (37 * hash) + MAX_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxValue()); + if (hasDefaultValue()) { + hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDefaultValue()); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -3587,6 +3880,8 @@ public Builder clear() { maxValue_ = 0L; + defaultValue_ = 0L; + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -3620,8 +3915,15 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec result = new com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec( this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; result.minValue_ = minValue_; result.maxValue_ = maxValue_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.defaultValue_ = defaultValue_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -3686,6 +3988,9 @@ public Builder mergeFrom( if (other.getMaxValue() != 0L) { setMaxValue(other.getMaxValue()); } + if (other.hasDefaultValue()) { + setDefaultValue(other.getDefaultValue()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -3718,6 +4023,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private long minValue_; /** * @@ -3822,6 +4129,89 @@ public Builder clearMaxValue() { return this; } + private long defaultValue_; + /** + * + * + *
+         * A default value for an `INTEGER` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * int64 default_value = 4; + * + * @return Whether the defaultValue field is set. + */ + @java.lang.Override + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+         * A default value for an `INTEGER` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * int64 default_value = 4; + * + * @return The defaultValue. + */ + @java.lang.Override + public long getDefaultValue() { + return defaultValue_; + } + /** + * + * + *
+         * A default value for an `INTEGER` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * int64 default_value = 4; + * + * @param value The defaultValue to set. + * @return This builder for chaining. + */ + public Builder setDefaultValue(long value) { + bitField0_ |= 0x00000001; + defaultValue_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * A default value for an `INTEGER` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * int64 default_value = 4; + * + * @return This builder for chaining. + */ + public Builder clearDefaultValue() { + bitField0_ = (bitField0_ & ~0x00000001); + defaultValue_ = 0L; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3934,6 +4324,55 @@ public interface CategoricalValueSpecOrBuilder * @return The bytes of the values at the given index. */ com.google.protobuf.ByteString getValuesBytes(int index); + + /** + * + * + *
+       * A default value for a `CATEGORICAL` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * string default_value = 3; + * + * @return Whether the defaultValue field is set. + */ + boolean hasDefaultValue(); + /** + * + * + *
+       * A default value for a `CATEGORICAL` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * string default_value = 3; + * + * @return The defaultValue. + */ + java.lang.String getDefaultValue(); + /** + * + * + *
+       * A default value for a `CATEGORICAL` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * string default_value = 3; + * + * @return The bytes for defaultValue. + */ + com.google.protobuf.ByteString getDefaultValueBytes(); } /** * @@ -3957,6 +4396,7 @@ private CategoricalValueSpec(com.google.protobuf.GeneratedMessageV3.Builder b private CategoricalValueSpec() { values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + defaultValue_ = ""; } @java.lang.Override @@ -3999,6 +4439,13 @@ private CategoricalValueSpec( values_.add(s); break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + defaultValue_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -4039,6 +4486,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .Builder.class); } + private int bitField0_; public static final int VALUES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList values_; /** @@ -4100,6 +4548,82 @@ public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } + public static final int DEFAULT_VALUE_FIELD_NUMBER = 3; + private volatile java.lang.Object defaultValue_; + /** + * + * + *
+       * A default value for a `CATEGORICAL` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * string default_value = 3; + * + * @return Whether the defaultValue field is set. + */ + @java.lang.Override + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * A default value for a `CATEGORICAL` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * string default_value = 3; + * + * @return The defaultValue. + */ + @java.lang.Override + public java.lang.String getDefaultValue() { + java.lang.Object ref = defaultValue_; + 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(); + defaultValue_ = s; + return s; + } + } + /** + * + * + *
+       * A default value for a `CATEGORICAL` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * string default_value = 3; + * + * @return The bytes for defaultValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultValueBytes() { + java.lang.Object ref = defaultValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4117,6 +4641,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < values_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, defaultValue_); + } unknownFields.writeTo(output); } @@ -4134,6 +4661,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getValuesList().size(); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, defaultValue_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -4153,6 +4683,10 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec) obj; if (!getValuesList().equals(other.getValuesList())) return false; + if (hasDefaultValue() != other.hasDefaultValue()) return false; + if (hasDefaultValue()) { + if (!getDefaultValue().equals(other.getDefaultValue())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4168,6 +4702,10 @@ public int hashCode() { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + getValuesList().hashCode(); } + if (hasDefaultValue()) { + hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultValue().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -4332,6 +4870,8 @@ public Builder clear() { super.clear(); values_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); + defaultValue_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -4366,11 +4906,17 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { new com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec( this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) != 0)) { values_ = values_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.values_ = values_; + if (((from_bitField0_ & 0x00000002) != 0)) { + to_bitField0_ |= 0x00000001; + } + result.defaultValue_ = defaultValue_; + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -4440,6 +4986,11 @@ public Builder mergeFrom( } onChanged(); } + if (other.hasDefaultValue()) { + bitField0_ |= 0x00000002; + defaultValue_ = other.defaultValue_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -4642,6 +5193,150 @@ public Builder addValuesBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object defaultValue_ = ""; + /** + * + * + *
+         * A default value for a `CATEGORICAL` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * string default_value = 3; + * + * @return Whether the defaultValue field is set. + */ + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+         * A default value for a `CATEGORICAL` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * string default_value = 3; + * + * @return The defaultValue. + */ + public java.lang.String getDefaultValue() { + java.lang.Object ref = defaultValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * A default value for a `CATEGORICAL` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * string default_value = 3; + * + * @return The bytes for defaultValue. + */ + public com.google.protobuf.ByteString getDefaultValueBytes() { + java.lang.Object ref = defaultValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * A default value for a `CATEGORICAL` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * string default_value = 3; + * + * @param value The defaultValue to set. + * @return This builder for chaining. + */ + public Builder setDefaultValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + defaultValue_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * A default value for a `CATEGORICAL` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * string default_value = 3; + * + * @return This builder for chaining. + */ + public Builder clearDefaultValue() { + bitField0_ = (bitField0_ & ~0x00000002); + defaultValue_ = getDefaultInstance().getDefaultValue(); + onChanged(); + return this; + } + /** + * + * + *
+         * A default value for a `CATEGORICAL` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * string default_value = 3; + * + * @param value The bytes for defaultValue to set. + * @return This builder for chaining. + */ + public Builder setDefaultValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bitField0_ |= 0x00000002; + defaultValue_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4750,6 +5445,41 @@ public interface DiscreteValueSpecOrBuilder * @return The values at the given index. */ double getValues(int index); + + /** + * + * + *
+       * A default value for a `DISCRETE` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.  It automatically rounds to the
+       * nearest feasible discrete point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * double default_value = 3; + * + * @return Whether the defaultValue field is set. + */ + boolean hasDefaultValue(); + /** + * + * + *
+       * A default value for a `DISCRETE` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.  It automatically rounds to the
+       * nearest feasible discrete point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * double default_value = 3; + * + * @return The defaultValue. + */ + double getDefaultValue(); } /** * @@ -4828,6 +5558,12 @@ private DiscreteValueSpec( input.popLimit(limit); break; } + case 25: + { + bitField0_ |= 0x00000001; + defaultValue_ = input.readDouble(); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -4867,6 +5603,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .Builder.class); } + private int bitField0_; public static final int VALUES_FIELD_NUMBER = 1; private com.google.protobuf.Internal.DoubleList values_; /** @@ -4925,6 +5662,49 @@ public double getValues(int index) { private int valuesMemoizedSerializedSize = -1; + public static final int DEFAULT_VALUE_FIELD_NUMBER = 3; + private double defaultValue_; + /** + * + * + *
+       * A default value for a `DISCRETE` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.  It automatically rounds to the
+       * nearest feasible discrete point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * double default_value = 3; + * + * @return Whether the defaultValue field is set. + */ + @java.lang.Override + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * A default value for a `DISCRETE` parameter that is assumed to be a
+       * relatively good starting point.  Unset value signals that there is no
+       * offered starting point.  It automatically rounds to the
+       * nearest feasible discrete point.
+       * Currently only supported by the Vizier service. Not supported by
+       * HyperparamterTuningJob or TrainingPipeline.
+       * 
+ * + * double default_value = 3; + * + * @return The defaultValue. + */ + @java.lang.Override + public double getDefaultValue() { + return defaultValue_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4947,6 +5727,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < values_.size(); i++) { output.writeDoubleNoTag(values_.getDouble(i)); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(3, defaultValue_); + } unknownFields.writeTo(output); } @@ -4966,6 +5749,9 @@ public int getSerializedSize() { } valuesMemoizedSerializedSize = dataSize; } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, defaultValue_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -4985,6 +5771,11 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec) obj; if (!getValuesList().equals(other.getValuesList())) return false; + if (hasDefaultValue() != other.hasDefaultValue()) return false; + if (hasDefaultValue()) { + if (java.lang.Double.doubleToLongBits(getDefaultValue()) + != java.lang.Double.doubleToLongBits(other.getDefaultValue())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -5000,6 +5791,13 @@ public int hashCode() { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + getValuesList().hashCode(); } + if (hasDefaultValue()) { + hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDefaultValue())); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -5162,6 +5960,8 @@ public Builder clear() { super.clear(); values_ = emptyDoubleList(); bitField0_ = (bitField0_ & ~0x00000001); + defaultValue_ = 0D; + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -5196,11 +5996,17 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { new com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec( this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) != 0)) { values_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.values_ = values_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.defaultValue_ = defaultValue_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -5269,6 +6075,9 @@ public Builder mergeFrom( } onChanged(); } + if (other.hasDefaultValue()) { + setDefaultValue(other.getDefaultValue()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -5450,6 +6259,93 @@ public Builder clearValues() { return this; } + private double defaultValue_; + /** + * + * + *
+         * A default value for a `DISCRETE` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.  It automatically rounds to the
+         * nearest feasible discrete point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * double default_value = 3; + * + * @return Whether the defaultValue field is set. + */ + @java.lang.Override + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+         * A default value for a `DISCRETE` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.  It automatically rounds to the
+         * nearest feasible discrete point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * double default_value = 3; + * + * @return The defaultValue. + */ + @java.lang.Override + public double getDefaultValue() { + return defaultValue_; + } + /** + * + * + *
+         * A default value for a `DISCRETE` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.  It automatically rounds to the
+         * nearest feasible discrete point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * double default_value = 3; + * + * @param value The defaultValue to set. + * @return This builder for chaining. + */ + public Builder setDefaultValue(double value) { + bitField0_ |= 0x00000002; + defaultValue_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * A default value for a `DISCRETE` parameter that is assumed to be a
+         * relatively good starting point.  Unset value signals that there is no
+         * offered starting point.  It automatically rounds to the
+         * nearest feasible discrete point.
+         * Currently only supported by the Vizier service. Not supported by
+         * HyperparamterTuningJob or TrainingPipeline.
+         * 
+ * + * double default_value = 3; + * + * @return This builder for chaining. + */ + public Builder clearDefaultValue() { + bitField0_ = (bitField0_ & ~0x00000002); + defaultValue_ = 0D; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardDataProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardDataProto.java index 95604e306..897bf7a75 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardDataProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardDataProto.java @@ -85,11 +85,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "boardBlobSequence\022@\n\006values\030\001 \003(\01320.goog" + "le.cloud.aiplatform.v1beta1.TensorboardB" + "lob\"5\n\017TensorboardBlob\022\017\n\002id\030\001 \001(\tB\003\340A\003\022" - + "\021\n\004data\030\002 \001(\014B\003\340A\001B\210\001\n#com.google.cloud." + + "\021\n\004data\030\002 \001(\014B\003\340A\001B\361\001\n#com.google.cloud." + "aiplatform.v1beta1B\024TensorboardDataProto" + "P\001ZIgoogle.golang.org/genproto/googleapi" - + "s/cloud/aiplatform/v1beta1;aiplatformb\006p" - + "roto3" + + "s/cloud/aiplatform/v1beta1;aiplatform\252\002\037" + + "Google.Cloud.AIPlatform.V1Beta1\312\002\037Google" + + "\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Clou" + + "d::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperimentProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperimentProto.java index 4cb1bb14e..7902ff3da 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperimentProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardExperimentProto.java @@ -62,11 +62,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "googleapis.com/TensorboardExperiment\022[pr" + "ojects/{project}/locations/{location}/te" + "nsorboards/{tensorboard}/experiments/{ex" - + "periment}B\216\001\n#com.google.cloud.aiplatfor" + + "periment}B\367\001\n#com.google.cloud.aiplatfor" + "m.v1beta1B\032TensorboardExperimentProtoP\001Z" + "Igoogle.golang.org/genproto/googleapis/c" - + "loud/aiplatform/v1beta1;aiplatformb\006prot" - + "o3" + + "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( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardProto.java index d66f609d0..bd24642cd 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardProto.java @@ -64,11 +64,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + "\t:\0028\001:n\352Ak\n%aiplatform.googleapis.com/Te" + "nsorboard\022Bprojects/{project}/locations/" - + "{location}/tensorboards/{tensorboard}B\204\001" + + "{location}/tensorboards/{tensorboard}B\355\001" + "\n#com.google.cloud.aiplatform.v1beta1B\020T" + "ensorboardProtoP\001ZIgoogle.golang.org/gen" + "proto/googleapis/cloud/aiplatform/v1beta" - + "1;aiplatformb\006proto3" + + "1;aiplatform\252\002\037Google.Cloud.AIPlatform.V" + + "1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1" + + "\352\002\"Google::Cloud::AIPlatform::V1beta1b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRunProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRunProto.java index daf85138e..b6873c6aa 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRunProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardRunProto.java @@ -61,11 +61,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "rm.googleapis.com/TensorboardRun\022fprojec" + "ts/{project}/locations/{location}/tensor" + "boards/{tensorboard}/experiments/{experi" - + "ment}/runs/{run}B\207\001\n#com.google.cloud.ai" + + "ment}/runs/{run}B\360\001\n#com.google.cloud.ai" + "platform.v1beta1B\023TensorboardRunProtoP\001Z" + "Igoogle.golang.org/genproto/googleapis/c" - + "loud/aiplatform/v1beta1;aiplatformb\006prot" - + "o3" + + "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( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceProto.java index 2abc10706..a63b01aa3 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceProto.java @@ -483,11 +483,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ries/*}:exportTensorboardTimeSeries:\001*\332A" + "\027tensorboard_time_series\032M\312A\031aiplatform." + "googleapis.com\322A.https://www.googleapis." - + "com/auth/cloud-platformB\213\001\n#com.google.c" + + "com/auth/cloud-platformB\364\001\n#com.google.c" + "loud.aiplatform.v1beta1B\027TensorboardServ" + "iceProtoP\001ZIgoogle.golang.org/genproto/g" + "oogleapis/cloud/aiplatform/v1beta1;aipla" - + "tformb\006proto3" + + "tform\252\002\037Google.Cloud.AIPlatform.V1Beta1\312" + + "\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Goog" + + "le::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeriesProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeriesProto.java index cbc09d7c2..ba4dfa86a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeriesProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardTimeSeriesProto.java @@ -70,11 +70,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oardTimeSeries\022\177projects/{project}/locat" + "ions/{location}/tensorboards/{tensorboar" + "d}/experiments/{experiment}/runs/{run}/t" - + "imeSeries/{time_series}B\216\001\n#com.google.c" + + "imeSeries/{time_series}B\367\001\n#com.google.c" + "loud.aiplatform.v1beta1B\032TensorboardTime" + "SeriesProtoP\001ZIgoogle.golang.org/genprot" + "o/googleapis/cloud/aiplatform/v1beta1;ai" - + "platformb\006proto3" + + "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( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineProto.java index bd427e389..281dc4d4a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineProto.java @@ -127,11 +127,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "edefinedSplit\022\020\n\003key\030\001 \001(\tB\003\340A\002\"q\n\016Times" + "tampSplit\022\031\n\021training_fraction\030\001 \001(\001\022\033\n\023" + "validation_fraction\030\002 \001(\001\022\025\n\rtest_fracti" - + "on\030\003 \001(\001\022\020\n\003key\030\004 \001(\tB\003\340A\002B\211\001\n#com.googl" + + "on\030\003 \001(\001\022\020\n\003key\030\004 \001(\tB\003\340A\002B\362\001\n#com.googl" + "e.cloud.aiplatform.v1beta1B\025TrainingPipe" + "lineProtoP\001ZIgoogle.golang.org/genproto/" + "googleapis/cloud/aiplatform/v1beta1;aipl" - + "atformb\006proto3" + + "atform\252\002\037Google.Cloud.AIPlatform.V1Beta1" + + "\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Goo" + + "gle::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Trial.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Trial.java index 0894266a8..af4e99bc8 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Trial.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Trial.java @@ -193,6 +193,23 @@ private Trial( customJob_ = s; break; } + case 98: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + webAccessUris_ = + com.google.protobuf.MapField.newMapField( + WebAccessUrisDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry webAccessUris__ = + input.readMessage( + WebAccessUrisDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + webAccessUris_ + .getMutableMap() + .put(webAccessUris__.getKey(), webAccessUris__.getValue()); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -223,6 +240,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_aiplatform_v1beta1_Trial_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 12: + return internalGetWebAccessUris(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -2114,6 +2142,123 @@ public com.google.protobuf.ByteString getCustomJobBytes() { } } + public static final int WEB_ACCESS_URIS_FIELD_NUMBER = 12; + + private static final class WebAccessUrisDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.aiplatform.v1beta1.StudyProto + .internal_static_google_cloud_aiplatform_v1beta1_Trial_WebAccessUrisEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField webAccessUris_; + + private com.google.protobuf.MapField + internalGetWebAccessUris() { + if (webAccessUris_ == null) { + return com.google.protobuf.MapField.emptyMapField( + WebAccessUrisDefaultEntryHolder.defaultEntry); + } + return webAccessUris_; + } + + public int getWebAccessUrisCount() { + return internalGetWebAccessUris().getMap().size(); + } + /** + * + * + *
+   * Output only. The web access URIs for the training job.
+   * The keys are the node names in the training jobs, e.g. workerpool0-0.
+   * The values are the URIs for each node's web portal in the job.
+   * 
+ * + * + * map<string, string> web_access_uris = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsWebAccessUris(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetWebAccessUris().getMap().containsKey(key); + } + /** Use {@link #getWebAccessUrisMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getWebAccessUris() { + return getWebAccessUrisMap(); + } + /** + * + * + *
+   * Output only. The web access URIs for the training job.
+   * The keys are the node names in the training jobs, e.g. workerpool0-0.
+   * The values are the URIs for each node's web portal in the job.
+   * 
+ * + * + * map<string, string> web_access_uris = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getWebAccessUrisMap() { + return internalGetWebAccessUris().getMap(); + } + /** + * + * + *
+   * Output only. The web access URIs for the training job.
+   * The keys are the node names in the training jobs, e.g. workerpool0-0.
+   * The values are the URIs for each node's web portal in the job.
+   * 
+ * + * + * map<string, string> web_access_uris = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.lang.String getWebAccessUrisOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetWebAccessUris().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Output only. The web access URIs for the training job.
+   * The keys are the node names in the training jobs, e.g. workerpool0-0.
+   * The values are the URIs for each node's web portal in the job.
+   * 
+ * + * + * map<string, string> web_access_uris = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.lang.String getWebAccessUrisOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetWebAccessUris().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2161,6 +2306,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getCustomJobBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, customJob_); } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetWebAccessUris(), WebAccessUrisDefaultEntryHolder.defaultEntry, 12); unknownFields.writeTo(output); } @@ -2203,6 +2350,16 @@ public int getSerializedSize() { if (!getCustomJobBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, customJob_); } + for (java.util.Map.Entry entry : + internalGetWebAccessUris().getMap().entrySet()) { + com.google.protobuf.MapEntry webAccessUris__ = + WebAccessUrisDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, webAccessUris__); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -2239,6 +2396,7 @@ public boolean equals(final java.lang.Object obj) { if (!getClientId().equals(other.getClientId())) return false; if (!getInfeasibleReason().equals(other.getInfeasibleReason())) return false; if (!getCustomJob().equals(other.getCustomJob())) return false; + if (!internalGetWebAccessUris().equals(other.internalGetWebAccessUris())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2282,6 +2440,10 @@ public int hashCode() { hash = (53 * hash) + getInfeasibleReason().hashCode(); hash = (37 * hash) + CUSTOM_JOB_FIELD_NUMBER; hash = (53 * hash) + getCustomJob().hashCode(); + if (!internalGetWebAccessUris().getMap().isEmpty()) { + hash = (37 * hash) + WEB_ACCESS_URIS_FIELD_NUMBER; + hash = (53 * hash) + internalGetWebAccessUris().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -2402,6 +2564,26 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_aiplatform_v1beta1_Trial_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 12: + return internalGetWebAccessUris(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 12: + return internalGetMutableWebAccessUris(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -2474,6 +2656,7 @@ public Builder clear() { customJob_ = ""; + internalGetMutableWebAccessUris().clear(); return this; } @@ -2541,6 +2724,8 @@ public com.google.cloud.aiplatform.v1beta1.Trial buildPartial() { result.clientId_ = clientId_; result.infeasibleReason_ = infeasibleReason_; result.customJob_ = customJob_; + result.webAccessUris_ = internalGetWebAccessUris(); + result.webAccessUris_.makeImmutable(); onBuilt(); return result; } @@ -2676,6 +2861,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Trial other) { customJob_ = other.customJob_; onChanged(); } + internalGetMutableWebAccessUris().mergeFrom(other.internalGetWebAccessUris()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -4795,6 +4981,194 @@ public Builder setCustomJobBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.MapField webAccessUris_; + + private com.google.protobuf.MapField + internalGetWebAccessUris() { + if (webAccessUris_ == null) { + return com.google.protobuf.MapField.emptyMapField( + WebAccessUrisDefaultEntryHolder.defaultEntry); + } + return webAccessUris_; + } + + private com.google.protobuf.MapField + internalGetMutableWebAccessUris() { + onChanged(); + ; + if (webAccessUris_ == null) { + webAccessUris_ = + com.google.protobuf.MapField.newMapField(WebAccessUrisDefaultEntryHolder.defaultEntry); + } + if (!webAccessUris_.isMutable()) { + webAccessUris_ = webAccessUris_.copy(); + } + return webAccessUris_; + } + + public int getWebAccessUrisCount() { + return internalGetWebAccessUris().getMap().size(); + } + /** + * + * + *
+     * Output only. The web access URIs for the training job.
+     * The keys are the node names in the training jobs, e.g. workerpool0-0.
+     * The values are the URIs for each node's web portal in the job.
+     * 
+ * + * + * map<string, string> web_access_uris = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsWebAccessUris(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetWebAccessUris().getMap().containsKey(key); + } + /** Use {@link #getWebAccessUrisMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getWebAccessUris() { + return getWebAccessUrisMap(); + } + /** + * + * + *
+     * Output only. The web access URIs for the training job.
+     * The keys are the node names in the training jobs, e.g. workerpool0-0.
+     * The values are the URIs for each node's web portal in the job.
+     * 
+ * + * + * map<string, string> web_access_uris = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getWebAccessUrisMap() { + return internalGetWebAccessUris().getMap(); + } + /** + * + * + *
+     * Output only. The web access URIs for the training job.
+     * The keys are the node names in the training jobs, e.g. workerpool0-0.
+     * The values are the URIs for each node's web portal in the job.
+     * 
+ * + * + * map<string, string> web_access_uris = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.lang.String getWebAccessUrisOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetWebAccessUris().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Output only. The web access URIs for the training job.
+     * The keys are the node names in the training jobs, e.g. workerpool0-0.
+     * The values are the URIs for each node's web portal in the job.
+     * 
+ * + * + * map<string, string> web_access_uris = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.lang.String getWebAccessUrisOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetWebAccessUris().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearWebAccessUris() { + internalGetMutableWebAccessUris().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Output only. The web access URIs for the training job.
+     * The keys are the node names in the training jobs, e.g. workerpool0-0.
+     * The values are the URIs for each node's web portal in the job.
+     * 
+ * + * + * map<string, string> web_access_uris = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeWebAccessUris(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableWebAccessUris().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableWebAccessUris() { + return internalGetMutableWebAccessUris().getMutableMap(); + } + /** + * + * + *
+     * Output only. The web access URIs for the training job.
+     * The keys are the node names in the training jobs, e.g. workerpool0-0.
+     * The values are the URIs for each node's web portal in the job.
+     * 
+ * + * + * map<string, string> web_access_uris = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putWebAccessUris(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableWebAccessUris().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Output only. The web access URIs for the training job.
+     * The keys are the node names in the training jobs, e.g. workerpool0-0.
+     * The values are the URIs for each node's web portal in the job.
+     * 
+ * + * + * map<string, string> web_access_uris = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllWebAccessUris(java.util.Map values) { + internalGetMutableWebAccessUris().getMutableMap().putAll(values); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrialOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrialOrBuilder.java index 8a99f85ec..04603acdf 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrialOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrialOrBuilder.java @@ -449,4 +449,78 @@ public interface TrialOrBuilder * @return The bytes for customJob. */ com.google.protobuf.ByteString getCustomJobBytes(); + + /** + * + * + *
+   * Output only. The web access URIs for the training job.
+   * The keys are the node names in the training jobs, e.g. workerpool0-0.
+   * The values are the URIs for each node's web portal in the job.
+   * 
+ * + * + * map<string, string> web_access_uris = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getWebAccessUrisCount(); + /** + * + * + *
+   * Output only. The web access URIs for the training job.
+   * The keys are the node names in the training jobs, e.g. workerpool0-0.
+   * The values are the URIs for each node's web portal in the job.
+   * 
+ * + * + * map<string, string> web_access_uris = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsWebAccessUris(java.lang.String key); + /** Use {@link #getWebAccessUrisMap()} instead. */ + @java.lang.Deprecated + java.util.Map getWebAccessUris(); + /** + * + * + *
+   * Output only. The web access URIs for the training job.
+   * The keys are the node names in the training jobs, e.g. workerpool0-0.
+   * The values are the URIs for each node's web portal in the job.
+   * 
+ * + * + * map<string, string> web_access_uris = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map getWebAccessUrisMap(); + /** + * + * + *
+   * Output only. The web access URIs for the training job.
+   * The keys are the node names in the training jobs, e.g. workerpool0-0.
+   * The values are the URIs for each node's web portal in the job.
+   * 
+ * + * + * map<string, string> web_access_uris = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.lang.String getWebAccessUrisOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * Output only. The web access URIs for the training job.
+   * The keys are the node names in the training jobs, e.g. workerpool0-0.
+   * The values are the URIs for each node's web portal in the job.
+   * 
+ * + * + * map<string, string> web_access_uris = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.lang.String getWebAccessUrisOrThrow(java.lang.String key); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TypesProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TypesProto.java index eb178de31..ba6d09adc 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TypesProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TypesProto.java @@ -57,11 +57,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "google/api/annotations.proto\"\033\n\tBoolArra" + "y\022\016\n\006values\030\001 \003(\010\"\035\n\013DoubleArray\022\016\n\006valu" + "es\030\001 \003(\001\"\034\n\nInt64Array\022\016\n\006values\030\001 \003(\003\"\035" - + "\n\013StringArray\022\016\n\006values\030\001 \003(\tB~\n#com.goo" - + "gle.cloud.aiplatform.v1beta1B\nTypesProto" - + "P\001ZIgoogle.golang.org/genproto/googleapi" - + "s/cloud/aiplatform/v1beta1;aiplatformb\006p" - + "roto3" + + "\n\013StringArray\022\016\n\006values\030\001 \003(\tB\347\001\n#com.go" + + "ogle.cloud.aiplatform.v1beta1B\nTypesProt" + + "oP\001ZIgoogle.golang.org/genproto/googleap" + + "is/cloud/aiplatform/v1beta1;aiplatform\252\002" + + "\037Google.Cloud.AIPlatform.V1Beta1\312\002\037Googl" + + "e\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Clo" + + "ud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UserActionReferenceProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UserActionReferenceProto.java index 6d9cfe2b3..df9a6a8d7 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UserActionReferenceProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UserActionReferenceProto.java @@ -45,11 +45,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "atform.v1beta1\032\034google/api/annotations.p" + "roto\"d\n\023UserActionReference\022\023\n\toperation" + "\030\001 \001(\tH\000\022\033\n\021data_labeling_job\030\002 \001(\tH\000\022\016\n" - + "\006method\030\003 \001(\tB\013\n\treferenceB\214\001\n#com.googl" + + "\006method\030\003 \001(\tB\013\n\treferenceB\365\001\n#com.googl" + "e.cloud.aiplatform.v1beta1B\030UserActionRe" + "ferenceProtoP\001ZIgoogle.golang.org/genpro" + "to/googleapis/cloud/aiplatform/v1beta1;a" - + "iplatformb\006proto3" + + "iplatform\252\002\037Google.Cloud.AIPlatform.V1Be" + + "ta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"" + + "Google::Cloud::AIPlatform::V1beta1b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ValueProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ValueProto.java index 3a0ee3aa5..95b6ee04f 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ValueProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ValueProto.java @@ -44,11 +44,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "proto\022\037google.cloud.aiplatform.v1beta1\032\034" + "google/api/annotations.proto\"U\n\005Value\022\023\n" + "\tint_value\030\001 \001(\003H\000\022\026\n\014double_value\030\002 \001(\001" - + "H\000\022\026\n\014string_value\030\003 \001(\tH\000B\007\n\005valueB~\n#c" - + "om.google.cloud.aiplatform.v1beta1B\nValu" - + "eProtoP\001ZIgoogle.golang.org/genproto/goo" - + "gleapis/cloud/aiplatform/v1beta1;aiplatf" - + "ormb\006proto3" + + "H\000\022\026\n\014string_value\030\003 \001(\tH\000B\007\n\005valueB\347\001\n#" + + "com.google.cloud.aiplatform.v1beta1B\nVal" + + "ueProtoP\001ZIgoogle.golang.org/genproto/go" + + "ogleapis/cloud/aiplatform/v1beta1;aiplat" + + "form\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002" + + "\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Googl" + + "e::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VersionName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VersionName.java deleted file mode 100644 index 9cfeba77f..000000000 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VersionName.java +++ /dev/null @@ -1,217 +0,0 @@ -/* - * Copyright 2021 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.v1beta1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class VersionName implements ResourceName { - private static final PathTemplate PROJECT_MODEL_VERSION = - PathTemplate.createWithoutUrlEncoding("projects/{project}/models/{model}/versions/{version}"); - private volatile Map fieldValuesMap; - private final String project; - private final String model; - private final String version; - - @Deprecated - protected VersionName() { - project = null; - model = null; - version = null; - } - - private VersionName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - model = Preconditions.checkNotNull(builder.getModel()); - version = Preconditions.checkNotNull(builder.getVersion()); - } - - public String getProject() { - return project; - } - - public String getModel() { - return model; - } - - public String getVersion() { - return version; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static VersionName of(String project, String model, String version) { - return newBuilder().setProject(project).setModel(model).setVersion(version).build(); - } - - public static String format(String project, String model, String version) { - return newBuilder().setProject(project).setModel(model).setVersion(version).build().toString(); - } - - public static VersionName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_MODEL_VERSION.validatedMatch( - formattedString, "VersionName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("model"), matchMap.get("version")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (VersionName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_MODEL_VERSION.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (model != null) { - fieldMapBuilder.put("model", model); - } - if (version != null) { - fieldMapBuilder.put("version", version); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_MODEL_VERSION.instantiate( - "project", project, "model", model, "version", version); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - VersionName that = ((VersionName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.model, that.model) - && Objects.equals(this.version, that.version); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(model); - h *= 1000003; - h ^= Objects.hashCode(version); - return h; - } - - /** Builder for projects/{project}/models/{model}/versions/{version}. */ - public static class Builder { - private String project; - private String model; - private String version; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getModel() { - return model; - } - - public String getVersion() { - return version; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setModel(String model) { - this.model = model; - return this; - } - - public Builder setVersion(String version) { - this.version = version; - return this; - } - - private Builder(VersionName versionName) { - this.project = versionName.project; - this.model = versionName.model; - this.version = versionName.version; - } - - public VersionName build() { - return new VersionName(this); - } - } -} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceProto.java index 67d991fb2..a3f73107d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VizierServiceProto.java @@ -277,10 +277,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "studies/*}/trials:listOptimalTrials:\001*\332A" + "\006parent\032M\312A\031aiplatform.googleapis.com\322A." + "https://www.googleapis.com/auth/cloud-pl" - + "atformB\206\001\n#com.google.cloud.aiplatform.v" + + "atformB\357\001\n#com.google.cloud.aiplatform.v" + "1beta1B\022VizierServiceProtoP\001ZIgoogle.gol" + "ang.org/genproto/googleapis/cloud/aiplat" - + "form/v1beta1;aiplatformb\006proto3" + + "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( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageClassificationPredictionInstance.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageClassificationPredictionInstance.java index ea1ece5e1..2e6bb220f 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageClassificationPredictionInstance.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageClassificationPredictionInstance.java @@ -132,7 +132,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The image bytes or GCS URI to make the prediction on.
+   * The image bytes or Cloud Storage URI to make the prediction on.
    * 
* * string content = 1; @@ -155,7 +155,7 @@ public java.lang.String getContent() { * * *
-   * The image bytes or GCS URI to make the prediction on.
+   * The image bytes or Cloud Storage URI to make the prediction on.
    * 
* * string content = 1; @@ -641,7 +641,7 @@ public Builder mergeFrom( * * *
-     * The image bytes or GCS URI to make the prediction on.
+     * The image bytes or Cloud Storage URI to make the prediction on.
      * 
* * string content = 1; @@ -663,7 +663,7 @@ public java.lang.String getContent() { * * *
-     * The image bytes or GCS URI to make the prediction on.
+     * The image bytes or Cloud Storage URI to make the prediction on.
      * 
* * string content = 1; @@ -685,7 +685,7 @@ public com.google.protobuf.ByteString getContentBytes() { * * *
-     * The image bytes or GCS URI to make the prediction on.
+     * The image bytes or Cloud Storage URI to make the prediction on.
      * 
* * string content = 1; @@ -706,7 +706,7 @@ public Builder setContent(java.lang.String value) { * * *
-     * The image bytes or GCS URI to make the prediction on.
+     * The image bytes or Cloud Storage URI to make the prediction on.
      * 
* * string content = 1; @@ -723,7 +723,7 @@ public Builder clearContent() { * * *
-     * The image bytes or GCS URI to make the prediction on.
+     * The image bytes or Cloud Storage URI to make the prediction on.
      * 
* * string content = 1; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageClassificationPredictionInstanceOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageClassificationPredictionInstanceOrBuilder.java index 26ab9086b..dcbaaa6fd 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageClassificationPredictionInstanceOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageClassificationPredictionInstanceOrBuilder.java @@ -27,7 +27,7 @@ public interface ImageClassificationPredictionInstanceOrBuilder * * *
-   * The image bytes or GCS URI to make the prediction on.
+   * The image bytes or Cloud Storage URI to make the prediction on.
    * 
* * string content = 1; @@ -39,7 +39,7 @@ public interface ImageClassificationPredictionInstanceOrBuilder * * *
-   * The image bytes or GCS URI to make the prediction on.
+   * The image bytes or Cloud Storage URI to make the prediction on.
    * 
* * string content = 1; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageObjectDetectionPredictionInstance.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageObjectDetectionPredictionInstance.java index f240c150a..2cb645dff 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageObjectDetectionPredictionInstance.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageObjectDetectionPredictionInstance.java @@ -132,7 +132,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The image bytes or GCS URI to make the prediction on.
+   * The image bytes or Cloud Storage URI to make the prediction on.
    * 
* * string content = 1; @@ -155,7 +155,7 @@ public java.lang.String getContent() { * * *
-   * The image bytes or GCS URI to make the prediction on.
+   * The image bytes or Cloud Storage URI to make the prediction on.
    * 
* * string content = 1; @@ -641,7 +641,7 @@ public Builder mergeFrom( * * *
-     * The image bytes or GCS URI to make the prediction on.
+     * The image bytes or Cloud Storage URI to make the prediction on.
      * 
* * string content = 1; @@ -663,7 +663,7 @@ public java.lang.String getContent() { * * *
-     * The image bytes or GCS URI to make the prediction on.
+     * The image bytes or Cloud Storage URI to make the prediction on.
      * 
* * string content = 1; @@ -685,7 +685,7 @@ public com.google.protobuf.ByteString getContentBytes() { * * *
-     * The image bytes or GCS URI to make the prediction on.
+     * The image bytes or Cloud Storage URI to make the prediction on.
      * 
* * string content = 1; @@ -706,7 +706,7 @@ public Builder setContent(java.lang.String value) { * * *
-     * The image bytes or GCS URI to make the prediction on.
+     * The image bytes or Cloud Storage URI to make the prediction on.
      * 
* * string content = 1; @@ -723,7 +723,7 @@ public Builder clearContent() { * * *
-     * The image bytes or GCS URI to make the prediction on.
+     * The image bytes or Cloud Storage URI to make the prediction on.
      * 
* * string content = 1; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageObjectDetectionPredictionInstanceOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageObjectDetectionPredictionInstanceOrBuilder.java index b905e08b3..aa4634793 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageObjectDetectionPredictionInstanceOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/ImageObjectDetectionPredictionInstanceOrBuilder.java @@ -27,7 +27,7 @@ public interface ImageObjectDetectionPredictionInstanceOrBuilder * * *
-   * The image bytes or GCS URI to make the prediction on.
+   * The image bytes or Cloud Storage URI to make the prediction on.
    * 
* * string content = 1; @@ -39,7 +39,7 @@ public interface ImageObjectDetectionPredictionInstanceOrBuilder * * *
-   * The image bytes or GCS URI to make the prediction on.
+   * The image bytes or Cloud Storage URI to make the prediction on.
    * 
* * string content = 1; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextExtractionPredictionInstance.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextExtractionPredictionInstance.java index affd77d1b..44a705938 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextExtractionPredictionInstance.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextExtractionPredictionInstance.java @@ -243,7 +243,7 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { *
    * This field is only used for batch prediction. If a key is provided, the
    * batch prediction result will by mapped to this key. If omitted, then the
-   * batch prediction result will contain the entire input instance. AI Platform
+   * batch prediction result will contain the entire input instance. Vertex AI
    * will not check if keys in the request are duplicates, so it is up to the
    * caller to ensure the keys are unique.
    * 
@@ -270,7 +270,7 @@ public java.lang.String getKey() { *
    * This field is only used for batch prediction. If a key is provided, the
    * batch prediction result will by mapped to this key. If omitted, then the
-   * batch prediction result will contain the entire input instance. AI Platform
+   * batch prediction result will contain the entire input instance. Vertex AI
    * will not check if keys in the request are duplicates, so it is up to the
    * caller to ensure the keys are unique.
    * 
@@ -927,7 +927,7 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { *
      * This field is only used for batch prediction. If a key is provided, the
      * batch prediction result will by mapped to this key. If omitted, then the
-     * batch prediction result will contain the entire input instance. AI Platform
+     * batch prediction result will contain the entire input instance. Vertex AI
      * will not check if keys in the request are duplicates, so it is up to the
      * caller to ensure the keys are unique.
      * 
@@ -953,7 +953,7 @@ public java.lang.String getKey() { *
      * This field is only used for batch prediction. If a key is provided, the
      * batch prediction result will by mapped to this key. If omitted, then the
-     * batch prediction result will contain the entire input instance. AI Platform
+     * batch prediction result will contain the entire input instance. Vertex AI
      * will not check if keys in the request are duplicates, so it is up to the
      * caller to ensure the keys are unique.
      * 
@@ -979,7 +979,7 @@ public com.google.protobuf.ByteString getKeyBytes() { *
      * This field is only used for batch prediction. If a key is provided, the
      * batch prediction result will by mapped to this key. If omitted, then the
-     * batch prediction result will contain the entire input instance. AI Platform
+     * batch prediction result will contain the entire input instance. Vertex AI
      * will not check if keys in the request are duplicates, so it is up to the
      * caller to ensure the keys are unique.
      * 
@@ -1004,7 +1004,7 @@ public Builder setKey(java.lang.String value) { *
      * This field is only used for batch prediction. If a key is provided, the
      * batch prediction result will by mapped to this key. If omitted, then the
-     * batch prediction result will contain the entire input instance. AI Platform
+     * batch prediction result will contain the entire input instance. Vertex AI
      * will not check if keys in the request are duplicates, so it is up to the
      * caller to ensure the keys are unique.
      * 
@@ -1025,7 +1025,7 @@ public Builder clearKey() { *
      * This field is only used for batch prediction. If a key is provided, the
      * batch prediction result will by mapped to this key. If omitted, then the
-     * batch prediction result will contain the entire input instance. AI Platform
+     * batch prediction result will contain the entire input instance. Vertex AI
      * will not check if keys in the request are duplicates, so it is up to the
      * caller to ensure the keys are unique.
      * 
diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextExtractionPredictionInstanceOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextExtractionPredictionInstanceOrBuilder.java index 38143cefb..ed55990fb 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextExtractionPredictionInstanceOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/instance/TextExtractionPredictionInstanceOrBuilder.java @@ -83,7 +83,7 @@ public interface TextExtractionPredictionInstanceOrBuilder *
    * This field is only used for batch prediction. If a key is provided, the
    * batch prediction result will by mapped to this key. If omitted, then the
-   * batch prediction result will contain the entire input instance. AI Platform
+   * batch prediction result will contain the entire input instance. Vertex AI
    * will not check if keys in the request are duplicates, so it is up to the
    * caller to ensure the keys are unique.
    * 
@@ -99,7 +99,7 @@ public interface TextExtractionPredictionInstanceOrBuilder *
    * This field is only used for batch prediction. If a key is provided, the
    * batch prediction result will by mapped to this key. If omitted, then the
-   * batch prediction result will contain the entire input instance. AI Platform
+   * batch prediction result will contain the entire input instance. Vertex AI
    * will not check if keys in the request are duplicates, so it is up to the
    * caller to ensure the keys are unique.
    * 
diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoClassificationPredictionParams.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoClassificationPredictionParams.java index c6406d4f4..08fb32c41 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoClassificationPredictionParams.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoClassificationPredictionParams.java @@ -179,7 +179,7 @@ public int getMaxPredictions() { * * *
-   * Set to true to request segment-level classification. AI Platform returns
+   * Set to true to request segment-level classification. Vertex AI returns
    * labels and their confidence scores for the entire time segment of the
    * video that user specified in the input instance.
    * Default value is true
@@ -200,9 +200,9 @@ public boolean getSegmentClassification() {
    *
    *
    * 
-   * Set to true to request shot-level classification. AI Platform determines
+   * Set to true to request shot-level classification. Vertex AI determines
    * the boundaries for each camera shot in the entire time segment of the
-   * video that user specified in the input instance. AI Platform then
+   * video that user specified in the input instance. Vertex AI then
    * returns labels and their confidence scores for each detected shot, along
    * with the start and end time of the shot.
    * WARNING: Model evaluation is not done for this classification type,
@@ -227,7 +227,7 @@ public boolean getShotClassification() {
    *
    * 
    * Set to true to request classification for a video at one-second intervals.
-   * AI Platform returns labels and their confidence scores for each second of
+   * Vertex AI returns labels and their confidence scores for each second of
    * the entire time segment of the video that user specified in the input
    * WARNING: Model evaluation is not done for this classification type, the
    * quality of it depends on the training data, but there are no metrics
@@ -798,7 +798,7 @@ public Builder clearMaxPredictions() {
      *
      *
      * 
-     * Set to true to request segment-level classification. AI Platform returns
+     * Set to true to request segment-level classification. Vertex AI returns
      * labels and their confidence scores for the entire time segment of the
      * video that user specified in the input instance.
      * Default value is true
@@ -816,7 +816,7 @@ public boolean getSegmentClassification() {
      *
      *
      * 
-     * Set to true to request segment-level classification. AI Platform returns
+     * Set to true to request segment-level classification. Vertex AI returns
      * labels and their confidence scores for the entire time segment of the
      * video that user specified in the input instance.
      * Default value is true
@@ -837,7 +837,7 @@ public Builder setSegmentClassification(boolean value) {
      *
      *
      * 
-     * Set to true to request segment-level classification. AI Platform returns
+     * Set to true to request segment-level classification. Vertex AI returns
      * labels and their confidence scores for the entire time segment of the
      * video that user specified in the input instance.
      * Default value is true
@@ -859,9 +859,9 @@ public Builder clearSegmentClassification() {
      *
      *
      * 
-     * Set to true to request shot-level classification. AI Platform determines
+     * Set to true to request shot-level classification. Vertex AI determines
      * the boundaries for each camera shot in the entire time segment of the
-     * video that user specified in the input instance. AI Platform then
+     * video that user specified in the input instance. Vertex AI then
      * returns labels and their confidence scores for each detected shot, along
      * with the start and end time of the shot.
      * WARNING: Model evaluation is not done for this classification type,
@@ -882,9 +882,9 @@ public boolean getShotClassification() {
      *
      *
      * 
-     * Set to true to request shot-level classification. AI Platform determines
+     * Set to true to request shot-level classification. Vertex AI determines
      * the boundaries for each camera shot in the entire time segment of the
-     * video that user specified in the input instance. AI Platform then
+     * video that user specified in the input instance. Vertex AI then
      * returns labels and their confidence scores for each detected shot, along
      * with the start and end time of the shot.
      * WARNING: Model evaluation is not done for this classification type,
@@ -908,9 +908,9 @@ public Builder setShotClassification(boolean value) {
      *
      *
      * 
-     * Set to true to request shot-level classification. AI Platform determines
+     * Set to true to request shot-level classification. Vertex AI determines
      * the boundaries for each camera shot in the entire time segment of the
-     * video that user specified in the input instance. AI Platform then
+     * video that user specified in the input instance. Vertex AI then
      * returns labels and their confidence scores for each detected shot, along
      * with the start and end time of the shot.
      * WARNING: Model evaluation is not done for this classification type,
@@ -936,7 +936,7 @@ public Builder clearShotClassification() {
      *
      * 
      * Set to true to request classification for a video at one-second intervals.
-     * AI Platform returns labels and their confidence scores for each second of
+     * Vertex AI returns labels and their confidence scores for each second of
      * the entire time segment of the video that user specified in the input
      * WARNING: Model evaluation is not done for this classification type, the
      * quality of it depends on the training data, but there are no metrics
@@ -956,7 +956,7 @@ public boolean getOneSecIntervalClassification() {
      *
      * 
      * Set to true to request classification for a video at one-second intervals.
-     * AI Platform returns labels and their confidence scores for each second of
+     * Vertex AI returns labels and their confidence scores for each second of
      * the entire time segment of the video that user specified in the input
      * WARNING: Model evaluation is not done for this classification type, the
      * quality of it depends on the training data, but there are no metrics
@@ -979,7 +979,7 @@ public Builder setOneSecIntervalClassification(boolean value) {
      *
      * 
      * Set to true to request classification for a video at one-second intervals.
-     * AI Platform returns labels and their confidence scores for each second of
+     * Vertex AI returns labels and their confidence scores for each second of
      * the entire time segment of the video that user specified in the input
      * WARNING: Model evaluation is not done for this classification type, the
      * quality of it depends on the training data, but there are no metrics
diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoClassificationPredictionParamsOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoClassificationPredictionParamsOrBuilder.java
index 50cad0d10..fc36ece65 100644
--- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoClassificationPredictionParamsOrBuilder.java
+++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/params/VideoClassificationPredictionParamsOrBuilder.java
@@ -56,7 +56,7 @@ public interface VideoClassificationPredictionParamsOrBuilder
    *
    *
    * 
-   * Set to true to request segment-level classification. AI Platform returns
+   * Set to true to request segment-level classification. Vertex AI returns
    * labels and their confidence scores for the entire time segment of the
    * video that user specified in the input instance.
    * Default value is true
@@ -72,9 +72,9 @@ public interface VideoClassificationPredictionParamsOrBuilder
    *
    *
    * 
-   * Set to true to request shot-level classification. AI Platform determines
+   * Set to true to request shot-level classification. Vertex AI determines
    * the boundaries for each camera shot in the entire time segment of the
-   * video that user specified in the input instance. AI Platform then
+   * video that user specified in the input instance. Vertex AI then
    * returns labels and their confidence scores for each detected shot, along
    * with the start and end time of the shot.
    * WARNING: Model evaluation is not done for this classification type,
@@ -94,7 +94,7 @@ public interface VideoClassificationPredictionParamsOrBuilder
    *
    * 
    * Set to true to request classification for a video at one-second intervals.
-   * AI Platform returns labels and their confidence scores for each second of
+   * Vertex AI returns labels and their confidence scores for each second of
    * the entire time segment of the video that user specified in the input
    * WARNING: Model evaluation is not done for this classification type, the
    * quality of it depends on the training data, but there are no metrics
diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ClassificationPredictionResult.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ClassificationPredictionResult.java
index d215fb3b5..43d5a5469 100644
--- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ClassificationPredictionResult.java
+++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ClassificationPredictionResult.java
@@ -184,8 +184,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    *
    * 
-   * The resource IDs of the AnnotationSpecs that had been identified, ordered
-   * by the confidence score descendingly.
+   * The resource IDs of the AnnotationSpecs that had been identified.
    * 
* * repeated int64 ids = 1; @@ -200,8 +199,7 @@ public java.util.List getIdsList() { * * *
-   * The resource IDs of the AnnotationSpecs that had been identified, ordered
-   * by the confidence score descendingly.
+   * The resource IDs of the AnnotationSpecs that had been identified.
    * 
* * repeated int64 ids = 1; @@ -215,8 +213,7 @@ public int getIdsCount() { * * *
-   * The resource IDs of the AnnotationSpecs that had been identified, ordered
-   * by the confidence score descendingly.
+   * The resource IDs of the AnnotationSpecs that had been identified.
    * 
* * repeated int64 ids = 1; @@ -834,8 +831,7 @@ private void ensureIdsIsMutable() { * * *
-     * The resource IDs of the AnnotationSpecs that had been identified, ordered
-     * by the confidence score descendingly.
+     * The resource IDs of the AnnotationSpecs that had been identified.
      * 
* * repeated int64 ids = 1; @@ -849,8 +845,7 @@ public java.util.List getIdsList() { * * *
-     * The resource IDs of the AnnotationSpecs that had been identified, ordered
-     * by the confidence score descendingly.
+     * The resource IDs of the AnnotationSpecs that had been identified.
      * 
* * repeated int64 ids = 1; @@ -864,8 +859,7 @@ public int getIdsCount() { * * *
-     * The resource IDs of the AnnotationSpecs that had been identified, ordered
-     * by the confidence score descendingly.
+     * The resource IDs of the AnnotationSpecs that had been identified.
      * 
* * repeated int64 ids = 1; @@ -880,8 +874,7 @@ public long getIds(int index) { * * *
-     * The resource IDs of the AnnotationSpecs that had been identified, ordered
-     * by the confidence score descendingly.
+     * The resource IDs of the AnnotationSpecs that had been identified.
      * 
* * repeated int64 ids = 1; @@ -900,8 +893,7 @@ public Builder setIds(int index, long value) { * * *
-     * The resource IDs of the AnnotationSpecs that had been identified, ordered
-     * by the confidence score descendingly.
+     * The resource IDs of the AnnotationSpecs that had been identified.
      * 
* * repeated int64 ids = 1; @@ -919,8 +911,7 @@ public Builder addIds(long value) { * * *
-     * The resource IDs of the AnnotationSpecs that had been identified, ordered
-     * by the confidence score descendingly.
+     * The resource IDs of the AnnotationSpecs that had been identified.
      * 
* * repeated int64 ids = 1; @@ -938,8 +929,7 @@ public Builder addAllIds(java.lang.Iterable values) { * * *
-     * The resource IDs of the AnnotationSpecs that had been identified, ordered
-     * by the confidence score descendingly.
+     * The resource IDs of the AnnotationSpecs that had been identified.
      * 
* * repeated int64 ids = 1; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ClassificationPredictionResultOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ClassificationPredictionResultOrBuilder.java index 6d3f2361e..ee8028ed8 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ClassificationPredictionResultOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/predict/prediction/ClassificationPredictionResultOrBuilder.java @@ -27,8 +27,7 @@ public interface ClassificationPredictionResultOrBuilder * * *
-   * The resource IDs of the AnnotationSpecs that had been identified, ordered
-   * by the confidence score descendingly.
+   * The resource IDs of the AnnotationSpecs that had been identified.
    * 
* * repeated int64 ids = 1; @@ -40,8 +39,7 @@ public interface ClassificationPredictionResultOrBuilder * * *
-   * The resource IDs of the AnnotationSpecs that had been identified, ordered
-   * by the confidence score descendingly.
+   * The resource IDs of the AnnotationSpecs that had been identified.
    * 
* * repeated int64 ids = 1; @@ -53,8 +51,7 @@ public interface ClassificationPredictionResultOrBuilder * * *
-   * The resource IDs of the AnnotationSpecs that had been identified, ordered
-   * by the confidence score descendingly.
+   * The resource IDs of the AnnotationSpecs that had been identified.
    * 
* * repeated int64 ids = 1; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLForecastingProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLForecastingProto.java index d70836643..c3b93e687 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLForecastingProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLForecastingProto.java @@ -90,7 +90,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "AutoMlForecastingInputs\022j\n\010metadata\030\002 \001(" + "\0132X.google.cloud.aiplatform.v1beta1.sche" + "ma.trainingjob.definition.AutoMlForecast" - + "ingMetadata\"\327\016\n\027AutoMlForecastingInputs\022" + + "ingMetadata\"\367\016\n\027AutoMlForecastingInputs\022" + "\025\n\rtarget_column\030\001 \001(\t\022%\n\035time_series_id" + "entifier_column\030\002 \001(\t\022\023\n\013time_column\030\003 \001" + "(\t\022~\n\017transformations\030\004 \003(\0132e.google.clo" @@ -110,41 +110,41 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132].google.cloud.aiplatform.v1beta1.s" + "chema.trainingjob.definition.ExportEvalu" + "atedDataItemsConfig\022\021\n\tquantiles\030\020 \003(\001\022\032" - + "\n\022validation_options\030\021 \001(\t\032\371\007\n\016Transform" - + "ation\022\210\001\n\004auto\030\001 \001(\0132x.google.cloud.aipl" - + "atform.v1beta1.schema.trainingjob.defini" - + "tion.AutoMlForecastingInputs.Transformat" - + "ion.AutoTransformationH\000\022\216\001\n\007numeric\030\002 \001" - + "(\0132{.google.cloud.aiplatform.v1beta1.sch" - + "ema.trainingjob.definition.AutoMlForecas" - + "tingInputs.Transformation.NumericTransfo" - + "rmationH\000\022\226\001\n\013categorical\030\003 \001(\0132\177.google" - + ".cloud.aiplatform.v1beta1.schema.trainin" - + "gjob.definition.AutoMlForecastingInputs." - + "Transformation.CategoricalTransformation" - + "H\000\022\222\001\n\ttimestamp\030\004 \001(\0132}.google.cloud.ai" - + "platform.v1beta1.schema.trainingjob.defi" - + "nition.AutoMlForecastingInputs.Transform" - + "ation.TimestampTransformationH\000\022\210\001\n\004text" - + "\030\005 \001(\0132x.google.cloud.aiplatform.v1beta1" - + ".schema.trainingjob.definition.AutoMlFor" - + "ecastingInputs.Transformation.TextTransf" - + "ormationH\000\032)\n\022AutoTransformation\022\023\n\013colu" - + "mn_name\030\001 \001(\t\032,\n\025NumericTransformation\022\023" - + "\n\013column_name\030\001 \001(\t\0320\n\031CategoricalTransf" - + "ormation\022\023\n\013column_name\030\001 \001(\t\032C\n\027Timesta" - + "mpTransformation\022\023\n\013column_name\030\001 \001(\t\022\023\n" - + "\013time_format\030\002 \001(\t\032)\n\022TextTransformation" - + "\022\023\n\013column_name\030\001 \001(\tB\027\n\025transformation_" - + "detail\032-\n\013Granularity\022\014\n\004unit\030\001 \001(\t\022\020\n\010q" - + "uantity\030\002 \001(\003\"@\n\031AutoMlForecastingMetada" - + "ta\022#\n\033train_cost_milli_node_hours\030\001 \001(\003B" - + "\306\001\nAcom.google.cloud.aiplatform.v1beta1." - + "schema.trainingjob.definitionB\026AutoMLFor" - + "ecastingProtoP\001Zggoogle.golang.org/genpr" - + "oto/googleapis/cloud/aiplatform/v1beta1/" - + "schema/trainingjob/definition;definition" - + "b\006proto3" + + "\n\022validation_options\030\021 \001(\t\022\036\n\026additional" + + "_experiments\030\031 \003(\t\032\371\007\n\016Transformation\022\210\001" + + "\n\004auto\030\001 \001(\0132x.google.cloud.aiplatform.v" + + "1beta1.schema.trainingjob.definition.Aut" + + "oMlForecastingInputs.Transformation.Auto" + + "TransformationH\000\022\216\001\n\007numeric\030\002 \001(\0132{.goo" + + "gle.cloud.aiplatform.v1beta1.schema.trai" + + "ningjob.definition.AutoMlForecastingInpu" + + "ts.Transformation.NumericTransformationH" + + "\000\022\226\001\n\013categorical\030\003 \001(\0132\177.google.cloud.a" + + "iplatform.v1beta1.schema.trainingjob.def" + + "inition.AutoMlForecastingInputs.Transfor" + + "mation.CategoricalTransformationH\000\022\222\001\n\tt" + + "imestamp\030\004 \001(\0132}.google.cloud.aiplatform" + + ".v1beta1.schema.trainingjob.definition.A" + + "utoMlForecastingInputs.Transformation.Ti" + + "mestampTransformationH\000\022\210\001\n\004text\030\005 \001(\0132x" + + ".google.cloud.aiplatform.v1beta1.schema." + + "trainingjob.definition.AutoMlForecasting" + + "Inputs.Transformation.TextTransformation" + + "H\000\032)\n\022AutoTransformation\022\023\n\013column_name\030" + + "\001 \001(\t\032,\n\025NumericTransformation\022\023\n\013column" + + "_name\030\001 \001(\t\0320\n\031CategoricalTransformation" + + "\022\023\n\013column_name\030\001 \001(\t\032C\n\027TimestampTransf" + + "ormation\022\023\n\013column_name\030\001 \001(\t\022\023\n\013time_fo" + + "rmat\030\002 \001(\t\032)\n\022TextTransformation\022\023\n\013colu" + + "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." + + "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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -184,6 +184,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExportEvaluatedDataItemsConfig", "Quantiles", "ValidationOptions", + "AdditionalExperiments", }); internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_Transformation_descriptor = internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlForecastingInputs_descriptor diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLTablesProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLTablesProto.java index c96798be8..5042023f8 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLTablesProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLTablesProto.java @@ -96,7 +96,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ingjob.definition.AutoMlTablesInputs\022e\n\010" + "metadata\030\002 \001(\0132S.google.cloud.aiplatform" + ".v1beta1.schema.trainingjob.definition.A" - + "utoMlTablesMetadata\"\210\022\n\022AutoMlTablesInpu" + + "utoMlTablesMetadata\"\250\022\n\022AutoMlTablesInpu" + "ts\022-\n#optimization_objective_recall_valu" + "e\030\005 \001(\002H\000\0220\n&optimization_objective_prec" + "ision_value\030\006 \001(\002H\000\022\027\n\017prediction_type\030\001" @@ -110,57 +110,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\t\022\211\001\n\"export_evaluated_data_items_config" + "\030\n \001(\0132].google.cloud.aiplatform.v1beta1" + ".schema.trainingjob.definition.ExportEva" - + "luatedDataItemsConfig\032\252\r\n\016Transformation" - + "\022\203\001\n\004auto\030\001 \001(\0132s.google.cloud.aiplatfor" - + "m.v1beta1.schema.trainingjob.definition." - + "AutoMlTablesInputs.Transformation.AutoTr" - + "ansformationH\000\022\211\001\n\007numeric\030\002 \001(\0132v.googl" + + "luatedDataItemsConfig\022\036\n\026additional_expe" + + "riments\030\013 \003(\t\032\252\r\n\016Transformation\022\203\001\n\004aut" + + "o\030\001 \001(\0132s.google.cloud.aiplatform.v1beta" + + "1.schema.trainingjob.definition.AutoMlTa" + + "blesInputs.Transformation.AutoTransforma" + + "tionH\000\022\211\001\n\007numeric\030\002 \001(\0132v.google.cloud." + + "aiplatform.v1beta1.schema.trainingjob.de" + + "finition.AutoMlTablesInputs.Transformati" + + "on.NumericTransformationH\000\022\221\001\n\013categoric" + + "al\030\003 \001(\0132z.google.cloud.aiplatform.v1bet" + + "a1.schema.trainingjob.definition.AutoMlT" + + "ablesInputs.Transformation.CategoricalTr" + + "ansformationH\000\022\215\001\n\ttimestamp\030\004 \001(\0132x.goo" + + "gle.cloud.aiplatform.v1beta1.schema.trai" + + "ningjob.definition.AutoMlTablesInputs.Tr" + + "ansformation.TimestampTransformationH\000\022\203" + + "\001\n\004text\030\005 \001(\0132s.google.cloud.aiplatform." + + "v1beta1.schema.trainingjob.definition.Au" + + "toMlTablesInputs.Transformation.TextTran" + + "sformationH\000\022\227\001\n\020repeated_numeric\030\006 \001(\0132" + + "{.google.cloud.aiplatform.v1beta1.schema" + + ".trainingjob.definition.AutoMlTablesInpu" + + "ts.Transformation.NumericArrayTransforma" + + "tionH\000\022\237\001\n\024repeated_categorical\030\007 \001(\0132\177." + + "google.cloud.aiplatform.v1beta1.schema.t" + + "rainingjob.definition.AutoMlTablesInputs" + + ".Transformation.CategoricalArrayTransfor" + + "mationH\000\022\221\001\n\rrepeated_text\030\010 \001(\0132x.googl" + "e.cloud.aiplatform.v1beta1.schema.traini" + "ngjob.definition.AutoMlTablesInputs.Tran" - + "sformation.NumericTransformationH\000\022\221\001\n\013c" - + "ategorical\030\003 \001(\0132z.google.cloud.aiplatfo" - + "rm.v1beta1.schema.trainingjob.definition" - + ".AutoMlTablesInputs.Transformation.Categ" - + "oricalTransformationH\000\022\215\001\n\ttimestamp\030\004 \001" - + "(\0132x.google.cloud.aiplatform.v1beta1.sch" - + "ema.trainingjob.definition.AutoMlTablesI" - + "nputs.Transformation.TimestampTransforma" - + "tionH\000\022\203\001\n\004text\030\005 \001(\0132s.google.cloud.aip" - + "latform.v1beta1.schema.trainingjob.defin" - + "ition.AutoMlTablesInputs.Transformation." - + "TextTransformationH\000\022\227\001\n\020repeated_numeri" - + "c\030\006 \001(\0132{.google.cloud.aiplatform.v1beta" - + "1.schema.trainingjob.definition.AutoMlTa" - + "blesInputs.Transformation.NumericArrayTr" - + "ansformationH\000\022\237\001\n\024repeated_categorical\030" - + "\007 \001(\0132\177.google.cloud.aiplatform.v1beta1." - + "schema.trainingjob.definition.AutoMlTabl" - + "esInputs.Transformation.CategoricalArray" - + "TransformationH\000\022\221\001\n\rrepeated_text\030\010 \001(\013" - + "2x.google.cloud.aiplatform.v1beta1.schem" - + "a.trainingjob.definition.AutoMlTablesInp" - + "uts.Transformation.TextArrayTransformati" - + "onH\000\032)\n\022AutoTransformation\022\023\n\013column_nam" - + "e\030\001 \001(\t\032L\n\025NumericTransformation\022\023\n\013colu" - + "mn_name\030\001 \001(\t\022\036\n\026invalid_values_allowed\030" - + "\002 \001(\010\0320\n\031CategoricalTransformation\022\023\n\013co" - + "lumn_name\030\001 \001(\t\032c\n\027TimestampTransformati" - + "on\022\023\n\013column_name\030\001 \001(\t\022\023\n\013time_format\030\002" - + " \001(\t\022\036\n\026invalid_values_allowed\030\003 \001(\010\032)\n\022" - + "TextTransformation\022\023\n\013column_name\030\001 \001(\t\032" - + "Q\n\032NumericArrayTransformation\022\023\n\013column_" - + "name\030\001 \001(\t\022\036\n\026invalid_values_allowed\030\002 \001" - + "(\010\0325\n\036CategoricalArrayTransformation\022\023\n\013" - + "column_name\030\001 \001(\t\032.\n\027TextArrayTransforma" - + "tion\022\023\n\013column_name\030\001 \001(\tB\027\n\025transformat" - + "ion_detailB*\n(additional_optimization_ob" - + "jective_config\";\n\024AutoMlTablesMetadata\022#" - + "\n\033train_cost_milli_node_hours\030\001 \001(\003B\301\001\nA" - + "com.google.cloud.aiplatform.v1beta1.sche" - + "ma.trainingjob.definitionB\021AutoMLTablesP" - + "rotoP\001Zggoogle.golang.org/genproto/googl" - + "eapis/cloud/aiplatform/v1beta1/schema/tr" - + "ainingjob/definition;definitionb\006proto3" + + "sformation.TextArrayTransformationH\000\032)\n\022" + + "AutoTransformation\022\023\n\013column_name\030\001 \001(\t\032" + + "L\n\025NumericTransformation\022\023\n\013column_name\030" + + "\001 \001(\t\022\036\n\026invalid_values_allowed\030\002 \001(\010\0320\n" + + "\031CategoricalTransformation\022\023\n\013column_nam" + + "e\030\001 \001(\t\032c\n\027TimestampTransformation\022\023\n\013co" + + "lumn_name\030\001 \001(\t\022\023\n\013time_format\030\002 \001(\t\022\036\n\026" + + "invalid_values_allowed\030\003 \001(\010\032)\n\022TextTran" + + "sformation\022\023\n\013column_name\030\001 \001(\t\032Q\n\032Numer" + + "icArrayTransformation\022\023\n\013column_name\030\001 \001" + + "(\t\022\036\n\026invalid_values_allowed\030\002 \001(\010\0325\n\036Ca" + + "tegoricalArrayTransformation\022\023\n\013column_n" + + "ame\030\001 \001(\t\032.\n\027TextArrayTransformation\022\023\n\013" + + "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" + + "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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -194,6 +195,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisableEarlyStopping", "WeightColumnName", "ExportEvaluatedDataItemsConfig", + "AdditionalExperiments", "AdditionalOptimizationObjectiveConfig", }); internal_static_google_cloud_aiplatform_v1beta1_schema_trainingjob_definition_AutoMlTablesInputs_Transformation_descriptor = diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLVideoActionRecognitionProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLVideoActionRecognitionProto.java index b202b17ca..d27bed0ef 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLVideoActionRecognitionProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMLVideoActionRecognitionProto.java @@ -53,19 +53,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "utoMlVideoActionRecognition\022q\n\006inputs\030\001 " + "\001(\0132a.google.cloud.aiplatform.v1beta1.sc" + "hema.trainingjob.definition.AutoMlVideoA" - + "ctionRecognitionInputs\"\361\001\n\"AutoMlVideoAc" + + "ctionRecognitionInputs\"\257\002\n\"AutoMlVideoAc" + "tionRecognitionInputs\022\177\n\nmodel_type\030\001 \001(" + "\0162k.google.cloud.aiplatform.v1beta1.sche" + "ma.trainingjob.definition.AutoMlVideoAct" - + "ionRecognitionInputs.ModelType\"J\n\tModelT" - + "ype\022\032\n\026MODEL_TYPE_UNSPECIFIED\020\000\022\t\n\005CLOUD" - + "\020\001\022\026\n\022MOBILE_VERSATILE_1\020\002B\321\001\nAcom.googl" - + "e.cloud.aiplatform.v1beta1.schema.traini" - + "ngjob.definitionB!AutoMLVideoActionRecog" - + "nitionProtoP\001Zggoogle.golang.org/genprot" - + "o/googleapis/cloud/aiplatform/v1beta1/sc" - + "hema/trainingjob/definition;definitionb\006" - + "proto3" + + "ionRecognitionInputs.ModelType\"\207\001\n\tModel" + + "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" + + ".v1beta1.schema.trainingjob.definitionB!" + + "AutoMLVideoActionRecognitionProtoP\001Zggoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/aiplatform/v1beta1/schema/trainingjob/d" + + "efinition;definitionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingInputs.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingInputs.java index 3599c57f0..b5fc2e6fe 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingInputs.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingInputs.java @@ -45,6 +45,7 @@ private AutoMlForecastingInputs() { availableAtForecastColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY; quantiles_ = emptyDoubleList(); validationOptions_ = ""; + additionalExperiments_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @@ -243,6 +244,16 @@ private AutoMlForecastingInputs( contextWindow_ = input.readInt64(); break; } + case 202: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + additionalExperiments_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000020; + } + additionalExperiments_.add(s); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -272,6 +283,9 @@ private AutoMlForecastingInputs( if (((mutable_bitField0_ & 0x00000008) != 0)) { availableAtForecastColumns_ = availableAtForecastColumns_.getUnmodifiableView(); } + if (((mutable_bitField0_ & 0x00000020) != 0)) { + additionalExperiments_ = additionalExperiments_.getUnmodifiableView(); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -8220,6 +8234,67 @@ public com.google.protobuf.ByteString getValidationOptionsBytes() { } } + public static final int ADDITIONAL_EXPERIMENTS_FIELD_NUMBER = 25; + private com.google.protobuf.LazyStringList additionalExperiments_; + /** + * + * + *
+   * Additional experiment flags for the time series forcasting training.
+   * 
+ * + * repeated string additional_experiments = 25; + * + * @return A list containing the additionalExperiments. + */ + public com.google.protobuf.ProtocolStringList getAdditionalExperimentsList() { + return additionalExperiments_; + } + /** + * + * + *
+   * Additional experiment flags for the time series forcasting training.
+   * 
+ * + * repeated string additional_experiments = 25; + * + * @return The count of additionalExperiments. + */ + public int getAdditionalExperimentsCount() { + return additionalExperiments_.size(); + } + /** + * + * + *
+   * Additional experiment flags for the time series forcasting training.
+   * 
+ * + * repeated string additional_experiments = 25; + * + * @param index The index of the element to return. + * @return The additionalExperiments at the given index. + */ + public java.lang.String getAdditionalExperiments(int index) { + return additionalExperiments_.get(index); + } + /** + * + * + *
+   * Additional experiment flags for the time series forcasting training.
+   * 
+ * + * repeated string additional_experiments = 25; + * + * @param index The index of the value to return. + * @return The bytes of the additionalExperiments at the given index. + */ + public com.google.protobuf.ByteString getAdditionalExperimentsBytes(int index) { + return additionalExperiments_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -8290,6 +8365,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (contextWindow_ != 0L) { output.writeInt64(24, contextWindow_); } + for (int i = 0; i < additionalExperiments_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 25, additionalExperiments_.getRaw(i)); + } unknownFields.writeTo(output); } @@ -8372,6 +8451,14 @@ public int getSerializedSize() { if (contextWindow_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(24, contextWindow_); } + { + int dataSize = 0; + for (int i = 0; i < additionalExperiments_.size(); i++) { + dataSize += computeStringSizeNoTag(additionalExperiments_.getRaw(i)); + } + size += dataSize; + size += 2 * getAdditionalExperimentsList().size(); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -8422,6 +8509,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getQuantilesList().equals(other.getQuantilesList())) return false; if (!getValidationOptions().equals(other.getValidationOptions())) return false; + if (!getAdditionalExperimentsList().equals(other.getAdditionalExperimentsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -8479,6 +8567,10 @@ public int hashCode() { } hash = (37 * hash) + VALIDATION_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getValidationOptions().hashCode(); + if (getAdditionalExperimentsCount() > 0) { + hash = (37 * hash) + ADDITIONAL_EXPERIMENTS_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalExperimentsList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -8691,6 +8783,8 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000010); validationOptions_ = ""; + additionalExperiments_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); return this; } @@ -8775,6 +8869,11 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } result.quantiles_ = quantiles_; result.validationOptions_ = validationOptions_; + if (((bitField0_ & 0x00000020) != 0)) { + additionalExperiments_ = additionalExperiments_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.additionalExperiments_ = additionalExperiments_; onBuilt(); return result; } @@ -8940,6 +9039,16 @@ public Builder mergeFrom( validationOptions_ = other.validationOptions_; onChanged(); } + if (!other.additionalExperiments_.isEmpty()) { + if (additionalExperiments_.isEmpty()) { + additionalExperiments_ = other.additionalExperiments_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureAdditionalExperimentsIsMutable(); + additionalExperiments_.addAll(other.additionalExperiments_); + } + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -11621,6 +11730,175 @@ public Builder setValidationOptionsBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringList additionalExperiments_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAdditionalExperimentsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + additionalExperiments_ = + new com.google.protobuf.LazyStringArrayList(additionalExperiments_); + bitField0_ |= 0x00000020; + } + } + /** + * + * + *
+     * Additional experiment flags for the time series forcasting training.
+     * 
+ * + * repeated string additional_experiments = 25; + * + * @return A list containing the additionalExperiments. + */ + public com.google.protobuf.ProtocolStringList getAdditionalExperimentsList() { + return additionalExperiments_.getUnmodifiableView(); + } + /** + * + * + *
+     * Additional experiment flags for the time series forcasting training.
+     * 
+ * + * repeated string additional_experiments = 25; + * + * @return The count of additionalExperiments. + */ + public int getAdditionalExperimentsCount() { + return additionalExperiments_.size(); + } + /** + * + * + *
+     * Additional experiment flags for the time series forcasting training.
+     * 
+ * + * repeated string additional_experiments = 25; + * + * @param index The index of the element to return. + * @return The additionalExperiments at the given index. + */ + public java.lang.String getAdditionalExperiments(int index) { + return additionalExperiments_.get(index); + } + /** + * + * + *
+     * Additional experiment flags for the time series forcasting training.
+     * 
+ * + * repeated string additional_experiments = 25; + * + * @param index The index of the value to return. + * @return The bytes of the additionalExperiments at the given index. + */ + public com.google.protobuf.ByteString getAdditionalExperimentsBytes(int index) { + return additionalExperiments_.getByteString(index); + } + /** + * + * + *
+     * Additional experiment flags for the time series forcasting training.
+     * 
+ * + * repeated string additional_experiments = 25; + * + * @param index The index to set the value at. + * @param value The additionalExperiments to set. + * @return This builder for chaining. + */ + public Builder setAdditionalExperiments(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalExperimentsIsMutable(); + additionalExperiments_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Additional experiment flags for the time series forcasting training.
+     * 
+ * + * repeated string additional_experiments = 25; + * + * @param value The additionalExperiments to add. + * @return This builder for chaining. + */ + public Builder addAdditionalExperiments(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalExperimentsIsMutable(); + additionalExperiments_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Additional experiment flags for the time series forcasting training.
+     * 
+ * + * repeated string additional_experiments = 25; + * + * @param values The additionalExperiments to add. + * @return This builder for chaining. + */ + public Builder addAllAdditionalExperiments(java.lang.Iterable values) { + ensureAdditionalExperimentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, additionalExperiments_); + onChanged(); + return this; + } + /** + * + * + *
+     * Additional experiment flags for the time series forcasting training.
+     * 
+ * + * repeated string additional_experiments = 25; + * + * @return This builder for chaining. + */ + public Builder clearAdditionalExperiments() { + additionalExperiments_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Additional experiment flags for the time series forcasting training.
+     * 
+ * + * repeated string additional_experiments = 25; + * + * @param value The bytes of the additionalExperiments to add. + * @return This builder for chaining. + */ + public Builder addAdditionalExperimentsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAdditionalExperimentsIsMutable(); + additionalExperiments_.add(value); + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingInputsOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingInputsOrBuilder.java index 1fc1e1d01..8433bf5dd 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingInputsOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlForecastingInputsOrBuilder.java @@ -681,4 +681,55 @@ public interface AutoMlForecastingInputsOrBuilder * @return The bytes for validationOptions. */ com.google.protobuf.ByteString getValidationOptionsBytes(); + + /** + * + * + *
+   * Additional experiment flags for the time series forcasting training.
+   * 
+ * + * repeated string additional_experiments = 25; + * + * @return A list containing the additionalExperiments. + */ + java.util.List getAdditionalExperimentsList(); + /** + * + * + *
+   * Additional experiment flags for the time series forcasting training.
+   * 
+ * + * repeated string additional_experiments = 25; + * + * @return The count of additionalExperiments. + */ + int getAdditionalExperimentsCount(); + /** + * + * + *
+   * Additional experiment flags for the time series forcasting training.
+   * 
+ * + * repeated string additional_experiments = 25; + * + * @param index The index of the element to return. + * @return The additionalExperiments at the given index. + */ + java.lang.String getAdditionalExperiments(int index); + /** + * + * + *
+   * Additional experiment flags for the time series forcasting training.
+   * 
+ * + * repeated string additional_experiments = 25; + * + * @param index The index of the value to return. + * @return The bytes of the additionalExperiments at the given index. + */ + com.google.protobuf.ByteString getAdditionalExperimentsBytes(int index); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTablesInputs.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTablesInputs.java index 2ab60c8fa..08050be0a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTablesInputs.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTablesInputs.java @@ -38,6 +38,7 @@ private AutoMlTablesInputs() { transformations_ = java.util.Collections.emptyList(); optimizationObjective_ = ""; weightColumnName_ = ""; + additionalExperiments_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @@ -154,6 +155,16 @@ private AutoMlTablesInputs( exportEvaluatedDataItemsConfig_ = subBuilder.buildPartial(); } + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + additionalExperiments_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + additionalExperiments_.add(s); break; } default: @@ -173,6 +184,9 @@ private AutoMlTablesInputs( if (((mutable_bitField0_ & 0x00000001) != 0)) { transformations_ = java.util.Collections.unmodifiableList(transformations_); } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + additionalExperiments_ = additionalExperiments_.getUnmodifiableView(); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -10333,6 +10347,67 @@ public boolean hasExportEvaluatedDataItemsConfig() { return getExportEvaluatedDataItemsConfig(); } + public static final int ADDITIONAL_EXPERIMENTS_FIELD_NUMBER = 11; + private com.google.protobuf.LazyStringList additionalExperiments_; + /** + * + * + *
+   * Additional experiment flags for the Tables training pipeline.
+   * 
+ * + * repeated string additional_experiments = 11; + * + * @return A list containing the additionalExperiments. + */ + public com.google.protobuf.ProtocolStringList getAdditionalExperimentsList() { + return additionalExperiments_; + } + /** + * + * + *
+   * Additional experiment flags for the Tables training pipeline.
+   * 
+ * + * repeated string additional_experiments = 11; + * + * @return The count of additionalExperiments. + */ + public int getAdditionalExperimentsCount() { + return additionalExperiments_.size(); + } + /** + * + * + *
+   * Additional experiment flags for the Tables training pipeline.
+   * 
+ * + * repeated string additional_experiments = 11; + * + * @param index The index of the element to return. + * @return The additionalExperiments at the given index. + */ + public java.lang.String getAdditionalExperiments(int index) { + return additionalExperiments_.get(index); + } + /** + * + * + *
+   * Additional experiment flags for the Tables training pipeline.
+   * 
+ * + * repeated string additional_experiments = 11; + * + * @param index The index of the value to return. + * @return The bytes of the additionalExperiments at the given index. + */ + public com.google.protobuf.ByteString getAdditionalExperimentsBytes(int index) { + return additionalExperiments_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -10377,6 +10452,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (exportEvaluatedDataItemsConfig_ != null) { output.writeMessage(10, getExportEvaluatedDataItemsConfig()); } + for (int i = 0; i < additionalExperiments_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 11, additionalExperiments_.getRaw(i)); + } unknownFields.writeTo(output); } @@ -10422,6 +10501,14 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 10, getExportEvaluatedDataItemsConfig()); } + { + int dataSize = 0; + for (int i = 0; i < additionalExperiments_.size(); i++) { + dataSize += computeStringSizeNoTag(additionalExperiments_.getRaw(i)); + } + size += dataSize; + size += 1 * getAdditionalExperimentsList().size(); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -10453,6 +10540,7 @@ public boolean equals(final java.lang.Object obj) { if (!getExportEvaluatedDataItemsConfig().equals(other.getExportEvaluatedDataItemsConfig())) return false; } + if (!getAdditionalExperimentsList().equals(other.getAdditionalExperimentsList())) return false; if (!getAdditionalOptimizationObjectiveConfigCase() .equals(other.getAdditionalOptimizationObjectiveConfigCase())) return false; switch (additionalOptimizationObjectiveConfigCase_) { @@ -10500,6 +10588,10 @@ public int hashCode() { hash = (37 * hash) + EXPORT_EVALUATED_DATA_ITEMS_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getExportEvaluatedDataItemsConfig().hashCode(); } + if (getAdditionalExperimentsCount() > 0) { + hash = (37 * hash) + ADDITIONAL_EXPERIMENTS_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalExperimentsList().hashCode(); + } switch (additionalOptimizationObjectiveConfigCase_) { case 5: hash = (37 * hash) + OPTIMIZATION_OBJECTIVE_RECALL_VALUE_FIELD_NUMBER; @@ -10691,6 +10783,8 @@ public Builder clear() { exportEvaluatedDataItemsConfig_ = null; exportEvaluatedDataItemsConfigBuilder_ = null; } + additionalExperiments_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); additionalOptimizationObjectiveConfigCase_ = 0; additionalOptimizationObjectiveConfig_ = null; return this; @@ -10753,6 +10847,11 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } else { result.exportEvaluatedDataItemsConfig_ = exportEvaluatedDataItemsConfigBuilder_.build(); } + if (((bitField0_ & 0x00000002) != 0)) { + additionalExperiments_ = additionalExperiments_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.additionalExperiments_ = additionalExperiments_; result.additionalOptimizationObjectiveConfigCase_ = additionalOptimizationObjectiveConfigCase_; onBuilt(); @@ -10864,6 +10963,16 @@ public Builder mergeFrom( if (other.hasExportEvaluatedDataItemsConfig()) { mergeExportEvaluatedDataItemsConfig(other.getExportEvaluatedDataItemsConfig()); } + if (!other.additionalExperiments_.isEmpty()) { + if (additionalExperiments_.isEmpty()) { + additionalExperiments_ = other.additionalExperiments_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAdditionalExperimentsIsMutable(); + additionalExperiments_.addAll(other.additionalExperiments_); + } + onChanged(); + } switch (other.getAdditionalOptimizationObjectiveConfigCase()) { case OPTIMIZATION_OBJECTIVE_RECALL_VALUE: { @@ -12535,6 +12644,175 @@ public Builder clearExportEvaluatedDataItemsConfig() { return exportEvaluatedDataItemsConfigBuilder_; } + private com.google.protobuf.LazyStringList additionalExperiments_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAdditionalExperimentsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + additionalExperiments_ = + new com.google.protobuf.LazyStringArrayList(additionalExperiments_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Additional experiment flags for the Tables training pipeline.
+     * 
+ * + * repeated string additional_experiments = 11; + * + * @return A list containing the additionalExperiments. + */ + public com.google.protobuf.ProtocolStringList getAdditionalExperimentsList() { + return additionalExperiments_.getUnmodifiableView(); + } + /** + * + * + *
+     * Additional experiment flags for the Tables training pipeline.
+     * 
+ * + * repeated string additional_experiments = 11; + * + * @return The count of additionalExperiments. + */ + public int getAdditionalExperimentsCount() { + return additionalExperiments_.size(); + } + /** + * + * + *
+     * Additional experiment flags for the Tables training pipeline.
+     * 
+ * + * repeated string additional_experiments = 11; + * + * @param index The index of the element to return. + * @return The additionalExperiments at the given index. + */ + public java.lang.String getAdditionalExperiments(int index) { + return additionalExperiments_.get(index); + } + /** + * + * + *
+     * Additional experiment flags for the Tables training pipeline.
+     * 
+ * + * repeated string additional_experiments = 11; + * + * @param index The index of the value to return. + * @return The bytes of the additionalExperiments at the given index. + */ + public com.google.protobuf.ByteString getAdditionalExperimentsBytes(int index) { + return additionalExperiments_.getByteString(index); + } + /** + * + * + *
+     * Additional experiment flags for the Tables training pipeline.
+     * 
+ * + * repeated string additional_experiments = 11; + * + * @param index The index to set the value at. + * @param value The additionalExperiments to set. + * @return This builder for chaining. + */ + public Builder setAdditionalExperiments(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalExperimentsIsMutable(); + additionalExperiments_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Additional experiment flags for the Tables training pipeline.
+     * 
+ * + * repeated string additional_experiments = 11; + * + * @param value The additionalExperiments to add. + * @return This builder for chaining. + */ + public Builder addAdditionalExperiments(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalExperimentsIsMutable(); + additionalExperiments_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Additional experiment flags for the Tables training pipeline.
+     * 
+ * + * repeated string additional_experiments = 11; + * + * @param values The additionalExperiments to add. + * @return This builder for chaining. + */ + public Builder addAllAdditionalExperiments(java.lang.Iterable values) { + ensureAdditionalExperimentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, additionalExperiments_); + onChanged(); + return this; + } + /** + * + * + *
+     * Additional experiment flags for the Tables training pipeline.
+     * 
+ * + * repeated string additional_experiments = 11; + * + * @return This builder for chaining. + */ + public Builder clearAdditionalExperiments() { + additionalExperiments_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Additional experiment flags for the Tables training pipeline.
+     * 
+ * + * repeated string additional_experiments = 11; + * + * @param value The bytes of the additionalExperiments to add. + * @return This builder for chaining. + */ + public Builder addAdditionalExperimentsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAdditionalExperimentsIsMutable(); + additionalExperiments_.add(value); + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTablesInputsOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTablesInputsOrBuilder.java index 9d231473e..c1119f97a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTablesInputsOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlTablesInputsOrBuilder.java @@ -409,6 +409,57 @@ public interface AutoMlTablesInputsOrBuilder .ExportEvaluatedDataItemsConfigOrBuilder getExportEvaluatedDataItemsConfigOrBuilder(); + /** + * + * + *
+   * Additional experiment flags for the Tables training pipeline.
+   * 
+ * + * repeated string additional_experiments = 11; + * + * @return A list containing the additionalExperiments. + */ + java.util.List getAdditionalExperimentsList(); + /** + * + * + *
+   * Additional experiment flags for the Tables training pipeline.
+   * 
+ * + * repeated string additional_experiments = 11; + * + * @return The count of additionalExperiments. + */ + int getAdditionalExperimentsCount(); + /** + * + * + *
+   * Additional experiment flags for the Tables training pipeline.
+   * 
+ * + * repeated string additional_experiments = 11; + * + * @param index The index of the element to return. + * @return The additionalExperiments at the given index. + */ + java.lang.String getAdditionalExperiments(int index); + /** + * + * + *
+   * Additional experiment flags for the Tables training pipeline.
+   * 
+ * + * repeated string additional_experiments = 11; + * + * @param index The index of the value to return. + * @return The bytes of the additionalExperiments at the given index. + */ + com.google.protobuf.ByteString getAdditionalExperimentsBytes(int index); + public com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlTablesInputs .AdditionalOptimizationObjectiveConfigCase getAdditionalOptimizationObjectiveConfigCase(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoActionRecognitionInputs.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoActionRecognitionInputs.java index d733bff74..8aa295566 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoActionRecognitionInputs.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/AutoMlVideoActionRecognitionInputs.java @@ -150,6 +150,30 @@ public enum ModelType implements com.google.protobuf.ProtocolMessageEnum { * MOBILE_VERSATILE_1 = 2; */ MOBILE_VERSATILE_1(2), + /** + * + * + *
+     * A model that, in addition to being available within Google Cloud, can
+     * also be exported (see ModelService.ExportModel) to a Jetson device
+     * afterwards.
+     * 
+ * + * MOBILE_JETSON_VERSATILE_1 = 3; + */ + MOBILE_JETSON_VERSATILE_1(3), + /** + * + * + *
+     * A model that, in addition to being available within Google Cloud, can
+     * also be exported (see ModelService.ExportModel) as a TensorFlow or
+     * TensorFlow Lite model and used on a Coral device afterwards.
+     * 
+ * + * MOBILE_CORAL_VERSATILE_1 = 4; + */ + MOBILE_CORAL_VERSATILE_1(4), UNRECOGNIZED(-1), ; @@ -186,6 +210,30 @@ public enum ModelType implements com.google.protobuf.ProtocolMessageEnum { * MOBILE_VERSATILE_1 = 2; */ public static final int MOBILE_VERSATILE_1_VALUE = 2; + /** + * + * + *
+     * A model that, in addition to being available within Google Cloud, can
+     * also be exported (see ModelService.ExportModel) to a Jetson device
+     * afterwards.
+     * 
+ * + * MOBILE_JETSON_VERSATILE_1 = 3; + */ + public static final int MOBILE_JETSON_VERSATILE_1_VALUE = 3; + /** + * + * + *
+     * A model that, in addition to being available within Google Cloud, can
+     * also be exported (see ModelService.ExportModel) as a TensorFlow or
+     * TensorFlow Lite model and used on a Coral device afterwards.
+     * 
+ * + * MOBILE_CORAL_VERSATILE_1 = 4; + */ + public static final int MOBILE_CORAL_VERSATILE_1_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -217,6 +265,10 @@ public static ModelType forNumber(int value) { return CLOUD; case 2: return MOBILE_VERSATILE_1; + case 3: + return MOBILE_JETSON_VERSATILE_1; + case 4: + return MOBILE_CORAL_VERSATILE_1; default: return null; } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/accelerator_type.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/accelerator_type.proto index 612becf55..92b01fae6 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/accelerator_type.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/accelerator_type.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1; import "google/api/annotations.proto"; +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 = "AcceleratorTypeProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Represents a hardware accelerator type. enum AcceleratorType { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/annotation.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/annotation.proto index 9ed339859..afef5731b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/annotation.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/annotation.proto @@ -18,16 +18,18 @@ package google.cloud.aiplatform.v1beta1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; - import "google/cloud/aiplatform/v1beta1/user_action_reference.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "AnnotationProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Used to assign specific AnnotationSpec to a particular area of a DataItem or // the whole part of the DataItem. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/annotation_spec.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/annotation_spec.proto index 03d535d4f..a23a1ec09 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/annotation_spec.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/annotation_spec.proto @@ -21,10 +21,13 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "AnnotationSpecProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Identifies a concept with which DataItems may be annotated with. message AnnotationSpec { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/artifact.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/artifact.proto index 205faecee..b308ae163 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/artifact.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/artifact.proto @@ -23,10 +23,13 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "ArtifactProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Instance of a general artifact. message Artifact { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto index ddb7c0ac2..c36aba529 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto @@ -31,10 +31,13 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; import "google/api/annotations.proto"; +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 = "BatchPredictionJobProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // A job that uses a [Model][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model] to produce predictions // on multiple [input instances][google.cloud.aiplatform.v1beta1.BatchPredictionJob.input_config]. If @@ -93,8 +96,7 @@ message BatchPredictionJob { // `errors_N.` files are created (N depends on total number // of failed predictions). These files contain the failed instances, // as per their schema, followed by an additional `error` field which as - // value has - // [`google.rpc.Status`](Status) + // value has [google.rpc.Status][google.rpc.Status] // containing only `code` and `message` fields. GcsDestination gcs_destination = 2; @@ -114,7 +116,7 @@ message BatchPredictionJob { // prediction schemata. The `errors` table contains rows for which the // prediction has failed, it has instance columns, as per the // instance schema, followed by a single "errors" column, which as values - // has [`google.rpc.Status`](Status) + // has [google.rpc.Status][google.rpc.Status] // represented as a STRUCT, and containing only `code` and `message`. BigQueryDestination bigquery_destination = 3; } @@ -139,6 +141,12 @@ message BatchPredictionJob { // format, into which the prediction output is written. string bigquery_output_dataset = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } + + // Output only. The name of the BigQuery table created, in + // `predictions_` + // format, into which the prediction output is written. + // Can be used by UI to generate the BigQuery output path, for example. + string bigquery_output_table = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Output only. Resource name of the BatchPredictionJob. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/completion_stats.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/completion_stats.proto index 9e49dab97..2c54b9612 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/completion_stats.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/completion_stats.proto @@ -20,10 +20,13 @@ import "google/api/field_behavior.proto"; import "google/rpc/status.proto"; import "google/api/annotations.proto"; +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 = "CompletionStatsProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Success and error statistics of processing multiple entities // (for example, DataItems or structured data rows) in batch. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/context.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/context.proto index 2b94566fb..699167df4 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/context.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/context.proto @@ -23,10 +23,13 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "ContextProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Instance of a general context. message Context { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto index e179e5ff3..a23a36cea 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto @@ -28,10 +28,13 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; import "google/api/annotations.proto"; +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 = "CustomJobProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Represents a job that runs custom workloads such as a Docker container or a // Python package. A CustomJob can have multiple worker pools and each worker @@ -88,6 +91,11 @@ message CustomJob { // then all resources created by the CustomJob will be encrypted with the // provided encryption key. EncryptionSpec encryption_spec = 12; + + // Output only. The web access URIs for the training job. + // The keys are the node names in the training jobs, e.g. workerpool0-0. + // The values are the URIs for each node's web portal in the job. + map web_access_uris = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Represents the spec of a CustomJob. @@ -154,6 +162,10 @@ message CustomJobSpec { type: "aiplatform.googleapis.com/Tensorboard" } ]; + + // Optional. Vertex AI will enable web portal access to the containers. The portals + // can be accessed on web via the URLs given by [web_access_uris][]. + bool enable_web_access = 10 [(google.api.field_behavior) = OPTIONAL]; } // Represents the spec of a worker pool in a job. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/data_item.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/data_item.proto index 0981483d7..5c63ddfc7 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/data_item.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/data_item.proto @@ -18,15 +18,17 @@ package google.cloud.aiplatform.v1beta1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; - import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "DataItemProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // A piece of data in a Dataset. Could be an image, a video, a document or plain // text. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/data_labeling_job.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/data_labeling_job.proto index 6e3a208e1..5c2de6651 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/data_labeling_job.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/data_labeling_job.proto @@ -28,10 +28,13 @@ import "google/rpc/status.proto"; import "google/type/money.proto"; import "google/api/annotations.proto"; +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 = "DataLabelingJobProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // DataLabelingJob is used to trigger a human labeling job on unlabeled data // from the following Dataset: diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset.proto index 244cf121b..cfdf42fee 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset.proto @@ -24,10 +24,13 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "DatasetProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // A collection of DataItems and Annotations on them. message Dataset { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_service.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_service.proto index 7e3f83bcb..057e10224 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_service.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_service.proto @@ -29,10 +29,13 @@ import "google/cloud/aiplatform/v1beta1/training_pipeline.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; +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 = "DatasetServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; service DatasetService { option (google.api.default_host) = "aiplatform.googleapis.com"; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployed_index_ref.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployed_index_ref.proto index 22bd38d33..ed7cf7371 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployed_index_ref.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployed_index_ref.proto @@ -20,10 +20,13 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/api/annotations.proto"; +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 = "DeployedIndexRefProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Points to a DeployedIndex. message DeployedIndexRef { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployed_model_ref.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployed_model_ref.proto index a33a167d2..1c85e8efd 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployed_model_ref.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployed_model_ref.proto @@ -20,10 +20,13 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/api/annotations.proto"; +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 = "DeployedModelNameProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Points to a DeployedModel. message DeployedModelRef { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/encryption_spec.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/encryption_spec.proto index d8fb9399b..d74e3b938 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/encryption_spec.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/encryption_spec.proto @@ -19,10 +19,13 @@ package google.cloud.aiplatform.v1beta1; import "google/api/field_behavior.proto"; import "google/api/annotations.proto"; +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 = "EncryptionSpecProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Represents a customer-managed encryption key spec that can be applied to // a top-level resource. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto index 86d4eb198..0aa153e89 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto @@ -25,10 +25,13 @@ import "google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "EndpointProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Models are deployed into it, and afterwards Endpoint is called to obtain // predictions and explanations. @@ -87,6 +90,21 @@ message Endpoint { // Endpoint and all sub-resources of this Endpoint will be secured by // this key. EncryptionSpec encryption_spec = 10; + + // The full name of the Google Compute Engine + // [network](/compute/docs/networks-and-firewalls#networks) to which the + // Endpoint should be peered. + // + // Private services access must already be configured for the network. If left + // unspecified, the Endpoint is not peered with any network. + // + // [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): + // projects/{project}/global/networks/{network}. + // Where {project} is a project number, as in '12345', and {network} is + // network name. + string network = 13 [(google.api.resource_reference) = { + type: "compute.googleapis.com/Network" + }]; } // A deployment of a Model. Endpoints contain one or more DeployedModels. @@ -158,4 +176,22 @@ message DeployedModel { // receives prediction requests at a high queries per second rate (QPS). // Estimate your costs before enabling this option. bool enable_access_logging = 13; + + // Output only. Provide paths for users to send predict/explain/health requests directly to + // the deployed model services running on Cloud via private services access. + // This field is populated if [network][google.cloud.aiplatform.v1beta1.Endpoint.network] is configured. + PrivateEndpoints private_endpoints = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// PrivateEndpoints is used to provide paths for users to send +// requests via private services access. +message PrivateEndpoints { + // Output only. Http(s) path to send prediction requests. + string predict_http_uri = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Http(s) path to send explain requests. + string explain_http_uri = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Http(s) path to send health check requests. + string health_http_uri = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint_service.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint_service.proto index f9c5a4bca..264673ade 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint_service.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint_service.proto @@ -25,10 +25,13 @@ import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; +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 = "EndpointServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; service EndpointService { option (google.api.default_host) = "aiplatform.googleapis.com"; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/entity_type.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/entity_type.proto index cbd33b061..0a5c7960b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/entity_type.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/entity_type.proto @@ -23,10 +23,13 @@ import "google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "EntityTypeProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // An entity type is a type of object in a system that needs to be modeled and // have stored information about. For example, driver is an entity type, and diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/env_var.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/env_var.proto index a110cf47f..e62c594b8 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/env_var.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/env_var.proto @@ -19,10 +19,13 @@ package google.cloud.aiplatform.v1beta1; import "google/api/field_behavior.proto"; import "google/api/annotations.proto"; +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 = "EnvVarProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Represents an environment variable present in a Container or Python Module. message EnvVar { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/event.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/event.proto index 5b7d27500..c2d7abbd0 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/event.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/event.proto @@ -21,10 +21,13 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "EventProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // An edge describing the relationship between an Artifact and an Execution in // a lineage graph. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/execution.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/execution.proto index 4f83cce1e..bf56e9c3b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/execution.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/execution.proto @@ -23,10 +23,13 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "ExecutionProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Instance of a general execution. message Execution { @@ -51,6 +54,12 @@ message Execution { // The Execution has failed FAILED = 4; + + // The Execution completed through Cache hit. + CACHED = 5; + + // The Execution was cancelled. + CANCELLED = 6; } // Output only. The resource name of the Execution. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/explanation.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/explanation.proto index 7cb2d9b13..f689e5477 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/explanation.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/explanation.proto @@ -22,10 +22,13 @@ import "google/cloud/aiplatform/v1beta1/io.proto"; import "google/protobuf/struct.proto"; import "google/api/annotations.proto"; +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 = "ExplanationProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Explanation of a prediction (provided in [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions]) // produced by the Model on a given [instance][google.cloud.aiplatform.v1beta1.ExplainRequest.instances]. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/explanation_metadata.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/explanation_metadata.proto index 5d725fb2a..376d3ff85 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/explanation_metadata.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/explanation_metadata.proto @@ -20,10 +20,13 @@ import "google/api/field_behavior.proto"; import "google/protobuf/struct.proto"; import "google/api/annotations.proto"; +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 = "ExplanationMetadataProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Metadata describing the Model's input and output for explanation. message ExplanationMetadata { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature.proto index f5a275c9e..dc17f1859 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature.proto @@ -23,10 +23,13 @@ import "google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "FeatureProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Feature Metadata information that describes an attribute of an entity type. // For example, apple is an entity type, and color is a feature that describes diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto index 4dd851124..051b93b59 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto @@ -19,10 +19,13 @@ package google.cloud.aiplatform.v1beta1; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "FeatureMonitoringStatsProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Stats and Anomaly generated at specific timestamp for specific Feature. // The start_time and end_time are used to define the time range of the dataset diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_selector.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_selector.proto index 935e2c2dc..74d9aa693 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_selector.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_selector.proto @@ -19,10 +19,13 @@ package google.cloud.aiplatform.v1beta1; import "google/api/field_behavior.proto"; import "google/api/annotations.proto"; +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 = "FeatureSelectorProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Matcher for Features of an EntityType by Feature ID. message IdMatcher { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore.proto index c3f527ee5..bfd880396 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore.proto @@ -18,13 +18,17 @@ 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/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "FeaturestoreProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Featurestore configuration information on how the Featurestore is configured. message Featurestore { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto index 12c82ad9b..2803625ba 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto @@ -19,10 +19,13 @@ package google.cloud.aiplatform.v1beta1; import "google/protobuf/duration.proto"; import "google/api/annotations.proto"; +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 = "FeaturestoreMonitoringProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Configuration of how features in Featurestore are monitored. message FeaturestoreMonitoringConfig { @@ -47,6 +50,16 @@ message FeaturestoreMonitoringConfig { // Configuration of the snapshot analysis based monitoring pipeline // running interval. The value is rolled up to full day. google.protobuf.Duration monitoring_interval = 2; + + // Configuration of the snapshot analysis based monitoring pipeline + // running interval. The value indicates number of days. + // If both + // [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days] + // and [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval] + // are set when creating/updating EntityTypes/Features, + // [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days] + // will be used. + int32 monitoring_interval_days = 3; } // The config for Snapshot Analysis Based Feature Monitoring. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_online_service.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_online_service.proto index c0b714417..c5d217175 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_online_service.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_online_service.proto @@ -24,10 +24,13 @@ import "google/cloud/aiplatform/v1beta1/feature_selector.proto"; import "google/cloud/aiplatform/v1beta1/types.proto"; import "google/protobuf/timestamp.proto"; +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 = "FeaturestoreOnlineServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // A service for serving online feature values. service FeaturestoreOnlineServingService { @@ -157,12 +160,13 @@ message StreamingReadFeatureValuesRequest { } ]; - // Required. IDs of entities to read Feature values of. For example, - // for a machine learning model predicting user clicks on a website, an - // entity ID could be "user_123". + // Required. IDs of entities to read Feature values of. The maximum number of IDs is + // 100. For example, for a machine learning model predicting user clicks on a + // website, an entity ID could be "user_123". repeated string entity_ids = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. Selector choosing Features of the target EntityType. + // Required. Selector choosing Features of the target EntityType. Feature IDs will be + // deduplicated. FeatureSelector feature_selector = 3 [(google.api.field_behavior) = REQUIRED]; } @@ -208,8 +212,8 @@ message FeatureValue { bytes bytes_value = 13; } - // Output only. Metadata of feature value. - Metadata metadata = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Metadata of feature value. + Metadata metadata = 14; } // Container for list of values. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_service.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_service.proto index 6ab91fe04..16c56b82e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_service.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_service.proto @@ -31,10 +31,13 @@ import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; +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 = "FeaturestoreServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // The service that handles CRUD and List for resources for Featurestore. service FeaturestoreService { @@ -518,6 +521,13 @@ message ImportFeatureValuesResponse { // Request message for [FeaturestoreService.BatchReadFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchReadFeatureValues]. // (- Next Id: 6 -) message BatchReadFeatureValuesRequest { + // Describe pass-through fields in read_instance source. + message PassThroughField { + // Required. The name of the field in the CSV header or the name of the column in + // BigQuery table. The naming restriction is the same as [Feature.name][google.cloud.aiplatform.v1beta1.Feature.name]. + string field_name = 1 [(google.api.field_behavior) = REQUIRED]; + } + // Selects Features of an EntityType to read values of and specifies read // settings. message EntityTypeSpec { @@ -559,6 +569,9 @@ message BatchReadFeatureValuesRequest { // Values in the timestamp column must use the RFC 3339 format, e.g. // `2012-07-30T10:43:17.123Z`. CsvSource csv_read_instances = 3; + + // Similar to csv_read_instances, but from BigQuery source. + BigQuerySource bigquery_read_instances = 5; } // Required. The resource name of the Featurestore from which to query Feature values. @@ -574,10 +587,19 @@ message BatchReadFeatureValuesRequest { // Required. Specifies output location and format. FeatureValueDestination destination = 4 [(google.api.field_behavior) = REQUIRED]; + // When not empty, the specified fields in the *_read_instances source will be + // joined as-is in the output, in addition to those fields from the + // Featurestore Entity. + // + // For BigQuery source, the type of the pass-through values will be + // automatically inferred. For CSV source, the pass-through values will be + // passed as opaque bytes. + repeated PassThroughField pass_through_fields = 8; + // Required. Specifies EntityType grouping Features to read values of and settings. // Each EntityType referenced in // [BatchReadFeatureValuesRequest.entity_type_specs] must have a column - // specifying entity IDs in tha EntityType in + // specifying entity IDs in the EntityType in // [BatchReadFeatureValuesRequest.request][] . repeated EntityTypeSpec entity_type_specs = 7 [(google.api.field_behavior) = REQUIRED]; } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/hyperparameter_tuning_job.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/hyperparameter_tuning_job.proto index f3fd3d1c9..aa4a633d0 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/hyperparameter_tuning_job.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/hyperparameter_tuning_job.proto @@ -26,10 +26,13 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; import "google/api/annotations.proto"; +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 = "HyperparameterTuningJobProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Represents a HyperparameterTuningJob. A HyperparameterTuningJob // has a Study specification and multiple CustomJobs with identical diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index.proto index a730c3c6a..0cc4df176 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index.proto @@ -23,10 +23,13 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "IndexProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // A representation of a collection of database items organized in a way that // allows for approximate nearest neighbor (a.k.a ANN) algorithms search. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index_endpoint.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index_endpoint.proto index c5d988483..7604f5475 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index_endpoint.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index_endpoint.proto @@ -23,10 +23,13 @@ import "google/cloud/aiplatform/v1beta1/machine_resources.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "IndexEndpointProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Indexes are deployed into it. An IndexEndpoint can have multiple // DeployedIndexes. @@ -157,6 +160,18 @@ message DeployedIndex { // Optional. If set, the authentication is enabled for the private endpoint. DeployedIndexAuthConfig deployed_index_auth_config = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A list of reserved ip ranges under the VPC network that can be + // used for this DeployedIndex. + // + // If set, we will deploy the index within the provided ip ranges. Otherwise, + // the index might be deployed to any ip ranges under the provided VPC + // network. + // + // The value sohuld be the name of the address + // (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) + // Example: 'vertex-ai-ip-range'. + repeated string reserved_ip_ranges = 10 [(google.api.field_behavior) = OPTIONAL]; } // Used to set up the auth on the DeployedIndex's private endpoint. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index_endpoint_service.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index_endpoint_service.proto index e32ddb062..998ad11c8 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index_endpoint_service.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index_endpoint_service.proto @@ -25,10 +25,13 @@ import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; +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 = "IndexEndpointServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // A service for managing Vertex AI's IndexEndpoints. service IndexEndpointService { @@ -252,6 +255,9 @@ message DeployIndexResponse { message DeployIndexOperationMetadata { // The operation generic information. GenericOperationMetadata generic_metadata = 1; + + // The unique index id specified by user + string deployed_index_id = 2; } // Request message for [IndexEndpointService.UndeployIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.UndeployIndex]. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index_service.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index_service.proto index 00974fd94..09391d130 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index_service.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index_service.proto @@ -25,10 +25,13 @@ import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; +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 = "IndexServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // A service for creating and managing Vertex AI's Index resources. service IndexService { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/io.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/io.proto index 69a773b0f..8027a8e05 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/io.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/io.proto @@ -19,10 +19,13 @@ package google.cloud.aiplatform.v1beta1; import "google/api/field_behavior.proto"; import "google/api/annotations.proto"; +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 = "IoProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // The storage details for Avro input content. message AvroSource { @@ -72,7 +75,8 @@ message BigQueryDestination { // Accepted forms: // // * BigQuery path. For example: - // `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`. + // `bq://projectId` or `bq://projectId.bqDatasetId` or + // `bq://projectId.bqDatasetId.bqTableId`. string output_uri = 1 [(google.api.field_behavior) = REQUIRED]; } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/job_service.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/job_service.proto index a5e24a452..f465773cf 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/job_service.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/job_service.proto @@ -31,10 +31,13 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; +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 = "JobServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // A service for creating and managing Vertex AI's jobs. service JobService { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/job_state.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/job_state.proto index c2ac30819..9efe88bf8 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/job_state.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/job_state.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1; import "google/api/annotations.proto"; +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 = "JobStateProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Describes the state of a job. enum JobState { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto index 911918e04..9d02558ac 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/lineage_subgraph.proto @@ -22,10 +22,13 @@ import "google/cloud/aiplatform/v1beta1/event.proto"; import "google/cloud/aiplatform/v1beta1/execution.proto"; import "google/api/annotations.proto"; +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 = "LineageSubgraphProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // A subgraph of the overall lineage graph. Event edges connect Artifact and // Execution nodes. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto index a37bd073f..1a7ef3f23 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto @@ -20,10 +20,13 @@ import "google/api/field_behavior.proto"; import "google/cloud/aiplatform/v1beta1/accelerator_type.proto"; import "google/api/annotations.proto"; +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 = "MachineResourcesProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Specification of a single machine. message MachineSpec { @@ -58,12 +61,11 @@ message DedicatedResources { ]; // Required. Immutable. The minimum number of machine replicas this DeployedModel will be always - // deployed on. If traffic against it increases, it may dynamically be + // deployed on. This value must be greater than or equal to 1. + // + // If traffic against the DeployedModel increases, it may dynamically be // deployed onto more replicas, and as traffic decreases, some of these extra // replicas may be freed. - // Note: if [machine_spec.accelerator_count][google.cloud.aiplatform.v1beta1.MachineSpec.accelerator_count] is - // above 0, currently the model will be always deployed precisely on - // [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count]. int32 min_replica_count = 2 [ (google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = IMMUTABLE diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto index 67ff72228..4c7594ce4 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto @@ -19,10 +19,13 @@ package google.cloud.aiplatform.v1beta1; import "google/api/field_behavior.proto"; import "google/api/annotations.proto"; +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 = "ManualBatchTuningParametersProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Manual batch tuning parameters. message ManualBatchTuningParameters { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/metadata_schema.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/metadata_schema.proto index adbbc878a..f6a4157f8 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/metadata_schema.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/metadata_schema.proto @@ -21,10 +21,13 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "MetadataSchemaProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Instance of a general MetadataSchema. message MetadataSchema { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/metadata_service.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/metadata_service.proto index 366bf450e..9c41e0a6b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/metadata_service.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/metadata_service.proto @@ -31,10 +31,13 @@ import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; +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 = "MetadataServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Service for reading and writing metadata entries. service MetadataService { @@ -116,6 +119,31 @@ service MetadataService { option (google.api.method_signature) = "artifact,update_mask"; } + // Deletes an Artifact. + rpc DeleteArtifact(DeleteArtifactRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/metadataStores/*/artifacts/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Purges Artifacts. + rpc PurgeArtifacts(PurgeArtifactsRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*/metadataStores/*}/artifacts:purge" + body: "*" + }; + option (google.api.method_signature) = "parent"; + option (google.longrunning.operation_info) = { + response_type: "PurgeArtifactsResponse" + metadata_type: "PurgeArtifactsMetadata" + }; + } + // Creates a Context associated with a MetadataStore. rpc CreateContext(CreateContextRequest) returns (Context) { option (google.api.http) = { @@ -162,6 +190,19 @@ service MetadataService { }; } + // Purges Contexts. + rpc PurgeContexts(PurgeContextsRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*/metadataStores/*}/contexts:purge" + body: "*" + }; + option (google.api.method_signature) = "parent"; + option (google.longrunning.operation_info) = { + response_type: "PurgeContextsResponse" + metadata_type: "PurgeContextsMetadata" + }; + } + // Adds a set of Artifacts and Executions to a Context. If any of the // Artifacts or Executions have already been added to a Context, they are // simply skipped. @@ -229,6 +270,31 @@ service MetadataService { option (google.api.method_signature) = "execution,update_mask"; } + // Deletes an Execution. + rpc DeleteExecution(DeleteExecutionRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/metadataStores/*/executions/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Purges Executions. + rpc PurgeExecutions(PurgeExecutionsRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*/metadataStores/*}/executions:purge" + body: "*" + }; + option (google.api.method_signature) = "parent"; + option (google.longrunning.operation_info) = { + response_type: "PurgeExecutionsResponse" + metadata_type: "PurgeExecutionsMetadata" + }; + } + // Adds Events to the specified Execution. An Event indicates whether an // Artifact was used as an input or output for an Execution. If an Event // already exists between the Execution and the Artifact, the Event is @@ -514,6 +580,66 @@ message UpdateArtifactRequest { bool allow_missing = 3; } +// Request message for [MetadataService.DeleteArtifact][google.cloud.aiplatform.v1beta1.MetadataService.DeleteArtifact]. +message DeleteArtifactRequest { + // Required. The resource name of the Artifact to delete. + // Format: + // projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Artifact" + } + ]; + + // Optional. The etag of the Artifact to delete. + // If this is provided, it must match the server's etag. Otherwise, the + // request will fail with a FAILED_PRECONDITION. + string etag = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [MetadataService.PurgeArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeArtifacts]. +message PurgeArtifactsRequest { + // Required. The metadata store to purge Artifacts from. + // Format: + // projects/{project}/locations/{location}/metadataStores/{metadatastore} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "aiplatform.googleapis.com/Artifact" + } + ]; + + // Required. A required filter matching the Artifacts to be purged. + // E.g., update_time <= 2020-11-19T11:30:00-04:00. + string filter = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Flag to indicate to actually perform the purge. + // If `force` is set to false, the method will return a sample of + // Artifact names that would be deleted. + bool force = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for [MetadataService.PurgeArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeArtifacts]. +message PurgeArtifactsResponse { + // The number of Artifacts that this request deleted (or, if `force` is false, + // the number of Artifacts that will be deleted). This can be an estimate. + int64 purge_count = 1; + + // A sample of the Artifact names that will be deleted. + // Only populated if `force` is set to false. The maximum number of samples is + // 100 (it is possible to return fewer). + repeated string purge_sample = 2 [(google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Artifact" + }]; +} + +// Details of operations that perform [MetadataService.PurgeArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeArtifacts]. +message PurgeArtifactsMetadata { + // Operation metadata for purging Artifacts. + GenericOperationMetadata generic_metadata = 1; +} + // Request message for [MetadataService.CreateContext][google.cloud.aiplatform.v1beta1.MetadataService.CreateContext]. message CreateContextRequest { // Required. The resource name of the MetadataStore where the Context should be @@ -641,7 +767,7 @@ message UpdateContextRequest { // Request message for [MetadataService.DeleteContext][google.cloud.aiplatform.v1beta1.MetadataService.DeleteContext]. message DeleteContextRequest { - // Required. The resource name of the Context to retrieve. + // Required. The resource name of the Context to delete. // Format: // projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} string name = 1 [ @@ -651,11 +777,56 @@ message DeleteContextRequest { } ]; - // If set to true, any child resources of this Context will be deleted. - // (Otherwise, the request will fail with a FAILED_PRECONDITION error if the - // Context has any child resources, such as another Context, Artifact, or - // Execution). + // The force deletion semantics is still undefined. + // Users should not use this field. bool force = 2; + + // Optional. The etag of the Context to delete. + // If this is provided, it must match the server's etag. Otherwise, the + // request will fail with a FAILED_PRECONDITION. + string etag = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [MetadataService.PurgeContexts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeContexts]. +message PurgeContextsRequest { + // Required. The metadata store to purge Contexts from. + // Format: + // projects/{project}/locations/{location}/metadataStores/{metadatastore} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "aiplatform.googleapis.com/Context" + } + ]; + + // Required. A required filter matching the Contexts to be purged. + // E.g., update_time <= 2020-11-19T11:30:00-04:00. + string filter = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Flag to indicate to actually perform the purge. + // If `force` is set to false, the method will return a sample of + // Context names that would be deleted. + bool force = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for [MetadataService.PurgeContexts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeContexts]. +message PurgeContextsResponse { + // The number of Contexts that this request deleted (or, if `force` is false, + // the number of Contexts that will be deleted). This can be an estimate. + int64 purge_count = 1; + + // A sample of the Context names that will be deleted. + // Only populated if `force` is set to false. The maximum number of samples is + // 100 (it is possible to return fewer). + repeated string purge_sample = 2 [(google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Context" + }]; +} + +// Details of operations that perform [MetadataService.PurgeContexts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeContexts]. +message PurgeContextsMetadata { + // Operation metadata for purging Contexts. + GenericOperationMetadata generic_metadata = 1; } // Request message for [MetadataService.AddContextArtifactsAndExecutions][google.cloud.aiplatform.v1beta1.MetadataService.AddContextArtifactsAndExecutions]. @@ -857,6 +1028,67 @@ message UpdateExecutionRequest { bool allow_missing = 3; } +// Request message for [MetadataService.DeleteExecution][google.cloud.aiplatform.v1beta1.MetadataService.DeleteExecution]. +message DeleteExecutionRequest { + // Required. The resource name of the Execution to delete. + // Format: + // projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Execution" + } + ]; + + // Optional. The etag of the Execution to delete. + // If this is provided, it must match the server's etag. Otherwise, the + // request will fail with a FAILED_PRECONDITION. + string etag = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [MetadataService.PurgeExecutions][google.cloud.aiplatform.v1beta1.MetadataService.PurgeExecutions]. +message PurgeExecutionsRequest { + // Required. The metadata store to purge Executions from. + // Format: + // projects/{project}/locations/{location}/metadataStores/{metadatastore} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "aiplatform.googleapis.com/Execution" + } + ]; + + // Required. A required filter matching the Executions to be purged. + // E.g., update_time <= 2020-11-19T11:30:00-04:00. + string filter = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Flag to indicate to actually perform the purge. + // If `force` is set to false, the method will return a sample of + // Execution names that would be deleted. + bool force = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for [MetadataService.PurgeExecutions][google.cloud.aiplatform.v1beta1.MetadataService.PurgeExecutions]. +message PurgeExecutionsResponse { + // The number of Executions that this request deleted (or, if `force` is + // false, the number of Executions that will be deleted). This can be an + // estimate. + int64 purge_count = 1; + + // A sample of the Execution names that will be deleted. + // Only populated if `force` is set to false. The maximum number of samples is + // 100 (it is possible to return fewer). + repeated string purge_sample = 2 [(google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Execution" + }]; +} + +// Details of operations that perform [MetadataService.PurgeExecutions][google.cloud.aiplatform.v1beta1.MetadataService.PurgeExecutions]. +message PurgeExecutionsMetadata { + // Operation metadata for purging Executions. + GenericOperationMetadata generic_metadata = 1; +} + // Request message for [MetadataService.AddExecutionEvents][google.cloud.aiplatform.v1beta1.MetadataService.AddExecutionEvents]. message AddExecutionEventsRequest { // Required. The resource name of the Execution that the Events connect diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/metadata_store.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/metadata_store.proto index 571e8a8a5..a7fc66709 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/metadata_store.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/metadata_store.proto @@ -22,10 +22,13 @@ import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "MetadataProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Instance of a metadata store. Contains a set of metadata that can be // queried. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/migratable_resource.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/migratable_resource.proto index ace0c4736..5e6f5f697 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/migratable_resource.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/migratable_resource.proto @@ -21,10 +21,13 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "MigratableResourceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; option (google.api.resource_definition) = { type: "ml.googleapis.com/Version" pattern: "projects/{project}/models/{model}/versions/{version}" diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/migration_service.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/migration_service.proto index 76ad14b27..23e0470fa 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/migration_service.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/migration_service.proto @@ -27,10 +27,13 @@ import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/longrunning/operations.proto"; import "google/rpc/status.proto"; +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 = "MigrationServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // A service that migrates resources from automl.googleapis.com, // datalabeling.googleapis.com and ml.googleapis.com to Vertex AI. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model.proto index e77f6a94d..d450dbea9 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model.proto @@ -27,10 +27,13 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "ModelProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // A trained machine learning Model. message Model { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto index 260b20c65..7c2a3306e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto @@ -18,6 +18,7 @@ package google.cloud.aiplatform.v1beta1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; import "google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto"; import "google/cloud/aiplatform/v1beta1/io.proto"; import "google/cloud/aiplatform/v1beta1/job_state.proto"; @@ -27,10 +28,13 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "ModelDeploymentMonitoringJobProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // The Model Monitoring Objective types. enum ModelDeploymentMonitoringObjectiveType { @@ -107,7 +111,7 @@ message ModelDeploymentMonitoringJob { MonitoringScheduleState schedule_state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. The config for monitoring objectives. This is a per DeployedModel config. - // Each DeployedModel needs to be configed separately. + // Each DeployedModel needs to be configured separately. repeated ModelDeploymentMonitoringObjectiveConfig model_deployment_monitoring_objective_configs = 6 [(google.api.field_behavior) = REQUIRED]; // Required. Schedule config for running the monitoring job. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_evaluation.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_evaluation.proto index 09e33a824..148458313 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_evaluation.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_evaluation.proto @@ -23,10 +23,13 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "ModelEvaluationProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // A collection of metrics calculated by comparing Model's predictions on all of // the test data against annotations from the test data. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto index 0ac81cddc..8a882c435 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto @@ -22,10 +22,13 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "ModelEvaluationSliceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // A collection of metrics calculated by comparing Model's predictions on a // slice of the test data against ground truth annotations. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_monitoring.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_monitoring.proto index a5e8717e7..bdddc8da0 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_monitoring.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_monitoring.proto @@ -20,10 +20,13 @@ import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/io.proto"; import "google/api/annotations.proto"; +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 = "ModelMonitoringProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Next ID: 6 message ModelMonitoringObjectiveConfig { @@ -69,19 +72,70 @@ message ModelMonitoringObjectiveConfig { // training dataset sources and the skew detection parameters. message TrainingPredictionSkewDetectionConfig { // Key is the feature name and value is the threshold. If a feature needs to - // be monitored for skew, a value threshold must be configed for that + // be monitored for skew, a value threshold must be configured for that // feature. The threshold here is against feature distribution distance // between the training and prediction feature. map skew_thresholds = 1; + + // Key is the feature name and value is the threshold. The threshold here is + // against attribution score distance between the training and prediction + // feature. + map attribution_score_skew_thresholds = 2; } // The config for Prediction data drift detection. message PredictionDriftDetectionConfig { // Key is the feature name and value is the threshold. If a feature needs to - // be monitored for drift, a value threshold must be configed for that + // be monitored for drift, a value threshold must be configured for that // feature. The threshold here is against feature distribution distance // between different time windws. map drift_thresholds = 1; + + // 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; + } + + // The config for integrated with Explainable AI. Only applicable if the Model + // has explanation_spec populated. + message ExplanationConfig { + // Output from [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob] for Model Monitoring baseline dataset, + // which can be used to generate baseline attribution scores. + message ExplanationBaseline { + // The storage format of the predictions generated BatchPrediction job. + enum PredictionFormat { + // Should not be set. + PREDICTION_FORMAT_UNSPECIFIED = 0; + + // Predictions are in JSONL files, consistent from the definition here + // (http://shortn/_4bS0hL7ofb). + JSONL = 2; + + // Predictions are in BigQuery. + BIGQUERY = 3; + } + + // The configuration specifying of BatchExplain job output. This can be + // used to generate the baseline of feature attribution scores. + oneof destination { + // Cloud Storage location for BatchExplain output. + GcsDestination gcs = 2; + + // BigQuery location for BatchExplain output. + BigQueryDestination bigquery = 3; + } + + // The storage format of the predictions generated BatchPrediction job. + PredictionFormat prediction_format = 1; + } + + // If want to analyze the Explainable AI feature attribute scores or not. + // If set to true, Vertex AI will log the feature attributions from + // explain response and do the skew/drift detection for them. + bool enable_feature_attributes = 1; + + // Predictions generated by the BatchPredictionJob using baseline dataset. + ExplanationBaseline explanation_baseline = 2; } // Training dataset for models. This field has to be set only if @@ -93,6 +147,9 @@ message ModelMonitoringObjectiveConfig { // The config for drift of prediction data. PredictionDriftDetectionConfig prediction_drift_detection_config = 3; + + // The config for integrated with Explainable AI. + ExplanationConfig explanation_config = 5; } // Next ID: 2 diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_service.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_service.proto index 0e8299363..3e91b1023 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_service.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_service.proto @@ -28,10 +28,13 @@ import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; +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 = "ModelServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // A service for managing Vertex AI's machine learning Models. service ModelService { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/operation.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/operation.proto index 89702b868..045f921b7 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/operation.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/operation.proto @@ -21,10 +21,13 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; import "google/api/annotations.proto"; +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 = "OperationProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Generic Metadata shared by all operations. message GenericOperationMetadata { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto index a17cd2427..25e11c728 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto @@ -29,10 +29,13 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; import "google/api/annotations.proto"; +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 = "Pipeline"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; option (google.api.resource_definition) = { type: "compute.googleapis.com/Network" pattern: "projects/{project}/global/networks/{network}" diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_service.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_service.proto index a73292b29..f2663b0a1 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_service.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_service.proto @@ -26,10 +26,13 @@ import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; +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 = "PipelineServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // A service for creating and managing Vertex AI's pipelines. This includes both // `TrainingPipeline` resources (used for AutoML and custom training) and @@ -189,22 +192,32 @@ message ListTrainingPipelinesRequest { } ]; - // The standard list filter. - // Supported fields: - // - // * `display_name` supports = and !=. - // - // * `state` supports = and !=. + // Lists the PipelineJobs that match the filter expression. The following + // fields are supported: // - // Some examples of using the filter are: + // * `pipeline_name`: Supports `=` and `!=` comparisons. + // * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + // Values must be in RFC 3339 format. + // * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + // Values must be in RFC 3339 format. + // * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + // Values must be in RFC 3339 format. + // * `labels`: Supports key-value equality and key presence. // - // * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"` + // Filter expressions can be combined together using logical operators + // (`AND` & `OR`). + // For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. // - // * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"` + // The syntax to define filter expression is based on + // https://google.aip.dev/160. // - // * `NOT display_name="my_pipeline"` + // Examples: // - // * `state="PIPELINE_STATE_FAILED"` + // * `create_time>"2021-05-18T00:00:00Z" OR + // update_time>"2020-05-18T00:00:00Z"` PipelineJobs created or updated + // after 2020-05-18 00:00:00 UTC. + // * `labels.env = "prod"` + // PipelineJobs with label "env" set to "prod". string filter = 2; // The standard list page size. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_state.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_state.proto index a94a825f3..1dfb08e5d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_state.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_state.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1; import "google/api/annotations.proto"; +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 = "PipelineStateProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Describes the state of a pipeline. enum PipelineState { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/prediction_service.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/prediction_service.proto index 29e123d37..c0e4c3180 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/prediction_service.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/prediction_service.proto @@ -19,14 +19,18 @@ package google.cloud.aiplatform.v1beta1; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; +import "google/api/httpbody.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/explanation.proto"; import "google/protobuf/struct.proto"; +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 = "PredictionServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // A service for online predictions and explanations. service PredictionService { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_classification.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_classification.proto index 619b33324..f68044623 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_classification.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_classification.proto @@ -25,7 +25,7 @@ option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.instan // Prediction input format for Image Classification. message ImageClassificationPredictionInstance { - // The image bytes or GCS URI to make the prediction on. + // The image bytes or Cloud Storage URI to make the prediction on. string content = 1; // The MIME type of the content of the image. Only the images in below listed diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_object_detection.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_object_detection.proto index 3c0cc3fec..1765f464d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_object_detection.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/image_object_detection.proto @@ -25,7 +25,7 @@ option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.instan // Prediction input format for Image Object Detection. message ImageObjectDetectionPredictionInstance { - // The image bytes or GCS URI to make the prediction on. + // The image bytes or Cloud Storage URI to make the prediction on. string content = 1; // The MIME type of the content of the image. Only the images in below listed diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_extraction.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_extraction.proto index 4f0f994d1..f547c36b2 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_extraction.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/instance/text_extraction.proto @@ -35,7 +35,7 @@ message TextExtractionPredictionInstance { // This field is only used for batch prediction. If a key is provided, the // batch prediction result will by mapped to this key. If omitted, then the - // batch prediction result will contain the entire input instance. AI Platform + // batch prediction result will contain the entire input instance. Vertex AI // will not check if keys in the request are duplicates, so it is up to the // caller to ensure the keys are unique. string key = 3; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/video_classification.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/video_classification.proto index 142ffad68..ee99e65c0 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/video_classification.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/params/video_classification.proto @@ -34,15 +34,15 @@ message VideoClassificationPredictionParams { // fewer predictions. Default value is 10,000. int32 max_predictions = 2; - // Set to true to request segment-level classification. AI Platform returns + // Set to true to request segment-level classification. Vertex AI returns // labels and their confidence scores for the entire time segment of the // video that user specified in the input instance. // Default value is true bool segment_classification = 3; - // Set to true to request shot-level classification. AI Platform determines + // Set to true to request shot-level classification. Vertex AI determines // the boundaries for each camera shot in the entire time segment of the - // video that user specified in the input instance. AI Platform then + // video that user specified in the input instance. Vertex AI then // returns labels and their confidence scores for each detected shot, along // with the start and end time of the shot. // WARNING: Model evaluation is not done for this classification type, @@ -52,7 +52,7 @@ message VideoClassificationPredictionParams { bool shot_classification = 4; // Set to true to request classification for a video at one-second intervals. - // AI Platform returns labels and their confidence scores for each second of + // Vertex AI returns labels and their confidence scores for each second of // the entire time segment of the video that user specified in the input // WARNING: Model evaluation is not done for this classification type, the // quality of it depends on the training data, but there are no metrics diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/classification.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/classification.proto index 07a0e3416..f2c683f16 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/classification.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/predict/prediction/classification.proto @@ -25,8 +25,7 @@ option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.predic // Prediction output format for Image and Text Classification. message ClassificationPredictionResult { - // The resource IDs of the AnnotationSpecs that had been identified, ordered - // by the confidence score descendingly. + // The resource IDs of the AnnotationSpecs that had been identified. repeated int64 ids = 1; // The display names of the AnnotationSpecs that had been identified, order diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_classification.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_classification.proto index 024cfef7a..f9f7420e8 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_classification.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_image_classification.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 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/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_tables.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_tables.proto index 03650b2f9..134f2701f 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_tables.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_tables.proto @@ -267,6 +267,9 @@ message AutoMlTablesInputs { // Configuration for exporting test set predictions to a BigQuery table. If // this configuration is absent, then the export is not performed. ExportEvaluatedDataItemsConfig export_evaluated_data_items_config = 10; + + // Additional experiment flags for the Tables training pipeline. + repeated string additional_experiments = 11; } // Model metadata specific to AutoML Tables. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_time_series_forecasting.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_time_series_forecasting.proto index d5d9304ab..50d10bdcf 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_time_series_forecasting.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_time_series_forecasting.proto @@ -270,6 +270,9 @@ message AutoMlForecastingInputs { // // * "ignore-validation" - ignore the results of the validation and continue string validation_options = 17; + + // Additional experiment flags for the time series forcasting training. + repeated string additional_experiments = 25; } // Model metadata specific to AutoML Forecasting. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_action_recognition.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_action_recognition.proto index e63ea704d..fe7ce7e79 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_action_recognition.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_action_recognition.proto @@ -43,6 +43,16 @@ message AutoMlVideoActionRecognitionInputs { // also be exported (see ModelService.ExportModel) as a TensorFlow or // TensorFlow Lite model and used on a mobile or edge device afterwards. MOBILE_VERSATILE_1 = 2; + + // A model that, in addition to being available within Google Cloud, can + // also be exported (see ModelService.ExportModel) to a Jetson device + // afterwards. + MOBILE_JETSON_VERSATILE_1 = 3; + + // A model that, in addition to being available within Google Cloud, can + // also be exported (see ModelService.ExportModel) as a TensorFlow or + // TensorFlow Lite model and used on a Coral device afterwards. + MOBILE_CORAL_VERSATILE_1 = 4; } ModelType model_type = 1; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto index 087dfa142..48bf3ca09 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto @@ -30,7 +30,6 @@ message ExportEvaluatedDataItemsConfig { // // If not specified, then results are exported to the following auto-created // BigQuery table: - // // :export_evaluated_examples__.evaluated_examples string destination_bigquery_uri = 1; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/specialist_pool.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/specialist_pool.proto index 10863d09c..08bf1796e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/specialist_pool.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/specialist_pool.proto @@ -20,10 +20,13 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/api/annotations.proto"; +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 = "SpecialistPoolProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // SpecialistPool represents customers' own workforce to work on their data // labeling jobs. It includes a group of specialist managers who are responsible diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto index e6d95210c..2687d2dfb 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto @@ -25,10 +25,13 @@ import "google/cloud/aiplatform/v1beta1/specialist_pool.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; +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 = "SpecialistPoolServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // A service for creating and managing Customer SpecialistPools. // When customers start Data Labeling jobs, they can reuse/create Specialist diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/study.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/study.proto index f4a997f39..4691ff3d2 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/study.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/study.proto @@ -21,13 +21,15 @@ import "google/api/resource.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; +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 = "StudyProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // A message representing a Study. message Study { @@ -168,6 +170,11 @@ message Trial { type: "aiplatform.googleapis.com/CustomJob" } ]; + + // Output only. The web access URIs for the training job. + // The keys are the node names in the training jobs, e.g. workerpool0-0. + // The values are the URIs for each node's web portal in the job. + map web_access_uris = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Represents specification of a Study. @@ -203,6 +210,14 @@ message StudySpec { // Required. Inclusive maximum value of the parameter. double max_value = 2 [(google.api.field_behavior) = REQUIRED]; + + // A default value for a `DOUBLE` parameter that is assumed to be a + // relatively good starting point. Unset value signals that there is no + // offered starting point. + // + // Currently only supported by the Vizier service. Not supported by + // HyperparamterTuningJob or TrainingPipeline. + optional double default_value = 4; } // Value specification for a parameter in `INTEGER` type. @@ -212,12 +227,28 @@ message StudySpec { // Required. Inclusive maximum value of the parameter. int64 max_value = 2 [(google.api.field_behavior) = REQUIRED]; + + // A default value for an `INTEGER` parameter that is assumed to be a + // relatively good starting point. Unset value signals that there is no + // offered starting point. + // + // Currently only supported by the Vizier service. Not supported by + // HyperparamterTuningJob or TrainingPipeline. + optional int64 default_value = 4; } // Value specification for a parameter in `CATEGORICAL` type. message CategoricalValueSpec { // Required. The list of possible categories. repeated string values = 1 [(google.api.field_behavior) = REQUIRED]; + + // A default value for a `CATEGORICAL` parameter that is assumed to be a + // relatively good starting point. Unset value signals that there is no + // offered starting point. + // + // Currently only supported by the Vizier service. Not supported by + // HyperparamterTuningJob or TrainingPipeline. + optional string default_value = 3; } // Value specification for a parameter in `DISCRETE` type. @@ -227,6 +258,15 @@ message StudySpec { // For instance, this parameter might have possible settings of 1.5, 2.5, // and 4.0. This list should not contain more than 1,000 values. repeated double values = 1 [(google.api.field_behavior) = REQUIRED]; + + // A default value for a `DISCRETE` parameter that is assumed to be a + // relatively good starting point. Unset value signals that there is no + // offered starting point. It automatically rounds to the + // nearest feasible discrete point. + // + // Currently only supported by the Vizier service. Not supported by + // HyperparamterTuningJob or TrainingPipeline. + optional double default_value = 3; } // Represents a parameter spec with condition from its parent parameter. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard.proto index d19d280fd..dda3557da 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard.proto @@ -22,10 +22,13 @@ import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "TensorboardProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Tensorboard is a physical database that stores users' training metrics. // A default Tensorboard is provided in each region of a GCP project. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_data.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_data.proto index 793ce91d2..1e7e0f2a9 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_data.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_data.proto @@ -21,10 +21,13 @@ import "google/cloud/aiplatform/v1beta1/tensorboard_time_series.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "TensorboardDataProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // All the data stored in a TensorboardTimeSeries. message TimeSeriesData { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_experiment.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_experiment.proto index 6d8b330fd..1895d848d 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_experiment.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_experiment.proto @@ -21,10 +21,13 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "TensorboardExperimentProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // A TensorboardExperiment is a group of TensorboardRuns, that are typically the // results of a training job run, in a Tensorboard. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_run.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_run.proto index db946ecd7..a6aee92a5 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_run.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_run.proto @@ -21,10 +21,13 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "TensorboardRunProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // TensorboardRun maps to a specific execution of a training job with a given // set of hyperparameter values, model definition, dataset, etc diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_service.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_service.proto index 3046133f5..d90b0a902 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_service.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_service.proto @@ -29,10 +29,13 @@ import "google/cloud/aiplatform/v1beta1/tensorboard_time_series.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; +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 = "TensorboardServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // TensorboardService service TensorboardService { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_time_series.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_time_series.proto index 1a37dd96c..e99b51c1b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_time_series.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_time_series.proto @@ -21,10 +21,13 @@ import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +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 = "TensorboardTimeSeriesProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // TensorboardTimeSeries maps to times series produced in training runs message TensorboardTimeSeries { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/training_pipeline.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/training_pipeline.proto index 6495149d9..475434aa3 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/training_pipeline.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/training_pipeline.proto @@ -29,10 +29,13 @@ import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; import "google/api/annotations.proto"; +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 = "TrainingPipelineProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // The TrainingPipeline orchestrates tasks associated with training a Model. It // always executes the training task, and optionally may also diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/types.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/types.proto index 365206e97..bc4016e24 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/types.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/types.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1; import "google/api/annotations.proto"; +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 = "TypesProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // A list of boolean values. message BoolArray { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/user_action_reference.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/user_action_reference.proto index f0e363612..cd17de284 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/user_action_reference.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/user_action_reference.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1; import "google/api/annotations.proto"; +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 = "UserActionReferenceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // References an API call. It contains more information about long running // operation and Jobs that are triggered by the API call. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/value.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/value.proto index ecf4c720b..699c10400 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/value.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/value.proto @@ -18,10 +18,13 @@ package google.cloud.aiplatform.v1beta1; import "google/api/annotations.proto"; +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 = "ValueProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Value is the value of the field. message Value { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vizier_service.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vizier_service.proto index fb8422fa3..3a4706030 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vizier_service.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vizier_service.proto @@ -26,10 +26,13 @@ import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/timestamp.proto"; +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 = "VizierServiceProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Vertex Vizier API. // diff --git a/renovate.json b/renovate.json index d217eb1a6..cad1eb445 100644 --- a/renovate.json +++ b/renovate.json @@ -69,5 +69,8 @@ } ], "semanticCommits": true, - "masterIssue": true + "dependencyDashboard": true, + "dependencyDashboardLabels": [ + "type: process" + ] } diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 8da8b444d..f85771fee 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,13 +29,13 @@ com.google.cloud google-cloud-aiplatform - 1.0.0 + 1.0.2 com.google.cloud google-cloud-storage - 1.117.1 + 1.118.0 com.google.protobuf diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index f5400bbd1..86e5a731c 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,13 +28,13 @@ com.google.cloud google-cloud-aiplatform - 1.0.2 + 2.0.0 com.google.cloud google-cloud-storage - 1.117.1 + 1.118.0 com.google.protobuf diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 9b706b6c1..e5764e594 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -27,13 +27,13 @@ com.google.cloud google-cloud-aiplatform - 1.0.0 + 1.0.2 com.google.cloud google-cloud-storage - 1.117.1 + 1.118.0 com.google.protobuf @@ -60,7 +60,7 @@ com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.5.1 + 0.5.2 diff --git a/versions.txt b/versions.txt index 416e4ed07..b624c41cd 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-aiplatform:1.0.2:1.0.2 -grpc-google-cloud-aiplatform-v1:1.0.2:1.0.2 -grpc-google-cloud-aiplatform-v1beta1:0.5.2:0.5.2 -proto-google-cloud-aiplatform-v1:1.0.2:1.0.2 -proto-google-cloud-aiplatform-v1beta1:0.5.2:0.5.2 +google-cloud-aiplatform:2.0.0:2.0.0 +grpc-google-cloud-aiplatform-v1:2.0.0:2.0.0 +grpc-google-cloud-aiplatform-v1beta1:0.6.0:0.6.0 +proto-google-cloud-aiplatform-v1:2.0.0:2.0.0 +proto-google-cloud-aiplatform-v1beta1:0.6.0:0.6.0